diff --git a/build/scripts/Commandline.fsx b/build/scripts/Commandline.fsx index f20e5c3e02e..79f961713b5 100644 --- a/build/scripts/Commandline.fsx +++ b/build/scripts/Commandline.fsx @@ -19,11 +19,10 @@ Targets: * clean - cleans build output folders * test [testfilter] - - incremental build and unit test for .NET 4.5, [testfilter] allows you to do - a contains match on the tests to be run. + - incremental build and unit test for .NET 4.5, [testfilter] allows you to do a contains match on the tests to be run. * release - 0 create a release worthy nuget packages for [version] under build\output -* integrate [clustername] [testfilter] - +* integrate [clustername] [testfilter] - run integration tests for which is a semicolon separated list of elasticsearch versions to test or `latest`. Can filter tests by and * canary [apikey] [feed] @@ -57,6 +56,14 @@ module Commandline = | ("test", _) | ("integrate", _) -> false | _ -> true + + let needsClean = + match (target, skipTests) with + | (_, true) -> true + //dotnet-xunit needs to a build of its own anyways + | ("test", _) + | ("integrate", _) -> false + | _ -> true let arguments = match filteredArgs with diff --git a/build/scripts/Targets.fsx b/build/scripts/Targets.fsx index 010b3559a88..c17209e4f65 100644 --- a/build/scripts/Targets.fsx +++ b/build/scripts/Targets.fsx @@ -32,6 +32,7 @@ open Commandline Commandline.parse() Target "Build" <| fun _ -> traceHeader "STARTING BUILD" +Target "Start" <| fun _ -> traceHeader "STARTING BUILD" Target "Clean" Build.Clean @@ -75,7 +76,8 @@ Target "Canary" <| fun _ -> if (not (String.IsNullOrWhiteSpace apiKey) || apiKey = "ignore") then Release.PublishCanaryBuild apiKey feed // Dependencies -"Clean" +"Start" + =?> ("Clean", Commandline.needsClean ) =?> ("Version", hasBuildParam "version") ==> "Restore" =?> ("FullBuild", Commandline.needsFullBuild) @@ -84,11 +86,13 @@ Target "Canary" <| fun _ -> ==> "Documentation" ==> "Build" -"Clean" +"Start" + =?> ("Clean", Commandline.needsClean ) =?> ("FullBuild", Commandline.needsFullBuild) ==> "Profile" -"Clean" +"Start" + =?> ("Clean", Commandline.needsClean ) =?> ("FullBuild", Commandline.needsFullBuild) ==> "Benchmark" @@ -96,7 +100,8 @@ Target "Canary" <| fun _ -> ==> "Release" ==> "Canary" -"Clean" +"Start" + =?> ("Clean", Commandline.needsClean ) ==> "Restore" =?> ("FullBuild", Commandline.needsFullBuild) ==> "Integrate" diff --git a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs index 8ffa75ae401..61637814efd 100644 --- a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs +++ b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs @@ -41,6 +41,13 @@ public static void Generate(string downloadBranch, params string[] folders) } } + private static string[] IgnoredApis { get; } = + { + "xpack.ml.delete_filter.json", + "xpack.ml.get_filters.json", + "xpack.ml.put_filter.json", + }; + private static RestApiSpec CreateRestApiSpecModel(string downloadBranch, string[] folders) { var directories = Directory.GetDirectories(CodeConfiguration.RestSpecificationFolder, "*", SearchOption.AllDirectories) @@ -50,7 +57,12 @@ private static RestApiSpec CreateRestApiSpecModel(string downloadBranch, string[ var endpoints = new Dictionary(); using (var pbar = new ProgressBar(directories.Count, $"Listing {directories.Count} directories", new ProgressBarOptions { BackgroundColor = ConsoleColor.DarkGray })) { - foreach (var jsonFiles in directories.Select(dir => Directory.GetFiles(dir).Where(f => f.EndsWith(".json")).ToList())) + var folderFiles = directories.Select(dir => + Directory.GetFiles(dir) + .Where(f => f.EndsWith(".json") && !IgnoredApis.Contains(new FileInfo(f).Name)) + .ToList() + ); + foreach (var jsonFiles in folderFiles) { using (var fileProgress = pbar.Spawn(jsonFiles.Count, $"Listing {jsonFiles.Count} files", new ProgressBarOptions { ProgressCharacter = '─', BackgroundColor = ConsoleColor.DarkGray })) { diff --git a/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs b/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs index 339f688fe5c..09f33a8c48b 100644 --- a/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs +++ b/src/CodeGeneration/ApiGenerator/Domain/ApiUrlPart.cs @@ -46,6 +46,7 @@ public string ClrTypeName case "filter_id": case "id": return this.Type == "string" ? "Id" : "Ids"; case "category_id": return "CategoryId"; + case "nodes": case "node_id": return this.Type == "string" ? "NodeId" : "NodeIds"; case "scroll_id": return this.Type == "string" ? "ScrollId" : "ScrollIds"; case "field": @@ -64,9 +65,11 @@ public string ClrTypeName case "realm": case "realms": case "alias": + case "context": case "name": case "thread_pool_patterns": return this.Type == "string" ? "Name" : "Names"; + case "parent_task_id": case "task_id": return "TaskId"; case "timestamp": return "Timestamp"; default: return this.Type + "_"; diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json index 118f8b6bf96..3306b2f753b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json @@ -16,6 +16,11 @@ "type" : "string", "description" : "a short version of the Accept header, e.g. json, yaml" }, + "bytes": { + "type": "enum", + "description" : "The unit in which to display byte values", + "options": [ "b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb" ] + }, "h": { "type": "list", "description" : "Comma-separated list of column names to display" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json index db46ce909ff..2ad714e7225 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json @@ -16,6 +16,11 @@ "type" : "string", "description" : "a short version of the Accept header, e.g. json, yaml" }, + "bytes": { + "type": "enum", + "description" : "The unit in which to display byte values", + "options": [ "b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb" ] + }, "local": { "type" : "boolean", "description" : "Return local information, do not retrieve the state from master node (default: false)" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json index 90f4ca32730..eec22e2e041 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json @@ -10,7 +10,6 @@ "parts": { "repository": { "type" : "list", - "required": true, "description": "Name of repository from which to fetch the snapshot information" } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/remote.info.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.remote_info.json similarity index 73% rename from src/CodeGeneration/ApiGenerator/RestSpecification/Core/remote.info.json rename to src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.remote_info.json index f831fa9de6c..32378531544 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/remote.info.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.remote_info.json @@ -1,6 +1,6 @@ { - "remote.info": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-remote-info.html", + "cluster.remote_info": { + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html", "methods": ["GET"], "url": { "path": "/_remote/info", @@ -9,4 +9,4 @@ }, "body": null } -} \ No newline at end of file +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json index 0e2697cd524..96fa4daf12b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json @@ -39,8 +39,8 @@ "description" : "Specify the node or shard the operation should be performed on (default: random)" }, "routing": { - "type" : "string", - "description" : "Specific routing value" + "type" : "list", + "description" : "A comma-separated list of specific routing values" }, "q": { "type" : "string", @@ -67,6 +67,10 @@ "lenient": { "type" : "boolean", "description" : "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" + }, + "terminate_after" : { + "type" : "number", + "description" : "The maximum count for each shard, upon reaching which the query execution will terminate early" } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json index 7be743e8e78..83bb690cc04 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json @@ -3,21 +3,24 @@ "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", "methods": ["DELETE"], "url": { - "path": "/_scripts/{lang}", - "paths": [ "/_scripts/{lang}", "/_scripts/{lang}/{id}" ], + "path": "/_scripts/{id}", + "paths": [ "/_scripts/{id}" ], "parts": { "id": { "type" : "string", "description" : "Script ID", "required" : true - }, - "lang" : { - "type" : "string", - "description" : "Script language", - "required" : true } }, "params" : { + "timeout": { + "type" : "time", + "description" : "Explicit operation timeout" + }, + "master_timeout": { + "type" : "time", + "description" : "Specify timeout for connection to master" + } } }, "body": null diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_template.json deleted file mode 100644 index e1e40bd95b6..00000000000 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_template.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "delete_template": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html", - "methods": ["DELETE"], - "url": { - "path": "/_search/template/{id}", - "paths": [ "/_search/template/{id}" ], - "parts": { - "id": { - "type" : "string", - "description" : "Template ID", - "required" : true - } - }, - "params" : { - } - }, - "body": null - } -} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json index f14ec46891d..3e561a21146 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json @@ -1,6 +1,6 @@ { "exists_source": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html", + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", "methods": ["HEAD"], "url": { "path": "/{index}/{type}/{id}/_source", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json index 357d1571b33..d993dc0545b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json @@ -1,6 +1,6 @@ { "field_caps": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html", + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html", "methods": ["GET", "POST"], "url": { "path": "/_field_caps", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json index c253c6e1fdb..2240f0e1a0b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json @@ -3,18 +3,13 @@ "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", "methods": ["GET"], "url": { - "path": "/_scripts/{lang}", - "paths": [ "/_scripts/{lang}", "/_scripts/{lang}/{id}" ], + "path": "/_scripts/{id}", + "paths": [ "/_scripts/{id}" ], "parts": { "id": { "type" : "string", "description" : "Script ID", "required" : true - }, - "lang" : { - "type" : "string", - "description" : "Script language", - "required" : true } }, "params" : { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_template.json deleted file mode 100644 index 487b81c5350..00000000000 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_template.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "get_template": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html", - "methods": ["GET"], - "url": { - "path": "/_search/template/{id}", - "paths": [ "/_search/template/{id}" ], - "parts": { - "id": { - "type" : "string", - "description" : "Template ID", - "required" : true - } - }, - "params" : { - } - }, - "body": null - } -} \ No newline at end of file diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json index 829e7a2ded1..c391242e9de 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json @@ -20,6 +20,20 @@ "master_timeout": { "type" : "time", "description" : "Specify timeout for connection to master" + }, + "ignore_unavailable": { + "type": "boolean", + "description": "Ignore unavailable indexes (default: false)" + }, + "allow_no_indices": { + "type": "boolean", + "description": "Ignore if a wildcard expression resolves to no concrete indices (default: false)" + }, + "expand_wildcards": { + "type": "enum", + "options": [ "open", "closed", "none", "all" ], + "default": "open", + "description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)" } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json index 96c4c53cd9d..3fb9d1e207e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json @@ -8,7 +8,7 @@ "parts": { "name": { "type": "list", - "required": false, + "required": true, "description": "The comma separated names of the index templates" } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json index e58af6d50b2..f615718c7d4 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json @@ -4,17 +4,12 @@ "methods":[ "GET" ], "url":{ "path":"/{index}", - "paths":[ "/{index}", "/{index}/{feature}" ], + "paths":[ "/{index}" ], "parts":{ "index":{ "type":"list", "required" : true, "description":"A comma-separated list of index names" - }, - "feature":{ - "type":"list", - "description":"A comma-separated list of features", - "options": ["_settings", "_mappings", "_aliases"] } }, "params":{ diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.processor_grok.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.processor_grok.json new file mode 100644 index 00000000000..55afada7281 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.processor_grok.json @@ -0,0 +1,15 @@ +{ + "ingest.processor_grok": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html", + "methods": [ "GET" ], + "url": { + "path": "/_ingest/processor/grok", + "paths": ["/_ingest/processor/grok"], + "parts": { + }, + "params": { + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json index 69d9145207c..090c429fd82 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json @@ -28,6 +28,11 @@ "typed_keys": { "type" : "boolean", "description" : "Specify whether aggregation and suggester names should be prefixed by their respective types in the response" + }, + "pre_filter_shard_size" : { + "type" : "number", + "description" : "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.", + "default" : 128 } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json new file mode 100644 index 00000000000..b066a010553 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json @@ -0,0 +1,38 @@ +{ + "nodes.usage": { + "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html", + "methods": ["GET"], + "url": { + "path": "/_nodes/usage", + "paths": [ + "/_nodes/usage", + "/_nodes/{node_id}/usage", + "/_nodes/usage/{metric}", + "/_nodes/{node_id}/usage/{metric}" + ], + "parts": { + "metric" : { + "type" : "list", + "options" : ["_all", "rest_actions"], + "description" : "Limit the information returned to the specified metrics" + }, + "node_id": { + "type" : "list", + "description" : "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes" + } + }, + "params": { + "human": { + "type": "boolean", + "description": "Whether to return time and byte values in human-readable format.", + "default": false + }, + "timeout": { + "type" : "time", + "description" : "Explicit operation timeout" + } + } + }, + "body": null + } +} \ No newline at end of file diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json index 93fef4c030b..34bd4f63c28 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json @@ -3,21 +3,32 @@ "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", "methods": ["PUT", "POST"], "url": { - "path": "/_scripts/{lang}", - "paths": [ "/_scripts/{lang}", "/_scripts/{lang}/{id}" ], + "path": "/_scripts/{id}", + "paths": [ "/_scripts/{id}", "/_scripts/{id}/{context}" ], "parts": { "id": { "type" : "string", "description" : "Script ID", "required" : true }, - "lang" : { + "context" : { "type" : "string", - "description" : "Script language", - "required" : true + "description" : "Script context" } }, "params" : { + "timeout": { + "type" : "time", + "description" : "Explicit operation timeout" + }, + "master_timeout": { + "type" : "time", + "description" : "Specify timeout for connection to master" + }, + "context": { + "type" : "string", + "description" : "Context name to compile script against" + } } }, "body": { @@ -25,4 +36,4 @@ "required" : true } } -} \ No newline at end of file +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_template.json deleted file mode 100644 index 294ed32cfff..00000000000 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_template.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "put_template": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html", - "methods": ["PUT", "POST"], - "url": { - "path": "/_search/template/{id}", - "paths": [ "/_search/template/{id}" ], - "parts": { - "id": { - "type" : "string", - "description" : "Template ID", - "required" : true - } - }, - "params" : { - } - }, - "body": { - "description" : "The document", - "required" : true - } - } -} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json index dc5fda57439..0f2beffa457 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json @@ -46,10 +46,6 @@ "type" : "list", "description" : "A comma-separated list of fields to return as the docvalue representation of a field for each hit" }, - "fielddata_fields": { - "type" : "list", - "description" : "A comma-separated list of fields to return as the docvalue representation of a field for each hit" - }, "from": { "type" : "number", "description" : "Starting offset (default: 0)" @@ -147,6 +143,10 @@ "type" : "boolean", "description": "Whether to calculate and return scores even if they are not used for sorting" }, + "track_total_hits": { + "type" : "boolean", + "description": "Indicate if the number of documents that match the query should be tracked" + }, "typed_keys": { "type" : "boolean", "description" : "Specify whether aggregation and suggester names should be prefixed by their respective types in the response" @@ -163,6 +163,16 @@ "type" : "number", "description" : "The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large.", "default" : 512 + }, + "max_concurrent_shard_requests" : { + "type" : "number", + "description" : "The number of concurrent shard requests this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests", + "default" : "The default grows with the number of nodes in the cluster but is at most 256." + }, + "pre_filter_shard_size" : { + "type" : "number", + "description" : "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.", + "default" : 128 } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json index 69d21f4ec1d..cffa74934bc 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json @@ -12,7 +12,7 @@ } }, "params": { - "node_id": { + "nodes": { "type": "list", "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes" }, @@ -24,7 +24,7 @@ "type": "string", "description": "Cancel tasks with specified parent node." }, - "parent_task": { + "parent_task_id": { "type" : "string", "description" : "Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all." } diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json index a966cb0e507..fbe355ee164 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json @@ -7,7 +7,7 @@ "paths": ["/_tasks"], "parts": {}, "params": { - "node_id": { + "nodes": { "type": "list", "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes" }, @@ -23,7 +23,7 @@ "type": "string", "description": "Return tasks with specified parent node." }, - "parent_task": { + "parent_task_id": { "type" : "string", "description" : "Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all." }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Graph/xpack.graph.explore.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Graph/xpack.graph.explore.json index 4530b6027ab..2879ce182cb 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Graph/xpack.graph.explore.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Graph/xpack.graph.explore.json @@ -1,10 +1,10 @@ { "xpack.graph.explore": { - "documentation": "https://www.elastic.co/guide/en/graph/current/explore.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html", "methods": ["GET", "POST"], "url": { - "path": "/{index}/_xpack/_graph/_explore", - "paths": ["/{index}/_xpack/_graph/_explore", "/{index}/{type}/_xpack/_graph/_explore"], + "path": "/{index}/_xpack/graph/_explore", + "paths": ["/{index}/_xpack/graph/_explore", "/{index}/{type}/_xpack/graph/_explore"], "parts" : { "index": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.deprecation.info.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.deprecation.info.json new file mode 100644 index 00000000000..cd4e3cac339 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.deprecation.info.json @@ -0,0 +1,19 @@ +{ + "xpack.deprecation.info": { + "documentation": "http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html", + "methods": [ "GET" ], + "url": { + "path": "/{index}/_xpack/migration/deprecations", + "paths": ["/_xpack/migration/deprecations", "/{index}/_xpack/migration/deprecations"], + "parts": { + "index": { + "type" : "string", + "description" : "Index pattern" + } + }, + "params": { + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.delete.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.delete.json index 7a9ad12eef3..6b5a449b04f 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.delete.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.delete.json @@ -1,6 +1,6 @@ { "xpack.license.delete": { - "documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html", + "documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html", "methods": ["DELETE"], "url": { "path": "/_xpack/license", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get.json index 2849ad2e31b..f8498a3db97 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get.json @@ -1,6 +1,6 @@ { "xpack.license.get": { - "documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html", + "documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html", "methods": ["GET"], "url": { "path": "/_xpack/license", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post.json index 0b51d2c5ad7..0899a742a81 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post.json @@ -1,6 +1,6 @@ { "xpack.license.post": { - "documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html", + "documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html", "methods": ["PUT", "POST"], "url": { "path": "/_xpack/license", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_filter.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_filter.json new file mode 100644 index 00000000000..6c120fc243f --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_filter.json @@ -0,0 +1,17 @@ +{ + "xpack.ml.delete_filter": { + "methods": [ "DELETE" ], + "url": { + "path": "/_xpack/ml/filters/{filter_id}", + "paths": [ "/_xpack/ml/filters/{filter_id}" ], + "parts": { + "filter_id": { + "type" : "string", + "required" : true, + "description" : "The ID of the filter to delete" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.flush_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.flush_job.json index de174183b75..22dba0ed6ce 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.flush_job.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.flush_job.json @@ -31,7 +31,11 @@ }, "advance_time": { "type": "string", - "description": "Setting this tells the Engine API that no data prior to advance_time is expected" + "description": "Advances time to the given value generating results and updating the model for the advanced interval" + }, + "skip_time": { + "type": "string", + "description": "Skips time to the given value without generating results or updating the model for the skipped interval" } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_filters.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_filters.json new file mode 100644 index 00000000000..828f6c6e530 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_filters.json @@ -0,0 +1,26 @@ +{ + "xpack.ml.get_filters": { + "methods": [ "GET" ], + "url": { + "path": "/_xpack/ml/filters/{filter_id}", + "paths": [ "/_xpack/ml/filters/", "/_xpack/ml/filters/{filter_id}" ], + "parts": { + "filter_id": { + "type" : "string", + "description" : "The ID of the filter to fetch" + } + }, + "params": { + "from": { + "type": "int", + "description": "skips a number of filters" + }, + "size": { + "type": "int", + "description": "specifies a max number of filters to get" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_filter.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_filter.json new file mode 100644 index 00000000000..36c5f0582cb --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_filter.json @@ -0,0 +1,20 @@ +{ + "xpack.ml.put_filter": { + "methods": [ "PUT" ], + "url": { + "path": "/_xpack/ml/filters/{filter_id}", + "paths": [ "/_xpack/ml/filters/{filter_id}" ], + "parts": { + "filter_id": { + "type": "string", + "required": true, + "description": "The ID of the filter to create" + } + } + }, + "body": { + "description" : "The filter details", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.revert_model_snapshot.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.revert_model_snapshot.json index b3d23c2353e..6f7810aff7f 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.revert_model_snapshot.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.revert_model_snapshot.json @@ -13,6 +13,7 @@ }, "snapshot_id": { "type": "string", + "required": true, "description": "The ID of the snapshot to revert to" } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_stats.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Migration/xpack.migration.get_assistance.json similarity index 53% rename from src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_stats.json rename to src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Migration/xpack.migration.get_assistance.json index c7e95dd683e..46abf6741c1 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_stats.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Migration/xpack.migration.get_assistance.json @@ -1,12 +1,12 @@ { - "field_stats": { - "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html", - "methods": ["GET", "POST"], + "xpack.migration.get_assistance": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html", + "methods": [ "GET" ], "url": { - "path": "/_field_stats", + "path": "/_xpack/migration/assistance", "paths": [ - "/_field_stats", - "/{index}/_field_stats" + "/_xpack/migration/assistance", + "/_xpack/migration/assistance/{index}" ], "parts": { "index": { @@ -15,20 +15,6 @@ } }, "params": { - "fields": { - "type" : "list", - "description" : "A comma-separated list of fields for to get field statistics for (min value, max value, and more)" - }, - "level": { - "type" : "enum", - "options" : ["indices", "cluster"], - "default" : "cluster", - "description" : "Defines if field stats should be returned on a per index level or on a cluster wide level" - }, - "ignore_unavailable": { - "type" : "boolean", - "description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)" - }, "allow_no_indices": { "type" : "boolean", "description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)" @@ -38,12 +24,12 @@ "options" : ["open","closed","none","all"], "default" : "open", "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, + "ignore_unavailable": { + "type" : "boolean", + "description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)" } } - }, - "body": { - "description": "Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds", - "required": false } } } diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Migration/xpack.migration.upgrade.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Migration/xpack.migration.upgrade.json new file mode 100644 index 00000000000..d6cdff03fa6 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Migration/xpack.migration.upgrade.json @@ -0,0 +1,26 @@ +{ + "xpack.migration.upgrade": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html", + "methods": [ "POST" ], + "url": { + "path": "/_xpack/migration/upgrade/{index}", + "paths": [ + "/_xpack/migration/upgrade/{index}" + ], + "parts": { + "index": { + "type" : "string", + "required" : true, + "description" : "The name of the index" + } + }, + "params": { + "wait_for_completion": { + "type" : "boolean", + "default": true, + "description" : "Should the request block until the upgrade operation is completed" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Monitoring/xpack.monitoring.bulk.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Monitoring/xpack.monitoring.bulk.json new file mode 100644 index 00000000000..71f1b1fc13b --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Monitoring/xpack.monitoring.bulk.json @@ -0,0 +1,35 @@ +{ + "xpack.monitoring.bulk": { + "documentation": "http://www.elastic.co/guide/en/monitoring/current/appendix-api-bulk.html", + "methods": ["POST", "PUT"], + "url": { + "path": "/_xpack/monitoring/_bulk", + "paths": ["/_xpack/monitoring/_bulk", "/_xpack/monitoring/{type}/_bulk"], + "parts": { + "type": { + "type" : "string", + "description" : "Default document type for items which don't provide one" + } + }, + "params": { + "system_id": { + "type": "string", + "description" : "Identifier of the monitored system" + }, + "system_api_version" : { + "type" : "string", + "description" : "API Version of the monitored system" + }, + "interval": { + "type" : "string", + "description" : "Collection interval (e.g., '10s' or '10000ms') of the payload" + } + } + }, + "body": { + "description" : "The operation definition and data (action-data pairs), separated by newlines", + "required" : true, + "serialize" : "bulk" + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.authenticate.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.authenticate.json index 3db7084b342..650f89e89a4 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.authenticate.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.authenticate.json @@ -1,6 +1,6 @@ { "xpack.security.authenticate": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html", "methods": [ "GET" ], "url": { "path": "/_xpack/security/_authenticate", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.change_password.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.change_password.json index b193284c1e3..7cb4277ee50 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.change_password.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.change_password.json @@ -1,6 +1,6 @@ { "xpack.security.change_password": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/user/{username}/_password", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_realms.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_realms.json index 21c6305304c..059441d654e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_realms.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_realms.json @@ -1,6 +1,6 @@ { "xpack.security.clear_cached_realms": { - "documentation": "https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html", "methods": [ "POST" ], "url": { "path": "/_xpack/security/realm/{realms}/_clear_cache", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json index 65426cdc29b..c94333325b1 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.clear_cached_roles.json @@ -1,6 +1,6 @@ { "xpack.security.clear_cached_roles": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache", "methods": [ "POST" ], "url": { "path": "/_xpack/security/role/{name}/_clear_cache", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json index 365d3ba4a5c..4351b1bc847 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role.json @@ -1,6 +1,6 @@ { "xpack.security.delete_role": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-delete-role", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/role/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json index 6d6657bed46..26c72666e8f 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_role_mapping.json @@ -1,6 +1,6 @@ { "xpack.security.delete_role_mapping": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-delete-role-mapping", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/role_mapping/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json index 4e6c1cc5370..d72c854a69d 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.delete_user.json @@ -1,6 +1,6 @@ { "xpack.security.delete_user": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-delete-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/user/{username}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json index 75c1d26cd8a..3a72b314191 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.disable_user.json @@ -1,6 +1,6 @@ { "xpack.security.disable_user": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/user/{username}/_disable", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json index eaf40c09275..c68144957f0 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.enable_user.json @@ -1,6 +1,6 @@ { "xpack.security.enable_user": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/user/{username}/_enable", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json index 20292019dcb..3479c911ccd 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role.json @@ -1,6 +1,6 @@ { "xpack.security.get_role": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role", "methods": [ "GET" ], "url": { "path": "/_xpack/security/role/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json index e33183c96f3..0bdeb54cfb6 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_role_mapping.json @@ -1,6 +1,6 @@ { "xpack.security.get_role_mapping": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping", "methods": [ "GET" ], "url": { "path": "/_xpack/security/role_mapping/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json index 07c060f56a8..8020d1ecd6d 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_token.json @@ -1,6 +1,6 @@ { "xpack.security.get_token": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-get-token", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token", "methods": [ "POST" ], "url": { "path": "/_xpack/security/oauth2/token", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json index 8853275c19f..910fb7d0645 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.get_user.json @@ -1,6 +1,6 @@ { "xpack.security.get_user": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user", "methods": [ "GET" ], "url": { "path": "/_xpack/security/user/{username}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json index 88ad6edbb5b..be032c2ffd0 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.invalidate_token.json @@ -1,6 +1,6 @@ { "xpack.security.invalidate_token": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-invalidate-token", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token", "methods": [ "DELETE" ], "url": { "path": "/_xpack/security/oauth2/token", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json index c2d51dc016a..4152975189e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role.json @@ -1,6 +1,6 @@ { "xpack.security.put_role": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/role/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json index 919e174f28e..3f92cd130ba 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_role_mapping.json @@ -1,6 +1,6 @@ { "xpack.security.put_role_mapping": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/role_mapping/{name}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json index a589dd1e61d..de07498a409 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Security/xpack.security.put_user.json @@ -1,6 +1,6 @@ { "xpack.security.put_user": { - "documentation": "https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user", + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user", "methods": [ "PUT", "POST" ], "url": { "path": "/_xpack/security/user/{username}", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.stats.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.stats.json index 089e42d80e1..40eda835a4b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.stats.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.stats.json @@ -17,6 +17,11 @@ "type" : "enum", "options" : ["_all", "queued_watches", "pending_watches"], "description" : "Controls what additional stat metrics should be include in the response" + }, + "emit_stacktraces": { + "type" : "boolean", + "description" : "Emits stack traces of currently running watches", + "required" : false } } }, diff --git a/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml b/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml index b17e941dad9..a1791466086 100644 --- a/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml +++ b/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml @@ -50,7 +50,7 @@ namespace Nest var tMethod = t == "Time" ? ".ToTimeSpan()" : ""; var tSuffix = (t == "bool") ? " = true" : ""; var m = kv.Key.ToPascalCase(); - var mm = (m != "Type" && m != "Index" && m != "Script") ? m : m + "QueryString"; + var mm = (m != "Type" && m != "Index" && m != "Source" && m != "Script") ? m : m + "QueryString"; var typed = !method.DescriptorTypeGeneric.IsNullOrEmpty(); var g = typed ? method.DescriptorTypeGeneric.Replace("<", "").Replace(">", "") : "T"; var mml = mm.ToLowerInvariant(); diff --git a/src/CodeGeneration/ApiGenerator/Views/_Requests.Generated.cshtml b/src/CodeGeneration/ApiGenerator/Views/_Requests.Generated.cshtml index 562360897ca..6c16d466375 100644 --- a/src/CodeGeneration/ApiGenerator/Views/_Requests.Generated.cshtml +++ b/src/CodeGeneration/ApiGenerator/Views/_Requests.Generated.cshtml @@ -65,7 +65,7 @@ namespace Nest } var original = kv.Value.OriginalQueryStringParamName; var cased = kv.Key.ToPascalCase(); - var mm = (cased != "Type" && cased != "Index" && cased != "Script") ? cased : cased + "QueryString"; + var mm = (cased != "Type" && cased != "Index" && cased != "Source" && cased != "Script") ? cased : cased + "QueryString"; var fieldType = kv.Value.HighLevelType(kv.Key).Replace("params", ""); var isFields = (original.Contains("fields") || original.Contains("source_include") || original.Contains("source_exclude")); if (isFields && fieldType.Contains("string")) diff --git a/src/Elasticsearch.Net/Domain/Enums.Generated.cs b/src/Elasticsearch.Net/Domain/Enums.Generated.cs index 38fa6a26e11..170f4edc7d9 100644 --- a/src/Elasticsearch.Net/Domain/Enums.Generated.cs +++ b/src/Elasticsearch.Net/Domain/Enums.Generated.cs @@ -15,351 +15,349 @@ namespace Elasticsearch.Net public enum Refresh { - [EnumMember(Value = "true")] - True, - [EnumMember(Value = "false")] - False, - [EnumMember(Value = "wait_for")] + [EnumMember(Value = "true")] + True, + [EnumMember(Value = "false")] + False, + [EnumMember(Value = "wait_for")] WaitFor } public enum Bytes { - [EnumMember(Value = "b")] - B, - [EnumMember(Value = "k")] - K, - [EnumMember(Value = "kb")] - Kb, - [EnumMember(Value = "m")] - M, - [EnumMember(Value = "mb")] - Mb, - [EnumMember(Value = "g")] - G, - [EnumMember(Value = "gb")] - Gb, - [EnumMember(Value = "t")] - T, - [EnumMember(Value = "tb")] - Tb, - [EnumMember(Value = "p")] - P, - [EnumMember(Value = "pb")] + [EnumMember(Value = "b")] + B, + [EnumMember(Value = "k")] + K, + [EnumMember(Value = "kb")] + Kb, + [EnumMember(Value = "m")] + M, + [EnumMember(Value = "mb")] + Mb, + [EnumMember(Value = "g")] + G, + [EnumMember(Value = "gb")] + Gb, + [EnumMember(Value = "t")] + T, + [EnumMember(Value = "tb")] + Tb, + [EnumMember(Value = "p")] + P, + [EnumMember(Value = "pb")] Pb } public enum Health { - [EnumMember(Value = "green")] - Green, - [EnumMember(Value = "yellow")] - Yellow, - [EnumMember(Value = "red")] + [EnumMember(Value = "green")] + Green, + [EnumMember(Value = "yellow")] + Yellow, + [EnumMember(Value = "red")] Red } public enum Size { - [EnumMember(Value = "")] - Raw, - [EnumMember(Value = "k")] - K, - [EnumMember(Value = "m")] - M, - [EnumMember(Value = "g")] - G, - [EnumMember(Value = "t")] - T, - [EnumMember(Value = "p")] + [EnumMember(Value = "")] + Raw, + [EnumMember(Value = "k")] + K, + [EnumMember(Value = "m")] + M, + [EnumMember(Value = "g")] + G, + [EnumMember(Value = "t")] + T, + [EnumMember(Value = "p")] P } public enum Level { - [EnumMember(Value = "cluster")] - Cluster, - [EnumMember(Value = "indices")] - Indices, - [EnumMember(Value = "shards")] + [EnumMember(Value = "cluster")] + Cluster, + [EnumMember(Value = "indices")] + Indices, + [EnumMember(Value = "shards")] Shards } public enum WaitForEvents { - [EnumMember(Value = "immediate")] - Immediate, - [EnumMember(Value = "urgent")] - Urgent, - [EnumMember(Value = "high")] - High, - [EnumMember(Value = "normal")] - Normal, - [EnumMember(Value = "low")] - Low, - [EnumMember(Value = "languid")] + [EnumMember(Value = "immediate")] + Immediate, + [EnumMember(Value = "urgent")] + Urgent, + [EnumMember(Value = "high")] + High, + [EnumMember(Value = "normal")] + Normal, + [EnumMember(Value = "low")] + Low, + [EnumMember(Value = "languid")] Languid } public enum WaitForStatus { - [EnumMember(Value = "green")] - Green, - [EnumMember(Value = "yellow")] - Yellow, - [EnumMember(Value = "red")] + [EnumMember(Value = "green")] + Green, + [EnumMember(Value = "yellow")] + Yellow, + [EnumMember(Value = "red")] Red } public enum ExpandWildcards { - [EnumMember(Value = "open")] - Open, - [EnumMember(Value = "closed")] - Closed, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "all")] + [EnumMember(Value = "open")] + Open, + [EnumMember(Value = "closed")] + Closed, + [EnumMember(Value = "none")] + None, + [EnumMember(Value = "all")] All } public enum DefaultOperator { - [EnumMember(Value = "AND")] - And, - [EnumMember(Value = "OR")] + [EnumMember(Value = "AND")] + And, + [EnumMember(Value = "OR")] Or } public enum VersionType { - [EnumMember(Value = "internal")] - Internal, - [EnumMember(Value = "external")] - External, - [EnumMember(Value = "external_gte")] - ExternalGte, - [EnumMember(Value = "force")] + [EnumMember(Value = "internal")] + Internal, + [EnumMember(Value = "external")] + External, + [EnumMember(Value = "external_gte")] + ExternalGte, + [EnumMember(Value = "force")] Force } public enum Conflicts { - [EnumMember(Value = "abort")] - Abort, - [EnumMember(Value = "proceed")] + [EnumMember(Value = "abort")] + Abort, + [EnumMember(Value = "proceed")] Proceed } public enum SearchType { - [EnumMember(Value = "query_then_fetch")] - QueryThenFetch, - [EnumMember(Value = "dfs_query_then_fetch")] + [EnumMember(Value = "query_then_fetch")] + QueryThenFetch, + [EnumMember(Value = "dfs_query_then_fetch")] DfsQueryThenFetch } public enum OpType { - [EnumMember(Value = "index")] - Index, - [EnumMember(Value = "create")] + [EnumMember(Value = "index")] + Index, + [EnumMember(Value = "create")] Create } public enum Format { - [EnumMember(Value = "detailed")] - Detailed, - [EnumMember(Value = "text")] + [EnumMember(Value = "detailed")] + Detailed, + [EnumMember(Value = "text")] Text } public enum ThreadType { - [EnumMember(Value = "cpu")] - Cpu, - [EnumMember(Value = "wait")] - Wait, - [EnumMember(Value = "block")] + [EnumMember(Value = "cpu")] + Cpu, + [EnumMember(Value = "wait")] + Wait, + [EnumMember(Value = "block")] Block } public enum SuggestMode { - [EnumMember(Value = "missing")] - Missing, - [EnumMember(Value = "popular")] - Popular, - [EnumMember(Value = "always")] + [EnumMember(Value = "missing")] + Missing, + [EnumMember(Value = "popular")] + Popular, + [EnumMember(Value = "always")] Always } public enum GroupBy { - [EnumMember(Value = "nodes")] - Nodes, - [EnumMember(Value = "parents")] + [EnumMember(Value = "nodes")] + Nodes, + [EnumMember(Value = "parents")] Parents } [Flags]public enum ClusterStateMetric { - [EnumMember(Value = "blocks")] - Blocks = 1 << 0, - [EnumMember(Value = "metadata")] - Metadata = 1 << 1, - [EnumMember(Value = "nodes")] - Nodes = 1 << 2, - [EnumMember(Value = "routing_table")] - RoutingTable = 1 << 3, - [EnumMember(Value = "routing_nodes")] - RoutingNodes = 1 << 4, - [EnumMember(Value = "master_node")] - MasterNode = 1 << 5, - [EnumMember(Value = "version")] - Version = 1 << 6, - [EnumMember(Value = "_all")] + [EnumMember(Value = "blocks")] + Blocks = 1 << 0, + [EnumMember(Value = "metadata")] + Metadata = 1 << 1, + [EnumMember(Value = "nodes")] + Nodes = 1 << 2, + [EnumMember(Value = "routing_table")] + RoutingTable = 1 << 3, + [EnumMember(Value = "routing_nodes")] + RoutingNodes = 1 << 4, + [EnumMember(Value = "master_node")] + MasterNode = 1 << 5, + [EnumMember(Value = "version")] + Version = 1 << 6, + [EnumMember(Value = "_all")] All = 1 << 7 } - [Flags]public enum Feature - { - [EnumMember(Value = "_settings")] - Settings = 1 << 0, - [EnumMember(Value = "_mappings")] - Mappings = 1 << 1, - [EnumMember(Value = "_aliases")] - Aliases = 1 << 2 - } - [Flags]public enum IndicesStatsMetric { - [EnumMember(Value = "completion")] - Completion = 1 << 0, - [EnumMember(Value = "docs")] - Docs = 1 << 1, - [EnumMember(Value = "fielddata")] - Fielddata = 1 << 2, - [EnumMember(Value = "query_cache")] - QueryCache = 1 << 3, - [EnumMember(Value = "flush")] - Flush = 1 << 4, - [EnumMember(Value = "get")] - Get = 1 << 5, - [EnumMember(Value = "indexing")] - Indexing = 1 << 6, - [EnumMember(Value = "merge")] - Merge = 1 << 7, - [EnumMember(Value = "request_cache")] - RequestCache = 1 << 8, - [EnumMember(Value = "refresh")] - Refresh = 1 << 9, - [EnumMember(Value = "search")] - Search = 1 << 10, - [EnumMember(Value = "segments")] - Segments = 1 << 11, - [EnumMember(Value = "store")] - Store = 1 << 12, - [EnumMember(Value = "warmer")] - Warmer = 1 << 13, - [EnumMember(Value = "suggest")] - Suggest = 1 << 14, - [EnumMember(Value = "_all")] + [EnumMember(Value = "completion")] + Completion = 1 << 0, + [EnumMember(Value = "docs")] + Docs = 1 << 1, + [EnumMember(Value = "fielddata")] + Fielddata = 1 << 2, + [EnumMember(Value = "query_cache")] + QueryCache = 1 << 3, + [EnumMember(Value = "flush")] + Flush = 1 << 4, + [EnumMember(Value = "get")] + Get = 1 << 5, + [EnumMember(Value = "indexing")] + Indexing = 1 << 6, + [EnumMember(Value = "merge")] + Merge = 1 << 7, + [EnumMember(Value = "request_cache")] + RequestCache = 1 << 8, + [EnumMember(Value = "refresh")] + Refresh = 1 << 9, + [EnumMember(Value = "search")] + Search = 1 << 10, + [EnumMember(Value = "segments")] + Segments = 1 << 11, + [EnumMember(Value = "store")] + Store = 1 << 12, + [EnumMember(Value = "warmer")] + Warmer = 1 << 13, + [EnumMember(Value = "suggest")] + Suggest = 1 << 14, + [EnumMember(Value = "_all")] All = 1 << 15 } [Flags]public enum NodesInfoMetric { - [EnumMember(Value = "settings")] - Settings = 1 << 0, - [EnumMember(Value = "os")] - Os = 1 << 1, - [EnumMember(Value = "process")] - Process = 1 << 2, - [EnumMember(Value = "jvm")] - Jvm = 1 << 3, - [EnumMember(Value = "thread_pool")] - ThreadPool = 1 << 4, - [EnumMember(Value = "transport")] - Transport = 1 << 5, - [EnumMember(Value = "http")] - Http = 1 << 6, - [EnumMember(Value = "plugins")] - Plugins = 1 << 7, - [EnumMember(Value = "ingest")] + [EnumMember(Value = "settings")] + Settings = 1 << 0, + [EnumMember(Value = "os")] + Os = 1 << 1, + [EnumMember(Value = "process")] + Process = 1 << 2, + [EnumMember(Value = "jvm")] + Jvm = 1 << 3, + [EnumMember(Value = "thread_pool")] + ThreadPool = 1 << 4, + [EnumMember(Value = "transport")] + Transport = 1 << 5, + [EnumMember(Value = "http")] + Http = 1 << 6, + [EnumMember(Value = "plugins")] + Plugins = 1 << 7, + [EnumMember(Value = "ingest")] Ingest = 1 << 8 } [Flags]public enum NodesStatsMetric { - [EnumMember(Value = "breaker")] - Breaker = 1 << 0, - [EnumMember(Value = "fs")] - Fs = 1 << 1, - [EnumMember(Value = "http")] - Http = 1 << 2, - [EnumMember(Value = "indices")] - Indices = 1 << 3, - [EnumMember(Value = "jvm")] - Jvm = 1 << 4, - [EnumMember(Value = "os")] - Os = 1 << 5, - [EnumMember(Value = "process")] - Process = 1 << 6, - [EnumMember(Value = "thread_pool")] - ThreadPool = 1 << 7, - [EnumMember(Value = "transport")] - Transport = 1 << 8, - [EnumMember(Value = "discovery")] - Discovery = 1 << 9, - [EnumMember(Value = "_all")] + [EnumMember(Value = "breaker")] + Breaker = 1 << 0, + [EnumMember(Value = "fs")] + Fs = 1 << 1, + [EnumMember(Value = "http")] + Http = 1 << 2, + [EnumMember(Value = "indices")] + Indices = 1 << 3, + [EnumMember(Value = "jvm")] + Jvm = 1 << 4, + [EnumMember(Value = "os")] + Os = 1 << 5, + [EnumMember(Value = "process")] + Process = 1 << 6, + [EnumMember(Value = "thread_pool")] + ThreadPool = 1 << 7, + [EnumMember(Value = "transport")] + Transport = 1 << 8, + [EnumMember(Value = "discovery")] + Discovery = 1 << 9, + [EnumMember(Value = "_all")] All = 1 << 10 } [Flags]public enum NodesStatsIndexMetric { - [EnumMember(Value = "completion")] - Completion = 1 << 0, - [EnumMember(Value = "docs")] - Docs = 1 << 1, - [EnumMember(Value = "fielddata")] - Fielddata = 1 << 2, - [EnumMember(Value = "query_cache")] - QueryCache = 1 << 3, - [EnumMember(Value = "flush")] - Flush = 1 << 4, - [EnumMember(Value = "get")] - Get = 1 << 5, - [EnumMember(Value = "indexing")] - Indexing = 1 << 6, - [EnumMember(Value = "merge")] - Merge = 1 << 7, - [EnumMember(Value = "request_cache")] - RequestCache = 1 << 8, - [EnumMember(Value = "refresh")] - Refresh = 1 << 9, - [EnumMember(Value = "search")] - Search = 1 << 10, - [EnumMember(Value = "segments")] - Segments = 1 << 11, - [EnumMember(Value = "store")] - Store = 1 << 12, - [EnumMember(Value = "warmer")] - Warmer = 1 << 13, - [EnumMember(Value = "suggest")] - Suggest = 1 << 14, - [EnumMember(Value = "_all")] + [EnumMember(Value = "completion")] + Completion = 1 << 0, + [EnumMember(Value = "docs")] + Docs = 1 << 1, + [EnumMember(Value = "fielddata")] + Fielddata = 1 << 2, + [EnumMember(Value = "query_cache")] + QueryCache = 1 << 3, + [EnumMember(Value = "flush")] + Flush = 1 << 4, + [EnumMember(Value = "get")] + Get = 1 << 5, + [EnumMember(Value = "indexing")] + Indexing = 1 << 6, + [EnumMember(Value = "merge")] + Merge = 1 << 7, + [EnumMember(Value = "request_cache")] + RequestCache = 1 << 8, + [EnumMember(Value = "refresh")] + Refresh = 1 << 9, + [EnumMember(Value = "search")] + Search = 1 << 10, + [EnumMember(Value = "segments")] + Segments = 1 << 11, + [EnumMember(Value = "store")] + Store = 1 << 12, + [EnumMember(Value = "warmer")] + Warmer = 1 << 13, + [EnumMember(Value = "suggest")] + Suggest = 1 << 14, + [EnumMember(Value = "_all")] All = 1 << 15 } + [Flags]public enum NodesUsageMetric + { + [EnumMember(Value = "rest_actions")] + RestActions = 1 << 0, + [EnumMember(Value = "_all")] + All = 1 << 1 + } + [Flags]public enum WatcherStatsMetric { - [EnumMember(Value = "queued_watches")] - QueuedWatches = 1 << 0, - [EnumMember(Value = "pending_watches")] - PendingWatches = 1 << 1, - [EnumMember(Value = "_all")] + [EnumMember(Value = "queued_watches")] + QueuedWatches = 1 << 0, + [EnumMember(Value = "pending_watches")] + PendingWatches = 1 << 1, + [EnumMember(Value = "_all")] All = 1 << 2 } @@ -377,8 +375,8 @@ public static string GetStringValue(this Refresh enumValue) switch (enumValue) { - case Refresh.True: return "true"; - case Refresh.False: return "false"; + case Refresh.True: return "true"; + case Refresh.False: return "false"; case Refresh.WaitFor: return "wait_for"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Refresh'"); @@ -389,16 +387,16 @@ public static string GetStringValue(this Bytes enumValue) switch (enumValue) { - case Bytes.B: return "b"; - case Bytes.K: return "k"; - case Bytes.Kb: return "kb"; - case Bytes.M: return "m"; - case Bytes.Mb: return "mb"; - case Bytes.G: return "g"; - case Bytes.Gb: return "gb"; - case Bytes.T: return "t"; - case Bytes.Tb: return "tb"; - case Bytes.P: return "p"; + case Bytes.B: return "b"; + case Bytes.K: return "k"; + case Bytes.Kb: return "kb"; + case Bytes.M: return "m"; + case Bytes.Mb: return "mb"; + case Bytes.G: return "g"; + case Bytes.Gb: return "gb"; + case Bytes.T: return "t"; + case Bytes.Tb: return "tb"; + case Bytes.P: return "p"; case Bytes.Pb: return "pb"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Bytes'"); @@ -409,8 +407,8 @@ public static string GetStringValue(this Health enumValue) switch (enumValue) { - case Health.Green: return "green"; - case Health.Yellow: return "yellow"; + case Health.Green: return "green"; + case Health.Yellow: return "yellow"; case Health.Red: return "red"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Health'"); @@ -421,11 +419,11 @@ public static string GetStringValue(this Size enumValue) switch (enumValue) { - case Size.Raw: return ""; - case Size.K: return "k"; - case Size.M: return "m"; - case Size.G: return "g"; - case Size.T: return "t"; + case Size.Raw: return ""; + case Size.K: return "k"; + case Size.M: return "m"; + case Size.G: return "g"; + case Size.T: return "t"; case Size.P: return "p"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Size'"); @@ -436,8 +434,8 @@ public static string GetStringValue(this Level enumValue) switch (enumValue) { - case Level.Cluster: return "cluster"; - case Level.Indices: return "indices"; + case Level.Cluster: return "cluster"; + case Level.Indices: return "indices"; case Level.Shards: return "shards"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Level'"); @@ -448,11 +446,11 @@ public static string GetStringValue(this WaitForEvents enumValue) switch (enumValue) { - case WaitForEvents.Immediate: return "immediate"; - case WaitForEvents.Urgent: return "urgent"; - case WaitForEvents.High: return "high"; - case WaitForEvents.Normal: return "normal"; - case WaitForEvents.Low: return "low"; + case WaitForEvents.Immediate: return "immediate"; + case WaitForEvents.Urgent: return "urgent"; + case WaitForEvents.High: return "high"; + case WaitForEvents.Normal: return "normal"; + case WaitForEvents.Low: return "low"; case WaitForEvents.Languid: return "languid"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'WaitForEvents'"); @@ -463,8 +461,8 @@ public static string GetStringValue(this WaitForStatus enumValue) switch (enumValue) { - case WaitForStatus.Green: return "green"; - case WaitForStatus.Yellow: return "yellow"; + case WaitForStatus.Green: return "green"; + case WaitForStatus.Yellow: return "yellow"; case WaitForStatus.Red: return "red"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'WaitForStatus'"); @@ -475,9 +473,9 @@ public static string GetStringValue(this ExpandWildcards enumValue) switch (enumValue) { - case ExpandWildcards.Open: return "open"; - case ExpandWildcards.Closed: return "closed"; - case ExpandWildcards.None: return "none"; + case ExpandWildcards.Open: return "open"; + case ExpandWildcards.Closed: return "closed"; + case ExpandWildcards.None: return "none"; case ExpandWildcards.All: return "all"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'ExpandWildcards'"); @@ -488,7 +486,7 @@ public static string GetStringValue(this DefaultOperator enumValue) switch (enumValue) { - case DefaultOperator.And: return "AND"; + case DefaultOperator.And: return "AND"; case DefaultOperator.Or: return "OR"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'DefaultOperator'"); @@ -499,9 +497,9 @@ public static string GetStringValue(this VersionType enumValue) switch (enumValue) { - case VersionType.Internal: return "internal"; - case VersionType.External: return "external"; - case VersionType.ExternalGte: return "external_gte"; + case VersionType.Internal: return "internal"; + case VersionType.External: return "external"; + case VersionType.ExternalGte: return "external_gte"; case VersionType.Force: return "force"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'VersionType'"); @@ -512,7 +510,7 @@ public static string GetStringValue(this Conflicts enumValue) switch (enumValue) { - case Conflicts.Abort: return "abort"; + case Conflicts.Abort: return "abort"; case Conflicts.Proceed: return "proceed"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Conflicts'"); @@ -523,7 +521,7 @@ public static string GetStringValue(this SearchType enumValue) switch (enumValue) { - case SearchType.QueryThenFetch: return "query_then_fetch"; + case SearchType.QueryThenFetch: return "query_then_fetch"; case SearchType.DfsQueryThenFetch: return "dfs_query_then_fetch"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'SearchType'"); @@ -534,7 +532,7 @@ public static string GetStringValue(this OpType enumValue) switch (enumValue) { - case OpType.Index: return "index"; + case OpType.Index: return "index"; case OpType.Create: return "create"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'OpType'"); @@ -545,7 +543,7 @@ public static string GetStringValue(this Format enumValue) switch (enumValue) { - case Format.Detailed: return "detailed"; + case Format.Detailed: return "detailed"; case Format.Text: return "text"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Format'"); @@ -556,8 +554,8 @@ public static string GetStringValue(this ThreadType enumValue) switch (enumValue) { - case ThreadType.Cpu: return "cpu"; - case ThreadType.Wait: return "wait"; + case ThreadType.Cpu: return "cpu"; + case ThreadType.Wait: return "wait"; case ThreadType.Block: return "block"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'ThreadType'"); @@ -568,8 +566,8 @@ public static string GetStringValue(this SuggestMode enumValue) switch (enumValue) { - case SuggestMode.Missing: return "missing"; - case SuggestMode.Popular: return "popular"; + case SuggestMode.Missing: return "missing"; + case SuggestMode.Popular: return "popular"; case SuggestMode.Always: return "always"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'SuggestMode'"); @@ -580,7 +578,7 @@ public static string GetStringValue(this GroupBy enumValue) switch (enumValue) { - case GroupBy.Nodes: return "nodes"; + case GroupBy.Nodes: return "nodes"; case GroupBy.Parents: return "parents"; } throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'GroupBy'"); @@ -601,16 +599,6 @@ public static string GetStringValue(this ClusterStateMetric enumValue) return string.Join(",", list); } - public static string GetStringValue(this Feature enumValue) - { - - var list = new List(); - if ((enumValue & Feature.Settings) != 0) list.Add("_settings"); - if ((enumValue & Feature.Mappings) != 0) list.Add("_mappings"); - if ((enumValue & Feature.Aliases) != 0) list.Add("_aliases"); - return string.Join(",", list); - } - public static string GetStringValue(this IndicesStatsMetric enumValue) { @@ -691,6 +679,15 @@ public static string GetStringValue(this NodesStatsIndexMetric enumValue) return string.Join(",", list); } + public static string GetStringValue(this NodesUsageMetric enumValue) + { + + if ((enumValue & NodesUsageMetric.All) != 0) return "_all"; + var list = new List(); + if ((enumValue & NodesUsageMetric.RestActions) != 0) list.Add("rest_actions"); + return string.Join(",", list); + } + public static string GetStringValue(this WatcherStatsMetric enumValue) { @@ -724,11 +721,11 @@ static KnownEnums() EnumStringResolvers.TryAdd(typeof(SuggestMode), (e) => GetStringValue((SuggestMode)e)); EnumStringResolvers.TryAdd(typeof(GroupBy), (e) => GetStringValue((GroupBy)e)); EnumStringResolvers.TryAdd(typeof(ClusterStateMetric), (e) => GetStringValue((ClusterStateMetric)e)); - EnumStringResolvers.TryAdd(typeof(Feature), (e) => GetStringValue((Feature)e)); EnumStringResolvers.TryAdd(typeof(IndicesStatsMetric), (e) => GetStringValue((IndicesStatsMetric)e)); EnumStringResolvers.TryAdd(typeof(NodesInfoMetric), (e) => GetStringValue((NodesInfoMetric)e)); EnumStringResolvers.TryAdd(typeof(NodesStatsMetric), (e) => GetStringValue((NodesStatsMetric)e)); EnumStringResolvers.TryAdd(typeof(NodesStatsIndexMetric), (e) => GetStringValue((NodesStatsIndexMetric)e)); + EnumStringResolvers.TryAdd(typeof(NodesUsageMetric), (e) => GetStringValue((NodesUsageMetric)e)); EnumStringResolvers.TryAdd(typeof(WatcherStatsMetric), (e) => GetStringValue((WatcherStatsMetric)e)); } diff --git a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs index b7a15d2804a..d5d547aa466 100644 --- a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs @@ -919,6 +919,10 @@ public class CatSegmentsRequestParameters : FluentRequestParameters this.AddQueryString("format", format); + ///The unit in which to display byte values + public CatSegmentsRequestParameters Bytes(Bytes bytes) => this.AddQueryString("bytes", bytes); + + ///Comma-separated list of column names to display public CatSegmentsRequestParameters H(params string[] h) => this.AddQueryString("h", h); @@ -969,6 +973,10 @@ public class CatShardsRequestParameters : FluentRequestParameters this.AddQueryString("format", format); + ///The unit in which to display byte values + public CatShardsRequestParameters Bytes(Bytes bytes) => this.AddQueryString("bytes", bytes); + + ///Return local information, do not retrieve the state from master node (default: false) public CatShardsRequestParameters Local(bool local) => this.AddQueryString("local", local); @@ -1522,6 +1530,36 @@ public class ClusterPutSettingsRequestParameters : FluentRequestParametersRequest parameters descriptor for ClusterRemoteInfo + ///
+	///http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html
+	///
+ /// + public class RemoteInfoRequestParameters : FluentRequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; + + ///Pretty format the returned JSON response. + public RemoteInfoRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); + + + ///Return human readable values for statistics. + public RemoteInfoRequestParameters Human(bool human) => this.AddQueryString("human", human); + + + ///Include the stack trace of returned errors. + public RemoteInfoRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); + + + ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. + public RemoteInfoRequestParameters Source(string source) => this.AddQueryString("source", source); + + + ///A comma-separated list of filters used to reduce the respone. + public RemoteInfoRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); + + } + ///Request parameters descriptor for ClusterReroute ///
 	///http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html
@@ -1697,8 +1735,8 @@ public class CountRequestParameters : FluentRequestParameters this.AddQueryString("preference", preference);
 		
 		
-		///Specific routing value
-		public CountRequestParameters Routing(string routing) => this.AddQueryString("routing", routing);
+		///A comma-separated list of specific routing values
+		public CountRequestParameters Routing(params string[] routing) => this.AddQueryString("routing", routing);
 		
 		
 		///Query in the Lucene query string syntax
@@ -1725,6 +1763,10 @@ public class CountRequestParameters : FluentRequestParameters this.AddQueryString("lenient", lenient);
 		
 		
+		///The maximum count for each shard, upon reaching which the query execution will terminate early
+		public CountRequestParameters TerminateAfter(long terminate_after) => this.AddQueryString("terminate_after", terminate_after);
+		
+		
 		///Pretty format the returned JSON response.
 		public CountRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty);
 		
@@ -2041,6 +2083,14 @@ public class DeleteScriptRequestParameters : FluentRequestParameters HttpMethod.DELETE;
 		
+		///Explicit operation timeout
+		public DeleteScriptRequestParameters Timeout(TimeSpan timeout) => this.AddQueryString("timeout", timeout.ToTimeUnit());
+		
+		
+		///Specify timeout for connection to master
+		public DeleteScriptRequestParameters MasterTimeout(TimeSpan master_timeout) => this.AddQueryString("master_timeout", master_timeout.ToTimeUnit());
+		
+		
 		///Pretty format the returned JSON response.
 		public DeleteScriptRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty);
 		
@@ -2062,36 +2112,6 @@ public class DeleteScriptRequestParameters : FluentRequestParametersRequest parameters descriptor for DeleteTemplate
-	///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html
-	///
- ///
- public class DeleteSearchTemplateRequestParameters : FluentRequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; - - ///Pretty format the returned JSON response. - public DeleteSearchTemplateRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); - - - ///Return human readable values for statistics. - public DeleteSearchTemplateRequestParameters Human(bool human) => this.AddQueryString("human", human); - - - ///Include the stack trace of returned errors. - public DeleteSearchTemplateRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); - - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteSearchTemplateRequestParameters Source(string source) => this.AddQueryString("source", source); - - - ///A comma-separated list of filters used to reduce the respone. - public DeleteSearchTemplateRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); - - } - ///Request parameters descriptor for Exists ///
 	///http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
@@ -2168,7 +2188,7 @@ public class DocumentExistsRequestParameters : FluentRequestParametersRequest parameters descriptor for ExistsSource
 	///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html
+	///http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
 	///
///
public class SourceExistsRequestParameters : FluentRequestParameters @@ -2320,7 +2340,7 @@ public class ExplainRequestParameters : FluentRequestParametersRequest parameters descriptor for FieldCaps ///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html
+	///http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html
 	///
/// public class FieldCapabilitiesRequestParameters : FluentRequestParameters @@ -2364,52 +2384,6 @@ public class FieldCapabilitiesRequestParameters : FluentRequestParametersRequest parameters descriptor for FieldStats - ///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html
-	///
- /// - public class FieldStatsRequestParameters : FluentRequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.POST; - - ///Defines if field stats should be returned on a per index level or on a cluster wide level - public FieldStatsRequestParameters Level(Level level) => this.AddQueryString("level", level); - - - ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public FieldStatsRequestParameters IgnoreUnavailable(bool ignore_unavailable) => this.AddQueryString("ignore_unavailable", ignore_unavailable); - - - ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public FieldStatsRequestParameters AllowNoIndices(bool allow_no_indices) => this.AddQueryString("allow_no_indices", allow_no_indices); - - - ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public FieldStatsRequestParameters ExpandWildcards(ExpandWildcards expand_wildcards) => this.AddQueryString("expand_wildcards", expand_wildcards); - - - ///Pretty format the returned JSON response. - public FieldStatsRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); - - - ///Return human readable values for statistics. - public FieldStatsRequestParameters Human(bool human) => this.AddQueryString("human", human); - - - ///Include the stack trace of returned errors. - public FieldStatsRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); - - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public FieldStatsRequestParameters Source(string source) => this.AddQueryString("source", source); - - - ///A comma-separated list of filters used to reduce the respone. - public FieldStatsRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); - - } - ///Request parameters descriptor for Get ///
 	///http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
@@ -2584,36 +2558,6 @@ public class SourceRequestParameters : FluentRequestParametersRequest parameters descriptor for GetTemplate
-	///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html
-	///
- ///
- public class GetSearchTemplateRequestParameters : FluentRequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - - ///Pretty format the returned JSON response. - public GetSearchTemplateRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); - - - ///Return human readable values for statistics. - public GetSearchTemplateRequestParameters Human(bool human) => this.AddQueryString("human", human); - - - ///Include the stack trace of returned errors. - public GetSearchTemplateRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); - - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetSearchTemplateRequestParameters Source(string source) => this.AddQueryString("source", source); - - - ///A comma-separated list of filters used to reduce the respone. - public GetSearchTemplateRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); - - } - ///Request parameters descriptor for Index ///
 	///http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html
@@ -2913,6 +2857,18 @@ public class DeleteIndexRequestParameters : FluentRequestParameters this.AddQueryString("master_timeout", master_timeout.ToTimeUnit());
 		
 		
+		///Ignore unavailable indexes (default: false)
+		public DeleteIndexRequestParameters IgnoreUnavailable(bool ignore_unavailable) => this.AddQueryString("ignore_unavailable", ignore_unavailable);
+		
+		
+		///Ignore if a wildcard expression resolves to no concrete indices (default: false)
+		public DeleteIndexRequestParameters AllowNoIndices(bool allow_no_indices) => this.AddQueryString("allow_no_indices", allow_no_indices);
+		
+		
+		///Whether wildcard expressions should get expanded to open or closed indices (default: open)
+		public DeleteIndexRequestParameters ExpandWildcards(ExpandWildcards expand_wildcards) => this.AddQueryString("expand_wildcards", expand_wildcards);
+		
+		
 		///Pretty format the returned JSON response.
 		public DeleteIndexRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty);
 		
@@ -4522,6 +4478,36 @@ public class GetPipelineRequestParameters : FluentRequestParametersRequest parameters descriptor for IngestProcessorGrok
+	///
+	///https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
+	///
+ ///
+ public class GrokProcessorPatternsRequestParameters : FluentRequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; + + ///Pretty format the returned JSON response. + public GrokProcessorPatternsRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); + + + ///Return human readable values for statistics. + public GrokProcessorPatternsRequestParameters Human(bool human) => this.AddQueryString("human", human); + + + ///Include the stack trace of returned errors. + public GrokProcessorPatternsRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); + + + ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. + public GrokProcessorPatternsRequestParameters Source(string source) => this.AddQueryString("source", source); + + + ///A comma-separated list of filters used to reduce the respone. + public GrokProcessorPatternsRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); + + } + ///Request parameters descriptor for IngestPutPipeline ///
 	///https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
@@ -4677,6 +4663,10 @@ public class MultiSearchRequestParameters : FluentRequestParameters this.AddQueryString("typed_keys", typed_keys);
 		
 		
+		///A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.
+		public MultiSearchRequestParameters PreFilterShardSize(long pre_filter_shard_size) => this.AddQueryString("pre_filter_shard_size", pre_filter_shard_size);
+		
+		
 		///Pretty format the returned JSON response.
 		public MultiSearchRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty);
 		
@@ -4972,93 +4962,109 @@ public class NodesStatsRequestParameters : FluentRequestParametersRequest parameters descriptor for Ping
+	///Request parameters descriptor for NodesUsageForAll
 	///
-	///http://www.elastic.co/guide/
+	///http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html
 	///
///
- public class PingRequestParameters : FluentRequestParameters + public class NodesUsageRequestParameters : FluentRequestParameters { - public override HttpMethod DefaultHttpMethod => HttpMethod.HEAD; + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - ///Pretty format the returned JSON response. - public PingRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); + ///Whether to return time and byte values in human-readable format. + public NodesUsageRequestParameters Human(bool human) => this.AddQueryString("human", human); - ///Return human readable values for statistics. - public PingRequestParameters Human(bool human) => this.AddQueryString("human", human); + ///Explicit operation timeout + public NodesUsageRequestParameters Timeout(TimeSpan timeout) => this.AddQueryString("timeout", timeout.ToTimeUnit()); + + + ///Pretty format the returned JSON response. + public NodesUsageRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); ///Include the stack trace of returned errors. - public PingRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); + public NodesUsageRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PingRequestParameters Source(string source) => this.AddQueryString("source", source); + public NodesUsageRequestParameters Source(string source) => this.AddQueryString("source", source); ///A comma-separated list of filters used to reduce the respone. - public PingRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); + public NodesUsageRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); } - ///Request parameters descriptor for PutScript + ///Request parameters descriptor for Ping ///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
+	///http://www.elastic.co/guide/
 	///
///
- public class PutScriptRequestParameters : FluentRequestParameters + public class PingRequestParameters : FluentRequestParameters { - public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; + public override HttpMethod DefaultHttpMethod => HttpMethod.HEAD; ///Pretty format the returned JSON response. - public PutScriptRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); + public PingRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); ///Return human readable values for statistics. - public PutScriptRequestParameters Human(bool human) => this.AddQueryString("human", human); + public PingRequestParameters Human(bool human) => this.AddQueryString("human", human); ///Include the stack trace of returned errors. - public PutScriptRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); + public PingRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutScriptRequestParameters Source(string source) => this.AddQueryString("source", source); + public PingRequestParameters Source(string source) => this.AddQueryString("source", source); ///A comma-separated list of filters used to reduce the respone. - public PutScriptRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); + public PingRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); } - ///Request parameters descriptor for PutTemplate + ///Request parameters descriptor for PutScript ///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html
+	///http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
 	///
///
- public class PutSearchTemplateRequestParameters : FluentRequestParameters + public class PutScriptRequestParameters : FluentRequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; + ///Explicit operation timeout + public PutScriptRequestParameters Timeout(TimeSpan timeout) => this.AddQueryString("timeout", timeout.ToTimeUnit()); + + + ///Specify timeout for connection to master + public PutScriptRequestParameters MasterTimeout(TimeSpan master_timeout) => this.AddQueryString("master_timeout", master_timeout.ToTimeUnit()); + + + ///Context name to compile script against + public PutScriptRequestParameters Context(string context) => this.AddQueryString("context", context); + + ///Pretty format the returned JSON response. - public PutSearchTemplateRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); + public PutScriptRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); ///Return human readable values for statistics. - public PutSearchTemplateRequestParameters Human(bool human) => this.AddQueryString("human", human); + public PutScriptRequestParameters Human(bool human) => this.AddQueryString("human", human); ///Include the stack trace of returned errors. - public PutSearchTemplateRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); + public PutScriptRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutSearchTemplateRequestParameters Source(string source) => this.AddQueryString("source", source); + public PutScriptRequestParameters Source(string source) => this.AddQueryString("source", source); ///A comma-separated list of filters used to reduce the respone. - public PutSearchTemplateRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); + public PutScriptRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); } @@ -5146,36 +5152,6 @@ public class ReindexRethrottleRequestParameters : FluentRequestParametersRequest parameters descriptor for RemoteInfo - ///
-	///http://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-remote-info.html
-	///
- ///
- public class RemoteInfoRequestParameters : FluentRequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - - ///Pretty format the returned JSON response. - public RemoteInfoRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); - - - ///Return human readable values for statistics. - public RemoteInfoRequestParameters Human(bool human) => this.AddQueryString("human", human); - - - ///Include the stack trace of returned errors. - public RemoteInfoRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); - - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RemoteInfoRequestParameters Source(string source) => this.AddQueryString("source", source); - - - ///A comma-separated list of filters used to reduce the respone. - public RemoteInfoRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); - - } - ///Request parameters descriptor for RenderSearchTemplate ///
 	///http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html
@@ -5317,6 +5293,10 @@ public class SearchRequestParameters : FluentRequestParameters this.AddQueryString("suggest_text", suggest_text);
 		
 		
+		///Indicate if the number of documents that match the query should be tracked
+		public SearchRequestParameters TrackTotalHits(bool track_total_hits) => this.AddQueryString("track_total_hits", track_total_hits);
+		
+		
 		///Specify whether aggregation and suggester names should be prefixed by their respective types in the response
 		public SearchRequestParameters TypedKeys(bool typed_keys) => this.AddQueryString("typed_keys", typed_keys);
 		
@@ -5329,6 +5309,14 @@ public class SearchRequestParameters : FluentRequestParameters this.AddQueryString("batched_reduce_size", batched_reduce_size);
 		
 		
+		///The number of concurrent shard requests this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests
+		public SearchRequestParameters MaxConcurrentShardRequests(long max_concurrent_shard_requests) => this.AddQueryString("max_concurrent_shard_requests", max_concurrent_shard_requests);
+		
+		
+		///A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint.
+		public SearchRequestParameters PreFilterShardSize(long pre_filter_shard_size) => this.AddQueryString("pre_filter_shard_size", pre_filter_shard_size);
+		
+		
 		///Pretty format the returned JSON response.
 		public SearchRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty);
 		
@@ -5826,7 +5814,7 @@ public class CancelTasksRequestParameters : FluentRequestParameters HttpMethod.POST;
 		
 		///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
-		public CancelTasksRequestParameters NodeId(params string[] node_id) => this.AddQueryString("node_id", node_id);
+		public CancelTasksRequestParameters Nodes(params string[] nodes) => this.AddQueryString("nodes", nodes);
 		
 		
 		///A comma-separated list of actions that should be cancelled. Leave empty to cancel all.
@@ -5838,7 +5826,7 @@ public class CancelTasksRequestParameters : FluentRequestParametersCancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all.
- public CancelTasksRequestParameters ParentTask(string parent_task) => this.AddQueryString("parent_task", parent_task); + public CancelTasksRequestParameters ParentTaskId(string parent_task_id) => this.AddQueryString("parent_task_id", parent_task_id); ///Pretty format the returned JSON response. @@ -5906,7 +5894,7 @@ public class ListTasksRequestParameters : FluentRequestParameters HttpMethod.GET; ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public ListTasksRequestParameters NodeId(params string[] node_id) => this.AddQueryString("node_id", node_id); + public ListTasksRequestParameters Nodes(params string[] nodes) => this.AddQueryString("nodes", nodes); ///A comma-separated list of actions that should be returned. Leave empty to return all. @@ -5922,7 +5910,7 @@ public class ListTasksRequestParameters : FluentRequestParametersReturn tasks with specified parent task id (node_id:task_number). Set to -1 to return all.
- public ListTasksRequestParameters ParentTask(string parent_task) => this.AddQueryString("parent_task", parent_task); + public ListTasksRequestParameters ParentTaskId(string parent_task_id) => this.AddQueryString("parent_task_id", parent_task_id); ///Wait for the matching tasks to complete (default: false) @@ -6278,7 +6266,7 @@ public class UpdateByQueryRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackGraphExplore ///
-	///https://www.elastic.co/guide/en/graph/current/explore.html
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html
 	///
///
public class GraphExploreRequestParameters : FluentRequestParameters @@ -6314,6 +6302,36 @@ public class GraphExploreRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackDeprecationInfo + ///
+	///http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html
+	///
+ /// + public class DeprecationInfoRequestParameters : FluentRequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; + + ///Pretty format the returned JSON response. + public DeprecationInfoRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); + + + ///Return human readable values for statistics. + public DeprecationInfoRequestParameters Human(bool human) => this.AddQueryString("human", human); + + + ///Include the stack trace of returned errors. + public DeprecationInfoRequestParameters ErrorTrace(bool error_trace) => this.AddQueryString("error_trace", error_trace); + + + ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. + public DeprecationInfoRequestParameters Source(string source) => this.AddQueryString("source", source); + + + ///A comma-separated list of filters used to reduce the respone. + public DeprecationInfoRequestParameters FilterPath(params string[] filter_path) => this.AddQueryString("filter_path", filter_path); + + } + ///Request parameters descriptor for XpackInfo ///
 	///https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html
@@ -6384,7 +6402,7 @@ public class XPackUsageRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackLicenseDelete
 	///
-	///https://www.elastic.co/guide/en/shield/current/license-management.html
+	///https://www.elastic.co/guide/en/x-pack/current/license-management.html
 	///
///
public class DeleteLicenseRequestParameters : FluentRequestParameters @@ -6414,7 +6432,7 @@ public class DeleteLicenseRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackLicenseGet ///
-	///https://www.elastic.co/guide/en/shield/current/license-management.html
+	///https://www.elastic.co/guide/en/x-pack/current/license-management.html
 	///
/// public class GetLicenseRequestParameters : FluentRequestParameters @@ -6448,7 +6466,7 @@ public class GetLicenseRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackLicensePost ///
-	///https://www.elastic.co/guide/en/shield/current/license-management.html
+	///https://www.elastic.co/guide/en/x-pack/current/license-management.html
 	///
/// public class PostLicenseRequestParameters : FluentRequestParameters @@ -6655,6 +6673,10 @@ public class FlushJobRequestParameters : FluentRequestParameters HttpMethod.POST; + ///Skips time to the given value without generating results or updating the model for the skipped interval + public FlushJobRequestParameters SkipTime(string skip_time) => this.AddQueryString("skip_time", skip_time); + + ///Pretty format the returned JSON response. public FlushJobRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); @@ -7346,7 +7368,7 @@ public class ValidateDetectorRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityAuthenticate ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html
 	///
/// public class AuthenticateRequestParameters : FluentRequestParameters @@ -7376,7 +7398,7 @@ public class AuthenticateRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityChangePassword ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html
 	///
/// public class ChangePasswordRequestParameters : FluentRequestParameters @@ -7410,7 +7432,7 @@ public class ChangePasswordRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityClearCachedRealms ///
-	///https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html
 	///
/// public class ClearCachedRealmsRequestParameters : FluentRequestParameters @@ -7444,7 +7466,7 @@ public class ClearCachedRealmsRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityClearCachedRoles ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache
 	///
/// public class ClearCachedRolesRequestParameters : FluentRequestParameters @@ -7474,7 +7496,7 @@ public class ClearCachedRolesRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityDeleteRole ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-delete-role
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role
 	///
/// public class DeleteRoleRequestParameters : FluentRequestParameters @@ -7508,7 +7530,7 @@ public class DeleteRoleRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityDeleteRoleMapping ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-delete-role-mapping
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping
 	///
/// public class DeleteRoleMappingRequestParameters : FluentRequestParameters @@ -7542,7 +7564,7 @@ public class DeleteRoleMappingRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityDeleteUser ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-delete-user
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user
 	///
/// public class DeleteUserRequestParameters : FluentRequestParameters @@ -7576,7 +7598,7 @@ public class DeleteUserRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityDisableUser ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user
 	///
/// public class DisableUserRequestParameters : FluentRequestParameters @@ -7610,7 +7632,7 @@ public class DisableUserRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityEnableUser ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user
 	///
/// public class EnableUserRequestParameters : FluentRequestParameters @@ -7644,7 +7666,7 @@ public class EnableUserRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityGetRole ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role
 	///
/// public class GetRoleRequestParameters : FluentRequestParameters @@ -7674,7 +7696,7 @@ public class GetRoleRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityGetRoleMapping ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping
 	///
/// public class GetRoleMappingRequestParameters : FluentRequestParameters @@ -7704,7 +7726,7 @@ public class GetRoleMappingRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityGetToken ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-get-token
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token
 	///
/// public class GetUserAccessTokenRequestParameters : FluentRequestParameters @@ -7734,7 +7756,7 @@ public class GetUserAccessTokenRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityGetUser ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user
 	///
/// public class GetUserRequestParameters : FluentRequestParameters @@ -7764,7 +7786,7 @@ public class GetUserRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityInvalidateToken ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-invalidate-token
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token
 	///
/// public class InvalidateUserAccessTokenRequestParameters : FluentRequestParameters @@ -7794,7 +7816,7 @@ public class InvalidateUserAccessTokenRequestParameters : FluentRequestParameter ///Request parameters descriptor for XpackSecurityPutRole ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role
 	///
///
public class PutRoleRequestParameters : FluentRequestParameters @@ -7828,7 +7850,7 @@ public class PutRoleRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityPutRoleMapping ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping
 	///
/// public class PutRoleMappingRequestParameters : FluentRequestParameters @@ -7862,7 +7884,7 @@ public class PutRoleMappingRequestParameters : FluentRequestParametersRequest parameters descriptor for XpackSecurityPutUser ///
-	///https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user
+	///https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user
 	///
/// public class PutUserRequestParameters : FluentRequestParameters @@ -8201,6 +8223,10 @@ public class WatcherStatsRequestParameters : FluentRequestParameters HttpMethod.GET; + ///Emits stack traces of currently running watches + public WatcherStatsRequestParameters EmitStacktraces(bool emit_stacktraces) => this.AddQueryString("emit_stacktraces", emit_stacktraces); + + ///Pretty format the returned JSON response. public WatcherStatsRequestParameters Pretty(bool pretty) => this.AddQueryString("pretty", pretty); diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs index f6f036b1129..79bd6cb4709 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs @@ -21,11 +21,11 @@ public partial class ElasticLowLevelClient : IElasticLowLevelClient { ///Represents a POST on /_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -35,11 +35,11 @@ public ElasticsearchResponse Bulk(PostData body, Func this.DoRequest(POST, Url($"_bulk"), body, _params(requestParameters)); ///Represents a POST on /_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -49,11 +49,11 @@ public ElasticsearchResponse Bulk(PostData body, Func this.DoRequestAsync(POST, Url($"_bulk"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -64,11 +64,11 @@ public ElasticsearchResponse Bulk(string index, PostData body, Fun where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_bulk"), body, _params(requestParameters)); ///Represents a POST on /{index}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -79,11 +79,11 @@ public ElasticsearchResponse Bulk(string index, PostData body, Fun where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_bulk"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -95,11 +95,11 @@ public ElasticsearchResponse Bulk(string index, string type, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -111,11 +111,11 @@ public ElasticsearchResponse Bulk(string index, string type, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -125,11 +125,11 @@ public ElasticsearchResponse BulkPut(PostData body, Func this.DoRequest(PUT, Url($"_bulk"), body, _params(requestParameters)); ///Represents a PUT on /_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -139,11 +139,11 @@ public ElasticsearchResponse BulkPut(PostData body, Func this.DoRequestAsync(PUT, Url($"_bulk"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /{index}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -154,11 +154,11 @@ public ElasticsearchResponse BulkPut(string index, PostData body, where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_bulk"), body, _params(requestParameters)); ///Represents a PUT on /{index}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -169,11 +169,11 @@ public ElasticsearchResponse BulkPut(string index, PostData body, where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_bulk"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -185,11 +185,11 @@ public ElasticsearchResponse BulkPut(string index, string type, PostData this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), body, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -201,11 +201,11 @@ public ElasticsearchResponse BulkPut(string index, string type, PostData this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_cat/aliases - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -214,11 +214,11 @@ public ElasticsearchResponse CatAliases(Func this.DoRequest(GET, Url($"_cat/aliases"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/aliases - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -227,11 +227,11 @@ public ElasticsearchResponse CatAliases(Func this.DoRequestAsync(GET, Url($"_cat/aliases"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/aliases/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -241,11 +241,11 @@ public ElasticsearchResponse CatAliases(string name, Func this.DoRequest(GET, Url($"_cat/aliases/{name.NotNull("name")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/aliases/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -255,11 +255,11 @@ public ElasticsearchResponse CatAliases(string name, Func this.DoRequestAsync(GET, Url($"_cat/aliases/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/allocation - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -268,11 +268,11 @@ public ElasticsearchResponse CatAllocation(Func this.DoRequest(GET, Url($"_cat/allocation"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/allocation - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -281,11 +281,11 @@ public ElasticsearchResponse CatAllocation(Func this.DoRequestAsync(GET, Url($"_cat/allocation"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/allocation/{node_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -295,11 +295,11 @@ public ElasticsearchResponse CatAllocation(string node_id, Func this.DoRequest(GET, Url($"_cat/allocation/{node_id.NotNull("node_id")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/allocation/{node_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -309,11 +309,11 @@ public ElasticsearchResponse CatAllocation(string node_id, Func this.DoRequestAsync(GET, Url($"_cat/allocation/{node_id.NotNull("node_id")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -322,11 +322,11 @@ public ElasticsearchResponse CatCount(Func this.DoRequest(GET, Url($"_cat/count"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -335,11 +335,11 @@ public ElasticsearchResponse CatCount(Func this.DoRequestAsync(GET, Url($"_cat/count"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/count/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -349,11 +349,11 @@ public ElasticsearchResponse CatCount(string index, Func this.DoRequest(GET, Url($"_cat/count/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/count/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -363,11 +363,11 @@ public ElasticsearchResponse CatCount(string index, Func this.DoRequestAsync(GET, Url($"_cat/count/{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/fielddata - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -376,11 +376,11 @@ public ElasticsearchResponse CatFielddata(Func this.DoRequest(GET, Url($"_cat/fielddata"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/fielddata - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -389,11 +389,11 @@ public ElasticsearchResponse CatFielddata(Func this.DoRequestAsync(GET, Url($"_cat/fielddata"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/fielddata/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -403,11 +403,11 @@ public ElasticsearchResponse CatFielddata(string fields, Func this.DoRequest(GET, Url($"_cat/fielddata/{fields.NotNull("fields")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/fielddata/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -417,11 +417,11 @@ public ElasticsearchResponse CatFielddata(string fields, Func this.DoRequestAsync(GET, Url($"_cat/fielddata/{fields.NotNull("fields")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/health - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html /// @@ -430,11 +430,11 @@ public ElasticsearchResponse CatHealth(Func this.DoRequest(GET, Url($"_cat/health"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/health - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html /// @@ -443,11 +443,11 @@ public ElasticsearchResponse CatHealth(Func this.DoRequestAsync(GET, Url($"_cat/health"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html /// @@ -456,11 +456,11 @@ public ElasticsearchResponse CatHelp(Func this.DoRequest(GET, Url($"_cat"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html /// @@ -469,11 +469,11 @@ public ElasticsearchResponse CatHelp(Func this.DoRequestAsync(GET, Url($"_cat"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/indices - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -482,11 +482,11 @@ public ElasticsearchResponse CatIndices(Func this.DoRequest(GET, Url($"_cat/indices"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/indices - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -495,11 +495,11 @@ public ElasticsearchResponse CatIndices(Func this.DoRequestAsync(GET, Url($"_cat/indices"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/indices/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -509,11 +509,11 @@ public ElasticsearchResponse CatIndices(string index, Func this.DoRequest(GET, Url($"_cat/indices/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/indices/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -523,11 +523,11 @@ public ElasticsearchResponse CatIndices(string index, Func this.DoRequestAsync(GET, Url($"_cat/indices/{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/master - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html /// @@ -536,11 +536,11 @@ public ElasticsearchResponse CatMaster(Func this.DoRequest(GET, Url($"_cat/master"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/master - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html /// @@ -549,11 +549,11 @@ public ElasticsearchResponse CatMaster(Func this.DoRequestAsync(GET, Url($"_cat/master"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/nodeattrs - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html /// @@ -562,11 +562,11 @@ public ElasticsearchResponse CatNodeattrs(Func this.DoRequest(GET, Url($"_cat/nodeattrs"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/nodeattrs - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html /// @@ -575,11 +575,11 @@ public ElasticsearchResponse CatNodeattrs(Func this.DoRequestAsync(GET, Url($"_cat/nodeattrs"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/nodes - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html /// @@ -588,11 +588,11 @@ public ElasticsearchResponse CatNodes(Func this.DoRequest(GET, Url($"_cat/nodes"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/nodes - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html /// @@ -601,11 +601,11 @@ public ElasticsearchResponse CatNodes(Func this.DoRequestAsync(GET, Url($"_cat/nodes"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/pending_tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html /// @@ -614,11 +614,11 @@ public ElasticsearchResponse CatPendingTasks(Func this.DoRequest(GET, Url($"_cat/pending_tasks"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/pending_tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html /// @@ -627,11 +627,11 @@ public ElasticsearchResponse CatPendingTasks(Func this.DoRequestAsync(GET, Url($"_cat/pending_tasks"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/plugins - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html /// @@ -640,11 +640,11 @@ public ElasticsearchResponse CatPlugins(Func this.DoRequest(GET, Url($"_cat/plugins"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/plugins - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html /// @@ -653,11 +653,11 @@ public ElasticsearchResponse CatPlugins(Func this.DoRequestAsync(GET, Url($"_cat/plugins"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/recovery - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -666,11 +666,11 @@ public ElasticsearchResponse CatRecovery(Func this.DoRequest(GET, Url($"_cat/recovery"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/recovery - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -679,11 +679,11 @@ public ElasticsearchResponse CatRecovery(Func this.DoRequestAsync(GET, Url($"_cat/recovery"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/recovery/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -693,11 +693,11 @@ public ElasticsearchResponse CatRecovery(string index, Func this.DoRequest(GET, Url($"_cat/recovery/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/recovery/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -707,11 +707,11 @@ public ElasticsearchResponse CatRecovery(string index, Func this.DoRequestAsync(GET, Url($"_cat/recovery/{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/repositories - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html /// @@ -720,11 +720,11 @@ public ElasticsearchResponse CatRepositories(Func this.DoRequest(GET, Url($"_cat/repositories"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/repositories - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html /// @@ -733,11 +733,11 @@ public ElasticsearchResponse CatRepositories(Func this.DoRequestAsync(GET, Url($"_cat/repositories"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/segments - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -746,11 +746,11 @@ public ElasticsearchResponse CatSegments(Func this.DoRequest(GET, Url($"_cat/segments"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/segments - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -759,11 +759,11 @@ public ElasticsearchResponse CatSegments(Func this.DoRequestAsync(GET, Url($"_cat/segments"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/segments/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -773,11 +773,11 @@ public ElasticsearchResponse CatSegments(string index, Func this.DoRequest(GET, Url($"_cat/segments/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/segments/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -787,11 +787,11 @@ public ElasticsearchResponse CatSegments(string index, Func this.DoRequestAsync(GET, Url($"_cat/segments/{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -800,11 +800,11 @@ public ElasticsearchResponse CatShards(Func this.DoRequest(GET, Url($"_cat/shards"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -813,11 +813,11 @@ public ElasticsearchResponse CatShards(Func this.DoRequestAsync(GET, Url($"_cat/shards"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/shards/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -827,11 +827,11 @@ public ElasticsearchResponse CatShards(string index, Func this.DoRequest(GET, Url($"_cat/shards/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/shards/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -841,11 +841,11 @@ public ElasticsearchResponse CatShards(string index, Func this.DoRequestAsync(GET, Url($"_cat/shards/{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/snapshots - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -854,11 +854,11 @@ public ElasticsearchResponse CatSnapshots(Func this.DoRequest(GET, Url($"_cat/snapshots"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/snapshots - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -867,11 +867,11 @@ public ElasticsearchResponse CatSnapshots(Func this.DoRequestAsync(GET, Url($"_cat/snapshots"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/snapshots/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -881,11 +881,11 @@ public ElasticsearchResponse CatSnapshots(string repository, Func this.DoRequest(GET, Url($"_cat/snapshots/{repository.NotNull("repository")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/snapshots/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -895,11 +895,11 @@ public ElasticsearchResponse CatSnapshots(string repository, Func this.DoRequestAsync(GET, Url($"_cat/snapshots/{repository.NotNull("repository")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -908,11 +908,11 @@ public ElasticsearchResponse CatTasks(Func this.DoRequest(GET, Url($"_cat/tasks"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -921,11 +921,11 @@ public ElasticsearchResponse CatTasks(Func this.DoRequestAsync(GET, Url($"_cat/tasks"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/templates - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -934,11 +934,11 @@ public ElasticsearchResponse CatTemplates(Func this.DoRequest(GET, Url($"_cat/templates"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/templates - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -947,11 +947,11 @@ public ElasticsearchResponse CatTemplates(Func this.DoRequestAsync(GET, Url($"_cat/templates"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/templates/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -961,11 +961,11 @@ public ElasticsearchResponse CatTemplates(string name, Func this.DoRequest(GET, Url($"_cat/templates/{name.NotNull("name")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/templates/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -975,11 +975,11 @@ public ElasticsearchResponse CatTemplates(string name, Func this.DoRequestAsync(GET, Url($"_cat/templates/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/thread_pool - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -988,11 +988,11 @@ public ElasticsearchResponse CatThreadPool(Func this.DoRequest(GET, Url($"_cat/thread_pool"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/thread_pool - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -1001,11 +1001,11 @@ public ElasticsearchResponse CatThreadPool(Func this.DoRequestAsync(GET, Url($"_cat/thread_pool"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/thread_pool/{thread_pool_patterns} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -1015,11 +1015,11 @@ public ElasticsearchResponse CatThreadPool(string thread_pool_patterns, Fu where T : class => this.DoRequest(GET, Url($"_cat/thread_pool/{thread_pool_patterns.NotNull("thread_pool_patterns")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a GET on /_cat/thread_pool/{thread_pool_patterns} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -1029,11 +1029,11 @@ public ElasticsearchResponse CatThreadPool(string thread_pool_patterns, Fu where T : class => this.DoRequestAsync(GET, Url($"_cat/thread_pool/{thread_pool_patterns.NotNull("thread_pool_patterns")}"), cancellationToken, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); ///Represents a DELETE on /_search/scroll - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -1043,11 +1043,11 @@ public ElasticsearchResponse ClearScroll(PostData body, Func this.DoRequest(DELETE, Url($"_search/scroll"), body, _params(requestParameters)); ///Represents a DELETE on /_search/scroll - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -1057,11 +1057,11 @@ public ElasticsearchResponse ClearScroll(PostData body, Func this.DoRequestAsync(DELETE, Url($"_search/scroll"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_cluster/allocation/explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1070,11 +1070,11 @@ public ElasticsearchResponse ClusterAllocationExplainGet(Func this.DoRequest(GET, Url($"_cluster/allocation/explain"), null, _params(requestParameters)); ///Represents a GET on /_cluster/allocation/explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1083,11 +1083,11 @@ public ElasticsearchResponse ClusterAllocationExplainGet(Func this.DoRequestAsync(GET, Url($"_cluster/allocation/explain"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_cluster/allocation/explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1097,11 +1097,11 @@ public ElasticsearchResponse ClusterAllocationExplain(PostData bod where T : class => this.DoRequest(POST, Url($"_cluster/allocation/explain"), body, _params(requestParameters)); ///Represents a POST on /_cluster/allocation/explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1111,11 +1111,11 @@ public ElasticsearchResponse ClusterAllocationExplain(PostData bod where T : class => this.DoRequestAsync(POST, Url($"_cluster/allocation/explain"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_cluster/settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1124,11 +1124,11 @@ public ElasticsearchResponse ClusterGetSettings(Func this.DoRequest(GET, Url($"_cluster/settings"), null, _params(requestParameters)); ///Represents a GET on /_cluster/settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1137,11 +1137,11 @@ public ElasticsearchResponse ClusterGetSettings(Func this.DoRequestAsync(GET, Url($"_cluster/settings"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/health - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1150,11 +1150,11 @@ public ElasticsearchResponse ClusterHealth(Func this.DoRequest(GET, Url($"_cluster/health"), null, _params(requestParameters)); ///Represents a GET on /_cluster/health - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1163,11 +1163,11 @@ public ElasticsearchResponse ClusterHealth(Func this.DoRequestAsync(GET, Url($"_cluster/health"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/health/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1177,11 +1177,11 @@ public ElasticsearchResponse ClusterHealth(string index, Func this.DoRequest(GET, Url($"_cluster/health/{index.NotNull("index")}"), null, _params(requestParameters)); ///Represents a GET on /_cluster/health/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1191,11 +1191,11 @@ public ElasticsearchResponse ClusterHealth(string index, Func this.DoRequestAsync(GET, Url($"_cluster/health/{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/pending_tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html /// @@ -1204,11 +1204,11 @@ public ElasticsearchResponse ClusterPendingTasks(Func this.DoRequest(GET, Url($"_cluster/pending_tasks"), null, _params(requestParameters)); ///Represents a GET on /_cluster/pending_tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html /// @@ -1217,11 +1217,11 @@ public ElasticsearchResponse ClusterPendingTasks(Func this.DoRequestAsync(GET, Url($"_cluster/pending_tasks"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_cluster/settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1231,11 +1231,11 @@ public ElasticsearchResponse ClusterPutSettings(PostData body, Fun where T : class => this.DoRequest(PUT, Url($"_cluster/settings"), body, _params(requestParameters)); ///Represents a PUT on /_cluster/settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1244,12 +1244,38 @@ public ElasticsearchResponse ClusterPutSettings(PostData body, Fun public Task> ClusterPutSettingsAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(PUT, Url($"_cluster/settings"), cancellationToken, body, _params(requestParameters)); + ///Represents a GET on /_remote/info + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public ElasticsearchResponse ClusterRemoteInfo(Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_remote/info"), null, _params(requestParameters)); + + ///Represents a GET on /_remote/info + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task> ClusterRemoteInfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_remote/info"), cancellationToken, null, _params(requestParameters)); + ///Represents a POST on /_cluster/reroute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html /// @@ -1259,11 +1285,11 @@ public ElasticsearchResponse ClusterReroute(PostData body, Func this.DoRequest(POST, Url($"_cluster/reroute"), body, _params(requestParameters)); ///Represents a POST on /_cluster/reroute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html /// @@ -1273,11 +1299,11 @@ public ElasticsearchResponse ClusterReroute(PostData body, Func this.DoRequestAsync(POST, Url($"_cluster/reroute"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_cluster/state - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1286,11 +1312,11 @@ public ElasticsearchResponse ClusterState(Func this.DoRequest(GET, Url($"_cluster/state"), null, _params(requestParameters)); ///Represents a GET on /_cluster/state - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1299,11 +1325,11 @@ public ElasticsearchResponse ClusterState(Func this.DoRequestAsync(GET, Url($"_cluster/state"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/state/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1313,11 +1339,11 @@ public ElasticsearchResponse ClusterState(string metric, Func this.DoRequest(GET, Url($"_cluster/state/{metric.NotNull("metric")}"), null, _params(requestParameters)); ///Represents a GET on /_cluster/state/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1327,11 +1353,11 @@ public ElasticsearchResponse ClusterState(string metric, Func this.DoRequestAsync(GET, Url($"_cluster/state/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/state/{metric}/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1342,11 +1368,11 @@ public ElasticsearchResponse ClusterState(string metric, string index, Fun where T : class => this.DoRequest(GET, Url($"_cluster/state/{metric.NotNull("metric")}/{index.NotNull("index")}"), null, _params(requestParameters)); ///Represents a GET on /_cluster/state/{metric}/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1357,11 +1383,11 @@ public ElasticsearchResponse ClusterState(string metric, string index, Fun where T : class => this.DoRequestAsync(GET, Url($"_cluster/state/{metric.NotNull("metric")}/{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1370,11 +1396,11 @@ public ElasticsearchResponse ClusterStats(Func this.DoRequest(GET, Url($"_cluster/stats"), null, _params(requestParameters)); ///Represents a GET on /_cluster/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1383,11 +1409,11 @@ public ElasticsearchResponse ClusterStats(Func this.DoRequestAsync(GET, Url($"_cluster/stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/stats/nodes/{node_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1397,11 +1423,11 @@ public ElasticsearchResponse ClusterStats(string node_id, Func this.DoRequest(GET, Url($"_cluster/stats/nodes/{node_id.NotNull("node_id")}"), null, _params(requestParameters)); ///Represents a GET on /_cluster/stats/nodes/{node_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1411,11 +1437,11 @@ public ElasticsearchResponse ClusterStats(string node_id, Func this.DoRequestAsync(GET, Url($"_cluster/stats/nodes/{node_id.NotNull("node_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1425,11 +1451,11 @@ public ElasticsearchResponse Count(PostData body, Func this.DoRequest(POST, Url($"_count"), body, _params(requestParameters)); ///Represents a POST on /_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1439,11 +1465,11 @@ public ElasticsearchResponse Count(PostData body, Func this.DoRequestAsync(POST, Url($"_count"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1454,11 +1480,11 @@ public ElasticsearchResponse Count(string index, PostData body, Fu where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_count"), body, _params(requestParameters)); ///Represents a POST on /{index}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1469,11 +1495,11 @@ public ElasticsearchResponse Count(string index, PostData body, Fu where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_count"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1485,11 +1511,11 @@ public ElasticsearchResponse Count(string index, string type, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1501,11 +1527,11 @@ public ElasticsearchResponse Count(string index, string type, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1514,11 +1540,11 @@ public ElasticsearchResponse CountGet(Func this.DoRequest(GET, Url($"_count"), null, _params(requestParameters)); ///Represents a GET on /_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1527,11 +1553,11 @@ public ElasticsearchResponse CountGet(Func this.DoRequestAsync(GET, Url($"_count"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1541,11 +1567,11 @@ public ElasticsearchResponse CountGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_count"), null, _params(requestParameters)); ///Represents a GET on /{index}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1555,11 +1581,11 @@ public ElasticsearchResponse CountGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_count"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1570,11 +1596,11 @@ public ElasticsearchResponse CountGet(string index, string type, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1585,11 +1611,11 @@ public ElasticsearchResponse CountGet(string index, string type, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/{id}/_create - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1602,11 +1628,11 @@ public ElasticsearchResponse Create(string index, string type, string id, where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), body, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/{id}/_create - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1619,11 +1645,11 @@ public ElasticsearchResponse Create(string index, string type, string id, where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_create - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1636,11 +1662,11 @@ public ElasticsearchResponse CreatePost(string index, string type, string where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_create - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1653,11 +1679,11 @@ public ElasticsearchResponse CreatePost(string index, string type, string where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), cancellationToken, body, _params(requestParameters)); ///Represents a DELETE on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html /// @@ -1669,11 +1695,11 @@ public ElasticsearchResponse Delete(string index, string type, string id, where T : class => this.DoRequest(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true)); ///Represents a DELETE on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html /// @@ -1685,11 +1711,11 @@ public ElasticsearchResponse Delete(string index, string type, string id, where T : class => this.DoRequestAsync(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a POST on /{index}/_delete_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1700,11 +1726,11 @@ public ElasticsearchResponse DeleteByQuery(string index, PostData where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_delete_by_query"), body, _params(requestParameters)); ///Represents a POST on /{index}/_delete_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1715,11 +1741,11 @@ public ElasticsearchResponse DeleteByQuery(string index, PostData where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_delete_by_query"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_delete_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1731,11 +1757,11 @@ public ElasticsearchResponse DeleteByQuery(string index, string type, Post where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_delete_by_query"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_delete_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1746,98 +1772,40 @@ public ElasticsearchResponse DeleteByQuery(string index, string type, Post public Task> DeleteByQueryAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_delete_by_query"), cancellationToken, body, _params(requestParameters)); - ///Represents a DELETE on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a DELETE on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse DeleteScript(string lang, Func requestParameters = null) - where T : class => this.DoRequest(DELETE, Url($"_scripts/{lang.NotNull("lang")}"), null, _params(requestParameters)); - - ///Represents a DELETE on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> DeleteScriptAsync(string lang, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(DELETE, Url($"_scripts/{lang.NotNull("lang")}"), cancellationToken, null, _params(requestParameters)); - - ///Represents a DELETE on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse DeleteScript(string lang, string id, Func requestParameters = null) - where T : class => this.DoRequest(DELETE, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), null, _params(requestParameters)); + public ElasticsearchResponse DeleteScript(string id, Func requestParameters = null) + where T : class => this.DoRequest(DELETE, Url($"_scripts/{id.NotNull("id")}"), null, _params(requestParameters)); - ///Represents a DELETE on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a DELETE on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> DeleteScriptAsync(string lang, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(DELETE, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); - - ///Represents a DELETE on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse DeleteTemplate(string id, Func requestParameters = null) - where T : class => this.DoRequest(DELETE, Url($"_search/template/{id.NotNull("id")}"), null, _params(requestParameters)); - - ///Represents a DELETE on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> DeleteTemplateAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(DELETE, Url($"_search/template/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); + public Task> DeleteScriptAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(DELETE, Url($"_scripts/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a HEAD on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -1849,11 +1817,11 @@ public ElasticsearchResponse Exists(string index, string type, string id, where T : class => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -1865,13 +1833,13 @@ public ElasticsearchResponse Exists(string index, string type, string id, where T : class => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /{index}/{type}/{id}/_source - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// ///The name of the index ///The type of the document; use `_all` to fetch the first document matching the ID across all types @@ -1881,13 +1849,13 @@ public ElasticsearchResponse ExistsSource(string index, string type, strin where T : class => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), null, _params(requestParameters)); ///Represents a HEAD on /{index}/{type}/{id}/_source - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// ///The name of the index ///The type of the document; use `_all` to fetch the first document matching the ID across all types @@ -1897,11 +1865,11 @@ public ElasticsearchResponse ExistsSource(string index, string type, strin where T : class => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/{id}/_explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1913,11 +1881,11 @@ public ElasticsearchResponse ExplainGet(string index, string type, string where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/{id}/_explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1929,11 +1897,11 @@ public ElasticsearchResponse ExplainGet(string index, string type, string where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1946,11 +1914,11 @@ public ElasticsearchResponse Explain(string index, string type, string id, where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1963,39 +1931,39 @@ public ElasticsearchResponse Explain(string index, string type, string id, where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse FieldCapsGet(Func requestParameters = null) where T : class => this.DoRequest(GET, Url($"_field_caps"), null, _params(requestParameters)); ///Represents a GET on /_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> FieldCapsGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_field_caps"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -2003,13 +1971,13 @@ public ElasticsearchResponse FieldCapsGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_field_caps"), null, _params(requestParameters)); ///Represents a GET on /{index}/_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -2017,13 +1985,13 @@ public ElasticsearchResponse FieldCapsGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_field_caps"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///Field json objects containing an array of field names ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -2031,13 +1999,13 @@ public ElasticsearchResponse FieldCaps(PostData body, Func this.DoRequest(POST, Url($"_field_caps"), body, _params(requestParameters)); ///Represents a POST on /_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///Field json objects containing an array of field names ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -2045,13 +2013,13 @@ public ElasticsearchResponse FieldCaps(PostData body, Func this.DoRequestAsync(POST, Url($"_field_caps"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Field json objects containing an array of field names @@ -2060,13 +2028,13 @@ public ElasticsearchResponse FieldCaps(string index, PostData body where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_field_caps"), body, _params(requestParameters)); ///Represents a POST on /{index}/_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Field json objects containing an array of field names @@ -2074,124 +2042,12 @@ public ElasticsearchResponse FieldCaps(string index, PostData body public Task> FieldCapsAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_field_caps"), cancellationToken, body, _params(requestParameters)); - ///Represents a GET on /_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse FieldStatsGet(Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"_field_stats"), null, _params(requestParameters)); - - ///Represents a GET on /_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> FieldStatsGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"_field_stats"), cancellationToken, null, _params(requestParameters)); - - ///Represents a GET on /{index}/_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse FieldStatsGet(string index, Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_field_stats"), null, _params(requestParameters)); - - ///Represents a GET on /{index}/_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> FieldStatsGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_field_stats"), cancellationToken, null, _params(requestParameters)); - - ///Represents a POST on /_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse FieldStats(PostData body, Func requestParameters = null) - where T : class => this.DoRequest(POST, Url($"_field_stats"), body, _params(requestParameters)); - - ///Represents a POST on /_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> FieldStatsAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(POST, Url($"_field_stats"), cancellationToken, body, _params(requestParameters)); - - ///Represents a POST on /{index}/_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse FieldStats(string index, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_field_stats"), body, _params(requestParameters)); - - ///Represents a POST on /{index}/_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> FieldStatsAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_field_stats"), cancellationToken, body, _params(requestParameters)); - ///Represents a GET on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2203,11 +2059,11 @@ public ElasticsearchResponse Get(string index, string type, string id, Fun where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true)); ///Represents a GET on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2218,70 +2074,40 @@ public ElasticsearchResponse Get(string index, string type, string id, Fun public Task> GetAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters, allow404: true)); - ///Represents a GET on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse GetScript(string lang, Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"_scripts/{lang.NotNull("lang")}"), null, _params(requestParameters)); - - ///Represents a GET on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> GetScriptAsync(string lang, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"_scripts/{lang.NotNull("lang")}"), cancellationToken, null, _params(requestParameters)); - - ///Represents a GET on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse GetScript(string lang, string id, Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), null, _params(requestParameters)); + public ElasticsearchResponse GetScript(string id, Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_scripts/{id.NotNull("id")}"), null, _params(requestParameters)); - ///Represents a GET on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> GetScriptAsync(string lang, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); + public Task> GetScriptAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_scripts/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/{id}/_source - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2293,11 +2119,11 @@ public ElasticsearchResponse GetSource(string index, string type, string i where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/{id}/_source - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2308,40 +2134,12 @@ public ElasticsearchResponse GetSource(string index, string type, string i public Task> GetSourceAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), cancellationToken, null, _params(requestParameters)); - ///Represents a GET on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse GetTemplate(string id, Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"_search/template/{id.NotNull("id")}"), null, _params(requestParameters)); - - ///Represents a GET on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> GetTemplateAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"_search/template/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); - ///Represents a POST on /{index}/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2353,11 +2151,11 @@ public ElasticsearchResponse Index(string index, string type, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2369,11 +2167,11 @@ public ElasticsearchResponse Index(string index, string type, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2386,11 +2184,11 @@ public ElasticsearchResponse Index(string index, string type, string id, P where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2403,11 +2201,11 @@ public ElasticsearchResponse Index(string index, string type, string id, P where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /{index}/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2419,11 +2217,11 @@ public ElasticsearchResponse IndexPut(string index, string type, PostData< where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), body, _params(requestParameters)); ///Represents a PUT on /{index}/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2435,11 +2233,11 @@ public ElasticsearchResponse IndexPut(string index, string type, PostData< where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2452,11 +2250,11 @@ public ElasticsearchResponse IndexPut(string index, string type, string id where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), body, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2469,11 +2267,11 @@ public ElasticsearchResponse IndexPut(string index, string type, string id where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2482,11 +2280,11 @@ public ElasticsearchResponse IndicesAnalyzeGetForAll(Func this.DoRequest(GET, Url($"_analyze"), null, _params(requestParameters)); ///Represents a GET on /_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2495,11 +2293,11 @@ public ElasticsearchResponse IndicesAnalyzeGetForAll(Func this.DoRequestAsync(GET, Url($"_analyze"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2509,11 +2307,11 @@ public ElasticsearchResponse IndicesAnalyzeGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_analyze"), null, _params(requestParameters)); ///Represents a GET on /{index}/_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2523,11 +2321,11 @@ public ElasticsearchResponse IndicesAnalyzeGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_analyze"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2537,11 +2335,11 @@ public ElasticsearchResponse IndicesAnalyzeForAll(PostData body, F where T : class => this.DoRequest(POST, Url($"_analyze"), body, _params(requestParameters)); ///Represents a POST on /_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2551,11 +2349,11 @@ public ElasticsearchResponse IndicesAnalyzeForAll(PostData body, F where T : class => this.DoRequestAsync(POST, Url($"_analyze"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2566,11 +2364,11 @@ public ElasticsearchResponse IndicesAnalyze(string index, PostData where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_analyze"), body, _params(requestParameters)); ///Represents a POST on /{index}/_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2581,11 +2379,11 @@ public ElasticsearchResponse IndicesAnalyze(string index, PostData where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_analyze"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2594,11 +2392,11 @@ public ElasticsearchResponse IndicesClearCacheForAll(Func this.DoRequest(POST, Url($"_cache/clear"), null, _params(requestParameters)); ///Represents a POST on /_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2607,11 +2405,11 @@ public ElasticsearchResponse IndicesClearCacheForAll(Func this.DoRequestAsync(POST, Url($"_cache/clear"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2621,11 +2419,11 @@ public ElasticsearchResponse IndicesClearCache(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_cache/clear"), null, _params(requestParameters)); ///Represents a POST on /{index}/_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2635,11 +2433,11 @@ public ElasticsearchResponse IndicesClearCache(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_cache/clear"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2648,11 +2446,11 @@ public ElasticsearchResponse IndicesClearCacheGetForAll(Func this.DoRequest(GET, Url($"_cache/clear"), null, _params(requestParameters)); ///Represents a GET on /_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2661,11 +2459,11 @@ public ElasticsearchResponse IndicesClearCacheGetForAll(Func this.DoRequestAsync(GET, Url($"_cache/clear"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2675,11 +2473,11 @@ public ElasticsearchResponse IndicesClearCacheGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_cache/clear"), null, _params(requestParameters)); ///Represents a GET on /{index}/_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2689,11 +2487,11 @@ public ElasticsearchResponse IndicesClearCacheGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_cache/clear"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_close - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -2703,11 +2501,11 @@ public ElasticsearchResponse IndicesClose(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_close"), null, _params(requestParameters)); ///Represents a POST on /{index}/_close - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -2717,11 +2515,11 @@ public ElasticsearchResponse IndicesClose(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_close"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html /// @@ -2732,11 +2530,11 @@ public ElasticsearchResponse IndicesCreate(string index, PostData where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}"), body, _params(requestParameters)); ///Represents a PUT on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html /// @@ -2747,11 +2545,11 @@ public ElasticsearchResponse IndicesCreate(string index, PostData where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}"), cancellationToken, body, _params(requestParameters)); ///Represents a DELETE on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html /// @@ -2761,11 +2559,11 @@ public ElasticsearchResponse IndicesDelete(string index, Func this.DoRequest(DELETE, Url($"{index.NotNull("index")}"), null, _params(requestParameters)); ///Represents a DELETE on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html /// @@ -2775,11 +2573,11 @@ public ElasticsearchResponse IndicesDelete(string index, Func this.DoRequestAsync(DELETE, Url($"{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2790,11 +2588,11 @@ public ElasticsearchResponse IndicesDeleteAlias(string index, string name, where T : class => this.DoRequest(DELETE, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a DELETE on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2805,11 +2603,11 @@ public ElasticsearchResponse IndicesDeleteAlias(string index, string name, where T : class => this.DoRequestAsync(DELETE, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2819,11 +2617,11 @@ public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func where T : class => this.DoRequest(DELETE, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a DELETE on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2833,11 +2631,11 @@ public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func where T : class => this.DoRequestAsync(DELETE, Url($"_template/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a HEAD on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html /// @@ -2847,11 +2645,11 @@ public ElasticsearchResponse IndicesExists(string index, Func this.DoRequest(HEAD, Url($"{index.NotNull("index")}"), null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html /// @@ -2861,11 +2659,11 @@ public ElasticsearchResponse IndicesExists(string index, Func this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2875,11 +2673,11 @@ public ElasticsearchResponse IndicesExistsAliasForAll(string name, Func this.DoRequest(HEAD, Url($"_alias/{name.NotNull("name")}"), null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2889,11 +2687,11 @@ public ElasticsearchResponse IndicesExistsAliasForAll(string name, Func this.DoRequestAsync(HEAD, Url($"_alias/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2904,11 +2702,11 @@ public ElasticsearchResponse IndicesExistsAlias(string index, string name, where T : class => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2919,11 +2717,11 @@ public ElasticsearchResponse IndicesExistsAlias(string index, string name, where T : class => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2933,11 +2731,11 @@ public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func where T : class => this.DoRequest(HEAD, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2947,11 +2745,11 @@ public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func where T : class => this.DoRequestAsync(HEAD, Url($"_template/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /{index}/_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html /// @@ -2962,11 +2760,11 @@ public ElasticsearchResponse IndicesExistsType(string index, string type, where T : class => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), null, _params(requestParameters, allow404: true)); ///Represents a HEAD on /{index}/_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html /// @@ -2977,11 +2775,11 @@ public ElasticsearchResponse IndicesExistsType(string index, string type, where T : class => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a POST on /_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2990,11 +2788,11 @@ public ElasticsearchResponse IndicesFlushForAll(Func this.DoRequest(POST, Url($"_flush"), null, _params(requestParameters)); ///Represents a POST on /_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -3003,11 +2801,11 @@ public ElasticsearchResponse IndicesFlushForAll(Func this.DoRequestAsync(POST, Url($"_flush"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -3017,11 +2815,11 @@ public ElasticsearchResponse IndicesFlush(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_flush"), null, _params(requestParameters)); ///Represents a POST on /{index}/_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -3031,11 +2829,11 @@ public ElasticsearchResponse IndicesFlush(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_flush"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -3044,11 +2842,11 @@ public ElasticsearchResponse IndicesFlushGetForAll(Func this.DoRequest(GET, Url($"_flush"), null, _params(requestParameters)); ///Represents a GET on /_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -3057,11 +2855,11 @@ public ElasticsearchResponse IndicesFlushGetForAll(Func this.DoRequestAsync(GET, Url($"_flush"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -3071,11 +2869,11 @@ public ElasticsearchResponse IndicesFlushGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_flush"), null, _params(requestParameters)); ///Represents a GET on /{index}/_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -3085,11 +2883,11 @@ public ElasticsearchResponse IndicesFlushGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_flush"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3098,11 +2896,11 @@ public ElasticsearchResponse IndicesFlushSyncedForAll(Func this.DoRequest(POST, Url($"_flush/synced"), null, _params(requestParameters)); ///Represents a POST on /_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3111,11 +2909,11 @@ public ElasticsearchResponse IndicesFlushSyncedForAll(Func this.DoRequestAsync(POST, Url($"_flush/synced"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3125,11 +2923,11 @@ public ElasticsearchResponse IndicesFlushSynced(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_flush/synced"), null, _params(requestParameters)); ///Represents a POST on /{index}/_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3139,11 +2937,11 @@ public ElasticsearchResponse IndicesFlushSynced(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_flush/synced"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3152,11 +2950,11 @@ public ElasticsearchResponse IndicesFlushSyncedGetForAll(Func this.DoRequest(GET, Url($"_flush/synced"), null, _params(requestParameters)); ///Represents a GET on /_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3165,11 +2963,11 @@ public ElasticsearchResponse IndicesFlushSyncedGetForAll(Func this.DoRequestAsync(GET, Url($"_flush/synced"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3179,11 +2977,11 @@ public ElasticsearchResponse IndicesFlushSyncedGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_flush/synced"), null, _params(requestParameters)); ///Represents a GET on /{index}/_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -3193,11 +2991,11 @@ public ElasticsearchResponse IndicesFlushSyncedGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_flush/synced"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_forcemerge - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -3206,11 +3004,11 @@ public ElasticsearchResponse IndicesForcemergeForAll(Func this.DoRequest(POST, Url($"_forcemerge"), null, _params(requestParameters)); ///Represents a POST on /_forcemerge - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -3219,11 +3017,11 @@ public ElasticsearchResponse IndicesForcemergeForAll(Func this.DoRequestAsync(POST, Url($"_forcemerge"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_forcemerge - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -3233,11 +3031,11 @@ public ElasticsearchResponse IndicesForcemerge(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_forcemerge"), null, _params(requestParameters)); ///Represents a POST on /{index}/_forcemerge - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -3247,11 +3045,11 @@ public ElasticsearchResponse IndicesForcemerge(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_forcemerge"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html /// @@ -3261,11 +3059,11 @@ public ElasticsearchResponse IndicesGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}"), null, _params(requestParameters)); ///Represents a GET on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html /// @@ -3274,42 +3072,12 @@ public ElasticsearchResponse IndicesGet(string index, Func> IndicesGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}"), cancellationToken, null, _params(requestParameters)); - ///Represents a GET on /{index}/{feature} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html - /// - ///A comma-separated list of index names - ///A comma-separated list of features - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse IndicesGet(string index, string feature, Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{feature.NotNull("feature")}"), null, _params(requestParameters)); - - ///Represents a GET on /{index}/{feature} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html - /// - ///A comma-separated list of index names - ///A comma-separated list of features - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> IndicesGetAsync(string index, string feature, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{feature.NotNull("feature")}"), cancellationToken, null, _params(requestParameters)); - ///Represents a GET on /_alias - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3318,11 +3086,11 @@ public ElasticsearchResponse IndicesGetAliasForAll(Func this.DoRequest(GET, Url($"_alias"), null, _params(requestParameters)); ///Represents a GET on /_alias - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3331,11 +3099,11 @@ public ElasticsearchResponse IndicesGetAliasForAll(Func this.DoRequestAsync(GET, Url($"_alias"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3345,11 +3113,11 @@ public ElasticsearchResponse IndicesGetAliasForAll(string name, Func this.DoRequest(GET, Url($"_alias/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a GET on /_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3359,11 +3127,11 @@ public ElasticsearchResponse IndicesGetAliasForAll(string name, Func this.DoRequestAsync(GET, Url($"_alias/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3374,11 +3142,11 @@ public ElasticsearchResponse IndicesGetAlias(string index, string name, Fu where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a GET on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3389,11 +3157,11 @@ public ElasticsearchResponse IndicesGetAlias(string index, string name, Fu where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_alias - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3403,11 +3171,11 @@ public ElasticsearchResponse IndicesGetAlias(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_alias"), null, _params(requestParameters)); ///Represents a GET on /{index}/_alias - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3417,11 +3185,11 @@ public ElasticsearchResponse IndicesGetAlias(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_alias"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_mapping/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3431,11 +3199,11 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(string fields, F where T : class => this.DoRequest(GET, Url($"_mapping/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); ///Represents a GET on /_mapping/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3445,11 +3213,11 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(string fields, F where T : class => this.DoRequestAsync(GET, Url($"_mapping/field/{fields.NotNull("fields")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3460,11 +3228,11 @@ public ElasticsearchResponse IndicesGetFieldMapping(string index, string f where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3475,11 +3243,11 @@ public ElasticsearchResponse IndicesGetFieldMapping(string index, string f where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping/field/{fields.NotNull("fields")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_mapping/{type}/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3490,11 +3258,11 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, str where T : class => this.DoRequest(GET, Url($"_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); ///Represents a GET on /_mapping/{type}/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3505,11 +3273,11 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, str where T : class => this.DoRequestAsync(GET, Url($"_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping/{type}/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3521,11 +3289,11 @@ public ElasticsearchResponse IndicesGetFieldMapping(string index, string t where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping/{type}/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3537,11 +3305,11 @@ public ElasticsearchResponse IndicesGetFieldMapping(string index, string t where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3550,11 +3318,11 @@ public ElasticsearchResponse IndicesGetMappingForAll(Func this.DoRequest(GET, Url($"_mapping"), null, _params(requestParameters)); ///Represents a GET on /_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3563,11 +3331,11 @@ public ElasticsearchResponse IndicesGetMappingForAll(Func this.DoRequestAsync(GET, Url($"_mapping"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3577,11 +3345,11 @@ public ElasticsearchResponse IndicesGetMapping(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping"), null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3591,11 +3359,11 @@ public ElasticsearchResponse IndicesGetMapping(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3605,11 +3373,11 @@ public ElasticsearchResponse IndicesGetMappingForAll(string type, Func this.DoRequest(GET, Url($"_mapping/{type.NotNull("type")}"), null, _params(requestParameters)); ///Represents a GET on /_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3619,11 +3387,11 @@ public ElasticsearchResponse IndicesGetMappingForAll(string type, Func this.DoRequestAsync(GET, Url($"_mapping/{type.NotNull("type")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3634,11 +3402,11 @@ public ElasticsearchResponse IndicesGetMapping(string index, string type, where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), null, _params(requestParameters)); ///Represents a GET on /{index}/_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3649,11 +3417,11 @@ public ElasticsearchResponse IndicesGetMapping(string index, string type, where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3662,11 +3430,11 @@ public ElasticsearchResponse IndicesGetSettingsForAll(Func this.DoRequest(GET, Url($"_settings"), null, _params(requestParameters)); ///Represents a GET on /_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3675,11 +3443,11 @@ public ElasticsearchResponse IndicesGetSettingsForAll(Func this.DoRequestAsync(GET, Url($"_settings"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3689,11 +3457,11 @@ public ElasticsearchResponse IndicesGetSettings(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_settings"), null, _params(requestParameters)); ///Represents a GET on /{index}/_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3703,11 +3471,11 @@ public ElasticsearchResponse IndicesGetSettings(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_settings"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_settings/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3718,11 +3486,11 @@ public ElasticsearchResponse IndicesGetSettings(string index, string name, where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_settings/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a GET on /{index}/_settings/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3733,11 +3501,11 @@ public ElasticsearchResponse IndicesGetSettings(string index, string name, where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_settings/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_settings/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3747,11 +3515,11 @@ public ElasticsearchResponse IndicesGetSettingsForAll(string name, Func this.DoRequest(GET, Url($"_settings/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a GET on /_settings/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3761,11 +3529,11 @@ public ElasticsearchResponse IndicesGetSettingsForAll(string name, Func this.DoRequestAsync(GET, Url($"_settings/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3774,11 +3542,11 @@ public ElasticsearchResponse IndicesGetTemplateForAll(Func this.DoRequest(GET, Url($"_template"), null, _params(requestParameters)); ///Represents a GET on /_template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3787,11 +3555,11 @@ public ElasticsearchResponse IndicesGetTemplateForAll(Func this.DoRequestAsync(GET, Url($"_template"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3801,11 +3569,11 @@ public ElasticsearchResponse IndicesGetTemplateForAll(string name, Func this.DoRequest(GET, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a GET on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3815,11 +3583,11 @@ public ElasticsearchResponse IndicesGetTemplateForAll(string name, Func this.DoRequestAsync(GET, Url($"_template/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3828,11 +3596,11 @@ public ElasticsearchResponse IndicesGetUpgradeForAll(Func this.DoRequest(GET, Url($"_upgrade"), null, _params(requestParameters)); ///Represents a GET on /_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3841,11 +3609,11 @@ public ElasticsearchResponse IndicesGetUpgradeForAll(Func this.DoRequestAsync(GET, Url($"_upgrade"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3855,11 +3623,11 @@ public ElasticsearchResponse IndicesGetUpgrade(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_upgrade"), null, _params(requestParameters)); ///Represents a GET on /{index}/_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3869,11 +3637,11 @@ public ElasticsearchResponse IndicesGetUpgrade(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_upgrade"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_open - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -3883,11 +3651,11 @@ public ElasticsearchResponse IndicesOpen(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_open"), null, _params(requestParameters)); ///Represents a POST on /{index}/_open - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -3897,11 +3665,11 @@ public ElasticsearchResponse IndicesOpen(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_open"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3913,11 +3681,11 @@ public ElasticsearchResponse IndicesPutAlias(string index, string name, Po where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a PUT on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3929,11 +3697,11 @@ public ElasticsearchResponse IndicesPutAlias(string index, string name, Po where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3945,11 +3713,11 @@ public ElasticsearchResponse IndicesPutAliasPost(string index, string name where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a POST on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3961,11 +3729,11 @@ public ElasticsearchResponse IndicesPutAliasPost(string index, string name where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3977,11 +3745,11 @@ public ElasticsearchResponse IndicesPutMapping(string index, string type, where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), body, _params(requestParameters)); ///Represents a PUT on /{index}/{type}/_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3993,11 +3761,11 @@ public ElasticsearchResponse IndicesPutMapping(string index, string type, where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -4008,11 +3776,11 @@ public ElasticsearchResponse IndicesPutMappingForAll(string type, PostData where T : class => this.DoRequest(PUT, Url($"_mapping/{type.NotNull("type")}"), body, _params(requestParameters)); ///Represents a PUT on /_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -4023,11 +3791,11 @@ public ElasticsearchResponse IndicesPutMappingForAll(string type, PostData where T : class => this.DoRequestAsync(PUT, Url($"_mapping/{type.NotNull("type")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -4039,11 +3807,11 @@ public ElasticsearchResponse IndicesPutMappingPost(string index, string ty where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -4055,11 +3823,11 @@ public ElasticsearchResponse IndicesPutMappingPost(string index, string ty where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -4070,11 +3838,11 @@ public ElasticsearchResponse IndicesPutMappingPostForAll(string type, Post where T : class => this.DoRequest(POST, Url($"_mapping/{type.NotNull("type")}"), body, _params(requestParameters)); ///Represents a POST on /_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -4085,11 +3853,11 @@ public ElasticsearchResponse IndicesPutMappingPostForAll(string type, Post where T : class => this.DoRequestAsync(POST, Url($"_mapping/{type.NotNull("type")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -4099,11 +3867,11 @@ public ElasticsearchResponse IndicesPutSettingsForAll(PostData bod where T : class => this.DoRequest(PUT, Url($"_settings"), body, _params(requestParameters)); ///Represents a PUT on /_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -4113,11 +3881,11 @@ public ElasticsearchResponse IndicesPutSettingsForAll(PostData bod where T : class => this.DoRequestAsync(PUT, Url($"_settings"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /{index}/_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -4128,11 +3896,11 @@ public ElasticsearchResponse IndicesPutSettings(string index, PostData this.DoRequest(PUT, Url($"{index.NotNull("index")}/_settings"), body, _params(requestParameters)); ///Represents a PUT on /{index}/_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -4143,11 +3911,11 @@ public ElasticsearchResponse IndicesPutSettings(string index, PostData this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_settings"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -4158,11 +3926,11 @@ public ElasticsearchResponse IndicesPutTemplateForAll(string name, PostDat where T : class => this.DoRequest(PUT, Url($"_template/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a PUT on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -4173,11 +3941,11 @@ public ElasticsearchResponse IndicesPutTemplateForAll(string name, PostDat where T : class => this.DoRequestAsync(PUT, Url($"_template/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -4188,11 +3956,11 @@ public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, Pos where T : class => this.DoRequest(POST, Url($"_template/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a POST on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -4203,11 +3971,11 @@ public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, Pos where T : class => this.DoRequestAsync(POST, Url($"_template/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_recovery - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -4216,11 +3984,11 @@ public ElasticsearchResponse IndicesRecoveryForAll(Func this.DoRequest(GET, Url($"_recovery"), null, _params(requestParameters)); ///Represents a GET on /_recovery - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -4229,11 +3997,11 @@ public ElasticsearchResponse IndicesRecoveryForAll(Func this.DoRequestAsync(GET, Url($"_recovery"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_recovery - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -4243,11 +4011,11 @@ public ElasticsearchResponse IndicesRecovery(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_recovery"), null, _params(requestParameters)); ///Represents a GET on /{index}/_recovery - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -4257,11 +4025,11 @@ public ElasticsearchResponse IndicesRecovery(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_recovery"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4270,11 +4038,11 @@ public ElasticsearchResponse IndicesRefreshForAll(Func this.DoRequest(POST, Url($"_refresh"), null, _params(requestParameters)); ///Represents a POST on /_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4283,11 +4051,11 @@ public ElasticsearchResponse IndicesRefreshForAll(Func this.DoRequestAsync(POST, Url($"_refresh"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4297,11 +4065,11 @@ public ElasticsearchResponse IndicesRefresh(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_refresh"), null, _params(requestParameters)); ///Represents a POST on /{index}/_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4311,11 +4079,11 @@ public ElasticsearchResponse IndicesRefresh(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_refresh"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4324,11 +4092,11 @@ public ElasticsearchResponse IndicesRefreshGetForAll(Func this.DoRequest(GET, Url($"_refresh"), null, _params(requestParameters)); ///Represents a GET on /_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4337,11 +4105,11 @@ public ElasticsearchResponse IndicesRefreshGetForAll(Func this.DoRequestAsync(GET, Url($"_refresh"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4351,11 +4119,11 @@ public ElasticsearchResponse IndicesRefreshGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_refresh"), null, _params(requestParameters)); ///Represents a GET on /{index}/_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4365,11 +4133,11 @@ public ElasticsearchResponse IndicesRefreshGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_refresh"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{alias}/_rollover - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4380,11 +4148,11 @@ public ElasticsearchResponse IndicesRolloverForAll(string alias, PostData< where T : class => this.DoRequest(POST, Url($"{alias.NotNull("alias")}/_rollover"), body, _params(requestParameters)); ///Represents a POST on /{alias}/_rollover - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4395,11 +4163,11 @@ public ElasticsearchResponse IndicesRolloverForAll(string alias, PostData< where T : class => this.DoRequestAsync(POST, Url($"{alias.NotNull("alias")}/_rollover"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{alias}/_rollover/{new_index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4411,11 +4179,11 @@ public ElasticsearchResponse IndicesRolloverForAll(string alias, string ne where T : class => this.DoRequest(POST, Url($"{alias.NotNull("alias")}/_rollover/{new_index.NotNull("new_index")}"), body, _params(requestParameters)); ///Represents a POST on /{alias}/_rollover/{new_index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4427,11 +4195,11 @@ public ElasticsearchResponse IndicesRolloverForAll(string alias, string ne where T : class => this.DoRequestAsync(POST, Url($"{alias.NotNull("alias")}/_rollover/{new_index.NotNull("new_index")}"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_segments - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4440,11 +4208,11 @@ public ElasticsearchResponse IndicesSegmentsForAll(Func this.DoRequest(GET, Url($"_segments"), null, _params(requestParameters)); ///Represents a GET on /_segments - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4453,11 +4221,11 @@ public ElasticsearchResponse IndicesSegmentsForAll(Func this.DoRequestAsync(GET, Url($"_segments"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_segments - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4467,11 +4235,11 @@ public ElasticsearchResponse IndicesSegments(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_segments"), null, _params(requestParameters)); ///Represents a GET on /{index}/_segments - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4481,11 +4249,11 @@ public ElasticsearchResponse IndicesSegments(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_segments"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_shard_stores - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4494,11 +4262,11 @@ public ElasticsearchResponse IndicesShardStoresForAll(Func this.DoRequest(GET, Url($"_shard_stores"), null, _params(requestParameters)); ///Represents a GET on /_shard_stores - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4507,11 +4275,11 @@ public ElasticsearchResponse IndicesShardStoresForAll(Func this.DoRequestAsync(GET, Url($"_shard_stores"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_shard_stores - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4521,11 +4289,11 @@ public ElasticsearchResponse IndicesShardStores(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_shard_stores"), null, _params(requestParameters)); ///Represents a GET on /{index}/_shard_stores - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4535,11 +4303,11 @@ public ElasticsearchResponse IndicesShardStores(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_shard_stores"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /{index}/_shrink/{target} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4551,11 +4319,11 @@ public ElasticsearchResponse IndicesShrink(string index, string target, Po where T : class => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), body, _params(requestParameters)); ///Represents a PUT on /{index}/_shrink/{target} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4567,11 +4335,11 @@ public ElasticsearchResponse IndicesShrink(string index, string target, Po where T : class => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_shrink/{target} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4583,11 +4351,11 @@ public ElasticsearchResponse IndicesShrinkPost(string index, string target where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), body, _params(requestParameters)); ///Represents a POST on /{index}/_shrink/{target} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4599,11 +4367,11 @@ public ElasticsearchResponse IndicesShrinkPost(string index, string target where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4612,11 +4380,11 @@ public ElasticsearchResponse IndicesStatsForAll(Func this.DoRequest(GET, Url($"_stats"), null, _params(requestParameters)); ///Represents a GET on /_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4625,11 +4393,11 @@ public ElasticsearchResponse IndicesStatsForAll(Func this.DoRequestAsync(GET, Url($"_stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4639,11 +4407,11 @@ public ElasticsearchResponse IndicesStatsForAll(string metric, Func this.DoRequest(GET, Url($"_stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); ///Represents a GET on /_stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4653,11 +4421,11 @@ public ElasticsearchResponse IndicesStatsForAll(string metric, Func this.DoRequestAsync(GET, Url($"_stats/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4667,11 +4435,11 @@ public ElasticsearchResponse IndicesStats(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_stats"), null, _params(requestParameters)); ///Represents a GET on /{index}/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4681,11 +4449,11 @@ public ElasticsearchResponse IndicesStats(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4696,11 +4464,11 @@ public ElasticsearchResponse IndicesStats(string index, string metric, Fun where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); ///Represents a GET on /{index}/_stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4711,11 +4479,11 @@ public ElasticsearchResponse IndicesStats(string index, string metric, Fun where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_stats/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_aliases - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -4725,11 +4493,11 @@ public ElasticsearchResponse IndicesUpdateAliasesForAll(PostData b where T : class => this.DoRequest(POST, Url($"_aliases"), body, _params(requestParameters)); ///Represents a POST on /_aliases - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -4739,11 +4507,11 @@ public ElasticsearchResponse IndicesUpdateAliasesForAll(PostData b where T : class => this.DoRequestAsync(POST, Url($"_aliases"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4752,11 +4520,11 @@ public ElasticsearchResponse IndicesUpgradeForAll(Func this.DoRequest(POST, Url($"_upgrade"), null, _params(requestParameters)); ///Represents a POST on /_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4765,11 +4533,11 @@ public ElasticsearchResponse IndicesUpgradeForAll(Func this.DoRequestAsync(POST, Url($"_upgrade"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4779,11 +4547,11 @@ public ElasticsearchResponse IndicesUpgrade(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_upgrade"), null, _params(requestParameters)); ///Represents a POST on /{index}/_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4793,11 +4561,11 @@ public ElasticsearchResponse IndicesUpgrade(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_upgrade"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4806,11 +4574,11 @@ public ElasticsearchResponse IndicesValidateQueryGetForAll(Func this.DoRequest(GET, Url($"_validate/query"), null, _params(requestParameters)); ///Represents a GET on /_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4819,11 +4587,11 @@ public ElasticsearchResponse IndicesValidateQueryGetForAll(Func this.DoRequestAsync(GET, Url($"_validate/query"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4833,11 +4601,11 @@ public ElasticsearchResponse IndicesValidateQueryGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_validate/query"), null, _params(requestParameters)); ///Represents a GET on /{index}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4847,11 +4615,11 @@ public ElasticsearchResponse IndicesValidateQueryGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_validate/query"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4862,11 +4630,11 @@ public ElasticsearchResponse IndicesValidateQueryGet(string index, string where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4877,11 +4645,11 @@ public ElasticsearchResponse IndicesValidateQueryGet(string index, string where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4891,11 +4659,11 @@ public ElasticsearchResponse IndicesValidateQueryForAll(PostData b where T : class => this.DoRequest(POST, Url($"_validate/query"), body, _params(requestParameters)); ///Represents a POST on /_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4905,11 +4673,11 @@ public ElasticsearchResponse IndicesValidateQueryForAll(PostData b where T : class => this.DoRequestAsync(POST, Url($"_validate/query"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4920,11 +4688,11 @@ public ElasticsearchResponse IndicesValidateQuery(string index, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/_validate/query"), body, _params(requestParameters)); ///Represents a POST on /{index}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4935,11 +4703,11 @@ public ElasticsearchResponse IndicesValidateQuery(string index, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_validate/query"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4951,11 +4719,11 @@ public ElasticsearchResponse IndicesValidateQuery(string index, string typ where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4967,11 +4735,11 @@ public ElasticsearchResponse IndicesValidateQuery(string index, string typ where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on / - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/ /// @@ -4980,11 +4748,11 @@ public ElasticsearchResponse Info(Func this.DoRequest(GET, Url($""), null, _params(requestParameters)); ///Represents a GET on / - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/ /// @@ -4993,11 +4761,11 @@ public ElasticsearchResponse Info(Func this.DoRequestAsync(GET, Url($""), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_ingest/pipeline/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5007,11 +4775,11 @@ public ElasticsearchResponse IngestDeletePipeline(string id, Func this.DoRequest(DELETE, Url($"_ingest/pipeline/{id.NotNull("id")}"), null, _params(requestParameters)); ///Represents a DELETE on /_ingest/pipeline/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5021,11 +4789,11 @@ public ElasticsearchResponse IngestDeletePipeline(string id, Func this.DoRequestAsync(DELETE, Url($"_ingest/pipeline/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5034,11 +4802,11 @@ public ElasticsearchResponse IngestGetPipeline(Func this.DoRequest(GET, Url($"_ingest/pipeline"), null, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5047,11 +4815,11 @@ public ElasticsearchResponse IngestGetPipeline(Func this.DoRequestAsync(GET, Url($"_ingest/pipeline"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5061,11 +4829,11 @@ public ElasticsearchResponse IngestGetPipeline(string id, Func this.DoRequest(GET, Url($"_ingest/pipeline/{id.NotNull("id")}"), null, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5074,12 +4842,38 @@ public ElasticsearchResponse IngestGetPipeline(string id, Func> IngestGetPipelineAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_ingest/pipeline/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); + ///Represents a GET on /_ingest/processor/grok + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public ElasticsearchResponse IngestProcessorGrok(Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_ingest/processor/grok"), null, _params(requestParameters)); + + ///Represents a GET on /_ingest/processor/grok + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task> IngestProcessorGrokAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_ingest/processor/grok"), cancellationToken, null, _params(requestParameters)); + ///Represents a PUT on /_ingest/pipeline/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5090,11 +4884,11 @@ public ElasticsearchResponse IngestPutPipeline(string id, PostData where T : class => this.DoRequest(PUT, Url($"_ingest/pipeline/{id.NotNull("id")}"), body, _params(requestParameters)); ///Represents a PUT on /_ingest/pipeline/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5105,11 +4899,11 @@ public ElasticsearchResponse IngestPutPipeline(string id, PostData where T : class => this.DoRequestAsync(PUT, Url($"_ingest/pipeline/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5118,11 +4912,11 @@ public ElasticsearchResponse IngestSimulateGet(Func this.DoRequest(GET, Url($"_ingest/pipeline/_simulate"), null, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5131,11 +4925,11 @@ public ElasticsearchResponse IngestSimulateGet(Func this.DoRequestAsync(GET, Url($"_ingest/pipeline/_simulate"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline/{id}/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5145,11 +4939,11 @@ public ElasticsearchResponse IngestSimulateGet(string id, Func this.DoRequest(GET, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), null, _params(requestParameters)); ///Represents a GET on /_ingest/pipeline/{id}/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5159,11 +4953,11 @@ public ElasticsearchResponse IngestSimulateGet(string id, Func this.DoRequestAsync(GET, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_ingest/pipeline/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5173,11 +4967,11 @@ public ElasticsearchResponse IngestSimulate(PostData body, Func this.DoRequest(POST, Url($"_ingest/pipeline/_simulate"), body, _params(requestParameters)); ///Represents a POST on /_ingest/pipeline/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5187,11 +4981,11 @@ public ElasticsearchResponse IngestSimulate(PostData body, Func this.DoRequestAsync(POST, Url($"_ingest/pipeline/_simulate"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_ingest/pipeline/{id}/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5202,11 +4996,11 @@ public ElasticsearchResponse IngestSimulate(string id, PostData bo where T : class => this.DoRequest(POST, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), body, _params(requestParameters)); ///Represents a POST on /_ingest/pipeline/{id}/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -5217,11 +5011,11 @@ public ElasticsearchResponse IngestSimulate(string id, PostData bo where T : class => this.DoRequestAsync(POST, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5230,11 +5024,11 @@ public ElasticsearchResponse MgetGet(Func this.DoRequest(GET, Url($"_mget"), null, _params(requestParameters)); ///Represents a GET on /_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5243,11 +5037,11 @@ public ElasticsearchResponse MgetGet(Func this.DoRequestAsync(GET, Url($"_mget"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5257,11 +5051,11 @@ public ElasticsearchResponse MgetGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_mget"), null, _params(requestParameters)); ///Represents a GET on /{index}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5271,11 +5065,11 @@ public ElasticsearchResponse MgetGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mget"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5286,11 +5080,11 @@ public ElasticsearchResponse MgetGet(string index, string type, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5301,11 +5095,11 @@ public ElasticsearchResponse MgetGet(string index, string type, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5315,11 +5109,11 @@ public ElasticsearchResponse Mget(PostData body, Func this.DoRequest(POST, Url($"_mget"), body, _params(requestParameters)); ///Represents a POST on /_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5329,11 +5123,11 @@ public ElasticsearchResponse Mget(PostData body, Func this.DoRequestAsync(POST, Url($"_mget"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5344,11 +5138,11 @@ public ElasticsearchResponse Mget(string index, PostData body, Fun where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_mget"), body, _params(requestParameters)); ///Represents a POST on /{index}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5359,11 +5153,11 @@ public ElasticsearchResponse Mget(string index, PostData body, Fun where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_mget"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5375,11 +5169,11 @@ public ElasticsearchResponse Mget(string index, string type, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5391,11 +5185,11 @@ public ElasticsearchResponse Mget(string index, string type, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5404,11 +5198,11 @@ public ElasticsearchResponse MsearchGet(Func this.DoRequest(GET, Url($"_msearch"), null, _params(requestParameters)); ///Represents a GET on /_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5417,11 +5211,11 @@ public ElasticsearchResponse MsearchGet(Func this.DoRequestAsync(GET, Url($"_msearch"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5431,11 +5225,11 @@ public ElasticsearchResponse MsearchGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_msearch"), null, _params(requestParameters)); ///Represents a GET on /{index}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5445,11 +5239,11 @@ public ElasticsearchResponse MsearchGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_msearch"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5460,11 +5254,11 @@ public ElasticsearchResponse MsearchGet(string index, string type, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5475,11 +5269,11 @@ public ElasticsearchResponse MsearchGet(string index, string type, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5489,11 +5283,11 @@ public ElasticsearchResponse Msearch(PostData body, Func this.DoRequest(POST, Url($"_msearch"), body, _params(requestParameters)); ///Represents a POST on /_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5503,11 +5297,11 @@ public ElasticsearchResponse Msearch(PostData body, Func this.DoRequestAsync(POST, Url($"_msearch"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5518,11 +5312,11 @@ public ElasticsearchResponse Msearch(string index, PostData body, where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_msearch"), body, _params(requestParameters)); ///Represents a POST on /{index}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5533,11 +5327,11 @@ public ElasticsearchResponse Msearch(string index, PostData body, where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_msearch"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5549,11 +5343,11 @@ public ElasticsearchResponse Msearch(string index, string type, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5565,11 +5359,11 @@ public ElasticsearchResponse Msearch(string index, string type, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5578,11 +5372,11 @@ public ElasticsearchResponse MsearchTemplateGet(Func this.DoRequest(GET, Url($"_msearch/template"), null, _params(requestParameters)); ///Represents a GET on /_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5591,11 +5385,11 @@ public ElasticsearchResponse MsearchTemplateGet(Func this.DoRequestAsync(GET, Url($"_msearch/template"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5605,11 +5399,11 @@ public ElasticsearchResponse MsearchTemplateGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_msearch/template"), null, _params(requestParameters)); ///Represents a GET on /{index}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5619,11 +5413,11 @@ public ElasticsearchResponse MsearchTemplateGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_msearch/template"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5634,11 +5428,11 @@ public ElasticsearchResponse MsearchTemplateGet(string index, string type, where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5649,11 +5443,11 @@ public ElasticsearchResponse MsearchTemplateGet(string index, string type, where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5663,11 +5457,11 @@ public ElasticsearchResponse MsearchTemplate(PostData body, Func this.DoRequest(POST, Url($"_msearch/template"), body, _params(requestParameters)); ///Represents a POST on /_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5677,11 +5471,11 @@ public ElasticsearchResponse MsearchTemplate(PostData body, Func this.DoRequestAsync(POST, Url($"_msearch/template"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5692,11 +5486,11 @@ public ElasticsearchResponse MsearchTemplate(string index, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/_msearch/template"), body, _params(requestParameters)); ///Represents a POST on /{index}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5707,11 +5501,11 @@ public ElasticsearchResponse MsearchTemplate(string index, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_msearch/template"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5723,11 +5517,11 @@ public ElasticsearchResponse MsearchTemplate(string index, string type, Po where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5739,11 +5533,11 @@ public ElasticsearchResponse MsearchTemplate(string index, string type, Po where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5752,11 +5546,11 @@ public ElasticsearchResponse MtermvectorsGet(Func this.DoRequest(GET, Url($"_mtermvectors"), null, _params(requestParameters)); ///Represents a GET on /_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5765,11 +5559,11 @@ public ElasticsearchResponse MtermvectorsGet(Func this.DoRequestAsync(GET, Url($"_mtermvectors"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5779,11 +5573,11 @@ public ElasticsearchResponse MtermvectorsGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_mtermvectors"), null, _params(requestParameters)); ///Represents a GET on /{index}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5793,11 +5587,11 @@ public ElasticsearchResponse MtermvectorsGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mtermvectors"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5808,11 +5602,11 @@ public ElasticsearchResponse MtermvectorsGet(string index, string type, Fu where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5823,11 +5617,11 @@ public ElasticsearchResponse MtermvectorsGet(string index, string type, Fu where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5837,11 +5631,11 @@ public ElasticsearchResponse Mtermvectors(PostData body, Func this.DoRequest(POST, Url($"_mtermvectors"), body, _params(requestParameters)); ///Represents a POST on /_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5851,11 +5645,11 @@ public ElasticsearchResponse Mtermvectors(PostData body, Func this.DoRequestAsync(POST, Url($"_mtermvectors"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5866,11 +5660,11 @@ public ElasticsearchResponse Mtermvectors(string index, PostData b where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_mtermvectors"), body, _params(requestParameters)); ///Represents a POST on /{index}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5881,11 +5675,11 @@ public ElasticsearchResponse Mtermvectors(string index, PostData b where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_mtermvectors"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5897,11 +5691,11 @@ public ElasticsearchResponse Mtermvectors(string index, string type, PostD where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5913,11 +5707,11 @@ public ElasticsearchResponse Mtermvectors(string index, string type, PostD where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_cluster/nodes/hotthreads - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5926,11 +5720,11 @@ public ElasticsearchResponse NodesHotThreadsForAll(Func this.DoRequest(GET, Url($"_cluster/nodes/hotthreads"), null, _params(requestParameters)); ///Represents a GET on /_cluster/nodes/hotthreads - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5939,11 +5733,11 @@ public ElasticsearchResponse NodesHotThreadsForAll(Func this.DoRequestAsync(GET, Url($"_cluster/nodes/hotthreads"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5953,11 +5747,11 @@ public ElasticsearchResponse NodesHotThreads(string node_id, Func this.DoRequest(GET, Url($"_cluster/nodes/{node_id.NotNull("node_id")}/hotthreads"), null, _params(requestParameters)); ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5967,11 +5761,11 @@ public ElasticsearchResponse NodesHotThreads(string node_id, Func this.DoRequestAsync(GET, Url($"_cluster/nodes/{node_id.NotNull("node_id")}/hotthreads"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5980,11 +5774,11 @@ public ElasticsearchResponse NodesInfoForAll(Func this.DoRequest(GET, Url($"_nodes"), null, _params(requestParameters)); ///Represents a GET on /_nodes - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5993,11 +5787,11 @@ public ElasticsearchResponse NodesInfoForAll(Func this.DoRequestAsync(GET, Url($"_nodes"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -6007,11 +5801,11 @@ public ElasticsearchResponse NodesInfo(string node_id, Func this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}"), null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -6021,11 +5815,11 @@ public ElasticsearchResponse NodesInfo(string node_id, Func this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -6035,11 +5829,11 @@ public ElasticsearchResponse NodesInfoForAll(string metric, Func this.DoRequest(GET, Url($"_nodes/{metric.NotNull("metric")}"), null, _params(requestParameters)); ///Represents a GET on /_nodes/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -6049,11 +5843,11 @@ public ElasticsearchResponse NodesInfoForAll(string metric, Func this.DoRequestAsync(GET, Url($"_nodes/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -6064,11 +5858,11 @@ public ElasticsearchResponse NodesInfo(string node_id, string metric, Func where T : class => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/{metric.NotNull("metric")}"), null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -6079,11 +5873,11 @@ public ElasticsearchResponse NodesInfo(string node_id, string metric, Func where T : class => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6092,11 +5886,11 @@ public ElasticsearchResponse NodesStatsForAll(Func this.DoRequest(GET, Url($"_nodes/stats"), null, _params(requestParameters)); ///Represents a GET on /_nodes/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6105,11 +5899,11 @@ public ElasticsearchResponse NodesStatsForAll(Func this.DoRequestAsync(GET, Url($"_nodes/stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6119,11 +5913,11 @@ public ElasticsearchResponse NodesStats(string node_id, Func this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats"), null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6133,11 +5927,11 @@ public ElasticsearchResponse NodesStats(string node_id, Func this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6147,11 +5941,11 @@ public ElasticsearchResponse NodesStatsForAll(string metric, Func this.DoRequest(GET, Url($"_nodes/stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); ///Represents a GET on /_nodes/stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6161,11 +5955,11 @@ public ElasticsearchResponse NodesStatsForAll(string metric, Func this.DoRequestAsync(GET, Url($"_nodes/stats/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6176,11 +5970,11 @@ public ElasticsearchResponse NodesStats(string node_id, string metric, Fun where T : class => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6191,11 +5985,11 @@ public ElasticsearchResponse NodesStats(string node_id, string metric, Fun where T : class => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/stats/{metric}/{index_metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6206,11 +6000,11 @@ public ElasticsearchResponse NodesStatsForAll(string metric, string index_ where T : class => this.DoRequest(GET, Url($"_nodes/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), null, _params(requestParameters)); ///Represents a GET on /_nodes/stats/{metric}/{index_metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6221,11 +6015,11 @@ public ElasticsearchResponse NodesStatsForAll(string metric, string index_ where T : class => this.DoRequestAsync(GET, Url($"_nodes/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6237,11 +6031,11 @@ public ElasticsearchResponse NodesStats(string node_id, string metric, str where T : class => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), null, _params(requestParameters)); ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -6252,222 +6046,274 @@ public ElasticsearchResponse NodesStats(string node_id, string metric, str public Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), cancellationToken, null, _params(requestParameters)); - ///Represents a HEAD on / - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/ + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse Ping(Func requestParameters = null) - where T : class => this.DoRequest(HEAD, Url($""), null, _params(requestParameters)); + public ElasticsearchResponse NodesUsageForAll(Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_nodes/usage"), null, _params(requestParameters)); - ///Represents a HEAD on / - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/ + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> PingAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(HEAD, Url($""), cancellationToken, null, _params(requestParameters)); + public Task> NodesUsageForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_nodes/usage"), cancellationToken, null, _params(requestParameters)); - ///Represents a PUT on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/{node_id}/usage + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// - ///Script language - ///The document + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse PutScript(string lang, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(PUT, Url($"_scripts/{lang.NotNull("lang")}"), body, _params(requestParameters)); + public ElasticsearchResponse NodesUsage(string node_id, Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage"), null, _params(requestParameters)); - ///Represents a PUT on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/{node_id}/usage + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// - ///Script language - ///The document + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> PutScriptAsync(string lang, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(PUT, Url($"_scripts/{lang.NotNull("lang")}"), cancellationToken, body, _params(requestParameters)); + public Task> NodesUsageAsync(string node_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage"), cancellationToken, null, _params(requestParameters)); - ///Represents a PUT on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage/{metric} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// - ///Script language - ///Script ID - ///The document + ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse PutScript(string lang, string id, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(PUT, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), body, _params(requestParameters)); + public ElasticsearchResponse NodesUsageForAll(string metric, Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_nodes/usage/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///Represents a PUT on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage/{metric} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html + /// + ///Limit the information returned to the specified metrics + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task> NodesUsageForAllAsync(string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_nodes/usage/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); + + ///Represents a GET on /_nodes/{node_id}/usage/{metric} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public ElasticsearchResponse NodesUsage(string node_id, string metric, Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage/{metric.NotNull("metric")}"), null, _params(requestParameters)); + + ///Represents a GET on /_nodes/{node_id}/usage/{metric} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task> NodesUsageAsync(string node_id, string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage/{metric.NotNull("metric")}"), cancellationToken, null, _params(requestParameters)); + + ///Represents a HEAD on / + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/ /// - ///Script language - ///Script ID - ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> PutScriptAsync(string lang, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(PUT, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); + public ElasticsearchResponse Ping(Func requestParameters = null) + where T : class => this.DoRequest(HEAD, Url($""), null, _params(requestParameters)); - ///Represents a POST on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a HEAD on / + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/ + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task> PingAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(HEAD, Url($""), cancellationToken, null, _params(requestParameters)); + + ///Represents a PUT on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse PutScriptPost(string lang, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(POST, Url($"_scripts/{lang.NotNull("lang")}"), body, _params(requestParameters)); + public ElasticsearchResponse PutScript(string id, PostData body, Func requestParameters = null) + where T : class => this.DoRequest(PUT, Url($"_scripts/{id.NotNull("id")}"), body, _params(requestParameters)); - ///Represents a POST on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a PUT on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> PutScriptPostAsync(string lang, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(POST, Url($"_scripts/{lang.NotNull("lang")}"), cancellationToken, body, _params(requestParameters)); + public Task> PutScriptAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(PUT, Url($"_scripts/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); - ///Represents a POST on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a PUT on /_scripts/{id}/{context} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse PutScriptPost(string lang, string id, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(POST, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), body, _params(requestParameters)); + public ElasticsearchResponse PutScript(string id, string context, PostData body, Func requestParameters = null) + where T : class => this.DoRequest(PUT, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), body, _params(requestParameters)); - ///Represents a POST on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a PUT on /_scripts/{id}/{context} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> PutScriptPostAsync(string lang, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(POST, Url($"_scripts/{lang.NotNull("lang")}/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); + public Task> PutScriptAsync(string id, string context, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(PUT, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), cancellationToken, body, _params(requestParameters)); - ///Represents a PUT on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse PutTemplate(string id, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(PUT, Url($"_search/template/{id.NotNull("id")}"), body, _params(requestParameters)); + public ElasticsearchResponse PutScriptPost(string id, PostData body, Func requestParameters = null) + where T : class => this.DoRequest(POST, Url($"_scripts/{id.NotNull("id")}"), body, _params(requestParameters)); - ///Represents a PUT on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> PutTemplateAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(PUT, Url($"_search/template/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); + public Task> PutScriptPostAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(POST, Url($"_scripts/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); - ///Represents a POST on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id}/{context} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse PutTemplatePost(string id, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(POST, Url($"_search/template/{id.NotNull("id")}"), body, _params(requestParameters)); + public ElasticsearchResponse PutScriptPost(string id, string context, PostData body, Func requestParameters = null) + where T : class => this.DoRequest(POST, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), body, _params(requestParameters)); - ///Represents a POST on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id}/{context} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> PutTemplatePostAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(POST, Url($"_search/template/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); + public Task> PutScriptPostAsync(string id, string context, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(POST, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_reindex - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6477,11 +6323,11 @@ public ElasticsearchResponse Reindex(PostData body, Func this.DoRequest(POST, Url($"_reindex"), body, _params(requestParameters)); ///Represents a POST on /_reindex - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6491,11 +6337,11 @@ public ElasticsearchResponse Reindex(PostData body, Func this.DoRequestAsync(POST, Url($"_reindex"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_reindex/{task_id}/_rethrottle - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6505,11 +6351,11 @@ public ElasticsearchResponse ReindexRethrottle(string task_id, Func this.DoRequest(POST, Url($"_reindex/{task_id.NotNull("task_id")}/_rethrottle"), null, _params(requestParameters)); ///Represents a POST on /_reindex/{task_id}/_rethrottle - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6518,38 +6364,12 @@ public ElasticsearchResponse ReindexRethrottle(string task_id, Func> ReindexRethrottleAsync(string task_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(POST, Url($"_reindex/{task_id.NotNull("task_id")}/_rethrottle"), cancellationToken, null, _params(requestParameters)); - ///Represents a GET on /_remote/info - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-remote-info.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public ElasticsearchResponse RemoteInfo(Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"_remote/info"), null, _params(requestParameters)); - - ///Represents a GET on /_remote/info - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-remote-info.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - public Task> RemoteInfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"_remote/info"), cancellationToken, null, _params(requestParameters)); - ///Represents a GET on /_render/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6558,11 +6378,11 @@ public ElasticsearchResponse RenderSearchTemplateGet(Func this.DoRequest(GET, Url($"_render/template"), null, _params(requestParameters)); ///Represents a GET on /_render/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6571,11 +6391,11 @@ public ElasticsearchResponse RenderSearchTemplateGet(Func this.DoRequestAsync(GET, Url($"_render/template"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_render/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6585,11 +6405,11 @@ public ElasticsearchResponse RenderSearchTemplateGet(string id, Func this.DoRequest(GET, Url($"_render/template/{id.NotNull("id")}"), null, _params(requestParameters)); ///Represents a GET on /_render/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6599,11 +6419,11 @@ public ElasticsearchResponse RenderSearchTemplateGet(string id, Func this.DoRequestAsync(GET, Url($"_render/template/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_render/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6613,11 +6433,11 @@ public ElasticsearchResponse RenderSearchTemplate(PostData body, F where T : class => this.DoRequest(POST, Url($"_render/template"), body, _params(requestParameters)); ///Represents a POST on /_render/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6627,11 +6447,11 @@ public ElasticsearchResponse RenderSearchTemplate(PostData body, F where T : class => this.DoRequestAsync(POST, Url($"_render/template"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_render/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6642,11 +6462,11 @@ public ElasticsearchResponse RenderSearchTemplate(string id, PostData this.DoRequest(POST, Url($"_render/template/{id.NotNull("id")}"), body, _params(requestParameters)); ///Represents a POST on /_render/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6657,11 +6477,11 @@ public ElasticsearchResponse RenderSearchTemplate(string id, PostData this.DoRequestAsync(POST, Url($"_render/template/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_search/scroll - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6670,11 +6490,11 @@ public ElasticsearchResponse ScrollGet(Func this.DoRequest(GET, Url($"_search/scroll"), null, _params(requestParameters)); ///Represents a GET on /_search/scroll - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6683,11 +6503,11 @@ public ElasticsearchResponse ScrollGet(Func this.DoRequestAsync(GET, Url($"_search/scroll"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_search/scroll - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6697,11 +6517,11 @@ public ElasticsearchResponse Scroll(PostData body, Func this.DoRequest(POST, Url($"_search/scroll"), body, _params(requestParameters)); ///Represents a POST on /_search/scroll - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6711,11 +6531,11 @@ public ElasticsearchResponse Scroll(PostData body, Func this.DoRequestAsync(POST, Url($"_search/scroll"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6724,11 +6544,11 @@ public ElasticsearchResponse SearchGet(Func this.DoRequest(GET, Url($"_search"), null, _params(requestParameters)); ///Represents a GET on /_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6737,11 +6557,11 @@ public ElasticsearchResponse SearchGet(Func this.DoRequestAsync(GET, Url($"_search"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6751,11 +6571,11 @@ public ElasticsearchResponse SearchGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_search"), null, _params(requestParameters)); ///Represents a GET on /{index}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6765,11 +6585,11 @@ public ElasticsearchResponse SearchGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_search"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6780,11 +6600,11 @@ public ElasticsearchResponse SearchGet(string index, string type, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6795,11 +6615,11 @@ public ElasticsearchResponse SearchGet(string index, string type, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6809,11 +6629,11 @@ public ElasticsearchResponse Search(PostData body, Func this.DoRequest(POST, Url($"_search"), body, _params(requestParameters)); ///Represents a POST on /_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6823,11 +6643,11 @@ public ElasticsearchResponse Search(PostData body, Func this.DoRequestAsync(POST, Url($"_search"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6838,11 +6658,11 @@ public ElasticsearchResponse Search(string index, PostData body, F where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_search"), body, _params(requestParameters)); ///Represents a POST on /{index}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6853,11 +6673,11 @@ public ElasticsearchResponse Search(string index, PostData body, F where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_search"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6869,11 +6689,11 @@ public ElasticsearchResponse Search(string index, string type, PostData this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6885,11 +6705,11 @@ public ElasticsearchResponse Search(string index, string type, PostData this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6898,11 +6718,11 @@ public ElasticsearchResponse SearchShardsGet(Func this.DoRequest(GET, Url($"_search_shards"), null, _params(requestParameters)); ///Represents a GET on /_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6911,11 +6731,11 @@ public ElasticsearchResponse SearchShardsGet(Func this.DoRequestAsync(GET, Url($"_search_shards"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6925,11 +6745,11 @@ public ElasticsearchResponse SearchShardsGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_search_shards"), null, _params(requestParameters)); ///Represents a GET on /{index}/_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6939,11 +6759,11 @@ public ElasticsearchResponse SearchShardsGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_search_shards"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6952,11 +6772,11 @@ public ElasticsearchResponse SearchShards(Func this.DoRequest(POST, Url($"_search_shards"), null, _params(requestParameters)); ///Represents a POST on /_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6965,11 +6785,11 @@ public ElasticsearchResponse SearchShards(Func this.DoRequestAsync(POST, Url($"_search_shards"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6979,11 +6799,11 @@ public ElasticsearchResponse SearchShards(string index, Func this.DoRequest(POST, Url($"{index.NotNull("index")}/_search_shards"), null, _params(requestParameters)); ///Represents a POST on /{index}/_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6993,11 +6813,11 @@ public ElasticsearchResponse SearchShards(string index, Func this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_search_shards"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7006,11 +6826,11 @@ public ElasticsearchResponse SearchTemplateGet(Func this.DoRequest(GET, Url($"_search/template"), null, _params(requestParameters)); ///Represents a GET on /_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7019,11 +6839,11 @@ public ElasticsearchResponse SearchTemplateGet(Func this.DoRequestAsync(GET, Url($"_search/template"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7033,11 +6853,11 @@ public ElasticsearchResponse SearchTemplateGet(string index, Func this.DoRequest(GET, Url($"{index.NotNull("index")}/_search/template"), null, _params(requestParameters)); ///Represents a GET on /{index}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7047,11 +6867,11 @@ public ElasticsearchResponse SearchTemplateGet(string index, Func this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_search/template"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7062,11 +6882,11 @@ public ElasticsearchResponse SearchTemplateGet(string index, string type, where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7077,11 +6897,11 @@ public ElasticsearchResponse SearchTemplateGet(string index, string type, where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7091,11 +6911,11 @@ public ElasticsearchResponse SearchTemplate(PostData body, Func this.DoRequest(POST, Url($"_search/template"), body, _params(requestParameters)); ///Represents a POST on /_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7105,11 +6925,11 @@ public ElasticsearchResponse SearchTemplate(PostData body, Func this.DoRequestAsync(POST, Url($"_search/template"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7120,11 +6940,11 @@ public ElasticsearchResponse SearchTemplate(string index, PostData where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_search/template"), body, _params(requestParameters)); ///Represents a POST on /{index}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7135,11 +6955,11 @@ public ElasticsearchResponse SearchTemplate(string index, PostData where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_search/template"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7151,11 +6971,11 @@ public ElasticsearchResponse SearchTemplate(string index, string type, Pos where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -7167,11 +6987,11 @@ public ElasticsearchResponse SearchTemplate(string index, string type, Pos where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7183,11 +7003,11 @@ public ElasticsearchResponse SnapshotCreate(string repository, string snap where T : class => this.DoRequest(PUT, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), body, _params(requestParameters)); ///Represents a PUT on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7199,11 +7019,11 @@ public ElasticsearchResponse SnapshotCreate(string repository, string snap where T : class => this.DoRequestAsync(PUT, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7215,11 +7035,11 @@ public ElasticsearchResponse SnapshotCreatePost(string repository, string where T : class => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), body, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7231,11 +7051,11 @@ public ElasticsearchResponse SnapshotCreatePost(string repository, string where T : class => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7246,11 +7066,11 @@ public ElasticsearchResponse SnapshotCreateRepository(string repository, P where T : class => this.DoRequest(PUT, Url($"_snapshot/{repository.NotNull("repository")}"), body, _params(requestParameters)); ///Represents a PUT on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7261,11 +7081,11 @@ public ElasticsearchResponse SnapshotCreateRepository(string repository, P where T : class => this.DoRequestAsync(PUT, Url($"_snapshot/{repository.NotNull("repository")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7276,11 +7096,11 @@ public ElasticsearchResponse SnapshotCreateRepositoryPost(string repositor where T : class => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}"), body, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7291,11 +7111,11 @@ public ElasticsearchResponse SnapshotCreateRepositoryPost(string repositor where T : class => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}"), cancellationToken, body, _params(requestParameters)); ///Represents a DELETE on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7306,11 +7126,11 @@ public ElasticsearchResponse SnapshotDelete(string repository, string snap where T : class => this.DoRequest(DELETE, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), null, _params(requestParameters)); ///Represents a DELETE on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7321,11 +7141,11 @@ public ElasticsearchResponse SnapshotDelete(string repository, string snap where T : class => this.DoRequestAsync(DELETE, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7335,11 +7155,11 @@ public ElasticsearchResponse SnapshotDeleteRepository(string repository, F where T : class => this.DoRequest(DELETE, Url($"_snapshot/{repository.NotNull("repository")}"), null, _params(requestParameters)); ///Represents a DELETE on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7349,11 +7169,11 @@ public ElasticsearchResponse SnapshotDeleteRepository(string repository, F where T : class => this.DoRequestAsync(DELETE, Url($"_snapshot/{repository.NotNull("repository")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7364,11 +7184,11 @@ public ElasticsearchResponse SnapshotGet(string repository, string snapsho where T : class => this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7379,11 +7199,11 @@ public ElasticsearchResponse SnapshotGet(string repository, string snapsho where T : class => this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_snapshot - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7392,11 +7212,11 @@ public ElasticsearchResponse SnapshotGetRepository(Func this.DoRequest(GET, Url($"_snapshot"), null, _params(requestParameters)); ///Represents a GET on /_snapshot - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7405,11 +7225,11 @@ public ElasticsearchResponse SnapshotGetRepository(Func this.DoRequestAsync(GET, Url($"_snapshot"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7419,11 +7239,11 @@ public ElasticsearchResponse SnapshotGetRepository(string repository, Func where T : class => this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}"), null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7433,11 +7253,11 @@ public ElasticsearchResponse SnapshotGetRepository(string repository, Func where T : class => this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7449,11 +7269,11 @@ public ElasticsearchResponse SnapshotRestore(string repository, string sna where T : class => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_restore"), body, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7465,11 +7285,11 @@ public ElasticsearchResponse SnapshotRestore(string repository, string sna where T : class => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_restore"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_snapshot/_status - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7478,11 +7298,11 @@ public ElasticsearchResponse SnapshotStatus(Func this.DoRequest(GET, Url($"_snapshot/_status"), null, _params(requestParameters)); ///Represents a GET on /_snapshot/_status - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7491,11 +7311,11 @@ public ElasticsearchResponse SnapshotStatus(Func this.DoRequestAsync(GET, Url($"_snapshot/_status"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository}/_status - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7505,11 +7325,11 @@ public ElasticsearchResponse SnapshotStatus(string repository, Func this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}/_status"), null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository}/_status - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7519,11 +7339,11 @@ public ElasticsearchResponse SnapshotStatus(string repository, Func this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}/_status"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository}/{snapshot}/_status - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7534,11 +7354,11 @@ public ElasticsearchResponse SnapshotStatus(string repository, string snap where T : class => this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_status"), null, _params(requestParameters)); ///Represents a GET on /_snapshot/{repository}/{snapshot}/_status - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7549,11 +7369,11 @@ public ElasticsearchResponse SnapshotStatus(string repository, string snap where T : class => this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_status"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository}/_verify - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7563,11 +7383,11 @@ public ElasticsearchResponse SnapshotVerifyRepository(string repository, F where T : class => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}/_verify"), null, _params(requestParameters)); ///Represents a POST on /_snapshot/{repository}/_verify - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7577,11 +7397,11 @@ public ElasticsearchResponse SnapshotVerifyRepository(string repository, F where T : class => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}/_verify"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_tasks/_cancel - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7590,11 +7410,11 @@ public ElasticsearchResponse TasksCancel(Func this.DoRequest(POST, Url($"_tasks/_cancel"), null, _params(requestParameters)); ///Represents a POST on /_tasks/_cancel - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7603,11 +7423,11 @@ public ElasticsearchResponse TasksCancel(Func this.DoRequestAsync(POST, Url($"_tasks/_cancel"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_tasks/{task_id}/_cancel - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7617,11 +7437,11 @@ public ElasticsearchResponse TasksCancel(string task_id, Func this.DoRequest(POST, Url($"_tasks/{task_id.NotNull("task_id")}/_cancel"), null, _params(requestParameters)); ///Represents a POST on /_tasks/{task_id}/_cancel - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7631,11 +7451,11 @@ public ElasticsearchResponse TasksCancel(string task_id, Func this.DoRequestAsync(POST, Url($"_tasks/{task_id.NotNull("task_id")}/_cancel"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_tasks/{task_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7645,11 +7465,11 @@ public ElasticsearchResponse TasksGet(string task_id, Func this.DoRequest(GET, Url($"_tasks/{task_id.NotNull("task_id")}"), null, _params(requestParameters)); ///Represents a GET on /_tasks/{task_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7659,11 +7479,11 @@ public ElasticsearchResponse TasksGet(string task_id, Func this.DoRequestAsync(GET, Url($"_tasks/{task_id.NotNull("task_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7672,11 +7492,11 @@ public ElasticsearchResponse TasksList(Func this.DoRequest(GET, Url($"_tasks"), null, _params(requestParameters)); ///Represents a GET on /_tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7685,11 +7505,11 @@ public ElasticsearchResponse TasksList(Func this.DoRequestAsync(GET, Url($"_tasks"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7700,11 +7520,11 @@ public ElasticsearchResponse TermvectorsGet(string index, string type, Fun where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7715,11 +7535,11 @@ public ElasticsearchResponse TermvectorsGet(string index, string type, Fun where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/{id}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7731,11 +7551,11 @@ public ElasticsearchResponse TermvectorsGet(string index, string type, str where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), null, _params(requestParameters)); ///Represents a GET on /{index}/{type}/{id}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7747,11 +7567,11 @@ public ElasticsearchResponse TermvectorsGet(string index, string type, str where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7763,11 +7583,11 @@ public ElasticsearchResponse Termvectors(string index, string type, PostDa where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7779,11 +7599,11 @@ public ElasticsearchResponse Termvectors(string index, string type, PostDa where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7796,11 +7616,11 @@ public ElasticsearchResponse Termvectors(string index, string type, string where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7813,11 +7633,11 @@ public ElasticsearchResponse Termvectors(string index, string type, string where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html /// @@ -7830,11 +7650,11 @@ public ElasticsearchResponse Update(string index, string type, string id, where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_update"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/{id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html /// @@ -7847,11 +7667,11 @@ public ElasticsearchResponse Update(string index, string type, string id, where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_update"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/_update_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7862,11 +7682,11 @@ public ElasticsearchResponse UpdateByQuery(string index, PostData where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_update_by_query"), body, _params(requestParameters)); ///Represents a POST on /{index}/_update_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7877,11 +7697,11 @@ public ElasticsearchResponse UpdateByQuery(string index, PostData where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_update_by_query"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_update_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7893,11 +7713,11 @@ public ElasticsearchResponse UpdateByQuery(string index, string type, Post where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_update_by_query"), body, _params(requestParameters)); ///Represents a POST on /{index}/{type}/_update_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7908,132 +7728,186 @@ public ElasticsearchResponse UpdateByQuery(string index, string type, Post public Task> UpdateByQueryAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_update_by_query"), cancellationToken, body, _params(requestParameters)); - ///Represents a GET on /{index}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackGraphExploreGet(string index, Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_xpack/_graph/_explore"), null, _params(requestParameters)); + where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), null, _params(requestParameters)); - ///Represents a GET on /{index}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackGraphExploreGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_xpack/_graph/_explore"), cancellationToken, null, _params(requestParameters)); + where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), cancellationToken, null, _params(requestParameters)); - ///Represents a GET on /{index}/{type}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/{type}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackGraphExploreGet(string index, string type, Func requestParameters = null) - where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/_graph/_explore"), null, _params(requestParameters)); + where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), null, _params(requestParameters)); - ///Represents a GET on /{index}/{type}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/{type}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackGraphExploreGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/_graph/_explore"), cancellationToken, null, _params(requestParameters)); + where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), cancellationToken, null, _params(requestParameters)); - ///Represents a POST on /{index}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///Graph Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackGraphExplore(string index, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_xpack/_graph/_explore"), body, _params(requestParameters)); + where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), body, _params(requestParameters)); - ///Represents a POST on /{index}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///Graph Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackGraphExploreAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_xpack/_graph/_explore"), cancellationToken, body, _params(requestParameters)); + where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), cancellationToken, body, _params(requestParameters)); - ///Represents a POST on /{index}/{type}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/{type}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///Graph Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackGraphExplore(string index, string type, PostData body, Func requestParameters = null) - where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/_graph/_explore"), body, _params(requestParameters)); + where T : class => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), body, _params(requestParameters)); - ///Represents a POST on /{index}/{type}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/{type}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///Graph Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackGraphExploreAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) - where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/_graph/_explore"), cancellationToken, body, _params(requestParameters)); + where T : class => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), cancellationToken, body, _params(requestParameters)); + + ///Represents a GET on /_xpack/migration/deprecations + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public ElasticsearchResponse XpackDeprecationInfo(Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"_xpack/migration/deprecations"), null, _params(requestParameters)); + + ///Represents a GET on /_xpack/migration/deprecations + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task> XpackDeprecationInfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"_xpack/migration/deprecations"), cancellationToken, null, _params(requestParameters)); + + ///Represents a GET on /{index}/_xpack/migration/deprecations + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///Index pattern + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public ElasticsearchResponse XpackDeprecationInfo(string index, Func requestParameters = null) + where T : class => this.DoRequest(GET, Url($"{index.NotNull("index")}/_xpack/migration/deprecations"), null, _params(requestParameters)); + + ///Represents a GET on /{index}/_xpack/migration/deprecations + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///Index pattern + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task> XpackDeprecationInfoAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) + where T : class => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_xpack/migration/deprecations"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html /// @@ -8042,11 +7916,11 @@ public ElasticsearchResponse XpackInfo(Func this.DoRequest(GET, Url($"_xpack"), null, _params(requestParameters)); ///Represents a GET on /_xpack - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html /// @@ -8055,11 +7929,11 @@ public ElasticsearchResponse XpackInfo(Func this.DoRequestAsync(GET, Url($"_xpack"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/usage - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: Retrieve information about xpack features usage /// @@ -8068,11 +7942,11 @@ public ElasticsearchResponse XpackUsage(Func this.DoRequest(GET, Url($"_xpack/usage"), null, _params(requestParameters)); ///Represents a GET on /_xpack/usage - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: Retrieve information about xpack features usage /// @@ -8081,65 +7955,65 @@ public ElasticsearchResponse XpackUsage(Func this.DoRequestAsync(GET, Url($"_xpack/usage"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/license - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackLicenseDelete(Func requestParameters = null) where T : class => this.DoRequest(DELETE, Url($"_xpack/license"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/license - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackLicenseDeleteAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(DELETE, Url($"_xpack/license"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/license - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackLicenseGet(Func requestParameters = null) where T : class => this.DoRequest(GET, Url($"_xpack/license"), null, _params(requestParameters)); ///Represents a GET on /_xpack/license - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackLicenseGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_xpack/license"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/license - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///licenses to be installed ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -8147,13 +8021,13 @@ public ElasticsearchResponse XpackLicensePost(PostData body, Func< where T : class => this.DoRequest(PUT, Url($"_xpack/license"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/license - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///licenses to be installed ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -8161,11 +8035,11 @@ public ElasticsearchResponse XpackLicensePost(PostData body, Func< where T : class => this.DoRequestAsync(PUT, Url($"_xpack/license"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_close - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// @@ -8175,11 +8049,11 @@ public ElasticsearchResponse XpackMlCloseJob(string job_id, Func this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_close"), null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_close - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// @@ -8189,11 +8063,11 @@ public ElasticsearchResponse XpackMlCloseJob(string job_id, Func this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_close"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// @@ -8203,11 +8077,11 @@ public ElasticsearchResponse XpackMlDeleteDatafeed(string datafeed_id, Fun where T : class => this.DoRequest(DELETE, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// @@ -8217,11 +8091,11 @@ public ElasticsearchResponse XpackMlDeleteDatafeed(string datafeed_id, Fun where T : class => this.DoRequestAsync(DELETE, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/_delete_expired_data - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -8230,11 +8104,11 @@ public ElasticsearchResponse XpackMlDeleteExpiredData(Func this.DoRequest(DELETE, Url($"_xpack/ml/_delete_expired_data"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/_delete_expired_data - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -8243,11 +8117,11 @@ public ElasticsearchResponse XpackMlDeleteExpiredData(Func this.DoRequestAsync(DELETE, Url($"_xpack/ml/_delete_expired_data"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// @@ -8257,11 +8131,11 @@ public ElasticsearchResponse XpackMlDeleteJob(string job_id, Func this.DoRequest(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// @@ -8271,11 +8145,11 @@ public ElasticsearchResponse XpackMlDeleteJob(string job_id, Func this.DoRequestAsync(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// @@ -8286,11 +8160,11 @@ public ElasticsearchResponse XpackMlDeleteModelSnapshot(string job_id, str where T : class => this.DoRequest(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// @@ -8301,11 +8175,11 @@ public ElasticsearchResponse XpackMlDeleteModelSnapshot(string job_id, str where T : class => this.DoRequestAsync(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// @@ -8316,11 +8190,11 @@ public ElasticsearchResponse XpackMlFlushJob(string job_id, PostData this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_flush"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// @@ -8331,11 +8205,11 @@ public ElasticsearchResponse XpackMlFlushJob(string job_id, PostData this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_flush"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -8345,11 +8219,11 @@ public ElasticsearchResponse XpackMlGetBuckets(string job_id, Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -8359,11 +8233,11 @@ public ElasticsearchResponse XpackMlGetBuckets(string job_id, Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -8374,11 +8248,11 @@ public ElasticsearchResponse XpackMlGetBuckets(string job_id, PostData this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -8389,11 +8263,11 @@ public ElasticsearchResponse XpackMlGetBuckets(string job_id, PostData this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8404,11 +8278,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, long cate where T : class => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8419,11 +8293,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, long cate where T : class => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8433,11 +8307,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8447,11 +8321,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8463,11 +8337,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, long cate where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8479,11 +8353,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, long cate where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8494,11 +8368,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, PostData< where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -8509,11 +8383,11 @@ public ElasticsearchResponse XpackMlGetCategories(string job_id, PostData< where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -8523,11 +8397,11 @@ public ElasticsearchResponse XpackMlGetDatafeeds(string datafeed_id, Func< where T : class => this.DoRequest(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -8537,11 +8411,11 @@ public ElasticsearchResponse XpackMlGetDatafeeds(string datafeed_id, Func< where T : class => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -8550,11 +8424,11 @@ public ElasticsearchResponse XpackMlGetDatafeeds(Func this.DoRequest(GET, Url($"_xpack/ml/datafeeds"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -8563,11 +8437,11 @@ public ElasticsearchResponse XpackMlGetDatafeeds(Func this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -8577,11 +8451,11 @@ public ElasticsearchResponse XpackMlGetDatafeedStats(string datafeed_id, F where T : class => this.DoRequest(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stats"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -8591,11 +8465,11 @@ public ElasticsearchResponse XpackMlGetDatafeedStats(string datafeed_id, F where T : class => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -8604,11 +8478,11 @@ public ElasticsearchResponse XpackMlGetDatafeedStats(Func this.DoRequest(GET, Url($"_xpack/ml/datafeeds/_stats"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -8617,11 +8491,11 @@ public ElasticsearchResponse XpackMlGetDatafeedStats(Func this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/_stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8631,11 +8505,11 @@ public ElasticsearchResponse XpackMlGetInfluencers(string job_id, Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8645,11 +8519,11 @@ public ElasticsearchResponse XpackMlGetInfluencers(string job_id, Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8660,11 +8534,11 @@ public ElasticsearchResponse XpackMlGetInfluencers(string job_id, PostData where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8675,11 +8549,11 @@ public ElasticsearchResponse XpackMlGetInfluencers(string job_id, PostData where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8689,11 +8563,11 @@ public ElasticsearchResponse XpackMlGetJobs(string job_id, Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8703,11 +8577,11 @@ public ElasticsearchResponse XpackMlGetJobs(string job_id, Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/ - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8716,11 +8590,11 @@ public ElasticsearchResponse XpackMlGetJobs(Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/ - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8729,11 +8603,11 @@ public ElasticsearchResponse XpackMlGetJobs(Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8742,11 +8616,11 @@ public ElasticsearchResponse XpackMlGetJobStats(Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/_stats"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8755,11 +8629,11 @@ public ElasticsearchResponse XpackMlGetJobStats(Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/_stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8769,11 +8643,11 @@ public ElasticsearchResponse XpackMlGetJobStats(string job_id, Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_stats"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8783,11 +8657,11 @@ public ElasticsearchResponse XpackMlGetJobStats(string job_id, Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8798,11 +8672,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, strin where T : class => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8813,11 +8687,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, strin where T : class => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8827,11 +8701,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, Func< where T : class => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8841,11 +8715,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, Func< where T : class => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8857,11 +8731,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, strin where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8873,11 +8747,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, strin where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8888,11 +8762,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, PostD where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8903,11 +8777,11 @@ public ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, PostD where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8917,11 +8791,11 @@ public ElasticsearchResponse XpackMlGetRecords(string job_id, Func this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8931,11 +8805,11 @@ public ElasticsearchResponse XpackMlGetRecords(string job_id, Func this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8946,11 +8820,11 @@ public ElasticsearchResponse XpackMlGetRecords(string job_id, PostData this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8961,11 +8835,11 @@ public ElasticsearchResponse XpackMlGetRecords(string job_id, PostData this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_open - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// @@ -8975,11 +8849,11 @@ public ElasticsearchResponse XpackMlOpenJob(string job_id, Func this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_open"), null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_open - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// @@ -8989,11 +8863,11 @@ public ElasticsearchResponse XpackMlOpenJob(string job_id, Func this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_open"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_data - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// @@ -9004,11 +8878,11 @@ public ElasticsearchResponse XpackMlPostData(string job_id, PostData this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_data"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_data - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// @@ -9019,11 +8893,11 @@ public ElasticsearchResponse XpackMlPostData(string job_id, PostData this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_data"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// @@ -9033,11 +8907,11 @@ public ElasticsearchResponse XpackMlPreviewDatafeed(string datafeed_id, Fu where T : class => this.DoRequest(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_preview"), null, _params(requestParameters)); ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// @@ -9047,11 +8921,11 @@ public ElasticsearchResponse XpackMlPreviewDatafeed(string datafeed_id, Fu where T : class => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_preview"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// @@ -9062,11 +8936,11 @@ public ElasticsearchResponse XpackMlPutDatafeed(string datafeed_id, PostDa where T : class => this.DoRequest(PUT, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// @@ -9077,11 +8951,11 @@ public ElasticsearchResponse XpackMlPutDatafeed(string datafeed_id, PostDa where T : class => this.DoRequestAsync(PUT, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// @@ -9092,11 +8966,11 @@ public ElasticsearchResponse XpackMlPutJob(string job_id, PostData where T : class => this.DoRequest(PUT, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// @@ -9107,11 +8981,11 @@ public ElasticsearchResponse XpackMlPutJob(string job_id, PostData where T : class => this.DoRequestAsync(PUT, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// @@ -9123,11 +8997,11 @@ public ElasticsearchResponse XpackMlRevertModelSnapshot(string job_id, str where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_revert"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// @@ -9139,11 +9013,11 @@ public ElasticsearchResponse XpackMlRevertModelSnapshot(string job_id, str where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_revert"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_start - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// @@ -9154,11 +9028,11 @@ public ElasticsearchResponse XpackMlStartDatafeed(string datafeed_id, Post where T : class => this.DoRequest(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_start"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_start - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// @@ -9169,11 +9043,11 @@ public ElasticsearchResponse XpackMlStartDatafeed(string datafeed_id, Post where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_start"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// @@ -9183,11 +9057,11 @@ public ElasticsearchResponse XpackMlStopDatafeed(string datafeed_id, Func< where T : class => this.DoRequest(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stop"), null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// @@ -9197,11 +9071,11 @@ public ElasticsearchResponse XpackMlStopDatafeed(string datafeed_id, Func< where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stop"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// @@ -9212,11 +9086,11 @@ public ElasticsearchResponse XpackMlUpdateDatafeed(string datafeed_id, Pos where T : class => this.DoRequest(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_update"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// @@ -9227,11 +9101,11 @@ public ElasticsearchResponse XpackMlUpdateDatafeed(string datafeed_id, Pos where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_update"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// @@ -9242,11 +9116,11 @@ public ElasticsearchResponse XpackMlUpdateJob(string job_id, PostData this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_update"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// @@ -9257,11 +9131,11 @@ public ElasticsearchResponse XpackMlUpdateJob(string job_id, PostData this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_update"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// @@ -9273,11 +9147,11 @@ public ElasticsearchResponse XpackMlUpdateModelSnapshot(string job_id, str where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_update"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// @@ -9289,11 +9163,11 @@ public ElasticsearchResponse XpackMlUpdateModelSnapshot(string job_id, str where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_update"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -9303,11 +9177,11 @@ public ElasticsearchResponse XpackMlValidate(PostData body, Func this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/_validate"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -9317,11 +9191,11 @@ public ElasticsearchResponse XpackMlValidate(PostData body, Func this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/_validate"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate/detector - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -9331,11 +9205,11 @@ public ElasticsearchResponse XpackMlValidateDetector(PostData body where T : class => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/_validate/detector"), body, _params(requestParameters)); ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate/detector - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -9345,39 +9219,39 @@ public ElasticsearchResponse XpackMlValidateDetector(PostData body where T : class => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/_validate/detector"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/security/_authenticate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackSecurityAuthenticate(Func requestParameters = null) where T : class => this.DoRequest(GET, Url($"_xpack/security/_authenticate"), null, _params(requestParameters)); ///Represents a GET on /_xpack/security/_authenticate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackSecurityAuthenticateAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_xpack/security/_authenticate"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username}/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -9386,13 +9260,13 @@ public ElasticsearchResponse XpackSecurityChangePassword(string username, where T : class => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username}/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -9401,13 +9275,13 @@ public ElasticsearchResponse XpackSecurityChangePassword(string username, where T : class => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9415,13 +9289,13 @@ public ElasticsearchResponse XpackSecurityChangePassword(PostData where T : class => this.DoRequest(PUT, Url($"_xpack/security/user/_password"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9429,13 +9303,13 @@ public ElasticsearchResponse XpackSecurityChangePassword(PostData where T : class => this.DoRequestAsync(PUT, Url($"_xpack/security/user/_password"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username}/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -9444,13 +9318,13 @@ public ElasticsearchResponse XpackSecurityChangePasswordPost(string userna where T : class => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), body, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username}/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -9459,13 +9333,13 @@ public ElasticsearchResponse XpackSecurityChangePasswordPost(string userna where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9473,13 +9347,13 @@ public ElasticsearchResponse XpackSecurityChangePasswordPost(PostData this.DoRequest(POST, Url($"_xpack/security/user/_password"), body, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9487,13 +9361,13 @@ public ElasticsearchResponse XpackSecurityChangePasswordPost(PostData this.DoRequestAsync(POST, Url($"_xpack/security/user/_password"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/security/realm/{realms}/_clear_cache - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html /// ///Comma-separated list of realms to clear ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9501,13 +9375,13 @@ public ElasticsearchResponse XpackSecurityClearCachedRealms(string realms, where T : class => this.DoRequest(POST, Url($"_xpack/security/realm/{realms.NotNull("realms")}/_clear_cache"), null, _params(requestParameters)); ///Represents a POST on /_xpack/security/realm/{realms}/_clear_cache - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html /// ///Comma-separated list of realms to clear ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9515,13 +9389,13 @@ public ElasticsearchResponse XpackSecurityClearCachedRealms(string realms, where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/realm/{realms.NotNull("realms")}/_clear_cache"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/security/role/{name}/_clear_cache - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9529,13 +9403,13 @@ public ElasticsearchResponse XpackSecurityClearCachedRoles(string name, Fu where T : class => this.DoRequest(POST, Url($"_xpack/security/role/{name.NotNull("name")}/_clear_cache"), null, _params(requestParameters)); ///Represents a POST on /_xpack/security/role/{name}/_clear_cache - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9543,13 +9417,13 @@ public ElasticsearchResponse XpackSecurityClearCachedRoles(string name, Fu where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/role/{name.NotNull("name")}/_clear_cache"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-delete-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9557,13 +9431,13 @@ public ElasticsearchResponse XpackSecurityDeleteRole(string name, Func this.DoRequest(DELETE, Url($"_xpack/security/role/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-delete-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9571,13 +9445,13 @@ public ElasticsearchResponse XpackSecurityDeleteRole(string name, Func this.DoRequestAsync(DELETE, Url($"_xpack/security/role/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-delete-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping /// ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9585,13 +9459,13 @@ public ElasticsearchResponse XpackSecurityDeleteRoleMapping(string name, F where T : class => this.DoRequest(DELETE, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-delete-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping /// ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9599,13 +9473,13 @@ public ElasticsearchResponse XpackSecurityDeleteRoleMapping(string name, F where T : class => this.DoRequestAsync(DELETE, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-delete-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user /// ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9613,13 +9487,13 @@ public ElasticsearchResponse XpackSecurityDeleteUser(string username, Func where T : class => this.DoRequest(DELETE, Url($"_xpack/security/user/{username.NotNull("username")}"), null, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-delete-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user /// ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9627,13 +9501,13 @@ public ElasticsearchResponse XpackSecurityDeleteUser(string username, Func where T : class => this.DoRequestAsync(DELETE, Url($"_xpack/security/user/{username.NotNull("username")}"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username}/_disable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9641,13 +9515,13 @@ public ElasticsearchResponse XpackSecurityDisableUser(string username, Fun where T : class => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), null, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username}/_disable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9655,13 +9529,13 @@ public ElasticsearchResponse XpackSecurityDisableUser(string username, Fun where T : class => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username}/_disable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9669,13 +9543,13 @@ public ElasticsearchResponse XpackSecurityDisableUserPost(string username, where T : class => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), null, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username}/_disable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9683,13 +9557,13 @@ public ElasticsearchResponse XpackSecurityDisableUserPost(string username, where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username}/_enable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9697,13 +9571,13 @@ public ElasticsearchResponse XpackSecurityEnableUser(string username, Func where T : class => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), null, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username}/_enable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9711,13 +9585,13 @@ public ElasticsearchResponse XpackSecurityEnableUser(string username, Func where T : class => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username}/_enable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9725,13 +9599,13 @@ public ElasticsearchResponse XpackSecurityEnableUserPost(string username, where T : class => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), null, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username}/_enable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9739,13 +9613,13 @@ public ElasticsearchResponse XpackSecurityEnableUserPost(string username, where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9753,13 +9627,13 @@ public ElasticsearchResponse XpackSecurityGetRole(string name, Func this.DoRequest(GET, Url($"_xpack/security/role/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9767,39 +9641,39 @@ public ElasticsearchResponse XpackSecurityGetRole(string name, Func this.DoRequestAsync(GET, Url($"_xpack/security/role/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackSecurityGetRole(Func requestParameters = null) where T : class => this.DoRequest(GET, Url($"_xpack/security/role"), null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackSecurityGetRoleAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_xpack/security/role"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9807,13 +9681,13 @@ public ElasticsearchResponse XpackSecurityGetRoleMapping(string name, Func where T : class => this.DoRequest(GET, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9821,39 +9695,39 @@ public ElasticsearchResponse XpackSecurityGetRoleMapping(string name, Func where T : class => this.DoRequestAsync(GET, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackSecurityGetRoleMapping(Func requestParameters = null) where T : class => this.DoRequest(GET, Url($"_xpack/security/role_mapping"), null, _params(requestParameters)); ///Represents a GET on /_xpack/security/role_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackSecurityGetRoleMappingAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_xpack/security/role_mapping"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/security/oauth2/token - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-get-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token /// ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9861,13 +9735,13 @@ public ElasticsearchResponse XpackSecurityGetToken(PostData body, where T : class => this.DoRequest(POST, Url($"_xpack/security/oauth2/token"), body, _params(requestParameters)); ///Represents a POST on /_xpack/security/oauth2/token - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-get-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token /// ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9875,13 +9749,13 @@ public ElasticsearchResponse XpackSecurityGetToken(PostData body, where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/oauth2/token"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9889,13 +9763,13 @@ public ElasticsearchResponse XpackSecurityGetUser(string username, Func this.DoRequest(GET, Url($"_xpack/security/user/{username.NotNull("username")}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9903,39 +9777,39 @@ public ElasticsearchResponse XpackSecurityGetUser(string username, Func this.DoRequestAsync(GET, Url($"_xpack/security/user/{username.NotNull("username")}"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/security/user - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public ElasticsearchResponse XpackSecurityGetUser(Func requestParameters = null) where T : class => this.DoRequest(GET, Url($"_xpack/security/user"), null, _params(requestParameters)); ///Represents a GET on /_xpack/security/user - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task> XpackSecurityGetUserAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class => this.DoRequestAsync(GET, Url($"_xpack/security/user"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/oauth2/token - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-invalidate-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token /// ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9943,13 +9817,13 @@ public ElasticsearchResponse XpackSecurityInvalidateToken(PostData where T : class => this.DoRequest(DELETE, Url($"_xpack/security/oauth2/token"), body, _params(requestParameters)); ///Represents a DELETE on /_xpack/security/oauth2/token - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-invalidate-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token /// ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. @@ -9957,13 +9831,13 @@ public ElasticsearchResponse XpackSecurityInvalidateToken(PostData where T : class => this.DoRequestAsync(DELETE, Url($"_xpack/security/oauth2/token"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -9972,13 +9846,13 @@ public ElasticsearchResponse XpackSecurityPutRole(string name, PostData this.DoRequest(PUT, Url($"_xpack/security/role/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -9987,13 +9861,13 @@ public ElasticsearchResponse XpackSecurityPutRole(string name, PostData this.DoRequestAsync(PUT, Url($"_xpack/security/role/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -10002,13 +9876,13 @@ public ElasticsearchResponse XpackSecurityPutRolePost(string name, PostDat where T : class => this.DoRequest(POST, Url($"_xpack/security/role/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a POST on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -10017,13 +9891,13 @@ public ElasticsearchResponse XpackSecurityPutRolePost(string name, PostDat where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/role/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -10032,13 +9906,13 @@ public ElasticsearchResponse XpackSecurityPutRoleMapping(string name, Post where T : class => this.DoRequest(PUT, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -10047,13 +9921,13 @@ public ElasticsearchResponse XpackSecurityPutRoleMapping(string name, Post where T : class => this.DoRequestAsync(PUT, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -10062,13 +9936,13 @@ public ElasticsearchResponse XpackSecurityPutRoleMappingPost(string name, where T : class => this.DoRequest(POST, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), body, _params(requestParameters)); ///Represents a POST on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -10077,13 +9951,13 @@ public ElasticsearchResponse XpackSecurityPutRoleMappingPost(string name, where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -10092,13 +9966,13 @@ public ElasticsearchResponse XpackSecurityPutUser(string username, PostDat where T : class => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -10107,13 +9981,13 @@ public ElasticsearchResponse XpackSecurityPutUser(string username, PostDat where T : class => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -10122,13 +9996,13 @@ public ElasticsearchResponse XpackSecurityPutUserPost(string username, Pos where T : class => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}"), body, _params(requestParameters)); ///Represents a POST on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -10137,11 +10011,11 @@ public ElasticsearchResponse XpackSecurityPutUserPost(string username, Pos where T : class => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10151,11 +10025,11 @@ public ElasticsearchResponse XpackWatcherAckWatch(string watch_id, Func this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), null, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10165,11 +10039,11 @@ public ElasticsearchResponse XpackWatcherAckWatch(string watch_id, Func this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10180,11 +10054,11 @@ public ElasticsearchResponse XpackWatcherAckWatch(string watch_id, string where T : class => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), null, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10195,11 +10069,11 @@ public ElasticsearchResponse XpackWatcherAckWatch(string watch_id, string where T : class => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10209,11 +10083,11 @@ public ElasticsearchResponse XpackWatcherAckWatchPost(string watch_id, Fun where T : class => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10223,11 +10097,11 @@ public ElasticsearchResponse XpackWatcherAckWatchPost(string watch_id, Fun where T : class => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10238,11 +10112,11 @@ public ElasticsearchResponse XpackWatcherAckWatchPost(string watch_id, str where T : class => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -10253,11 +10127,11 @@ public ElasticsearchResponse XpackWatcherAckWatchPost(string watch_id, str where T : class => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -10267,11 +10141,11 @@ public ElasticsearchResponse XpackWatcherActivateWatch(string watch_id, Fu where T : class => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), null, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -10281,11 +10155,11 @@ public ElasticsearchResponse XpackWatcherActivateWatch(string watch_id, Fu where T : class => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -10295,11 +10169,11 @@ public ElasticsearchResponse XpackWatcherActivateWatchPost(string watch_id where T : class => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -10309,11 +10183,11 @@ public ElasticsearchResponse XpackWatcherActivateWatchPost(string watch_id where T : class => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), cancellationToken, null, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -10323,11 +10197,11 @@ public ElasticsearchResponse XpackWatcherDeactivateWatch(string watch_id, where T : class => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), null, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -10337,11 +10211,11 @@ public ElasticsearchResponse XpackWatcherDeactivateWatch(string watch_id, where T : class => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -10351,11 +10225,11 @@ public ElasticsearchResponse XpackWatcherDeactivateWatchPost(string watch_ where T : class => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -10365,11 +10239,11 @@ public ElasticsearchResponse XpackWatcherDeactivateWatchPost(string watch_ where T : class => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), cancellationToken, null, _params(requestParameters)); ///Represents a DELETE on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// @@ -10379,11 +10253,11 @@ public ElasticsearchResponse XpackWatcherDeleteWatch(string id, Func this.DoRequest(DELETE, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true)); ///Represents a DELETE on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// @@ -10393,11 +10267,11 @@ public ElasticsearchResponse XpackWatcherDeleteWatch(string id, Func this.DoRequestAsync(DELETE, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a PUT on /_xpack/watcher/watch/{id}/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10408,11 +10282,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatch(string id, PostData< where T : class => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{id}/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10423,11 +10297,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatch(string id, PostData< where T : class => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), cancellationToken, body, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10437,11 +10311,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatch(PostData bod where T : class => this.DoRequest(PUT, Url($"_xpack/watcher/watch/_execute"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10451,11 +10325,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatch(PostData bod where T : class => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/_execute"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{id}/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10466,11 +10340,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatchPost(string id, PostD where T : class => this.DoRequest(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), body, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{id}/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10481,11 +10355,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatchPost(string id, PostD where T : class => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10495,11 +10369,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatchPost(PostData where T : class => this.DoRequest(POST, Url($"_xpack/watcher/watch/_execute"), body, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -10509,11 +10383,11 @@ public ElasticsearchResponse XpackWatcherExecuteWatchPost(PostData where T : class => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/_execute"), cancellationToken, body, _params(requestParameters)); ///Represents a GET on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// @@ -10523,11 +10397,11 @@ public ElasticsearchResponse XpackWatcherGetWatch(string id, Func this.DoRequest(GET, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), null, _params(requestParameters, allow404: true)); ///Represents a GET on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// @@ -10537,11 +10411,11 @@ public ElasticsearchResponse XpackWatcherGetWatch(string id, Func this.DoRequestAsync(GET, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), cancellationToken, null, _params(requestParameters, allow404: true)); ///Represents a PUT on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -10552,11 +10426,11 @@ public ElasticsearchResponse XpackWatcherPutWatch(string id, PostData this.DoRequest(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), body, _params(requestParameters)); ///Represents a PUT on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -10567,11 +10441,11 @@ public ElasticsearchResponse XpackWatcherPutWatch(string id, PostData this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -10582,11 +10456,11 @@ public ElasticsearchResponse XpackWatcherPutWatchPost(string id, PostData< where T : class => this.DoRequest(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), body, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -10597,11 +10471,11 @@ public ElasticsearchResponse XpackWatcherPutWatchPost(string id, PostData< where T : class => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), cancellationToken, body, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/_restart - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html /// @@ -10610,11 +10484,11 @@ public ElasticsearchResponse XpackWatcherRestart(Func this.DoRequest(POST, Url($"_xpack/watcher/_restart"), null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/_restart - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html /// @@ -10623,11 +10497,11 @@ public ElasticsearchResponse XpackWatcherRestart(Func this.DoRequestAsync(POST, Url($"_xpack/watcher/_restart"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/_start - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// @@ -10636,11 +10510,11 @@ public ElasticsearchResponse XpackWatcherStart(Func this.DoRequest(POST, Url($"_xpack/watcher/_start"), null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/_start - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// @@ -10649,11 +10523,11 @@ public ElasticsearchResponse XpackWatcherStart(Func this.DoRequestAsync(POST, Url($"_xpack/watcher/_start"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/watcher/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -10662,11 +10536,11 @@ public ElasticsearchResponse XpackWatcherStats(Func this.DoRequest(GET, Url($"_xpack/watcher/stats"), null, _params(requestParameters)); ///Represents a GET on /_xpack/watcher/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -10675,11 +10549,11 @@ public ElasticsearchResponse XpackWatcherStats(Func this.DoRequestAsync(GET, Url($"_xpack/watcher/stats"), cancellationToken, null, _params(requestParameters)); ///Represents a GET on /_xpack/watcher/stats/{watcher_stats_metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -10689,11 +10563,11 @@ public ElasticsearchResponse XpackWatcherStats(WatcherStatsMetric watcher_ where T : class => this.DoRequest(GET, Url($"_xpack/watcher/stats/{watcher_stats_metric.NotNull("watcher_stats_metric")}"), null, _params(requestParameters)); ///Represents a GET on /_xpack/watcher/stats/{watcher_stats_metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -10703,11 +10577,11 @@ public ElasticsearchResponse XpackWatcherStats(WatcherStatsMetric watcher_ where T : class => this.DoRequestAsync(GET, Url($"_xpack/watcher/stats/{watcher_stats_metric.NotNull("watcher_stats_metric")}"), cancellationToken, null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/_stop - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// @@ -10716,11 +10590,11 @@ public ElasticsearchResponse XpackWatcherStop(Func this.DoRequest(POST, Url($"_xpack/watcher/_stop"), null, _params(requestParameters)); ///Represents a POST on /_xpack/watcher/_stop - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// diff --git a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs index f2383b2fc39..643a3475b80 100644 --- a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs @@ -28,11 +28,11 @@ public partial interface IElasticLowLevelClient //IElasticsearchSerializer Serializer { get; } ///Represents a POST on /_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -41,11 +41,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Bulk(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -54,11 +54,11 @@ public partial interface IElasticLowLevelClient Task> BulkAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -68,11 +68,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Bulk(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -82,11 +82,11 @@ public partial interface IElasticLowLevelClient Task> BulkAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -97,11 +97,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Bulk(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -112,11 +112,11 @@ public partial interface IElasticLowLevelClient Task> BulkAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -125,11 +125,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse BulkPut(PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -138,11 +138,11 @@ public partial interface IElasticLowLevelClient Task> BulkPutAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -152,11 +152,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse BulkPut(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -166,11 +166,11 @@ public partial interface IElasticLowLevelClient Task> BulkPutAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/{type}/_bulk - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -181,11 +181,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse BulkPut(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/{type}/_bulk - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html /// @@ -196,11 +196,11 @@ public partial interface IElasticLowLevelClient Task> BulkPutAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/aliases - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -208,11 +208,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatAliases(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/aliases - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -220,11 +220,11 @@ public partial interface IElasticLowLevelClient Task> CatAliasesAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/aliases/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -233,11 +233,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatAliases(string name, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/aliases/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html /// @@ -246,11 +246,11 @@ public partial interface IElasticLowLevelClient Task> CatAliasesAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/allocation - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -258,11 +258,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatAllocation(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/allocation - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -270,11 +270,11 @@ public partial interface IElasticLowLevelClient Task> CatAllocationAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/allocation/{node_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -283,11 +283,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatAllocation(string node_id, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/allocation/{node_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html /// @@ -296,11 +296,11 @@ public partial interface IElasticLowLevelClient Task> CatAllocationAsync(string node_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -308,11 +308,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatCount(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -320,11 +320,11 @@ public partial interface IElasticLowLevelClient Task> CatCountAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/count/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -333,11 +333,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatCount(string index, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/count/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html /// @@ -346,11 +346,11 @@ public partial interface IElasticLowLevelClient Task> CatCountAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/fielddata - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -358,11 +358,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatFielddata(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/fielddata - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -370,11 +370,11 @@ public partial interface IElasticLowLevelClient Task> CatFielddataAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/fielddata/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -383,11 +383,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatFielddata(string fields, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/fielddata/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html /// @@ -396,11 +396,11 @@ public partial interface IElasticLowLevelClient Task> CatFielddataAsync(string fields, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/health - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html /// @@ -408,11 +408,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatHealth(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/health - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html /// @@ -420,11 +420,11 @@ public partial interface IElasticLowLevelClient Task> CatHealthAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html /// @@ -432,11 +432,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatHelp(Func requestParameters = null) where T : class; ///Represents a GET on /_cat - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html /// @@ -444,11 +444,11 @@ public partial interface IElasticLowLevelClient Task> CatHelpAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/indices - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -456,11 +456,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatIndices(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/indices - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -468,11 +468,11 @@ public partial interface IElasticLowLevelClient Task> CatIndicesAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/indices/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -481,11 +481,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatIndices(string index, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/indices/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html /// @@ -494,11 +494,11 @@ public partial interface IElasticLowLevelClient Task> CatIndicesAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/master - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html /// @@ -506,11 +506,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatMaster(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/master - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html /// @@ -518,11 +518,11 @@ public partial interface IElasticLowLevelClient Task> CatMasterAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/nodeattrs - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html /// @@ -530,11 +530,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatNodeattrs(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/nodeattrs - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html /// @@ -542,11 +542,11 @@ public partial interface IElasticLowLevelClient Task> CatNodeattrsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/nodes - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html /// @@ -554,11 +554,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatNodes(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/nodes - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html /// @@ -566,11 +566,11 @@ public partial interface IElasticLowLevelClient Task> CatNodesAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/pending_tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html /// @@ -578,11 +578,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatPendingTasks(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/pending_tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html /// @@ -590,11 +590,11 @@ public partial interface IElasticLowLevelClient Task> CatPendingTasksAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/plugins - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html /// @@ -602,11 +602,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatPlugins(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/plugins - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html /// @@ -614,11 +614,11 @@ public partial interface IElasticLowLevelClient Task> CatPluginsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/recovery - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -626,11 +626,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatRecovery(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/recovery - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -638,11 +638,11 @@ public partial interface IElasticLowLevelClient Task> CatRecoveryAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/recovery/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -651,11 +651,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatRecovery(string index, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/recovery/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html /// @@ -664,11 +664,11 @@ public partial interface IElasticLowLevelClient Task> CatRecoveryAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/repositories - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html /// @@ -676,11 +676,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatRepositories(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/repositories - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html /// @@ -688,11 +688,11 @@ public partial interface IElasticLowLevelClient Task> CatRepositoriesAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/segments - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -700,11 +700,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatSegments(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/segments - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -712,11 +712,11 @@ public partial interface IElasticLowLevelClient Task> CatSegmentsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/segments/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -725,11 +725,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatSegments(string index, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/segments/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html /// @@ -738,11 +738,11 @@ public partial interface IElasticLowLevelClient Task> CatSegmentsAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -750,11 +750,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatShards(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -762,11 +762,11 @@ public partial interface IElasticLowLevelClient Task> CatShardsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/shards/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -775,11 +775,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatShards(string index, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/shards/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html /// @@ -788,11 +788,11 @@ public partial interface IElasticLowLevelClient Task> CatShardsAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/snapshots - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -800,11 +800,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatSnapshots(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/snapshots - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -812,11 +812,11 @@ public partial interface IElasticLowLevelClient Task> CatSnapshotsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/snapshots/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -825,11 +825,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatSnapshots(string repository, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/snapshots/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html /// @@ -838,11 +838,11 @@ public partial interface IElasticLowLevelClient Task> CatSnapshotsAsync(string repository, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -850,11 +850,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatTasks(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -862,11 +862,11 @@ public partial interface IElasticLowLevelClient Task> CatTasksAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/templates - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -874,11 +874,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatTemplates(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/templates - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -886,11 +886,11 @@ public partial interface IElasticLowLevelClient Task> CatTemplatesAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/templates/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -899,11 +899,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatTemplates(string name, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/templates/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html /// @@ -912,11 +912,11 @@ public partial interface IElasticLowLevelClient Task> CatTemplatesAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/thread_pool - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -924,11 +924,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatThreadPool(Func requestParameters = null) where T : class; ///Represents a GET on /_cat/thread_pool - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -936,11 +936,11 @@ public partial interface IElasticLowLevelClient Task> CatThreadPoolAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cat/thread_pool/{thread_pool_patterns} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -949,11 +949,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CatThreadPool(string thread_pool_patterns, Func requestParameters = null) where T : class; ///Represents a GET on /_cat/thread_pool/{thread_pool_patterns} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// @@ -962,11 +962,11 @@ public partial interface IElasticLowLevelClient Task> CatThreadPoolAsync(string thread_pool_patterns, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_search/scroll - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -975,11 +975,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClearScroll(PostData body, Func requestParameters = null) where T : class; ///Represents a DELETE on /_search/scroll - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -988,11 +988,11 @@ public partial interface IElasticLowLevelClient Task> ClearScrollAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/allocation/explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1000,11 +1000,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterAllocationExplainGet(Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/allocation/explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1012,11 +1012,11 @@ public partial interface IElasticLowLevelClient Task> ClusterAllocationExplainGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_cluster/allocation/explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1025,11 +1025,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterAllocationExplain(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_cluster/allocation/explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html /// @@ -1038,11 +1038,11 @@ public partial interface IElasticLowLevelClient Task> ClusterAllocationExplainAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1050,11 +1050,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterGetSettings(Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1062,11 +1062,11 @@ public partial interface IElasticLowLevelClient Task> ClusterGetSettingsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/health - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1074,11 +1074,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterHealth(Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/health - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1086,11 +1086,11 @@ public partial interface IElasticLowLevelClient Task> ClusterHealthAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/health/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1099,11 +1099,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterHealth(string index, Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/health/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html /// @@ -1112,11 +1112,11 @@ public partial interface IElasticLowLevelClient Task> ClusterHealthAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/pending_tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html /// @@ -1124,11 +1124,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterPendingTasks(Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/pending_tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html /// @@ -1136,11 +1136,11 @@ public partial interface IElasticLowLevelClient Task> ClusterPendingTasksAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_cluster/settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1149,11 +1149,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterPutSettings(PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_cluster/settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html /// @@ -1161,12 +1161,36 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> ClusterPutSettingsAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + ///Represents a GET on /_remote/info + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + ElasticsearchResponse ClusterRemoteInfo(Func requestParameters = null) where T : class; + + ///Represents a GET on /_remote/info + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task> ClusterRemoteInfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + ///Represents a POST on /_cluster/reroute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html /// @@ -1175,11 +1199,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterReroute(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_cluster/reroute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html /// @@ -1188,11 +1212,11 @@ public partial interface IElasticLowLevelClient Task> ClusterRerouteAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/state - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1200,11 +1224,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterState(Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/state - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1212,11 +1236,11 @@ public partial interface IElasticLowLevelClient Task> ClusterStateAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/state/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1225,11 +1249,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterState(string metric, Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/state/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1238,11 +1262,11 @@ public partial interface IElasticLowLevelClient Task> ClusterStateAsync(string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/state/{metric}/{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1252,11 +1276,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterState(string metric, string index, Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/state/{metric}/{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html /// @@ -1266,11 +1290,11 @@ public partial interface IElasticLowLevelClient Task> ClusterStateAsync(string metric, string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1278,11 +1302,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterStats(Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1290,11 +1314,11 @@ public partial interface IElasticLowLevelClient Task> ClusterStatsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/stats/nodes/{node_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1303,11 +1327,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ClusterStats(string node_id, Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/stats/nodes/{node_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html /// @@ -1316,11 +1340,11 @@ public partial interface IElasticLowLevelClient Task> ClusterStatsAsync(string node_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1329,11 +1353,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Count(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1342,11 +1366,11 @@ public partial interface IElasticLowLevelClient Task> CountAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1356,11 +1380,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Count(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1370,11 +1394,11 @@ public partial interface IElasticLowLevelClient Task> CountAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1385,11 +1409,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Count(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1400,11 +1424,11 @@ public partial interface IElasticLowLevelClient Task> CountAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1412,11 +1436,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CountGet(Func requestParameters = null) where T : class; ///Represents a GET on /_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1424,11 +1448,11 @@ public partial interface IElasticLowLevelClient Task> CountGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1437,11 +1461,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CountGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1450,11 +1474,11 @@ public partial interface IElasticLowLevelClient Task> CountGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_count - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1464,11 +1488,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CountGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_count - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html /// @@ -1478,11 +1502,11 @@ public partial interface IElasticLowLevelClient Task> CountGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/{type}/{id}/_create - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1494,11 +1518,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Create(string index, string type, string id, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/{type}/{id}/_create - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1510,11 +1534,11 @@ public partial interface IElasticLowLevelClient Task> CreateAsync(string index, string type, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/{id}/_create - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1526,11 +1550,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse CreatePost(string index, string type, string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/{id}/_create - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -1542,11 +1566,11 @@ public partial interface IElasticLowLevelClient Task> CreatePostAsync(string index, string type, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html /// @@ -1557,11 +1581,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Delete(string index, string type, string id, Func requestParameters = null) where T : class; ///Represents a DELETE on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html /// @@ -1572,11 +1596,11 @@ public partial interface IElasticLowLevelClient Task> DeleteAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_delete_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1586,11 +1610,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse DeleteByQuery(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_delete_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1600,11 +1624,11 @@ public partial interface IElasticLowLevelClient Task> DeleteByQueryAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_delete_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1615,11 +1639,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse DeleteByQuery(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_delete_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html /// @@ -1629,92 +1653,38 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> DeleteByQueryAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a DELETE on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse DeleteScript(string lang, Func requestParameters = null) where T : class; - - ///Represents a DELETE on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> DeleteScriptAsync(string lang, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - - ///Represents a DELETE on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a DELETE on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse DeleteScript(string lang, string id, Func requestParameters = null) where T : class; + ElasticsearchResponse DeleteScript(string id, Func requestParameters = null) where T : class; - ///Represents a DELETE on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a DELETE on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> DeleteScriptAsync(string lang, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - - ///Represents a DELETE on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse DeleteTemplate(string id, Func requestParameters = null) where T : class; - - ///Represents a DELETE on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> DeleteTemplateAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> DeleteScriptAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a HEAD on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -1725,11 +1695,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Exists(string index, string type, string id, Func requestParameters = null) where T : class; ///Represents a HEAD on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -1740,13 +1710,13 @@ public partial interface IElasticLowLevelClient Task> ExistsAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a HEAD on /{index}/{type}/{id}/_source - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// ///The name of the index ///The type of the document; use `_all` to fetch the first document matching the ID across all types @@ -1755,13 +1725,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ExistsSource(string index, string type, string id, Func requestParameters = null) where T : class; ///Represents a HEAD on /{index}/{type}/{id}/_source - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// ///The name of the index ///The type of the document; use `_all` to fetch the first document matching the ID across all types @@ -1770,11 +1740,11 @@ public partial interface IElasticLowLevelClient Task> ExistsSourceAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/{id}/_explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1785,11 +1755,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ExplainGet(string index, string type, string id, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/{id}/_explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1800,11 +1770,11 @@ public partial interface IElasticLowLevelClient Task> ExplainGetAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/{id}/_explain - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1816,11 +1786,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Explain(string index, string type, string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/{id}/_explain - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html /// @@ -1832,89 +1802,89 @@ public partial interface IElasticLowLevelClient Task> ExplainAsync(string index, string type, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse FieldCapsGet(Func requestParameters = null) where T : class; ///Represents a GET on /_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> FieldCapsGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse FieldCapsGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> FieldCapsGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///Field json objects containing an array of field names ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse FieldCaps(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///Field json objects containing an array of field names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> FieldCapsAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_field_caps - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Field json objects containing an array of field names @@ -1922,129 +1892,25 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse FieldCaps(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_field_caps - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html /// ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Field json objects containing an array of field names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> FieldCapsAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse FieldStatsGet(Func requestParameters = null) where T : class; - - ///Represents a GET on /_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> FieldStatsGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - - ///Represents a GET on /{index}/_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse FieldStatsGet(string index, Func requestParameters = null) where T : class; - - ///Represents a GET on /{index}/_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> FieldStatsGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - - ///Represents a POST on /_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse FieldStats(PostData body, Func requestParameters = null) where T : class; - - ///Represents a POST on /_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> FieldStatsAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - - ///Represents a POST on /{index}/_field_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse FieldStats(string index, PostData body, Func requestParameters = null) where T : class; - - ///Represents a POST on /{index}/_field_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html - /// - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - ///Field json objects containing the name and optionally a range to filter out indices result, that have results outside the defined bounds - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> FieldStatsAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2055,11 +1921,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Get(string index, string type, string id, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2069,66 +1935,38 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> GetAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse GetScript(string lang, Func requestParameters = null) where T : class; - - ///Represents a GET on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> GetScriptAsync(string lang, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - - ///Represents a GET on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html - /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse GetScript(string lang, string id, Func requestParameters = null) where T : class; + ElasticsearchResponse GetScript(string id, Func requestParameters = null) where T : class; - ///Represents a GET on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> GetScriptAsync(string lang, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> GetScriptAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/{id}/_source - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2139,11 +1977,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse GetSource(string index, string type, string id, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/{id}/_source - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html /// @@ -2153,38 +1991,12 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> GetSourceAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse GetTemplate(string id, Func requestParameters = null) where T : class; - - ///Represents a GET on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html - /// - ///Template ID - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> GetTemplateAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a POST on /{index}/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2195,11 +2007,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Index(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2210,11 +2022,11 @@ public partial interface IElasticLowLevelClient Task> IndexAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2226,11 +2038,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Index(string index, string type, string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2242,11 +2054,11 @@ public partial interface IElasticLowLevelClient Task> IndexAsync(string index, string type, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2257,11 +2069,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndexPut(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2272,11 +2084,11 @@ public partial interface IElasticLowLevelClient Task> IndexPutAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/{type}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2288,11 +2100,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndexPut(string index, string type, string id, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/{type}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html /// @@ -2304,11 +2116,11 @@ public partial interface IElasticLowLevelClient Task> IndexPutAsync(string index, string type, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2316,11 +2128,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesAnalyzeGetForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2328,11 +2140,11 @@ public partial interface IElasticLowLevelClient Task> IndicesAnalyzeGetForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2341,11 +2153,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesAnalyzeGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2354,11 +2166,11 @@ public partial interface IElasticLowLevelClient Task> IndicesAnalyzeGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2367,11 +2179,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesAnalyzeForAll(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2380,11 +2192,11 @@ public partial interface IElasticLowLevelClient Task> IndicesAnalyzeForAllAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_analyze - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2394,11 +2206,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesAnalyze(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_analyze - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html /// @@ -2408,11 +2220,11 @@ public partial interface IElasticLowLevelClient Task> IndicesAnalyzeAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2420,11 +2232,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesClearCacheForAll(Func requestParameters = null) where T : class; ///Represents a POST on /_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2432,11 +2244,11 @@ public partial interface IElasticLowLevelClient Task> IndicesClearCacheForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2445,11 +2257,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesClearCache(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2458,11 +2270,11 @@ public partial interface IElasticLowLevelClient Task> IndicesClearCacheAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2470,11 +2282,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesClearCacheGetForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2482,11 +2294,11 @@ public partial interface IElasticLowLevelClient Task> IndicesClearCacheGetForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_cache/clear - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2495,11 +2307,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesClearCacheGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_cache/clear - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html /// @@ -2508,11 +2320,11 @@ public partial interface IElasticLowLevelClient Task> IndicesClearCacheGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_close - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -2521,11 +2333,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesClose(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_close - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -2534,11 +2346,11 @@ public partial interface IElasticLowLevelClient Task> IndicesCloseAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html /// @@ -2548,11 +2360,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesCreate(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html /// @@ -2562,11 +2374,11 @@ public partial interface IElasticLowLevelClient Task> IndicesCreateAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html /// @@ -2575,11 +2387,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesDelete(string index, Func requestParameters = null) where T : class; ///Represents a DELETE on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html /// @@ -2588,11 +2400,11 @@ public partial interface IElasticLowLevelClient Task> IndicesDeleteAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2602,11 +2414,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func requestParameters = null) where T : class; ///Represents a DELETE on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2616,11 +2428,11 @@ public partial interface IElasticLowLevelClient Task> IndicesDeleteAliasAsync(string index, string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2629,11 +2441,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func requestParameters = null) where T : class; ///Represents a DELETE on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2642,11 +2454,11 @@ public partial interface IElasticLowLevelClient Task> IndicesDeleteTemplateForAllAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a HEAD on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html /// @@ -2655,11 +2467,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesExists(string index, Func requestParameters = null) where T : class; ///Represents a HEAD on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html /// @@ -2668,11 +2480,11 @@ public partial interface IElasticLowLevelClient Task> IndicesExistsAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a HEAD on /_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2681,11 +2493,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesExistsAliasForAll(string name, Func requestParameters = null) where T : class; ///Represents a HEAD on /_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2694,11 +2506,11 @@ public partial interface IElasticLowLevelClient Task> IndicesExistsAliasForAllAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a HEAD on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2708,11 +2520,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesExistsAlias(string index, string name, Func requestParameters = null) where T : class; ///Represents a HEAD on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -2722,11 +2534,11 @@ public partial interface IElasticLowLevelClient Task> IndicesExistsAliasAsync(string index, string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a HEAD on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2735,11 +2547,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func requestParameters = null) where T : class; ///Represents a HEAD on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -2748,11 +2560,11 @@ public partial interface IElasticLowLevelClient Task> IndicesExistsTemplateForAllAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a HEAD on /{index}/_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html /// @@ -2762,11 +2574,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesExistsType(string index, string type, Func requestParameters = null) where T : class; ///Represents a HEAD on /{index}/_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html /// @@ -2776,11 +2588,11 @@ public partial interface IElasticLowLevelClient Task> IndicesExistsTypeAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2788,11 +2600,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlushForAll(Func requestParameters = null) where T : class; ///Represents a POST on /_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2800,11 +2612,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2813,11 +2625,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlush(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2826,11 +2638,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2838,11 +2650,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlushGetForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2850,11 +2662,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushGetForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2863,11 +2675,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlushGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html /// @@ -2876,11 +2688,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2888,11 +2700,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlushSyncedForAll(Func requestParameters = null) where T : class; ///Represents a POST on /_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2900,11 +2712,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushSyncedForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2913,11 +2725,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlushSynced(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2926,11 +2738,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushSyncedAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2938,11 +2750,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlushSyncedGetForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2950,11 +2762,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushSyncedGetForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_flush/synced - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2963,11 +2775,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesFlushSyncedGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_flush/synced - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html /// @@ -2976,11 +2788,11 @@ public partial interface IElasticLowLevelClient Task> IndicesFlushSyncedGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_forcemerge - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -2988,11 +2800,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesForcemergeForAll(Func requestParameters = null) where T : class; ///Represents a POST on /_forcemerge - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -3000,11 +2812,11 @@ public partial interface IElasticLowLevelClient Task> IndicesForcemergeForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_forcemerge - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -3013,11 +2825,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesForcemerge(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_forcemerge - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html /// @@ -3026,11 +2838,11 @@ public partial interface IElasticLowLevelClient Task> IndicesForcemergeAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html /// @@ -3039,11 +2851,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html /// @@ -3051,40 +2863,12 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> IndicesGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /{index}/{feature} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html - /// - ///A comma-separated list of index names - ///A comma-separated list of features - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse IndicesGet(string index, string feature, Func requestParameters = null) where T : class; - - ///Represents a GET on /{index}/{feature} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html - /// - ///A comma-separated list of index names - ///A comma-separated list of features - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> IndicesGetAsync(string index, string feature, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /_alias - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3092,11 +2876,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetAliasForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_alias - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3104,11 +2888,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetAliasForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3117,11 +2901,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetAliasForAll(string name, Func requestParameters = null) where T : class; ///Represents a GET on /_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3130,11 +2914,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetAliasForAllAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3144,11 +2928,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetAlias(string index, string name, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3158,11 +2942,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetAliasAsync(string index, string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_alias - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3171,11 +2955,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetAlias(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_alias - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3184,11 +2968,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetAliasAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_mapping/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3197,11 +2981,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetFieldMappingForAll(string fields, Func requestParameters = null) where T : class; ///Represents a GET on /_mapping/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3210,11 +2994,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetFieldMappingForAllAsync(string fields, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_mapping/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3224,11 +3008,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetFieldMapping(string index, string fields, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_mapping/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3238,11 +3022,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetFieldMappingAsync(string index, string fields, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_mapping/{type}/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3252,11 +3036,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string fields, Func requestParameters = null) where T : class; ///Represents a GET on /_mapping/{type}/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3266,11 +3050,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetFieldMappingForAllAsync(string type, string fields, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_mapping/{type}/field/{fields} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3281,11 +3065,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string fields, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_mapping/{type}/field/{fields} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html /// @@ -3296,11 +3080,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetFieldMappingAsync(string index, string type, string fields, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3308,11 +3092,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetMappingForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3320,11 +3104,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetMappingForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3333,11 +3117,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetMapping(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3346,11 +3130,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetMappingAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3359,11 +3143,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetMappingForAll(string type, Func requestParameters = null) where T : class; ///Represents a GET on /_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3372,11 +3156,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetMappingForAllAsync(string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3386,11 +3170,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetMapping(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html /// @@ -3400,11 +3184,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetMappingAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3412,11 +3196,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetSettingsForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3424,11 +3208,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetSettingsForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3437,11 +3221,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetSettings(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3450,11 +3234,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetSettingsAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_settings/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3464,11 +3248,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetSettings(string index, string name, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_settings/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3478,11 +3262,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetSettingsAsync(string index, string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_settings/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3491,11 +3275,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetSettingsForAll(string name, Func requestParameters = null) where T : class; ///Represents a GET on /_settings/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html /// @@ -3504,11 +3288,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetSettingsForAllAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3516,11 +3300,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetTemplateForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3528,11 +3312,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetTemplateForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3541,11 +3325,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetTemplateForAll(string name, Func requestParameters = null) where T : class; ///Represents a GET on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3554,11 +3338,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetTemplateForAllAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3566,11 +3350,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetUpgradeForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3578,11 +3362,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetUpgradeForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3591,11 +3375,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesGetUpgrade(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -3604,11 +3388,11 @@ public partial interface IElasticLowLevelClient Task> IndicesGetUpgradeAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_open - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -3617,11 +3401,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesOpen(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_open - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html /// @@ -3630,11 +3414,11 @@ public partial interface IElasticLowLevelClient Task> IndicesOpenAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3645,11 +3429,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutAlias(string index, string name, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3660,11 +3444,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutAliasAsync(string index, string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_alias/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3675,11 +3459,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutAliasPost(string index, string name, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_alias/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -3690,11 +3474,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutAliasPostAsync(string index, string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/{type}/_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3705,11 +3489,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutMapping(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/{type}/_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3720,11 +3504,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutMappingAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3734,11 +3518,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutMappingForAll(string type, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3748,11 +3532,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutMappingForAllAsync(string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3763,11 +3547,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutMappingPost(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3778,11 +3562,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutMappingPostAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_mapping/{type} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3792,11 +3576,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutMappingPostForAll(string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_mapping/{type} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html /// @@ -3806,11 +3590,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutMappingPostForAllAsync(string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -3819,11 +3603,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutSettingsForAll(PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -3832,11 +3616,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutSettingsForAllAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/_settings - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -3846,11 +3630,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutSettings(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/_settings - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html /// @@ -3860,11 +3644,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutSettingsAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3874,11 +3658,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutTemplateForAll(string name, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3888,11 +3672,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutTemplateForAllAsync(string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_template/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3902,11 +3686,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesPutTemplatePostForAll(string name, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_template/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html /// @@ -3916,11 +3700,11 @@ public partial interface IElasticLowLevelClient Task> IndicesPutTemplatePostForAllAsync(string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_recovery - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -3928,11 +3712,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRecoveryForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_recovery - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -3940,11 +3724,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRecoveryForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_recovery - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -3953,11 +3737,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRecovery(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_recovery - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html /// @@ -3966,11 +3750,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRecoveryAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -3978,11 +3762,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRefreshForAll(Func requestParameters = null) where T : class; ///Represents a POST on /_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -3990,11 +3774,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRefreshForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4003,11 +3787,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRefresh(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4016,11 +3800,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRefreshAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4028,11 +3812,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRefreshGetForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4040,11 +3824,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRefreshGetForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_refresh - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4053,11 +3837,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRefreshGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_refresh - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html /// @@ -4066,11 +3850,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRefreshGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{alias}/_rollover - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4080,11 +3864,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRolloverForAll(string alias, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{alias}/_rollover - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4094,11 +3878,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRolloverForAllAsync(string alias, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{alias}/_rollover/{new_index} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4109,11 +3893,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesRolloverForAll(string alias, string new_index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{alias}/_rollover/{new_index} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html /// @@ -4124,11 +3908,11 @@ public partial interface IElasticLowLevelClient Task> IndicesRolloverForAllAsync(string alias, string new_index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_segments - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4136,11 +3920,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesSegmentsForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_segments - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4148,11 +3932,11 @@ public partial interface IElasticLowLevelClient Task> IndicesSegmentsForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_segments - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4161,11 +3945,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesSegments(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_segments - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html /// @@ -4174,11 +3958,11 @@ public partial interface IElasticLowLevelClient Task> IndicesSegmentsAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_shard_stores - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4186,11 +3970,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesShardStoresForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_shard_stores - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4198,11 +3982,11 @@ public partial interface IElasticLowLevelClient Task> IndicesShardStoresForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_shard_stores - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4211,11 +3995,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesShardStores(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_shard_stores - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html /// @@ -4224,11 +4008,11 @@ public partial interface IElasticLowLevelClient Task> IndicesShardStoresAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /{index}/_shrink/{target} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4239,11 +4023,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesShrink(string index, string target, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /{index}/_shrink/{target} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4254,11 +4038,11 @@ public partial interface IElasticLowLevelClient Task> IndicesShrinkAsync(string index, string target, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_shrink/{target} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4269,11 +4053,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesShrinkPost(string index, string target, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_shrink/{target} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html /// @@ -4284,11 +4068,11 @@ public partial interface IElasticLowLevelClient Task> IndicesShrinkPostAsync(string index, string target, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4296,11 +4080,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesStatsForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4308,11 +4092,11 @@ public partial interface IElasticLowLevelClient Task> IndicesStatsForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4321,11 +4105,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesStatsForAll(string metric, Func requestParameters = null) where T : class; ///Represents a GET on /_stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4334,11 +4118,11 @@ public partial interface IElasticLowLevelClient Task> IndicesStatsForAllAsync(string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4347,11 +4131,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesStats(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4360,11 +4144,11 @@ public partial interface IElasticLowLevelClient Task> IndicesStatsAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4374,11 +4158,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesStats(string index, string metric, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html /// @@ -4388,11 +4172,11 @@ public partial interface IElasticLowLevelClient Task> IndicesStatsAsync(string index, string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_aliases - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -4401,11 +4185,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesUpdateAliasesForAll(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_aliases - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html /// @@ -4414,11 +4198,11 @@ public partial interface IElasticLowLevelClient Task> IndicesUpdateAliasesForAllAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4426,11 +4210,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesUpgradeForAll(Func requestParameters = null) where T : class; ///Represents a POST on /_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4438,11 +4222,11 @@ public partial interface IElasticLowLevelClient Task> IndicesUpgradeForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_upgrade - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4451,11 +4235,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesUpgrade(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_upgrade - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html /// @@ -4464,11 +4248,11 @@ public partial interface IElasticLowLevelClient Task> IndicesUpgradeAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4476,11 +4260,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesValidateQueryGetForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4488,11 +4272,11 @@ public partial interface IElasticLowLevelClient Task> IndicesValidateQueryGetForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4501,11 +4285,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesValidateQueryGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4514,11 +4298,11 @@ public partial interface IElasticLowLevelClient Task> IndicesValidateQueryGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4528,11 +4312,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4542,11 +4326,11 @@ public partial interface IElasticLowLevelClient Task> IndicesValidateQueryGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4555,11 +4339,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesValidateQueryForAll(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4568,11 +4352,11 @@ public partial interface IElasticLowLevelClient Task> IndicesValidateQueryForAllAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4582,11 +4366,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesValidateQuery(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4596,11 +4380,11 @@ public partial interface IElasticLowLevelClient Task> IndicesValidateQueryAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_validate/query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4611,11 +4395,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IndicesValidateQuery(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_validate/query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html /// @@ -4626,11 +4410,11 @@ public partial interface IElasticLowLevelClient Task> IndicesValidateQueryAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on / - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/ /// @@ -4638,11 +4422,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Info(Func requestParameters = null) where T : class; ///Represents a GET on / - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/ /// @@ -4650,11 +4434,11 @@ public partial interface IElasticLowLevelClient Task> InfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_ingest/pipeline/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4663,11 +4447,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestDeletePipeline(string id, Func requestParameters = null) where T : class; ///Represents a DELETE on /_ingest/pipeline/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4676,11 +4460,11 @@ public partial interface IElasticLowLevelClient Task> IngestDeletePipelineAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_ingest/pipeline - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4688,11 +4472,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestGetPipeline(Func requestParameters = null) where T : class; ///Represents a GET on /_ingest/pipeline - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4700,11 +4484,11 @@ public partial interface IElasticLowLevelClient Task> IngestGetPipelineAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_ingest/pipeline/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4713,11 +4497,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestGetPipeline(string id, Func requestParameters = null) where T : class; ///Represents a GET on /_ingest/pipeline/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4725,12 +4509,36 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> IngestGetPipelineAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + ///Represents a GET on /_ingest/processor/grok + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + ElasticsearchResponse IngestProcessorGrok(Func requestParameters = null) where T : class; + + ///Represents a GET on /_ingest/processor/grok + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task> IngestProcessorGrokAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + ///Represents a PUT on /_ingest/pipeline/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4740,11 +4548,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestPutPipeline(string id, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_ingest/pipeline/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4754,11 +4562,11 @@ public partial interface IElasticLowLevelClient Task> IngestPutPipelineAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_ingest/pipeline/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4766,11 +4574,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestSimulateGet(Func requestParameters = null) where T : class; ///Represents a GET on /_ingest/pipeline/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4778,11 +4586,11 @@ public partial interface IElasticLowLevelClient Task> IngestSimulateGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_ingest/pipeline/{id}/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4791,11 +4599,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestSimulateGet(string id, Func requestParameters = null) where T : class; ///Represents a GET on /_ingest/pipeline/{id}/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4804,11 +4612,11 @@ public partial interface IElasticLowLevelClient Task> IngestSimulateGetAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_ingest/pipeline/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4817,11 +4625,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestSimulate(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_ingest/pipeline/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4830,11 +4638,11 @@ public partial interface IElasticLowLevelClient Task> IngestSimulateAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_ingest/pipeline/{id}/_simulate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4844,11 +4652,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse IngestSimulate(string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_ingest/pipeline/{id}/_simulate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html /// @@ -4858,11 +4666,11 @@ public partial interface IElasticLowLevelClient Task> IngestSimulateAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4870,11 +4678,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MgetGet(Func requestParameters = null) where T : class; ///Represents a GET on /_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4882,11 +4690,11 @@ public partial interface IElasticLowLevelClient Task> MgetGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4895,11 +4703,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MgetGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4908,11 +4716,11 @@ public partial interface IElasticLowLevelClient Task> MgetGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4922,11 +4730,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MgetGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4936,11 +4744,11 @@ public partial interface IElasticLowLevelClient Task> MgetGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4949,11 +4757,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Mget(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4962,11 +4770,11 @@ public partial interface IElasticLowLevelClient Task> MgetAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4976,11 +4784,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Mget(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -4990,11 +4798,11 @@ public partial interface IElasticLowLevelClient Task> MgetAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_mget - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5005,11 +4813,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Mget(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_mget - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html /// @@ -5020,11 +4828,11 @@ public partial interface IElasticLowLevelClient Task> MgetAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5032,11 +4840,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchGet(Func requestParameters = null) where T : class; ///Represents a GET on /_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5044,11 +4852,11 @@ public partial interface IElasticLowLevelClient Task> MsearchGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5057,11 +4865,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5070,11 +4878,11 @@ public partial interface IElasticLowLevelClient Task> MsearchGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5084,11 +4892,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5098,11 +4906,11 @@ public partial interface IElasticLowLevelClient Task> MsearchGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5111,11 +4919,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Msearch(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5124,11 +4932,11 @@ public partial interface IElasticLowLevelClient Task> MsearchAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5138,11 +4946,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Msearch(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5152,11 +4960,11 @@ public partial interface IElasticLowLevelClient Task> MsearchAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_msearch - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5167,11 +4975,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Msearch(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_msearch - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html /// @@ -5182,11 +4990,11 @@ public partial interface IElasticLowLevelClient Task> MsearchAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5194,11 +5002,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchTemplateGet(Func requestParameters = null) where T : class; ///Represents a GET on /_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5206,11 +5014,11 @@ public partial interface IElasticLowLevelClient Task> MsearchTemplateGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5219,11 +5027,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchTemplateGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5232,11 +5040,11 @@ public partial interface IElasticLowLevelClient Task> MsearchTemplateGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5246,11 +5054,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchTemplateGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5260,11 +5068,11 @@ public partial interface IElasticLowLevelClient Task> MsearchTemplateGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5273,11 +5081,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchTemplate(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5286,11 +5094,11 @@ public partial interface IElasticLowLevelClient Task> MsearchTemplateAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5300,11 +5108,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchTemplate(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5314,11 +5122,11 @@ public partial interface IElasticLowLevelClient Task> MsearchTemplateAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_msearch/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5329,11 +5137,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MsearchTemplate(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_msearch/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html /// @@ -5344,11 +5152,11 @@ public partial interface IElasticLowLevelClient Task> MsearchTemplateAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5356,11 +5164,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MtermvectorsGet(Func requestParameters = null) where T : class; ///Represents a GET on /_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5368,11 +5176,11 @@ public partial interface IElasticLowLevelClient Task> MtermvectorsGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5381,11 +5189,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MtermvectorsGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5394,11 +5202,11 @@ public partial interface IElasticLowLevelClient Task> MtermvectorsGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5408,11 +5216,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse MtermvectorsGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5422,11 +5230,11 @@ public partial interface IElasticLowLevelClient Task> MtermvectorsGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5435,11 +5243,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Mtermvectors(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5448,11 +5256,11 @@ public partial interface IElasticLowLevelClient Task> MtermvectorsAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5462,11 +5270,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Mtermvectors(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5476,11 +5284,11 @@ public partial interface IElasticLowLevelClient Task> MtermvectorsAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_mtermvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5491,11 +5299,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Mtermvectors(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_mtermvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html /// @@ -5506,11 +5314,11 @@ public partial interface IElasticLowLevelClient Task> MtermvectorsAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/nodes/hotthreads - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5518,11 +5326,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesHotThreadsForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/nodes/hotthreads - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5530,11 +5338,11 @@ public partial interface IElasticLowLevelClient Task> NodesHotThreadsForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5543,11 +5351,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesHotThreads(string node_id, Func requestParameters = null) where T : class; ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html /// @@ -5556,11 +5364,11 @@ public partial interface IElasticLowLevelClient Task> NodesHotThreadsAsync(string node_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5568,11 +5376,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesInfoForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_nodes - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5580,11 +5388,11 @@ public partial interface IElasticLowLevelClient Task> NodesInfoForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/{node_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5593,11 +5401,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesInfo(string node_id, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/{node_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5606,11 +5414,11 @@ public partial interface IElasticLowLevelClient Task> NodesInfoAsync(string node_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5619,11 +5427,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesInfoForAll(string metric, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5632,11 +5440,11 @@ public partial interface IElasticLowLevelClient Task> NodesInfoForAllAsync(string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/{node_id}/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5646,11 +5454,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesInfo(string node_id, string metric, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/{node_id}/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html /// @@ -5660,11 +5468,11 @@ public partial interface IElasticLowLevelClient Task> NodesInfoAsync(string node_id, string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5672,11 +5480,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesStatsForAll(Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5684,11 +5492,11 @@ public partial interface IElasticLowLevelClient Task> NodesStatsForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/{node_id}/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5697,11 +5505,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesStats(string node_id, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/{node_id}/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5710,11 +5518,11 @@ public partial interface IElasticLowLevelClient Task> NodesStatsAsync(string node_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5723,11 +5531,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesStatsForAll(string metric, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5736,11 +5544,11 @@ public partial interface IElasticLowLevelClient Task> NodesStatsForAllAsync(string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/{node_id}/stats/{metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5750,11 +5558,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesStats(string node_id, string metric, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/{node_id}/stats/{metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5764,11 +5572,11 @@ public partial interface IElasticLowLevelClient Task> NodesStatsAsync(string node_id, string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/stats/{metric}/{index_metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5778,11 +5586,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/stats/{metric}/{index_metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5792,11 +5600,11 @@ public partial interface IElasticLowLevelClient Task> NodesStatsForAllAsync(string metric, string index_metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5807,11 +5615,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func requestParameters = null) where T : class; ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html /// @@ -5821,208 +5629,256 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a HEAD on / - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/ + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse Ping(Func requestParameters = null) where T : class; + ElasticsearchResponse NodesUsageForAll(Func requestParameters = null) where T : class; - ///Represents a HEAD on / - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/ + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> PingAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> NodesUsageForAllAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a PUT on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/{node_id}/usage + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// - ///Script language - ///The document + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse PutScript(string lang, PostData body, Func requestParameters = null) where T : class; + ElasticsearchResponse NodesUsage(string node_id, Func requestParameters = null) where T : class; - ///Represents a PUT on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/{node_id}/usage + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// - ///Script language - ///The document + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> PutScriptAsync(string lang, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> NodesUsageAsync(string node_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a PUT on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage/{metric} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html /// - ///Script language - ///Script ID - ///The document + ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse PutScript(string lang, string id, PostData body, Func requestParameters = null) where T : class; + ElasticsearchResponse NodesUsageForAll(string metric, Func requestParameters = null) where T : class; - ///Represents a PUT on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /_nodes/usage/{metric} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html + /// + ///Limit the information returned to the specified metrics + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task> NodesUsageForAllAsync(string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + + ///Represents a GET on /_nodes/{node_id}/usage/{metric} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///A func that allows you to describe the querystring parameters & request specific connection settings. + ElasticsearchResponse NodesUsage(string node_id, string metric, Func requestParameters = null) where T : class; + + ///Represents a GET on /_nodes/{node_id}/usage/{metric} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task> NodesUsageAsync(string node_id, string metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + + ///Represents a HEAD on / + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/ + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + ElasticsearchResponse Ping(Func requestParameters = null) where T : class; + + ///Represents a HEAD on / + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/ /// - ///Script language - ///Script ID - ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> PutScriptAsync(string lang, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> PingAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a POST on /_scripts/{lang} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a PUT on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse PutScriptPost(string lang, PostData body, Func requestParameters = null) where T : class; + ElasticsearchResponse PutScript(string id, PostData body, Func requestParameters = null) where T : class; - ///Represents a POST on /_scripts/{lang} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a PUT on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> PutScriptPostAsync(string lang, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> PutScriptAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a POST on /_scripts/{lang}/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a PUT on /_scripts/{id}/{context} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse PutScriptPost(string lang, string id, PostData body, Func requestParameters = null) where T : class; + ElasticsearchResponse PutScript(string id, string context, PostData body, Func requestParameters = null) where T : class; - ///Represents a POST on /_scripts/{lang}/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a PUT on /_scripts/{id}/{context} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Script language ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> PutScriptPostAsync(string lang, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> PutScriptAsync(string id, string context, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a PUT on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse PutTemplate(string id, PostData body, Func requestParameters = null) where T : class; + ElasticsearchResponse PutScriptPost(string id, PostData body, Func requestParameters = null) where T : class; - ///Represents a PUT on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> PutTemplateAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> PutScriptPostAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a POST on /_search/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id}/{context} + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse PutTemplatePost(string id, PostData body, Func requestParameters = null) where T : class; + ElasticsearchResponse PutScriptPost(string id, string context, PostData body, Func requestParameters = null) where T : class; - ///Represents a POST on /_search/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /_scripts/{id}/{context} + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html + ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html /// - ///Template ID + ///Script ID + ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> PutTemplatePostAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + Task> PutScriptPostAsync(string id, string context, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_reindex - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6031,11 +5887,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Reindex(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_reindex - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6044,11 +5900,11 @@ public partial interface IElasticLowLevelClient Task> ReindexAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_reindex/{task_id}/_rethrottle - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6057,11 +5913,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ReindexRethrottle(string task_id, Func requestParameters = null) where T : class; ///Represents a POST on /_reindex/{task_id}/_rethrottle - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html /// @@ -6069,36 +5925,12 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> ReindexRethrottleAsync(string task_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /_remote/info - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-remote-info.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - ElasticsearchResponse RemoteInfo(Func requestParameters = null) where T : class; - - ///Represents a GET on /_remote/info - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed - /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-remote-info.html - /// - ///A func that allows you to describe the querystring parameters & request specific connection settings. - Task> RemoteInfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /_render/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6106,11 +5938,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse RenderSearchTemplateGet(Func requestParameters = null) where T : class; ///Represents a GET on /_render/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6118,11 +5950,11 @@ public partial interface IElasticLowLevelClient Task> RenderSearchTemplateGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_render/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6131,11 +5963,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse RenderSearchTemplateGet(string id, Func requestParameters = null) where T : class; ///Represents a GET on /_render/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6144,11 +5976,11 @@ public partial interface IElasticLowLevelClient Task> RenderSearchTemplateGetAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_render/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6157,11 +5989,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse RenderSearchTemplate(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_render/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6170,11 +6002,11 @@ public partial interface IElasticLowLevelClient Task> RenderSearchTemplateAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_render/template/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6184,11 +6016,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse RenderSearchTemplate(string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_render/template/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html /// @@ -6198,11 +6030,11 @@ public partial interface IElasticLowLevelClient Task> RenderSearchTemplateAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_search/scroll - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6210,11 +6042,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse ScrollGet(Func requestParameters = null) where T : class; ///Represents a GET on /_search/scroll - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6222,11 +6054,11 @@ public partial interface IElasticLowLevelClient Task> ScrollGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_search/scroll - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6235,11 +6067,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Scroll(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_search/scroll - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html /// @@ -6248,11 +6080,11 @@ public partial interface IElasticLowLevelClient Task> ScrollAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6260,11 +6092,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchGet(Func requestParameters = null) where T : class; ///Represents a GET on /_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6272,11 +6104,11 @@ public partial interface IElasticLowLevelClient Task> SearchGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6285,11 +6117,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6298,11 +6130,11 @@ public partial interface IElasticLowLevelClient Task> SearchGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6312,11 +6144,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6326,11 +6158,11 @@ public partial interface IElasticLowLevelClient Task> SearchGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6339,11 +6171,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Search(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6352,11 +6184,11 @@ public partial interface IElasticLowLevelClient Task> SearchAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6366,11 +6198,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Search(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6380,11 +6212,11 @@ public partial interface IElasticLowLevelClient Task> SearchAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_search - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6395,11 +6227,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Search(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_search - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html /// @@ -6410,11 +6242,11 @@ public partial interface IElasticLowLevelClient Task> SearchAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6422,11 +6254,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchShardsGet(Func requestParameters = null) where T : class; ///Represents a GET on /_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6434,11 +6266,11 @@ public partial interface IElasticLowLevelClient Task> SearchShardsGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6447,11 +6279,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchShardsGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6460,11 +6292,11 @@ public partial interface IElasticLowLevelClient Task> SearchShardsGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6472,11 +6304,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchShards(Func requestParameters = null) where T : class; ///Represents a POST on /_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6484,11 +6316,11 @@ public partial interface IElasticLowLevelClient Task> SearchShardsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_search_shards - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6497,11 +6329,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchShards(string index, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_search_shards - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html /// @@ -6510,11 +6342,11 @@ public partial interface IElasticLowLevelClient Task> SearchShardsAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6522,11 +6354,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchTemplateGet(Func requestParameters = null) where T : class; ///Represents a GET on /_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6534,11 +6366,11 @@ public partial interface IElasticLowLevelClient Task> SearchTemplateGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6547,11 +6379,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchTemplateGet(string index, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6560,11 +6392,11 @@ public partial interface IElasticLowLevelClient Task> SearchTemplateGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6574,11 +6406,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchTemplateGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6588,11 +6420,11 @@ public partial interface IElasticLowLevelClient Task> SearchTemplateGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6601,11 +6433,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchTemplate(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6614,11 +6446,11 @@ public partial interface IElasticLowLevelClient Task> SearchTemplateAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6628,11 +6460,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchTemplate(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6642,11 +6474,11 @@ public partial interface IElasticLowLevelClient Task> SearchTemplateAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_search/template - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6657,11 +6489,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SearchTemplate(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_search/template - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html /// @@ -6672,11 +6504,11 @@ public partial interface IElasticLowLevelClient Task> SearchTemplateAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6687,11 +6519,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotCreate(string repository, string snapshot, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6702,11 +6534,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotCreateAsync(string repository, string snapshot, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6717,11 +6549,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6732,11 +6564,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotCreatePostAsync(string repository, string snapshot, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6746,11 +6578,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotCreateRepository(string repository, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6760,11 +6592,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotCreateRepositoryAsync(string repository, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6774,11 +6606,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6788,11 +6620,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotCreateRepositoryPostAsync(string repository, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6802,11 +6634,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func requestParameters = null) where T : class; ///Represents a DELETE on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6816,11 +6648,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotDeleteAsync(string repository, string snapshot, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6829,11 +6661,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotDeleteRepository(string repository, Func requestParameters = null) where T : class; ///Represents a DELETE on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6842,11 +6674,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotDeleteRepositoryAsync(string repository, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_snapshot/{repository}/{snapshot} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6856,11 +6688,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func requestParameters = null) where T : class; ///Represents a GET on /_snapshot/{repository}/{snapshot} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6870,11 +6702,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotGetAsync(string repository, string snapshot, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_snapshot - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6882,11 +6714,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotGetRepository(Func requestParameters = null) where T : class; ///Represents a GET on /_snapshot - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6894,11 +6726,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotGetRepositoryAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_snapshot/{repository} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6907,11 +6739,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotGetRepository(string repository, Func requestParameters = null) where T : class; ///Represents a GET on /_snapshot/{repository} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6920,11 +6752,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotGetRepositoryAsync(string repository, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6935,11 +6767,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotRestore(string repository, string snapshot, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6950,11 +6782,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotRestoreAsync(string repository, string snapshot, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_snapshot/_status - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6962,11 +6794,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotStatus(Func requestParameters = null) where T : class; ///Represents a GET on /_snapshot/_status - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6974,11 +6806,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotStatusAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_snapshot/{repository}/_status - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -6987,11 +6819,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotStatus(string repository, Func requestParameters = null) where T : class; ///Represents a GET on /_snapshot/{repository}/_status - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7000,11 +6832,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotStatusAsync(string repository, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_snapshot/{repository}/{snapshot}/_status - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7014,11 +6846,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotStatus(string repository, string snapshot, Func requestParameters = null) where T : class; ///Represents a GET on /_snapshot/{repository}/{snapshot}/_status - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7028,11 +6860,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotStatusAsync(string repository, string snapshot, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_snapshot/{repository}/_verify - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7041,11 +6873,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse SnapshotVerifyRepository(string repository, Func requestParameters = null) where T : class; ///Represents a POST on /_snapshot/{repository}/_verify - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html /// @@ -7054,11 +6886,11 @@ public partial interface IElasticLowLevelClient Task> SnapshotVerifyRepositoryAsync(string repository, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_tasks/_cancel - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7066,11 +6898,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse TasksCancel(Func requestParameters = null) where T : class; ///Represents a POST on /_tasks/_cancel - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7078,11 +6910,11 @@ public partial interface IElasticLowLevelClient Task> TasksCancelAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_tasks/{task_id}/_cancel - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7091,11 +6923,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse TasksCancel(string task_id, Func requestParameters = null) where T : class; ///Represents a POST on /_tasks/{task_id}/_cancel - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7104,11 +6936,11 @@ public partial interface IElasticLowLevelClient Task> TasksCancelAsync(string task_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_tasks/{task_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7117,11 +6949,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse TasksGet(string task_id, Func requestParameters = null) where T : class; ///Represents a GET on /_tasks/{task_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7130,11 +6962,11 @@ public partial interface IElasticLowLevelClient Task> TasksGetAsync(string task_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_tasks - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7142,11 +6974,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse TasksList(Func requestParameters = null) where T : class; ///Represents a GET on /_tasks - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html /// @@ -7154,11 +6986,11 @@ public partial interface IElasticLowLevelClient Task> TasksListAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7168,11 +7000,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse TermvectorsGet(string index, string type, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7182,11 +7014,11 @@ public partial interface IElasticLowLevelClient Task> TermvectorsGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /{index}/{type}/{id}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7197,11 +7029,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse TermvectorsGet(string index, string type, string id, Func requestParameters = null) where T : class; ///Represents a GET on /{index}/{type}/{id}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7212,11 +7044,11 @@ public partial interface IElasticLowLevelClient Task> TermvectorsGetAsync(string index, string type, string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7227,11 +7059,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Termvectors(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7242,11 +7074,11 @@ public partial interface IElasticLowLevelClient Task> TermvectorsAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/{id}/_termvectors - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7258,11 +7090,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Termvectors(string index, string type, string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/{id}/_termvectors - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html /// @@ -7274,11 +7106,11 @@ public partial interface IElasticLowLevelClient Task> TermvectorsAsync(string index, string type, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/{id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html /// @@ -7290,11 +7122,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse Update(string index, string type, string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/{id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html /// @@ -7306,11 +7138,11 @@ public partial interface IElasticLowLevelClient Task> UpdateAsync(string index, string type, string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/_update_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7320,11 +7152,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse UpdateByQuery(string index, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/_update_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7334,11 +7166,11 @@ public partial interface IElasticLowLevelClient Task> UpdateByQueryAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /{index}/{type}/_update_by_query - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7349,11 +7181,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse UpdateByQuery(string index, string type, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /{index}/{type}/_update_by_query - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html /// @@ -7363,96 +7195,96 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> UpdateByQueryAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /{index}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackGraphExploreGet(string index, Func requestParameters = null) where T : class; - ///Represents a GET on /{index}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackGraphExploreGetAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a GET on /{index}/{type}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/{type}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackGraphExploreGet(string index, string type, Func requestParameters = null) where T : class; - ///Represents a GET on /{index}/{type}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a GET on /{index}/{type}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackGraphExploreGetAsync(string index, string type, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a POST on /{index}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///Graph Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackGraphExplore(string index, PostData body, Func requestParameters = null) where T : class; - ///Represents a POST on /{index}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///Graph Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackGraphExploreAsync(string index, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; - ///Represents a POST on /{index}/{type}/_xpack/_graph/_explore - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/{type}/_xpack/graph/_explore + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types @@ -7460,14 +7292,14 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackGraphExplore(string index, string type, PostData body, Func requestParameters = null) where T : class; - ///Represents a POST on /{index}/{type}/_xpack/_graph/_explore - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Represents a POST on /{index}/{type}/_xpack/graph/_explore + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/graph/current/explore.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html /// ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types @@ -7475,12 +7307,62 @@ public partial interface IElasticLowLevelClient ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackGraphExploreAsync(string index, string type, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + ///Represents a GET on /_xpack/migration/deprecations + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + ElasticsearchResponse XpackDeprecationInfo(Func requestParameters = null) where T : class; + + ///Represents a GET on /_xpack/migration/deprecations + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task> XpackDeprecationInfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + + ///Represents a GET on /{index}/_xpack/migration/deprecations + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///Index pattern + ///A func that allows you to describe the querystring parameters & request specific connection settings. + ElasticsearchResponse XpackDeprecationInfo(string index, Func requestParameters = null) where T : class; + + ///Represents a GET on /{index}/_xpack/migration/deprecations + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed + /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth + ///See also: http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html + /// + ///Index pattern + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task> XpackDeprecationInfoAsync(string index, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; + ///Represents a GET on /_xpack - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html /// @@ -7488,11 +7370,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackInfo(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html /// @@ -7500,11 +7382,11 @@ public partial interface IElasticLowLevelClient Task> XpackInfoAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/usage - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: Retrieve information about xpack features usage /// @@ -7512,11 +7394,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackUsage(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/usage - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: Retrieve information about xpack features usage /// @@ -7524,85 +7406,85 @@ public partial interface IElasticLowLevelClient Task> XpackUsageAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/license - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackLicenseDelete(Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/license - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackLicenseDeleteAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/license - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackLicenseGet(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/license - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackLicenseGetAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/license - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///licenses to be installed ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackLicensePost(PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/license - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/shield/current/license-management.html + ///See also: https://www.elastic.co/guide/en/x-pack/current/license-management.html /// ///licenses to be installed ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackLicensePostAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_close - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// @@ -7611,11 +7493,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlCloseJob(string job_id, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_close - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// @@ -7624,11 +7506,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlCloseJobAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// @@ -7637,11 +7519,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlDeleteDatafeed(string datafeed_id, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// @@ -7650,11 +7532,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlDeleteDatafeedAsync(string datafeed_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/ml/_delete_expired_data - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -7662,11 +7544,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlDeleteExpiredData(Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/ml/_delete_expired_data - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -7674,11 +7556,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlDeleteExpiredDataAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// @@ -7687,11 +7569,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlDeleteJob(string job_id, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// @@ -7700,11 +7582,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlDeleteJobAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// @@ -7714,11 +7596,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlDeleteModelSnapshot(string job_id, string snapshot_id, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// @@ -7728,11 +7610,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlDeleteModelSnapshotAsync(string job_id, string snapshot_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// @@ -7742,11 +7624,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlFlushJob(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// @@ -7756,11 +7638,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlFlushJobAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -7769,11 +7651,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetBuckets(string job_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -7782,11 +7664,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetBucketsAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -7796,11 +7678,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetBuckets(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// @@ -7810,11 +7692,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetBucketsAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7824,11 +7706,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetCategories(string job_id, long category_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7838,11 +7720,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetCategoriesAsync(string job_id, long category_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7851,11 +7733,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetCategories(string job_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7864,11 +7746,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetCategoriesAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7879,11 +7761,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetCategories(string job_id, long category_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7894,11 +7776,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetCategoriesAsync(string job_id, long category_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7908,11 +7790,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetCategories(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// @@ -7922,11 +7804,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetCategoriesAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -7935,11 +7817,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetDatafeeds(string datafeed_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -7948,11 +7830,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetDatafeedsAsync(string datafeed_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/datafeeds - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -7960,11 +7842,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetDatafeeds(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/datafeeds - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// @@ -7972,11 +7854,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetDatafeedsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -7985,11 +7867,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetDatafeedStats(string datafeed_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -7998,11 +7880,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetDatafeedStatsAsync(string datafeed_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -8010,11 +7892,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetDatafeedStats(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// @@ -8022,11 +7904,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetDatafeedStatsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8035,11 +7917,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetInfluencers(string job_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8048,11 +7930,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetInfluencersAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8062,11 +7944,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetInfluencers(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// @@ -8076,11 +7958,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetInfluencersAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8089,11 +7971,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetJobs(string job_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8102,11 +7984,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetJobsAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/ - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8114,11 +7996,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetJobs(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/ - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// @@ -8126,11 +8008,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetJobsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8138,11 +8020,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetJobStats(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8150,11 +8032,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetJobStatsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8163,11 +8045,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetJobStats(string job_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// @@ -8176,11 +8058,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetJobStatsAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8190,11 +8072,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, string snapshot_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8204,11 +8086,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetModelSnapshotsAsync(string job_id, string snapshot_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8217,11 +8099,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8230,11 +8112,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetModelSnapshotsAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8245,11 +8127,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, string snapshot_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8260,11 +8142,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetModelSnapshotsAsync(string job_id, string snapshot_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8274,11 +8156,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetModelSnapshots(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// @@ -8288,11 +8170,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetModelSnapshotsAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8301,11 +8183,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetRecords(string job_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8314,11 +8196,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetRecordsAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8328,11 +8210,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlGetRecords(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// @@ -8342,11 +8224,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlGetRecordsAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_open - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// @@ -8355,11 +8237,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlOpenJob(string job_id, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_open - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// @@ -8368,11 +8250,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlOpenJobAsync(string job_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_data - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// @@ -8382,11 +8264,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlPostData(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_data - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// @@ -8396,11 +8278,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlPostDataAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// @@ -8409,11 +8291,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlPreviewDatafeed(string datafeed_id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// @@ -8422,11 +8304,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlPreviewDatafeedAsync(string datafeed_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// @@ -8436,11 +8318,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlPutDatafeed(string datafeed_id, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/ml/datafeeds/{datafeed_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// @@ -8450,11 +8332,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlPutDatafeedAsync(string datafeed_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// @@ -8464,11 +8346,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlPutJob(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/ml/anomaly_detectors/{job_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// @@ -8478,11 +8360,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlPutJobAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// @@ -8493,11 +8375,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlRevertModelSnapshot(string job_id, string snapshot_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// @@ -8508,11 +8390,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlRevertModelSnapshotAsync(string job_id, string snapshot_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_start - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// @@ -8522,11 +8404,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlStartDatafeed(string datafeed_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_start - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// @@ -8536,11 +8418,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlStartDatafeedAsync(string datafeed_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// @@ -8549,11 +8431,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlStopDatafeed(string datafeed_id, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// @@ -8562,11 +8444,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlStopDatafeedAsync(string datafeed_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// @@ -8576,11 +8458,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlUpdateDatafeed(string datafeed_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/datafeeds/{datafeed_id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// @@ -8590,11 +8472,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlUpdateDatafeedAsync(string datafeed_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// @@ -8604,11 +8486,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlUpdateJob(string job_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// @@ -8618,11 +8500,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlUpdateJobAsync(string job_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// @@ -8633,11 +8515,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlUpdateModelSnapshot(string job_id, string snapshot_id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// @@ -8648,11 +8530,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlUpdateModelSnapshotAsync(string job_id, string snapshot_id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -8661,11 +8543,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlValidate(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -8674,11 +8556,11 @@ public partial interface IElasticLowLevelClient Task> XpackMlValidateAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate/detector - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -8687,11 +8569,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackMlValidateDetector(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/ml/anomaly_detectors/_validate/detector - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: /// @@ -8700,37 +8582,37 @@ public partial interface IElasticLowLevelClient Task> XpackMlValidateDetectorAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/security/_authenticate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityAuthenticate(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/security/_authenticate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityAuthenticateAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/security/user/{username}/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -8738,13 +8620,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityChangePassword(string username, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/security/user/{username}/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -8752,39 +8634,39 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityChangePasswordAsync(string username, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/security/user/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityChangePassword(PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/security/user/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityChangePasswordAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/user/{username}/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -8792,13 +8674,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityChangePasswordPost(string username, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/user/{username}/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///The username of the user to change the password for ///the new password for the user @@ -8806,475 +8688,475 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityChangePasswordPostAsync(string username, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/user/_password - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityChangePasswordPost(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/user/_password - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html /// ///the new password for the user ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityChangePasswordPostAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/realm/{realms}/_clear_cache - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html /// ///Comma-separated list of realms to clear ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityClearCachedRealms(string realms, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/realm/{realms}/_clear_cache - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html /// ///Comma-separated list of realms to clear ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityClearCachedRealmsAsync(string realms, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/role/{name}/_clear_cache - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityClearCachedRoles(string name, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/role/{name}/_clear_cache - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityClearCachedRolesAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-delete-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityDeleteRole(string name, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-delete-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityDeleteRoleAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-delete-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping /// ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityDeleteRoleMapping(string name, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-delete-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping /// ///Role-mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityDeleteRoleMappingAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-delete-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user /// ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityDeleteUser(string username, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-delete-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user /// ///username ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityDeleteUserAsync(string username, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/security/user/{username}/_disable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityDisableUser(string username, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/security/user/{username}/_disable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityDisableUserAsync(string username, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/user/{username}/_disable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityDisableUserPost(string username, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/user/{username}/_disable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user /// ///The username of the user to disable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityDisableUserPostAsync(string username, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/security/user/{username}/_enable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityEnableUser(string username, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/security/user/{username}/_enable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityEnableUserAsync(string username, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/user/{username}/_enable - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityEnableUserPost(string username, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/user/{username}/_enable - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user /// ///The username of the user to enable ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityEnableUserPostAsync(string username, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityGetRole(string name, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///Role name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityGetRoleAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/security/role - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityGetRole(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/security/role - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityGetRoleAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityGetRoleMapping(string name, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///Role-Mapping name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityGetRoleMappingAsync(string name, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/security/role_mapping - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityGetRoleMapping(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/security/role_mapping - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityGetRoleMappingAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/oauth2/token - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-get-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token /// ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityGetToken(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/oauth2/token - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-get-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token /// ///The token request to get ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityGetTokenAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityGetUser(string username, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A comma-separated list of usernames ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityGetUserAsync(string username, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/security/user - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityGetUser(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/security/user - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityGetUserAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/security/oauth2/token - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-invalidate-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token /// ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. ElasticsearchResponse XpackSecurityInvalidateToken(PostData body, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/security/oauth2/token - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-invalidate-token + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token /// ///The token to invalidate ///A func that allows you to describe the querystring parameters & request specific connection settings. Task> XpackSecurityInvalidateTokenAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -9282,13 +9164,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityPutRole(string name, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -9296,13 +9178,13 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityPutRoleAsync(string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/role/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -9310,13 +9192,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityPutRolePost(string name, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/role/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role /// ///Role name ///The role to add @@ -9324,13 +9206,13 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityPutRolePostAsync(string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -9338,13 +9220,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityPutRoleMapping(string name, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -9352,13 +9234,13 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityPutRoleMappingAsync(string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/role_mapping/{name} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -9366,13 +9248,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityPutRoleMappingPost(string name, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/role_mapping/{name} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping /// ///Role-mapping name ///The role to add @@ -9380,13 +9262,13 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityPutRoleMappingPostAsync(string name, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -9394,13 +9276,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityPutUser(string username, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -9408,13 +9290,13 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityPutUserAsync(string username, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/security/user/{username} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -9422,13 +9304,13 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackSecurityPutUserPost(string username, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/security/user/{username} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth - ///See also: https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user + ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user /// ///The username of the User ///The user to add @@ -9436,11 +9318,11 @@ public partial interface IElasticLowLevelClient Task> XpackSecurityPutUserPostAsync(string username, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9449,11 +9331,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherAckWatch(string watch_id, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9462,11 +9344,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherAckWatchAsync(string watch_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9476,11 +9358,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherAckWatch(string watch_id, string action_id, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9490,11 +9372,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherAckWatchAsync(string watch_id, string action_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9503,11 +9385,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherAckWatchPost(string watch_id, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9516,11 +9398,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherAckWatchPostAsync(string watch_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9530,11 +9412,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherAckWatchPost(string watch_id, string action_id, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// @@ -9544,11 +9426,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherAckWatchPostAsync(string watch_id, string action_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -9557,11 +9439,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherActivateWatch(string watch_id, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -9570,11 +9452,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherActivateWatchAsync(string watch_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -9583,11 +9465,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherActivateWatchPost(string watch_id, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_activate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html /// @@ -9596,11 +9478,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherActivateWatchPostAsync(string watch_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -9609,11 +9491,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherDeactivateWatch(string watch_id, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -9622,11 +9504,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherDeactivateWatchAsync(string watch_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -9635,11 +9517,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherDeactivateWatchPost(string watch_id, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/watch/{watch_id}/_deactivate - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html /// @@ -9648,11 +9530,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherDeactivateWatchPostAsync(string watch_id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a DELETE on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// @@ -9661,11 +9543,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherDeleteWatch(string id, Func requestParameters = null) where T : class; ///Represents a DELETE on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// @@ -9674,11 +9556,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherDeleteWatchAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{id}/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9688,11 +9570,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherExecuteWatch(string id, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{id}/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9702,11 +9584,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherExecuteWatchAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/watcher/watch/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9715,11 +9597,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherExecuteWatch(PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/watcher/watch/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9728,11 +9610,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherExecuteWatchAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/watch/{id}/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9742,11 +9624,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherExecuteWatchPost(string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/watch/{id}/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9756,11 +9638,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherExecuteWatchPostAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/watch/_execute - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9769,11 +9651,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherExecuteWatchPost(PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/watch/_execute - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// @@ -9782,11 +9664,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherExecuteWatchPostAsync(PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// @@ -9795,11 +9677,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherGetWatch(string id, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// @@ -9808,11 +9690,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherGetWatchAsync(string id, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -9822,11 +9704,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherPutWatch(string id, PostData body, Func requestParameters = null) where T : class; ///Represents a PUT on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -9836,11 +9718,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherPutWatchAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/watch/{id} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -9850,11 +9732,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherPutWatchPost(string id, PostData body, Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/watch/{id} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// @@ -9864,11 +9746,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherPutWatchPostAsync(string id, PostData body, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/_restart - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html /// @@ -9876,11 +9758,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherRestart(Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/_restart - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html /// @@ -9888,11 +9770,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherRestartAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/_start - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// @@ -9900,11 +9782,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherStart(Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/_start - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// @@ -9912,11 +9794,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherStartAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/watcher/stats - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -9924,11 +9806,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherStats(Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/watcher/stats - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -9936,11 +9818,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherStatsAsync(Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a GET on /_xpack/watcher/stats/{watcher_stats_metric} - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -9949,11 +9831,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherStats(WatcherStatsMetric watcher_stats_metric, Func requestParameters = null) where T : class; ///Represents a GET on /_xpack/watcher/stats/{watcher_stats_metric} - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// @@ -9962,11 +9844,11 @@ public partial interface IElasticLowLevelClient Task> XpackWatcherStatsAsync(WatcherStatsMetric watcher_stats_metric, Func requestParameters = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class; ///Represents a POST on /_xpack/watcher/_stop - ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: ElasticsearchResponse<T> where the behavior depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// @@ -9974,11 +9856,11 @@ public partial interface IElasticLowLevelClient ElasticsearchResponse XpackWatcherStop(Func requestParameters = null) where T : class; ///Represents a POST on /_xpack/watcher/_stop - ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: - /// - T, an object you own that the elasticsearch response will be deserialized to - /// - byte[], no deserialization, but the response stream will be closed - /// - Stream, no deserialization, response stream is your responsibility - /// - VoidResponse, no deserialization, response stream never read and closed + ///Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T: + /// - T, an object you own that the elasticsearch response will be deserialized to + /// - byte[], no deserialization, but the response stream will be closed + /// - Stream, no deserialization, response stream is your responsibility + /// - VoidResponse, no deserialization, response stream never read and closed /// - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth ///See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// diff --git a/src/Nest/Aggregations/Bucket/Children/ChildrenAggregation.cs b/src/Nest/Aggregations/Bucket/Children/ChildrenAggregation.cs index b254cb4b592..a5bcdc8ec6b 100644 --- a/src/Nest/Aggregations/Bucket/Children/ChildrenAggregation.cs +++ b/src/Nest/Aggregations/Bucket/Children/ChildrenAggregation.cs @@ -9,16 +9,16 @@ namespace Nest public interface IChildrenAggregation : IBucketAggregation { [JsonProperty("type")] - TypeName Type { get; set; } + RelationName Type { get; set; } } public class ChildrenAggregation : BucketAggregationBase, IChildrenAggregation { - public TypeName Type { get; set; } + public RelationName Type { get; set; } internal ChildrenAggregation() { } - public ChildrenAggregation(string name, TypeName type) : base(name) + public ChildrenAggregation(string name, RelationName type) : base(name) { this.Type = type; } @@ -26,13 +26,13 @@ public ChildrenAggregation(string name, TypeName type) : base(name) internal override void WrapInContainer(AggregationContainer c) => c.Children = this; } - public class ChildrenAggregationDescriptor + public class ChildrenAggregationDescriptor : BucketAggregationDescriptorBase, IChildrenAggregation, T>, IChildrenAggregation where T : class { - TypeName IChildrenAggregation.Type { get; set; } = typeof(T); + RelationName IChildrenAggregation.Type { get; set; } = typeof(T); - public ChildrenAggregationDescriptor Type(TypeName type) => + public ChildrenAggregationDescriptor Type(RelationName type) => Assign(a => a.Type = type); public ChildrenAggregationDescriptor Type() where TChildType : class => diff --git a/src/Nest/Aggregations/Bucket/DateRange/DateRangeAggregation.cs b/src/Nest/Aggregations/Bucket/DateRange/DateRangeAggregation.cs index 441840616b6..5d8b5d5a014 100644 --- a/src/Nest/Aggregations/Bucket/DateRange/DateRangeAggregation.cs +++ b/src/Nest/Aggregations/Bucket/DateRange/DateRangeAggregation.cs @@ -16,10 +16,10 @@ public interface IDateRangeAggregation : IBucketAggregation [JsonProperty("format")] string Format { get; set; } - [JsonProperty(PropertyName = "ranges")] + [JsonProperty("ranges")] IEnumerable Ranges { get; set; } - [JsonProperty(PropertyName = "time_zone")] + [JsonProperty("time_zone")] string TimeZone { get; set; } } diff --git a/src/Nest/Aggregations/Bucket/DateRange/DateRangeExpression.cs b/src/Nest/Aggregations/Bucket/DateRange/DateRangeExpression.cs index c00dcab05fe..b1472e4ce78 100644 --- a/src/Nest/Aggregations/Bucket/DateRange/DateRangeExpression.cs +++ b/src/Nest/Aggregations/Bucket/DateRange/DateRangeExpression.cs @@ -3,15 +3,15 @@ namespace Nest { [JsonConverter(typeof(ReadAsTypeJsonConverter))] - public interface IDateRangeExpression + public interface IDateRangeExpression { - [JsonProperty(PropertyName = "from")] + [JsonProperty("from")] DateMath From { get; set; } - [JsonProperty(PropertyName = "to")] + [JsonProperty("to")] DateMath To { get; set; } - [JsonProperty(PropertyName = "key")] + [JsonProperty("key")] string Key { get; set; } } @@ -36,4 +36,4 @@ public class DateRangeExpressionDescriptor string IDateRangeExpression.Key { get; set; } public DateRangeExpressionDescriptor Key(string key) => Assign(a => a.Key = key); } -} \ No newline at end of file +} diff --git a/src/Nest/Aggregations/Bucket/GeoDistance/GeoDistanceAggregation.cs b/src/Nest/Aggregations/Bucket/GeoDistance/GeoDistanceAggregation.cs index 555179e4d54..495585f09ca 100644 --- a/src/Nest/Aggregations/Bucket/GeoDistance/GeoDistanceAggregation.cs +++ b/src/Nest/Aggregations/Bucket/GeoDistance/GeoDistanceAggregation.cs @@ -22,7 +22,7 @@ public interface IGeoDistanceAggregation : IBucketAggregation [JsonProperty("distance_type")] GeoDistanceType? DistanceType { get; set; } - [JsonProperty(PropertyName = "ranges")] + [JsonProperty("ranges")] #pragma warning disable 618 IEnumerable Ranges { get; set; } #pragma warning restore 618 diff --git a/src/Nest/Aggregations/Bucket/IpRange/IpRange.cs b/src/Nest/Aggregations/Bucket/IpRange/IpRange.cs index 8e5c04c4d63..a79beed37c7 100644 --- a/src/Nest/Aggregations/Bucket/IpRange/IpRange.cs +++ b/src/Nest/Aggregations/Bucket/IpRange/IpRange.cs @@ -4,15 +4,15 @@ namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonConverter(typeof(ReadAsTypeJsonConverter))] - public interface IIpRange + public interface IIpRange { - [JsonProperty(PropertyName = "from")] + [JsonProperty("from")] string From { get; set; } - [JsonProperty(PropertyName = "to")] + [JsonProperty("to")] string To { get; set; } - [JsonProperty(PropertyName = "mask")] + [JsonProperty("mask")] string Mask { get; set; } } diff --git a/src/Nest/Aggregations/Bucket/IpRange/IpRangeAggregation.cs b/src/Nest/Aggregations/Bucket/IpRange/IpRangeAggregation.cs index 05b909995b6..e6c179393aa 100644 --- a/src/Nest/Aggregations/Bucket/IpRange/IpRangeAggregation.cs +++ b/src/Nest/Aggregations/Bucket/IpRange/IpRangeAggregation.cs @@ -13,7 +13,7 @@ public interface IIpRangeAggregation : IBucketAggregation [JsonProperty("field")] Field Field { get; set; } - [JsonProperty(PropertyName = "ranges")] + [JsonProperty("ranges")] IEnumerable Ranges { get; set; } } diff --git a/src/Nest/Aggregations/Bucket/Range/RangeAggregation.cs b/src/Nest/Aggregations/Bucket/Range/RangeAggregation.cs index 98572724d5a..557fd325e8c 100644 --- a/src/Nest/Aggregations/Bucket/Range/RangeAggregation.cs +++ b/src/Nest/Aggregations/Bucket/Range/RangeAggregation.cs @@ -16,7 +16,7 @@ public interface IRangeAggregation : IBucketAggregation [JsonProperty("script")] IScript Script { get; set; } - [JsonProperty(PropertyName = "ranges")] + [JsonProperty("ranges")] #pragma warning disable 618 IEnumerable Ranges { get; set; } #pragma warning restore 618 diff --git a/src/Nest/Aggregations/Bucket/Terms/TermsOrder.cs b/src/Nest/Aggregations/Bucket/Terms/TermsOrder.cs index 1bf3faeccee..410c611ea40 100644 --- a/src/Nest/Aggregations/Bucket/Terms/TermsOrder.cs +++ b/src/Nest/Aggregations/Bucket/Terms/TermsOrder.cs @@ -11,7 +11,11 @@ public class TermsOrder public static TermsOrder CountAscending => new TermsOrder { Key = "_count", Order = SortOrder.Ascending }; public static TermsOrder CountDescending => new TermsOrder { Key = "_count", Order = SortOrder.Descending }; - public static TermsOrder TermAscending => new TermsOrder { Key = "_term", Order = SortOrder.Ascending }; - public static TermsOrder TermDescending => new TermsOrder { Key = "_term", Order = SortOrder.Descending }; + //here for backwards compatibility reasons, elasticsearch deprecrated _term as sort order in favor of _key + public static TermsOrder TermAscending => new TermsOrder { Key = "_key", Order = SortOrder.Ascending }; + public static TermsOrder TermDescending => new TermsOrder { Key = "_key", Order = SortOrder.Descending }; + + public static TermsOrder KeyAscending => new TermsOrder { Key = "_key", Order = SortOrder.Ascending }; + public static TermsOrder KeyDescending => new TermsOrder { Key = "_key", Order = SortOrder.Descending }; } } diff --git a/src/Nest/Aggregations/Metric/Percentiles/PercentilesAggregationJsonConverter.cs b/src/Nest/Aggregations/Metric/Percentiles/PercentilesAggregationJsonConverter.cs index 7ace25fb9cb..cfb0b38d3a7 100644 --- a/src/Nest/Aggregations/Metric/Percentiles/PercentilesAggregationJsonConverter.cs +++ b/src/Nest/Aggregations/Metric/Percentiles/PercentilesAggregationJsonConverter.cs @@ -40,7 +40,7 @@ protected void ReadMetricProperties(IMetricAggregation metric, Dictionary p.Name, p => p.Value); - if (scriptProps.ContainsKey("inline")) + if (scriptProps.ContainsKey("source") || scriptProps.ContainsKey("inline")) metric.Script = properties["script"].ToObject(); else if (scriptProps.ContainsKey("file")) metric.Script = properties["script"].ToObject(); diff --git a/src/Nest/Aggregations/Metric/TopHits/TopHitsAggregation.cs b/src/Nest/Aggregations/Metric/TopHits/TopHitsAggregation.cs index ab8b6586fa0..d733b3307dd 100644 --- a/src/Nest/Aggregations/Metric/TopHits/TopHitsAggregation.cs +++ b/src/Nest/Aggregations/Metric/TopHits/TopHitsAggregation.cs @@ -30,9 +30,6 @@ public interface ITopHitsAggregation : IMetricAggregation [JsonConverter(typeof(ReadAsTypeJsonConverter))] IScriptFields ScriptFields { get; set; } - [JsonProperty("fielddata_fields")] - Fields FielddataFields { get; set; } - [JsonProperty("stored_fields")] Fields StoredFields { get; set; } @@ -52,7 +49,6 @@ public class TopHitsAggregation : MetricAggregationBase, ITopHitsAggregation public IHighlight Highlight { get; set; } public bool? Explain { get; set; } public IScriptFields ScriptFields { get; set; } - public Fields FielddataFields { get; set; } public Fields StoredFields { get; set; } public bool? Version { get; set; } public bool? TrackScores { get; set; } @@ -83,8 +79,6 @@ public class TopHitsAggregationDescriptor IScriptFields ITopHitsAggregation.ScriptFields { get; set; } - Fields ITopHitsAggregation.FielddataFields { get; set; } - Fields ITopHitsAggregation.StoredFields { get; set; } bool? ITopHitsAggregation.Version { get; set; } @@ -116,9 +110,6 @@ public TopHitsAggregationDescriptor Highlight(Func, IH public TopHitsAggregationDescriptor ScriptFields(Func> scriptFieldsSelector) => Assign(a => a.ScriptFields = scriptFieldsSelector?.Invoke(new ScriptFieldsDescriptor())?.Value); - public TopHitsAggregationDescriptor FielddataFields(Func, IPromise> fields) => - Assign(a => a.FielddataFields = fields?.Invoke(new FieldsDescriptor())?.Value); - public TopHitsAggregationDescriptor StoredFields(Func, IPromise> fields) => Assign(a => a.StoredFields = fields?.Invoke(new FieldsDescriptor())?.Value); diff --git a/src/Nest/Analysis/Analyzers/AnalyzerBase.cs b/src/Nest/Analysis/Analyzers/AnalyzerBase.cs index 222424bec0c..6bad979cb01 100644 --- a/src/Nest/Analysis/Analyzers/AnalyzerBase.cs +++ b/src/Nest/Analysis/Analyzers/AnalyzerBase.cs @@ -5,10 +5,10 @@ namespace Nest [ContractJsonConverter(typeof(AnalyzerJsonConverter))] public interface IAnalyzer { - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] string Version { get; set; } - [JsonProperty(PropertyName = "type")] + [JsonProperty("type")] string Type { get; } } diff --git a/src/Nest/Analysis/Normalizers/NormalizerBase.cs b/src/Nest/Analysis/Normalizers/NormalizerBase.cs index 95d2a35a559..49088415885 100644 --- a/src/Nest/Analysis/Normalizers/NormalizerBase.cs +++ b/src/Nest/Analysis/Normalizers/NormalizerBase.cs @@ -5,10 +5,10 @@ namespace Nest [ContractJsonConverter(typeof(NormalizerJsonConverter))] public interface INormalizer { - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] string Version { get; set; } - [JsonProperty(PropertyName = "type")] + [JsonProperty("type")] string Type { get; } } diff --git a/src/Nest/Analysis/TokenFilters/HunspellTokenFilter.cs b/src/Nest/Analysis/TokenFilters/HunspellTokenFilter.cs index e220672ab2b..5c4355befac 100644 --- a/src/Nest/Analysis/TokenFilters/HunspellTokenFilter.cs +++ b/src/Nest/Analysis/TokenFilters/HunspellTokenFilter.cs @@ -1,19 +1,14 @@ -using Newtonsoft.Json; +using System; +using Newtonsoft.Json; namespace Nest { /// - /// Basic support for hunspell stemming. + /// Basic support for hunspell stemming. /// Hunspell dictionaries will be picked up from a dedicated hunspell directory on the filesystem. /// public interface IHunspellTokenFilter : ITokenFilter { - /// - /// If true, dictionary matching will be case insensitive. - /// - [JsonProperty("ignore_case")] - bool? IgnoreCase { get; set; } - /// /// A locale for this filter. If this is unset, the lang or language are used instead - so one of these has to be set. /// @@ -21,7 +16,7 @@ public interface IHunspellTokenFilter : ITokenFilter string Locale { get; set; } /// - /// The name of a dictionary.The path to your hunspell dictionaries should be configured via + /// The name of a dictionary.The path to your hunspell dictionaries should be configured via /// `indices.analysis.hunspell.dictionary.location` before. /// [JsonProperty("dictionary")] @@ -44,10 +39,7 @@ public interface IHunspellTokenFilter : ITokenFilter /// public class HunspellTokenFilter : TokenFilterBase, IHunspellTokenFilter { - public HunspellTokenFilter() : base("hunspell") { } - - /// - public bool? IgnoreCase { get; set; } + public HunspellTokenFilter() : base("hunspell") { } /// public string Locale { get; set; } @@ -65,14 +57,13 @@ public HunspellTokenFilter() : base("hunspell") { } } /// - public class HunspellTokenFilterDescriptor + public class HunspellTokenFilterDescriptor : TokenFilterDescriptorBase, IHunspellTokenFilter { protected override string Type => "hunspell"; bool? IHunspellTokenFilter.LongestOnly { get; set; } bool? IHunspellTokenFilter.Dedup { get; set; } - bool? IHunspellTokenFilter.IgnoreCase { get; set; } string IHunspellTokenFilter.Locale { get; set; } string IHunspellTokenFilter.Dictionary { get; set; } @@ -82,9 +73,6 @@ public class HunspellTokenFilterDescriptor /// public HunspellTokenFilterDescriptor Dedup(bool? dedup = true) => Assign(a => a.Dedup = dedup); - /// - public HunspellTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) => Assign(a => a.IgnoreCase = ignoreCase); - /// public HunspellTokenFilterDescriptor Locale(string locale) => Assign(a => a.Locale = locale); @@ -93,4 +81,4 @@ public class HunspellTokenFilterDescriptor } -} \ No newline at end of file +} diff --git a/src/Nest/Analysis/TokenFilters/Synonym/SynonymGraphTokenFilter.cs b/src/Nest/Analysis/TokenFilters/Synonym/SynonymGraphTokenFilter.cs index 577cb0055db..e12183673ff 100644 --- a/src/Nest/Analysis/TokenFilters/Synonym/SynonymGraphTokenFilter.cs +++ b/src/Nest/Analysis/TokenFilters/Synonym/SynonymGraphTokenFilter.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using Newtonsoft.Json; namespace Nest @@ -22,6 +23,7 @@ public interface ISynonymGraphTokenFilter : ITokenFilter IEnumerable Synonyms { get; set; } [JsonProperty("ignore_case")] + [Obsolete("Will be removed in Elasticsearch 7.x, if you need to ignore case add a lowercase filter before this synonym filter")] bool? IgnoreCase { get; set; } [JsonProperty("expand")] @@ -46,6 +48,7 @@ public SynonymGraphTokenFilter() : base("synonym_graph") { } public IEnumerable Synonyms { get; set; } /// + [Obsolete("Will be removed in Elasticsearch 7.x, if you need to ignore case add a lowercase filter before this synonym filter")] public bool? IgnoreCase { get; set; } /// @@ -69,6 +72,7 @@ public class SynonymGraphTokenFilterDescriptor IEnumerable ISynonymGraphTokenFilter.Synonyms { get; set; } /// + [Obsolete("Will be removed in Elasticsearch 7.x, if you need to ignore case add a lowercase filter before this synonym filter")] public SynonymGraphTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) => Assign(a => a.IgnoreCase = ignoreCase); /// diff --git a/src/Nest/Analysis/TokenFilters/Synonym/SynonymTokenFilter.cs b/src/Nest/Analysis/TokenFilters/Synonym/SynonymTokenFilter.cs index 0536428be6f..a7d62ae7578 100644 --- a/src/Nest/Analysis/TokenFilters/Synonym/SynonymTokenFilter.cs +++ b/src/Nest/Analysis/TokenFilters/Synonym/SynonymTokenFilter.cs @@ -1,10 +1,11 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using Newtonsoft.Json; namespace Nest { /// - /// The synonym token filter allows to easily handle synonyms during the analysis process. + /// The synonym token filter allows to easily handle synonyms during the analysis process. /// public interface ISynonymTokenFilter : ITokenFilter { @@ -21,6 +22,7 @@ public interface ISynonymTokenFilter : ITokenFilter IEnumerable Synonyms { get; set; } [JsonProperty("ignore_case")] + [Obsolete("Will be removed in Elasticsearch 7.x, if you need to ignore case add a lowercase filter before this synonym filter")] bool? IgnoreCase { get; set; } [JsonProperty("expand")] @@ -45,6 +47,7 @@ public SynonymTokenFilter() : base("synonym") { } public IEnumerable Synonyms { get; set; } /// + [Obsolete("Will be removed in Elasticsearch 7.x, if you need to ignore case add a lowercase filter before this synonym filter")] public bool? IgnoreCase { get; set; } /// @@ -54,7 +57,7 @@ public SynonymTokenFilter() : base("synonym") { } public string Tokenizer { get; set; } } /// - public class SynonymTokenFilterDescriptor + public class SynonymTokenFilterDescriptor : TokenFilterDescriptorBase, ISynonymTokenFilter { protected override string Type => "synonym"; @@ -67,6 +70,7 @@ public class SynonymTokenFilterDescriptor IEnumerable ISynonymTokenFilter.Synonyms { get; set; } /// + [Obsolete("Will be removed in Elasticsearch 7.x, if you need to ignore case add a lowercase filter before this synonym filter")] public SynonymTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) => Assign(a => a.IgnoreCase = ignoreCase); /// @@ -89,4 +93,4 @@ public class SynonymTokenFilterDescriptor } -} \ No newline at end of file +} diff --git a/src/Nest/Analysis/Tokenizers/TokenizerBase.cs b/src/Nest/Analysis/Tokenizers/TokenizerBase.cs index ef32dae565f..e484092dcce 100644 --- a/src/Nest/Analysis/Tokenizers/TokenizerBase.cs +++ b/src/Nest/Analysis/Tokenizers/TokenizerBase.cs @@ -5,10 +5,10 @@ namespace Nest [ContractJsonConverter(typeof(TokenizerJsonConverter))] public interface ITokenizer { - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] string Version { get; set; } - [JsonProperty(PropertyName = "type")] + [JsonProperty("type")] string Type { get; } } @@ -19,7 +19,7 @@ public abstract class TokenizerBase : ITokenizer public string Type { get; protected set; } } - public abstract class TokenizerDescriptorBase + public abstract class TokenizerDescriptorBase : DescriptorBase, ITokenizer where TTokenizer : TokenizerDescriptorBase, TTokenizerInterface where TTokenizerInterface : class, ITokenizer diff --git a/src/Nest/Cat/CatSnapshots/ElasticClient-CatSnapshots.cs b/src/Nest/Cat/CatSnapshots/ElasticClient-CatSnapshots.cs index a2b846fffa4..d774744bc81 100644 --- a/src/Nest/Cat/CatSnapshots/ElasticClient-CatSnapshots.cs +++ b/src/Nest/Cat/CatSnapshots/ElasticClient-CatSnapshots.cs @@ -29,7 +29,7 @@ public partial class ElasticClient { /// public ICatResponse CatSnapshots(Names repositories, Func selector = null) => - this.CatSnapshots(selector.InvokeOrDefault(new CatSnapshotsDescriptor(repositories))); + this.CatSnapshots(selector.InvokeOrDefault(new CatSnapshotsDescriptor().RepositoryName(repositories))); /// public ICatResponse CatSnapshots(ICatSnapshotsRequest request) => @@ -40,7 +40,7 @@ public Task> CatSnapshotsAsync( Names repositories, Func selector = null, CancellationToken cancellationToken = default(CancellationToken) - ) => this.CatSnapshotsAsync(selector.InvokeOrDefault(new CatSnapshotsDescriptor(repositories)), cancellationToken); + ) => this.CatSnapshotsAsync(selector.InvokeOrDefault(new CatSnapshotsDescriptor().RepositoryName(repositories)), cancellationToken); /// public Task> CatSnapshotsAsync(ICatSnapshotsRequest request, CancellationToken cancellationToken = default(CancellationToken)) => diff --git a/src/Nest/Cluster/ClusterHealth/ClusterHealthResponse.cs b/src/Nest/Cluster/ClusterHealth/ClusterHealthResponse.cs index db2809922f0..cbb80cb2d2e 100644 --- a/src/Nest/Cluster/ClusterHealth/ClusterHealthResponse.cs +++ b/src/Nest/Cluster/ClusterHealth/ClusterHealthResponse.cs @@ -22,31 +22,31 @@ public interface IClusterHealthResponse : IResponse [JsonObject] public class ClusterHealthResponse : ResponseBase, IClusterHealthResponse { - [JsonProperty(PropertyName = "cluster_name")] + [JsonProperty("cluster_name")] public string ClusterName { get; internal set; } - [JsonProperty(PropertyName = "status")] + [JsonProperty("status")] public string Status { get; internal set; } - [JsonProperty(PropertyName = "timed_out")] + [JsonProperty("timed_out")] public bool TimedOut { get; internal set; } - [JsonProperty(PropertyName = "number_of_nodes")] + [JsonProperty("number_of_nodes")] public int NumberOfNodes { get; internal set; } - [JsonProperty(PropertyName = "number_of_data_nodes")] + [JsonProperty("number_of_data_nodes")] public int NumberOfDataNodes { get; internal set; } - [JsonProperty(PropertyName = "active_primary_shards")] + [JsonProperty("active_primary_shards")] public int ActivePrimaryShards { get; internal set; } - [JsonProperty(PropertyName = "active_shards")] + [JsonProperty("active_shards")] public int ActiveShards { get; internal set; } - [JsonProperty(PropertyName = "relocating_shards")] + [JsonProperty("relocating_shards")] public int RelocatingShards { get; internal set; } - [JsonProperty(PropertyName = "initializing_shards")] + [JsonProperty("initializing_shards")] public int InitializingShards { get; internal set; } - [JsonProperty(PropertyName = "unassigned_shards")] + [JsonProperty("unassigned_shards")] public int UnassignedShards { get; internal set; } [JsonProperty(PropertyName="number_of_pending_tasks")] public int NumberOfPendingTasks { get; internal set; } - [JsonProperty(PropertyName = "indices")] + [JsonProperty("indices")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Indices { get; internal set; } = EmptyReadOnly.Dictionary; } diff --git a/src/Nest/Cluster/ClusterHealth/IndexHealthStats.cs b/src/Nest/Cluster/ClusterHealth/IndexHealthStats.cs index 2fafc799169..e27b045f37c 100644 --- a/src/Nest/Cluster/ClusterHealth/IndexHealthStats.cs +++ b/src/Nest/Cluster/ClusterHealth/IndexHealthStats.cs @@ -6,26 +6,26 @@ namespace Nest [JsonObject] public class IndexHealthStats { - [JsonProperty(PropertyName = "status")] + [JsonProperty("status")] public string Status { get; internal set; } - [JsonProperty(PropertyName = "number_of_shards")] + [JsonProperty("number_of_shards")] public int NumberOfShards { get; internal set; } - [JsonProperty(PropertyName = "number_of_replicas")] + [JsonProperty("number_of_replicas")] public int NumberOfReplicas { get; internal set; } - [JsonProperty(PropertyName = "active_primary_shards")] + [JsonProperty("active_primary_shards")] public int ActivePrimaryShards { get; internal set; } - [JsonProperty(PropertyName = "active_shards")] + [JsonProperty("active_shards")] public int ActiveShards { get; internal set; } - [JsonProperty(PropertyName = "relocating_shards")] + [JsonProperty("relocating_shards")] public int RelocatingShards { get; internal set; } - [JsonProperty(PropertyName = "initializing_shards")] + [JsonProperty("initializing_shards")] public int InitializingShards { get; internal set; } - [JsonProperty(PropertyName = "unassigned_shards")] + [JsonProperty("unassigned_shards")] public int UnassignedShards { get; internal set; } - [JsonProperty(PropertyName = "shards")] + [JsonProperty("shards")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Shards { get; internal set; } = EmptyReadOnly.Dictionary; diff --git a/src/Nest/Cluster/ClusterHealth/ShardHealthStats.cs b/src/Nest/Cluster/ClusterHealth/ShardHealthStats.cs index f63ec068e45..dfec508e080 100644 --- a/src/Nest/Cluster/ClusterHealth/ShardHealthStats.cs +++ b/src/Nest/Cluster/ClusterHealth/ShardHealthStats.cs @@ -5,17 +5,17 @@ namespace Nest [JsonObject] public class ShardHealthStats { - [JsonProperty(PropertyName = "status")] + [JsonProperty("status")] public string Status { get; internal set; } - [JsonProperty(PropertyName = "primary_active")] + [JsonProperty("primary_active")] public bool PrimaryActive { get; internal set; } - [JsonProperty(PropertyName = "active_shards")] + [JsonProperty("active_shards")] public int ActiveShards { get; internal set; } - [JsonProperty(PropertyName = "relocating_shards")] + [JsonProperty("relocating_shards")] public int RelocatingShards { get; internal set; } - [JsonProperty(PropertyName = "initializing_shards")] + [JsonProperty("initializing_shards")] public int InitializingShards { get; internal set; } - [JsonProperty(PropertyName = "unassigned_shards")] + [JsonProperty("unassigned_shards")] public int UnassignedShards { get; internal set; } } } diff --git a/src/Nest/Cluster/ClusterSettings/ClusterGetSettings/ClusterGetSettingsResponse.cs b/src/Nest/Cluster/ClusterSettings/ClusterGetSettings/ClusterGetSettingsResponse.cs index 7bf334687e0..6a04adf5c61 100644 --- a/src/Nest/Cluster/ClusterSettings/ClusterGetSettings/ClusterGetSettingsResponse.cs +++ b/src/Nest/Cluster/ClusterSettings/ClusterGetSettings/ClusterGetSettingsResponse.cs @@ -5,10 +5,10 @@ namespace Nest { public interface IClusterGetSettingsResponse : IResponse { - [JsonProperty(PropertyName = "persistent")] + [JsonProperty("persistent")] IReadOnlyDictionary Persistent { get; } - [JsonProperty(PropertyName = "transient")] + [JsonProperty("transient")] IReadOnlyDictionary Transient { get; } } diff --git a/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsRequest.cs b/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsRequest.cs index da1b6f65136..825c460ddb9 100644 --- a/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsRequest.cs +++ b/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsRequest.cs @@ -4,17 +4,17 @@ namespace Nest { - public partial interface IClusterPutSettingsRequest + public partial interface IClusterPutSettingsRequest { - [JsonProperty(PropertyName = "persistent")] + [JsonProperty("persistent")] IDictionary Persistent { get; set; } - [JsonProperty(PropertyName = "transient")] + [JsonProperty("transient")] IDictionary Transient { get; set; } } - - public partial class ClusterPutSettingsRequest + + public partial class ClusterPutSettingsRequest { public IDictionary Persistent { get; set; } @@ -22,7 +22,7 @@ public partial class ClusterPutSettingsRequest } [DescriptorFor("ClusterPutSettings")] - public partial class ClusterPutSettingsDescriptor + public partial class ClusterPutSettingsDescriptor { IDictionary IClusterPutSettingsRequest.Persistent { get; set; } diff --git a/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsResponse.cs b/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsResponse.cs index 1793eba6ed4..5d45c78f87f 100644 --- a/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsResponse.cs +++ b/src/Nest/Cluster/ClusterSettings/ClusterPutSettings/ClusterPutSettingsResponse.cs @@ -5,13 +5,13 @@ namespace Nest { public interface IClusterPutSettingsResponse : IResponse { - [JsonProperty(PropertyName = "acknowledged")] + [JsonProperty("acknowledged")] bool Acknowledged { get; } - [JsonProperty(PropertyName = "persistent")] + [JsonProperty("persistent")] IReadOnlyDictionary Persistent { get; } - [JsonProperty(PropertyName = "transient")] + [JsonProperty("transient")] IReadOnlyDictionary Transient { get; } } diff --git a/src/Nest/Cluster/NodesHotThreads/ElasticClient-NodesHotThreads.cs b/src/Nest/Cluster/NodesHotThreads/ElasticClient-NodesHotThreads.cs index 9ca44de1c28..0f47ba9dcf9 100644 --- a/src/Nest/Cluster/NodesHotThreads/ElasticClient-NodesHotThreads.cs +++ b/src/Nest/Cluster/NodesHotThreads/ElasticClient-NodesHotThreads.cs @@ -5,10 +5,10 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using Elasticsearch.Net; +using System.Threading; namespace Nest { - using System.Threading; using NodesHotThreadConverter = Func; public partial interface IElasticClient diff --git a/src/Nest/Cluster/NodesInfo/NodeInfo.cs b/src/Nest/Cluster/NodesInfo/NodeInfo.cs index 86b7350a325..d9c6f3998ad 100644 --- a/src/Nest/Cluster/NodesInfo/NodeInfo.cs +++ b/src/Nest/Cluster/NodesInfo/NodeInfo.cs @@ -7,22 +7,22 @@ namespace Nest [JsonObject] public class NodeInfo { - [JsonProperty(PropertyName = "name")] + [JsonProperty("name")] public string Name { get; internal set; } - [JsonProperty(PropertyName = "transport_address")] + [JsonProperty("transport_address")] public string TransportAddress { get; internal set; } - [JsonProperty(PropertyName = "host")] + [JsonProperty("host")] public string Host { get; internal set; } - [JsonProperty(PropertyName = "ip")] + [JsonProperty("ip")] public string Ip { get; internal set; } - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] public string Version { get; internal set; } - [JsonProperty(PropertyName = "build_hash")] + [JsonProperty("build_hash")] public string BuildHash { get; internal set; } /// @@ -32,30 +32,30 @@ public class NodeInfo [JsonProperty("roles")] public List Roles { get; internal set; } - [JsonProperty(PropertyName = "settings")] + [JsonProperty("settings")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public DynamicResponse Settings { get; internal set; } - [JsonProperty(PropertyName = "os")] + [JsonProperty("os")] public NodeOperatingSystemInfo OperatingSystem { get; internal set; } - [JsonProperty(PropertyName = "process")] + [JsonProperty("process")] public NodeProcessInfo Process { get; internal set; } - [JsonProperty(PropertyName = "jvm")] + [JsonProperty("jvm")] public NodeJvmInfo Jvm { get; internal set; } - [JsonProperty(PropertyName = "thread_pool")] + [JsonProperty("thread_pool")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public Dictionary ThreadPool { get; internal set; } - [JsonProperty(PropertyName = "network")] + [JsonProperty("network")] public NodeInfoNetwork Network { get; internal set; } - [JsonProperty(PropertyName = "transport")] + [JsonProperty("transport")] public NodeInfoTransport Transport { get; internal set; } - [JsonProperty(PropertyName = "http")] + [JsonProperty("http")] public NodeInfoHttp Http { get; internal set; } [JsonProperty("plugins")] @@ -65,176 +65,176 @@ public class NodeInfo [JsonObject] public class NodeOperatingSystemInfo { - [JsonProperty(PropertyName = "name")] + [JsonProperty("name")] public string Name { get; internal set; } - [JsonProperty(PropertyName = "arch")] + [JsonProperty("arch")] public string Architecture { get; internal set; } - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] public string Version { get; internal set; } - [JsonProperty(PropertyName = "refresh_interval_in_millis")] + [JsonProperty("refresh_interval_in_millis")] public int RefreshInterval { get; internal set; } - [JsonProperty(PropertyName = "available_processors")] + [JsonProperty("available_processors")] public int AvailableProcessors { get; internal set; } - [JsonProperty(PropertyName = "cpu")] + [JsonProperty("cpu")] public NodeInfoOSCPU Cpu { get; internal set; } - [JsonProperty(PropertyName = "mem")] + [JsonProperty("mem")] public NodeInfoMemory Mem { get; internal set; } - [JsonProperty(PropertyName = "swap")] + [JsonProperty("swap")] public NodeInfoMemory Swap { get; internal set; } } [JsonObject] public class NodeInfoOSCPU { - [JsonProperty(PropertyName = "vendor")] + [JsonProperty("vendor")] public string Vendor { get; internal set; } - [JsonProperty(PropertyName = "model")] + [JsonProperty("model")] public string Model { get; internal set; } - [JsonProperty(PropertyName = "mhz")] + [JsonProperty("mhz")] public int Mhz { get; internal set; } - [JsonProperty(PropertyName = "total_cores")] + [JsonProperty("total_cores")] public int TotalCores { get; internal set; } - [JsonProperty(PropertyName = "total_sockets")] + [JsonProperty("total_sockets")] public int TotalSockets { get; internal set; } - [JsonProperty(PropertyName = "cores_per_socket")] + [JsonProperty("cores_per_socket")] public int CoresPerSocket { get; internal set; } - [JsonProperty(PropertyName = "cache_size")] + [JsonProperty("cache_size")] public string CacheSize { get; internal set; } - [JsonProperty(PropertyName = "cache_size_in_bytes")] + [JsonProperty("cache_size_in_bytes")] public int CacheSizeInBytes { get; internal set; } } [JsonObject] public class NodeInfoMemory { - [JsonProperty(PropertyName = "total")] + [JsonProperty("total")] public string Total { get; internal set; } - [JsonProperty(PropertyName = "total_in_bytes")] + [JsonProperty("total_in_bytes")] public long TotalInBytes { get; internal set; } } [JsonObject] public class NodeProcessInfo { - [JsonProperty(PropertyName = "refresh_interval_in_millis")] + [JsonProperty("refresh_interval_in_millis")] public long RefreshIntervalInMilliseconds { get; internal set; } - [JsonProperty(PropertyName = "id")] + [JsonProperty("id")] public long Id { get; internal set; } - [JsonProperty(PropertyName = "mlockall")] + [JsonProperty("mlockall")] public bool MlockAll { get; internal set; } } [JsonObject] public class NodeJvmInfo { - [JsonProperty(PropertyName = "pid")] + [JsonProperty("pid")] public int PID { get; internal set; } - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] public string Version { get; internal set; } - [JsonProperty(PropertyName = "vm_name")] + [JsonProperty("vm_name")] public string VMName { get; internal set; } - [JsonProperty(PropertyName = "vm_version")] + [JsonProperty("vm_version")] public string VMVersion { get; internal set; } - [JsonProperty(PropertyName = "vm_vendor")] + [JsonProperty("vm_vendor")] public string VMVendor { get; internal set; } - [JsonProperty(PropertyName = "memory_pools")] + [JsonProperty("memory_pools")] public IEnumerable MemoryPools { get; internal set; } - [JsonProperty(PropertyName = "gc_collectors")] + [JsonProperty("gc_collectors")] public IEnumerable GCCollectors { get; internal set; } - [JsonProperty(PropertyName = "start_time_in_millis")] + [JsonProperty("start_time_in_millis")] public long StartTime { get; internal set; } - [JsonProperty(PropertyName = "mem")] + [JsonProperty("mem")] public NodeInfoJVMMemory Memory { get; internal set; } } [JsonObject] public class NodeInfoJVMMemory { - [JsonProperty(PropertyName = "heap_init")] + [JsonProperty("heap_init")] public string HeapInit { get; internal set; } - [JsonProperty(PropertyName = "heap_init_in_bytes")] + [JsonProperty("heap_init_in_bytes")] public long HeapInitInBytes { get; internal set; } - [JsonProperty(PropertyName = "heap_max")] + [JsonProperty("heap_max")] public string HeapMax { get; internal set; } - [JsonProperty(PropertyName = "heap_max_in_bytes")] + [JsonProperty("heap_max_in_bytes")] public long HeapMaxInBytes { get; internal set; } - [JsonProperty(PropertyName = "non_heap_init")] + [JsonProperty("non_heap_init")] public string NonHeapInit { get; internal set; } - [JsonProperty(PropertyName = "non_heap_init_in_bytes")] + [JsonProperty("non_heap_init_in_bytes")] public long NonHeapInitInBytes { get; internal set; } - [JsonProperty(PropertyName = "non_heap_max")] + [JsonProperty("non_heap_max")] public string NonHeapMax { get; internal set; } - [JsonProperty(PropertyName = "non_heap_max_in_bytes")] + [JsonProperty("non_heap_max_in_bytes")] public long NonHeapMaxInBytes { get; internal set; } - [JsonProperty(PropertyName = "direct_max")] + [JsonProperty("direct_max")] public string DirectMax { get; internal set; } - [JsonProperty(PropertyName = "direct_max_in_bytes")] + [JsonProperty("direct_max_in_bytes")] public long DirectMaxInBytes { get; internal set; } } [JsonObject] public class NodeThreadPoolInfo { - [JsonProperty(PropertyName = "type")] + [JsonProperty("type")] public string Type { get; internal set; } - [JsonProperty(PropertyName = "min")] + [JsonProperty("min")] public int? Min { get; internal set; } - [JsonProperty(PropertyName = "max")] + [JsonProperty("max")] public int? Max { get; internal set; } - [JsonProperty(PropertyName = "queue_size")] + [JsonProperty("queue_size")] public int? QueueSize { get; internal set; } - [JsonProperty(PropertyName = "keep_alive")] + [JsonProperty("keep_alive")] public string KeepAlive { get; internal set; } } [JsonObject] public class NodeInfoNetwork { - [JsonProperty(PropertyName = "refresh_interval")] + [JsonProperty("refresh_interval")] public int RefreshInterval { get; internal set; } - [JsonProperty(PropertyName = "primary_interface")] + [JsonProperty("primary_interface")] public NodeInfoNetworkInterface PrimaryInterface { get; internal set; } } [JsonObject] public class NodeInfoNetworkInterface { - [JsonProperty(PropertyName = "address")] + [JsonProperty("address")] public string Address { get; internal set; } - [JsonProperty(PropertyName = "name")] + [JsonProperty("name")] public string Name { get; internal set; } - [JsonProperty(PropertyName = "mac_address")] + [JsonProperty("mac_address")] public string MacAddress { get; internal set; } } [JsonObject] public class NodeInfoTransport { - [JsonProperty(PropertyName = "bound_address")] + [JsonProperty("bound_address")] public IEnumerable BoundAddress { get; internal set; } - [JsonProperty(PropertyName = "publish_address")] + [JsonProperty("publish_address")] public string PublishAddress { get; internal set; } } [JsonObject] public class NodeInfoHttp { - [JsonProperty(PropertyName = "bound_address")] + [JsonProperty("bound_address")] public IEnumerable BoundAddress { get; internal set; } - [JsonProperty(PropertyName = "publish_address")] + [JsonProperty("publish_address")] public string PublishAddress { get; internal set; } - [JsonProperty(PropertyName = "max_content_length")] + [JsonProperty("max_content_length")] public string MaxContentLength { get; internal set; } - [JsonProperty(PropertyName = "max_content_length_in_bytes")] + [JsonProperty("max_content_length_in_bytes")] public long MaxContentLengthInBytes { get; internal set; } } } diff --git a/src/Nest/Cluster/NodesInfo/NodesInfoResponse.cs b/src/Nest/Cluster/NodesInfo/NodesInfoResponse.cs index bd220661d73..41b21d856c4 100644 --- a/src/Nest/Cluster/NodesInfo/NodesInfoResponse.cs +++ b/src/Nest/Cluster/NodesInfo/NodesInfoResponse.cs @@ -12,10 +12,10 @@ public interface INodesInfoResponse : IResponse [JsonObject] public class NodesInfoResponse : ResponseBase, INodesInfoResponse { - [JsonProperty(PropertyName = "cluster_name")] + [JsonProperty("cluster_name")] public string ClusterName { get; internal set; } - [JsonProperty(PropertyName = "nodes")] + [JsonProperty("nodes")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Nodes { get; internal set; } = EmptyReadOnly.Dictionary; } diff --git a/src/Nest/Cluster/NodesStats/NodeStatsResponse.cs b/src/Nest/Cluster/NodesStats/NodeStatsResponse.cs index cdb8b6042af..d111552d709 100644 --- a/src/Nest/Cluster/NodesStats/NodeStatsResponse.cs +++ b/src/Nest/Cluster/NodesStats/NodeStatsResponse.cs @@ -5,10 +5,10 @@ namespace Nest { public interface INodesStatsResponse : IResponse { - [JsonProperty(PropertyName = "cluster_name")] + [JsonProperty("cluster_name")] string ClusterName { get; } - [JsonProperty(PropertyName = "nodes")] + [JsonProperty("nodes")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] IReadOnlyDictionary Nodes { get; } } diff --git a/src/Nest/Cluster/NodesUsage/ElasticClient-NodesUsage.cs b/src/Nest/Cluster/NodesUsage/ElasticClient-NodesUsage.cs new file mode 100644 index 00000000000..8c75b05cf8f --- /dev/null +++ b/src/Nest/Cluster/NodesUsage/ElasticClient-NodesUsage.cs @@ -0,0 +1,55 @@ +using System; +using System.IO; +using System.Threading.Tasks; +using Elasticsearch.Net; + +namespace Nest +{ + using System.Threading; + using NodesHotThreadConverter = Func; + + public partial interface IElasticClient + { + /// + /// The cluster nodes usage API allows to retrieve information on the usage of features for each node. + /// https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html + /// + /// An optional descriptor to further describe the nodes usage operation + INodesUsageResponse NodesUsage(Func selector = null); + + /// + INodesUsageResponse NodesUsage(INodesUsageRequest request); + + /// + Task NodesUsageAsync(Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + Task NodesUsageAsync(INodesUsageRequest request, CancellationToken cancellationToken = default(CancellationToken)); + } + + public partial class ElasticClient + { + /// + public INodesUsageResponse NodesUsage(Func selector = null) => + this.NodesUsage(selector.InvokeOrDefault(new NodesUsageDescriptor())); + + /// + public INodesUsageResponse NodesUsage(INodesUsageRequest request) => + this.Dispatcher.Dispatch( + request, + (p, d) => this.LowLevelDispatch.NodesUsageDispatch(p) + ); + + /// + public Task NodesUsageAsync(Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => + this.NodesUsageAsync(selector.InvokeOrDefault(new NodesUsageDescriptor()), cancellationToken); + + /// + public Task NodesUsageAsync(INodesUsageRequest request, CancellationToken cancellationToken = default(CancellationToken)) => + this.Dispatcher.DispatchAsync( + request, + cancellationToken, + (p, d, c) => this.LowLevelDispatch.NodesUsageDispatchAsync(p, c) + ); + } +} diff --git a/src/Nest/Cluster/NodesUsage/NodeUsageResponse.cs b/src/Nest/Cluster/NodesUsage/NodeUsageResponse.cs new file mode 100644 index 00000000000..d9170ccafe0 --- /dev/null +++ b/src/Nest/Cluster/NodesUsage/NodeUsageResponse.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Nest +{ + public class NodesMetadata + { + [JsonProperty("total")] + public int Total { get; internal set; } + + [JsonProperty("successful")] + public int Successful { get; internal set; } + + [JsonProperty("failed")] + public int Failed { get; internal set; } + } + + public class NodeUsageInformation + { + [JsonProperty("timestamp")] + [JsonConverter(typeof(EpochMillisecondsDateTimeJsonConverter))] + public DateTimeOffset Timestamp { get; internal set; } + + [JsonProperty("since")] + [JsonConverter(typeof(EpochMillisecondsDateTimeJsonConverter))] + public DateTimeOffset Since { get; internal set; } + + [JsonProperty("rest_actions")] + public IReadOnlyDictionary RestActions { get; internal set; } + } + + public interface INodesUsageResponse : IResponse + { + string ClusterName { get; } + + IReadOnlyDictionary Nodes { get; } + + NodesMetadata NodesMetadata { get; } + } + + public class NodesUsageResponse : ResponseBase, INodesUsageResponse + { + [JsonProperty("cluster_name")] + public string ClusterName { get; internal set; } + + [JsonProperty("nodes")] + public IReadOnlyDictionary Nodes { get; internal set; } = EmptyReadOnly.Dictionary; + + [JsonProperty("_nodes")] + public NodesMetadata NodesMetadata { get; internal set; } + } +} diff --git a/src/Nest/Cluster/NodesUsage/NodesUsageRequest.cs b/src/Nest/Cluster/NodesUsage/NodesUsageRequest.cs new file mode 100644 index 00000000000..0ff28c31084 --- /dev/null +++ b/src/Nest/Cluster/NodesUsage/NodesUsageRequest.cs @@ -0,0 +1,9 @@ +namespace Nest +{ + public partial interface INodesUsageRequest { } + + public partial class NodesUsageRequest { } + + [DescriptorFor("NodesUsage")] + public partial class NodesUsageDescriptor { } +} diff --git a/src/Nest/Cluster/RemoteInfo/ElasticClient-RemoteInfo.cs b/src/Nest/Cluster/RemoteInfo/ElasticClient-RemoteInfo.cs index 9c8ac319817..cb85115088e 100644 --- a/src/Nest/Cluster/RemoteInfo/ElasticClient-RemoteInfo.cs +++ b/src/Nest/Cluster/RemoteInfo/ElasticClient-RemoteInfo.cs @@ -34,7 +34,7 @@ public IRemoteInfoResponse RemoteInfo(Func this.Dispatcher.Dispatch( request, - (p, d) => this.LowLevelDispatch.RemoteInfoDispatch(p) + (p, d) => this.LowLevelDispatch.ClusterRemoteInfoDispatch(p) ); /// @@ -46,7 +46,7 @@ public IRemoteInfoResponse RemoteInfo(IRemoteInfoRequest request) => this.Dispatcher.DispatchAsync( request, cancellationToken, - (p, d, c) => this.LowLevelDispatch.RemoteInfoDispatchAsync(p, c) + (p, d, c) => this.LowLevelDispatch.ClusterRemoteInfoDispatchAsync(p, c) ); } } diff --git a/src/Nest/Cluster/RemoteInfo/RemoteInfoRequest.cs b/src/Nest/Cluster/RemoteInfo/RemoteInfoRequest.cs index e48ed2517d7..0638eb80228 100644 --- a/src/Nest/Cluster/RemoteInfo/RemoteInfoRequest.cs +++ b/src/Nest/Cluster/RemoteInfo/RemoteInfoRequest.cs @@ -4,5 +4,6 @@ public partial interface IRemoteInfoRequest { } public partial class RemoteInfoRequest { } + [DescriptorFor("ClusterRemoteInfo")] public partial class RemoteInfoDescriptor { } } diff --git a/src/Nest/Cluster/RootNodeInfo/RootVersionInfoResponse.cs b/src/Nest/Cluster/RootNodeInfo/RootVersionInfoResponse.cs index 46aaf44ec36..c0999df2f05 100644 --- a/src/Nest/Cluster/RootNodeInfo/RootVersionInfoResponse.cs +++ b/src/Nest/Cluster/RootNodeInfo/RootVersionInfoResponse.cs @@ -12,14 +12,14 @@ public interface IRootNodeInfoResponse : IResponse [JsonObject] public class RootNodeInfoResponse : ResponseBase, IRootNodeInfoResponse { - [JsonProperty(PropertyName = "name")] + [JsonProperty("name")] public string Name { get; internal set; } - [JsonProperty(PropertyName = "tagline")] + [JsonProperty("tagline")] public string Tagline { get; internal set; } - - [JsonProperty(PropertyName = "version")] + + [JsonProperty("version")] public ElasticsearchVersionInfo Version { get; internal set; } } -} \ No newline at end of file +} diff --git a/src/Nest/CommonAbstractions/ConnectionSettings/ClrTypeMapping.cs b/src/Nest/CommonAbstractions/ConnectionSettings/ClrTypeMapping.cs index 449acf68ec4..537d77fc502 100644 --- a/src/Nest/CommonAbstractions/ConnectionSettings/ClrTypeMapping.cs +++ b/src/Nest/CommonAbstractions/ConnectionSettings/ClrTypeMapping.cs @@ -7,10 +7,10 @@ namespace Nest { public interface IClrTypeMapping where T : class { - Type Type { get; } + Type Type { get; } /// - /// When specified dictates the default Elasticsearch index name for + /// When specified dictates the default Elasticsearch index name for /// string IndexName { get; set; } @@ -20,10 +20,15 @@ public interface IClrTypeMapping where T : class string TypeName { get; set; } /// - /// Allows you to set a default Id property on that NEST will evaluate + /// When specified dictates the relation name for to resolve to. + /// + string RelationName { get; set; } + + /// + /// Allows you to set a default Id property on that NEST will evaluate /// Expression> IdProperty { get; set; } - + /// /// When specified allows you to ignore or rename certain properties of clr type /// @@ -35,7 +40,7 @@ public class ClrTypeMapping : IClrTypeMapping where T : class public Type Type { get; } = typeof (T); /// - /// When specified dictates the default Elasticsearch index name for + /// When specified dictates the default Elasticsearch index name for /// public string IndexName { get; set; } @@ -45,7 +50,12 @@ public class ClrTypeMapping : IClrTypeMapping where T : class public string TypeName { get; set; } /// - /// Allows you to set a default Id property on that NEST will evaluate + /// When specified dictates the relation name for to resolve to. + /// + public string RelationName { get; set; } + + /// + /// Allows you to set a default Id property on that NEST will evaluate /// public Expression> IdProperty { get; set; } @@ -58,11 +68,12 @@ public class ClrTypeMappingDescriptor : DescriptorBase.Type { get; } = typeof (T); string IClrTypeMapping.IndexName { get; set; } string IClrTypeMapping.TypeName { get; set; } + string IClrTypeMapping.RelationName { get; set; } Expression> IClrTypeMapping.IdProperty { get; set; } IList> IClrTypeMapping.Properties { get; set; } = new List>(); /// - /// When specified dictates the default Elasticsearch index name for + /// When specified dictates the default Elasticsearch index name for /// public ClrTypeMappingDescriptor IndexName(string indexName) => Assign(a => a.IndexName = indexName); @@ -72,20 +83,25 @@ public class ClrTypeMappingDescriptor : DescriptorBase TypeName(string typeName) => Assign(a => a.TypeName = typeName); /// - /// Allows you to set a default Id property on that NEST will evaluate + /// When specified dictates the relation name for to resolve to. + /// + public ClrTypeMappingDescriptor RelationName(string relationName) => Assign(a => a.RelationName = relationName); + + /// + /// Allows you to set a default Id property on that NEST will evaluate /// public ClrTypeMappingDescriptor IdProperty(Expression> property) => Assign(a => a.IdProperty = property); /// /// When specified allows you to ignore on clr type /// - public ClrTypeMappingDescriptor Ignore(Expression> property) => + public ClrTypeMappingDescriptor Ignore(Expression> property) => Assign(a => a.Properties.Add(new IgnorePropertyMapping(property))); /// /// When specified allows you to rename on clr type /// - public ClrTypeMappingDescriptor Rename(Expression> property, string newName) => + public ClrTypeMappingDescriptor Rename(Expression> property, string newName) => Assign(a => a.Properties.Add(new RenamePropertyMapping(property, newName))); } diff --git a/src/Nest/CommonAbstractions/ConnectionSettings/ConnectionSettingsBase.cs b/src/Nest/CommonAbstractions/ConnectionSettings/ConnectionSettingsBase.cs index c02fb755cd4..636c5bdabb0 100644 --- a/src/Nest/CommonAbstractions/ConnectionSettings/ConnectionSettingsBase.cs +++ b/src/Nest/CommonAbstractions/ConnectionSettings/ConnectionSettingsBase.cs @@ -61,6 +61,9 @@ public abstract class ConnectionSettingsBase : ConnectionCo private readonly FluentDictionary _defaultTypeNames; FluentDictionary IConnectionSettingsValues.DefaultTypeNames => _defaultTypeNames; + private readonly FluentDictionary _defaultRelationNames; + FluentDictionary IConnectionSettingsValues.DefaultRelationNames => _defaultRelationNames; + private Func _defaultFieldNameInferrer; Func IConnectionSettingsValues.DefaultFieldNameInferrer => _defaultFieldNameInferrer; @@ -85,6 +88,7 @@ Func serializerFactoryFunc this._defaultFieldNameInferrer = (p => p.ToCamelCase()); this._defaultIndices = new FluentDictionary(); this._defaultTypeNames = new FluentDictionary(); + this._defaultRelationNames = new FluentDictionary(); this._serializerFactory = serializerFactory ?? new SerializerFactory(); this._inferrer = new Inferrer(this); @@ -109,7 +113,7 @@ IElasticsearchSerializer IConnectionSettingsValues.StatefulSerializer(JsonConver /// /// Pluralize type names when inferring from POCO type names. /// - /// This calls with an implementation that will pluralize type names. + /// This calls with an implementation that will pluralize type names. /// This used to be the default prior to Nest 0.90 /// public TConnectionSettings PluralizeTypeNames() @@ -139,7 +143,7 @@ private string LowerCaseAndPluralizeTypeNameInferrer(Type type) /// /// Specify how field names are inferred from POCO property names. /// - /// By default, NEST camel cases property names + /// By default, NEST camel cases property names /// e.g. EmailAddress POCO property => "emailAddress" Elasticsearch document field name /// public TConnectionSettings DefaultFieldNameInferrer(Func fieldNameInferrer) @@ -149,7 +153,7 @@ public TConnectionSettings DefaultFieldNameInferrer(Func fieldNa } /// - /// Specify how type names are inferred from POCO types. + /// Specify how type names are inferred from POCO types. /// By default, type names are inferred by calling /// on the type's name. /// @@ -161,35 +165,13 @@ public TConnectionSettings DefaultTypeNameInferrer(Func typeNameIn } /// - /// Specify the default index names for a given POCO type. - /// Takes precedence over the global - /// - public TConnectionSettings MapDefaultTypeIndices(Action> mappingSelector) - { - mappingSelector.ThrowIfNull(nameof(mappingSelector)); - mappingSelector(this._defaultIndices); - return (TConnectionSettings)this; - } - - /// - /// Specify the default type names for a given POCO type. - /// Takes precedence over the global - /// - public TConnectionSettings MapDefaultTypeNames(Action> mappingSelector) - { - mappingSelector.ThrowIfNull(nameof(mappingSelector)); - mappingSelector(this._defaultTypeNames); - return (TConnectionSettings)this; - } - - /// - /// Specify which property on a given POCO should be used to infer the id of the document when + /// Specify which property on a given POCO should be used to infer the id of the document when /// indexed in Elasticsearch. /// /// The type of the document. /// The object path. /// - public TConnectionSettings MapIdPropertyFor(Expression> objectPath) + private TConnectionSettings MapIdPropertyFor(Expression> objectPath) { objectPath.ThrowIfNull(nameof(objectPath)); @@ -209,22 +191,6 @@ public TConnectionSettings MapIdPropertyFor(Expression - /// Specify how the properties are mapped for a given POCO type. - /// - /// The type of the document. - /// The properties selector. - /// - public TConnectionSettings MapPropertiesFor(Action> propertiesSelector) - where TDocument : class - { - propertiesSelector.ThrowIfNull(nameof(propertiesSelector)); - var mapper = new PropertyMappingDescriptor(); - propertiesSelector(mapper); - ApplyPropertyMappings(mapper.Mappings); - return (TConnectionSettings)this; - } - private void ApplyPropertyMappings(IList> mappings) where TDocument : class { @@ -257,7 +223,7 @@ private void ApplyPropertyMappings(IList - /// Specify how the mapping is inferred for a given POCO type. + /// Specify how the mapping is inferred for a given POCO type. /// Can be used to infer the index, type, id property and properties for the POCO. /// /// The type of the document. @@ -273,10 +239,11 @@ public TConnectionSettings InferMappingFor(Func(inferMapping.IdProperty); -#pragma warning restore CS0618 if (inferMapping.Properties != null) this.ApplyPropertyMappings(inferMapping.Properties); diff --git a/src/Nest/CommonAbstractions/ConnectionSettings/IConnectionSettingsValues.cs b/src/Nest/CommonAbstractions/ConnectionSettings/IConnectionSettingsValues.cs index 2f336328f0f..ee02d1cf4c8 100644 --- a/src/Nest/CommonAbstractions/ConnectionSettings/IConnectionSettingsValues.cs +++ b/src/Nest/CommonAbstractions/ConnectionSettings/IConnectionSettingsValues.cs @@ -11,6 +11,7 @@ public interface IConnectionSettingsValues : IConnectionConfigurationValues Inferrer Inferrer { get; } FluentDictionary DefaultIndices { get; } FluentDictionary DefaultTypeNames { get; } + FluentDictionary DefaultRelationNames { get; } FluentDictionary IdProperties { get; } FluentDictionary PropertyMappings { get; } string DefaultIndex { get; } diff --git a/src/Nest/CommonAbstractions/Infer/Features/Features.cs b/src/Nest/CommonAbstractions/Infer/Features/Features.cs deleted file mode 100644 index ad5b5e822b1..00000000000 --- a/src/Nest/CommonAbstractions/Infer/Features/Features.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using Elasticsearch.Net; -using Newtonsoft.Json; - -namespace Nest -{ - [JsonConverter(typeof(FeaturesJsonConverter))] - public class Features : IUrlParameter - { - string IUrlParameter.GetString(IConnectionConfigurationValues settings) => _enumValue.GetStringValue(); - - private readonly Feature _enumValue; - - internal Features(Feature feature) { _enumValue = feature; } - - public static implicit operator Features(Feature feature) => new Features(feature); - public static implicit operator Features(string features) => FromString(features); - - public static Features FromString(string features) - { - var parts = features.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); - int feature = 0; - foreach (var p in parts) - { - var f = p.ToEnum(); - if (f != null) feature |= (int)f; - } - return (Feature)feature; - } - } -} diff --git a/src/Nest/CommonAbstractions/Infer/IndexName/IndexName.cs b/src/Nest/CommonAbstractions/Infer/IndexName/IndexName.cs index c02d76b663b..0b071eed810 100644 --- a/src/Nest/CommonAbstractions/Infer/IndexName/IndexName.cs +++ b/src/Nest/CommonAbstractions/Infer/IndexName/IndexName.cs @@ -8,17 +8,36 @@ namespace Nest [DebuggerDisplay("{DebugDisplay,nq}")] public class IndexName : IEquatable, IUrlParameter { + private static int TypeHashCode { get; } = typeof(IndexName).GetHashCode(); + private static readonly char[] ClusterSeparator = {':'}; internal string DebugDisplay => Type == null ? Name : $"{nameof(IndexName)} for typeof: {Type?.Name}"; - //TODO 6.0 make setters private and use constructor - public string Cluster { get; set; } - public string Name { get; set; } - public Type Type { get; set; } + public string Cluster { get; } + public string Name { get; } + public Type Type { get; } + + private IndexName(string index, string cluster = null) + { + this.Name = index?.Trim(); + this.Cluster = cluster?.Trim(); + } + private IndexName(Type type, string cluster = null) + { + this.Type = type; + this.Cluster = cluster?.Trim(); + } + private IndexName(string index, Type type, string cluster = null) + { + this.Name = index; + this.Type = type; + this.Cluster = cluster?.Trim(); + } public static IndexName From() => typeof(T); public static IndexName From(string clusterName) => From(typeof(T), clusterName); - private static IndexName From(Type t, string clusterName) => new IndexName { Type = t, Cluster = clusterName}; + private static IndexName From(Type t, string clusterName) => new IndexName(t, clusterName); + public static IndexName Rebuild(string index, Type t, string clusterName = null) => new IndexName(index, t, clusterName); public Indices And() => new Indices(new[] { this, typeof(T) }); public Indices And(string clusterName) => new Indices(new[] { this, From(typeof(T), clusterName) }); @@ -29,12 +48,12 @@ private static IndexName Parse(string indexName) if (string.IsNullOrWhiteSpace(indexName)) return null; var tokens = indexName.Split(ClusterSeparator, 2, StringSplitOptions.RemoveEmptyEntries); return tokens.Length == 1 - ? new IndexName { Name = tokens[0].Trim() } - : new IndexName { Name = tokens[1].Trim(), Cluster = tokens[0].Trim() }; + ? new IndexName(tokens[0]) + : new IndexName(tokens[1],tokens[0]); } public static implicit operator IndexName(string indexName) => Parse(indexName); - public static implicit operator IndexName(Type type) => type == null ? null : new IndexName { Type = type }; + public static implicit operator IndexName(Type type) => type == null ? null : new IndexName(type); bool IEquatable.Equals(IndexName other) => EqualsMarker(other); @@ -50,9 +69,10 @@ public override int GetHashCode() { unchecked { - var hashCode = this.Name?.GetHashCode() ?? this.Type?.GetHashCode() ?? 0; - hashCode = (hashCode * 397) ^ (this.Cluster?.GetHashCode() ?? 0); - return hashCode; + var result = TypeHashCode; + result = (result * 397) ^ (this.Name?.GetHashCode() ?? this.Type?.GetHashCode() ?? 0); + result = (result * 397) ^ (this.Cluster?.GetHashCode() ?? 0); + return result; } } @@ -65,12 +85,12 @@ public override string ToString() private string PrefixClusterName(string name) => PrefixClusterName(this, name); private static string PrefixClusterName(IndexName i, string name) => i.Cluster.IsNullOrEmpty() ? name : $"{i.Cluster}:{name}"; - public bool EqualsString(string other) + private bool EqualsString(string other) { return !other.IsNullOrEmpty() && other == PrefixClusterName(this.Name); } - public bool EqualsMarker(IndexName other) + private bool EqualsMarker(IndexName other) { if (!this.Name.IsNullOrEmpty() && other != null && !other.Name.IsNullOrEmpty()) return EqualsString(PrefixClusterName(other,other.Name)); diff --git a/src/Nest/CommonAbstractions/Infer/Indices/IndicesJsonConverter.cs b/src/Nest/CommonAbstractions/Infer/Indices/IndicesJsonConverter.cs index ecc27860de9..fd5467c926f 100644 --- a/src/Nest/CommonAbstractions/Infer/Indices/IndicesJsonConverter.cs +++ b/src/Nest/CommonAbstractions/Infer/Indices/IndicesJsonConverter.cs @@ -8,6 +8,7 @@ namespace Nest { internal class IndicesJsonConverter : JsonConverter { + //TODO why is this checking Types? public override bool CanConvert(Type objectType) => typeof(Types) == objectType; public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) diff --git a/src/Nest/CommonAbstractions/Infer/Indices/IndicesMultiSyntaxJsonConverter.cs b/src/Nest/CommonAbstractions/Infer/Indices/IndicesMultiSyntaxJsonConverter.cs index 1ba4f7450e7..5ed9167d160 100644 --- a/src/Nest/CommonAbstractions/Infer/Indices/IndicesMultiSyntaxJsonConverter.cs +++ b/src/Nest/CommonAbstractions/Infer/Indices/IndicesMultiSyntaxJsonConverter.cs @@ -4,6 +4,7 @@ namespace Nest { + internal class IndicesMultiSyntaxJsonConverter : JsonConverter { public override bool CanConvert(Type objectType) => typeof(Indices) == objectType; diff --git a/src/Nest/CommonAbstractions/Infer/Inferrer.cs b/src/Nest/CommonAbstractions/Infer/Inferrer.cs index e44753cb7c2..a6e4af87e3c 100644 --- a/src/Nest/CommonAbstractions/Infer/Inferrer.cs +++ b/src/Nest/CommonAbstractions/Infer/Inferrer.cs @@ -15,6 +15,7 @@ public class Inferrer private IdResolver IdResolver { get; } private IndexNameResolver IndexNameResolver { get; } private TypeNameResolver TypeNameResolver { get; } + private RelationNameResolver RelationNameResolver { get; } private FieldResolver FieldResolver { get; } internal ConcurrentDictionary Contracts { get; } @@ -28,6 +29,7 @@ public Inferrer(IConnectionSettingsValues connectionSettings) this.IdResolver = new IdResolver(connectionSettings); this.IndexNameResolver = new IndexNameResolver(connectionSettings); this.TypeNameResolver = new TypeNameResolver(connectionSettings); + this.RelationNameResolver = new RelationNameResolver(connectionSettings); this.FieldResolver = new FieldResolver(connectionSettings); this.Contracts = new ConcurrentDictionary(); @@ -51,5 +53,9 @@ public Inferrer(IConnectionSettingsValues connectionSettings) public string TypeName() where T : class => this.TypeNameResolver.Resolve(); public string TypeName(TypeName type) => this.TypeNameResolver.Resolve(type); + + public string RelationName() where T : class => this.RelationNameResolver.Resolve(); + + public string RelationName(RelationName type) => this.RelationNameResolver.Resolve(type); } } diff --git a/src/Nest/CommonAbstractions/Infer/Metrics/Metrics.cs b/src/Nest/CommonAbstractions/Infer/Metrics/Metrics.cs index 3d0690de1cb..87874b4b8ec 100644 --- a/src/Nest/CommonAbstractions/Infer/Metrics/Metrics.cs +++ b/src/Nest/CommonAbstractions/Infer/Metrics/Metrics.cs @@ -13,11 +13,13 @@ public class Metrics : IUrlParameter internal Metrics(NodesInfoMetric metric){ _enumValue = metric; } internal Metrics(ClusterStateMetric metric){ _enumValue = metric; } internal Metrics(WatcherStatsMetric metric){ _enumValue = metric; } + internal Metrics(NodesUsageMetric metric){ _enumValue = metric; } public static implicit operator Metrics(IndicesStatsMetric metric) => new Metrics(metric); public static implicit operator Metrics(NodesStatsMetric metric) => new Metrics(metric); public static implicit operator Metrics(NodesInfoMetric metric) => new Metrics(metric); public static implicit operator Metrics(ClusterStateMetric metric) => new Metrics(metric); public static implicit operator Metrics(WatcherStatsMetric metric) => new Metrics(metric); + public static implicit operator Metrics(NodesUsageMetric metric) => new Metrics(metric); } } diff --git a/src/Nest/CommonAbstractions/Infer/PropertyName/PropertyName.cs b/src/Nest/CommonAbstractions/Infer/PropertyName/PropertyName.cs index ff72a3cf2ea..c582e57be96 100644 --- a/src/Nest/CommonAbstractions/Infer/PropertyName/PropertyName.cs +++ b/src/Nest/CommonAbstractions/Infer/PropertyName/PropertyName.cs @@ -10,6 +10,8 @@ namespace Nest [DebuggerDisplay("{DebugDisplay,nq}")] public class PropertyName : IEquatable, IUrlParameter { + private static int TypeHashCode { get; } = typeof(PropertyName).GetHashCode(); + public string Name { get; } public Expression Expression { get; } public PropertyInfo Property { get; } @@ -45,28 +47,20 @@ public PropertyName(PropertyInfo property) _type = property.DeclaringType; } - public static implicit operator PropertyName(string name) - { - return name == null ? null : new PropertyName(name); - } + public static implicit operator PropertyName(string name) => name == null ? null : new PropertyName(name); - public static implicit operator PropertyName(Expression expression) - { - return expression == null ? null : new PropertyName(expression); - } + public static implicit operator PropertyName(Expression expression) => expression == null ? null : new PropertyName(expression); - public static implicit operator PropertyName(PropertyInfo property) - { - return property == null ? null : new PropertyName(property); - } + public static implicit operator PropertyName(PropertyInfo property) => property == null ? null : new PropertyName(property); public override int GetHashCode() { unchecked { - var hashCode = _comparisonValue?.GetHashCode() ?? 0; - hashCode = (hashCode * 397) ^ (_type?.GetHashCode() ?? 0); - return hashCode; + var result = TypeHashCode; + result = (result * 397) ^ (_comparisonValue?.GetHashCode() ?? 0); + result = (result * 397) ^ (_type?.GetHashCode() ?? 0); + return result; } } @@ -85,15 +79,9 @@ public override bool Equals(object obj) return this.Equals(obj as PropertyName); } - public static bool operator ==(PropertyName x, PropertyName y) - { - return Equals(x, y); - } + public static bool operator ==(PropertyName x, PropertyName y) => Equals(x, y); - public static bool operator !=(PropertyName x, PropertyName y) - { - return !(x == y); - } + public static bool operator !=(PropertyName x, PropertyName y) => !(x == y); string IUrlParameter.GetString(IConnectionConfigurationValues settings) { diff --git a/src/Nest/CommonAbstractions/Infer/RelationName/RelationName.cs b/src/Nest/CommonAbstractions/Infer/RelationName/RelationName.cs new file mode 100644 index 00000000000..1f3f59ad30a --- /dev/null +++ b/src/Nest/CommonAbstractions/Infer/RelationName/RelationName.cs @@ -0,0 +1,94 @@ +using System; +using System.Diagnostics; +using System.Linq; +using Elasticsearch.Net; + +namespace Nest +{ + [ContractJsonConverter(typeof(RelationNameJsonConverter))] + [DebuggerDisplay("{DebugDisplay,nq}")] + public class RelationName : IEquatable, IUrlParameter + { + private static int TypeHashCode { get; } = typeof(RelationName).GetHashCode(); + + public string Name { get; } + public Type Type { get; } + + private RelationName(string type) + { + this.Name = type; + } + + private RelationName(Type type) + { + this.Type = type; + } + + internal string DebugDisplay => Type == null ? Name : $"{nameof(RelationName)} for typeof: {Type?.Name}"; + + public static RelationName Create(Type type) => GetRelationNameForType(type); + + public static RelationName Create() where T : class => GetRelationNameForType(typeof(T)); + + private static RelationName GetRelationNameForType(Type type) => new RelationName(type); + + public static implicit operator RelationName(string typeName) => + typeName == null ? null : new RelationName(typeName); + + public static implicit operator RelationName(Type type) => type == null ? null : new RelationName(type); + + public override int GetHashCode() + { + unchecked + { + var result = TypeHashCode; + result = (result * 397) ^ (this.Name?.GetHashCode() ?? this.Type?.GetHashCode() ?? 0); + return result; + } + } + + bool IEquatable.Equals(RelationName other) => Equals(other); + + public override bool Equals(object obj) + { + var s = obj as string; + if (!s.IsNullOrEmpty()) return this.EqualsString(s); + var pp = obj as RelationName; + if (pp != null) return this.EqualsMarker(pp); + + return base.Equals(obj); + } + + public override string ToString() + { + if (!this.Name.IsNullOrEmpty()) + return this.Name; + return this.Type != null ? this.Type.Name : string.Empty; + } + + public bool EqualsMarker(RelationName other) + { + if (!this.Name.IsNullOrEmpty() && other != null && !other.Name.IsNullOrEmpty()) + return EqualsString(other.Name); + if (this.Type != null && other != null && other.Type != null) + return this.GetHashCode() == other.GetHashCode(); + return false; + } + + public bool EqualsString(string other) + { + return !other.IsNullOrEmpty() && other == this.Name; + } + + string IUrlParameter.GetString(IConnectionConfigurationValues settings) + { + var nestSettings = settings as IConnectionSettingsValues; + if (nestSettings == null) + throw new Exception("Tried to pass type name on querystring but it could not be resolved because no nest settings are available"); + + return nestSettings.Inferrer.RelationName(this); + } + + public static RelationName From() => typeof(T); + } +} diff --git a/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameExtensions.cs b/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameExtensions.cs new file mode 100644 index 00000000000..d44ab306484 --- /dev/null +++ b/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameExtensions.cs @@ -0,0 +1,10 @@ +namespace Nest +{ + internal static class RelationNameExtensions + { + internal static bool IsConditionless(this RelationName marker) + { + return marker == null || marker.Name.IsNullOrEmpty() && marker.Type == null; + } + } +} diff --git a/src/Nest/CommonAbstractions/Infer/Features/FeaturesJsonConverter.cs b/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameJsonConverter.cs similarity index 54% rename from src/Nest/CommonAbstractions/Infer/Features/FeaturesJsonConverter.cs rename to src/Nest/CommonAbstractions/Infer/RelationName/RelationNameJsonConverter.cs index faec580ee48..a2b2294ae5d 100644 --- a/src/Nest/CommonAbstractions/Infer/Features/FeaturesJsonConverter.cs +++ b/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameJsonConverter.cs @@ -1,32 +1,35 @@ using System; -using Elasticsearch.Net; using Newtonsoft.Json; namespace Nest { - internal class FeaturesJsonConverter : JsonConverter + internal class RelationNameJsonConverter : JsonConverter { - public override bool CanConvert(Type objectType) => true; + public override bool CanConvert(Type objectType) + { + return typeof(RelationName) == objectType; + } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { - var marker = value as Features; - if (marker == null) + if (value == null) { writer.WriteNull(); return; } + + var marker = (RelationName)value; var settings = serializer.GetConnectionSettings(); - var s = ((IUrlParameter)marker).GetString(settings); - writer.WriteValue(s); + var typeName = settings.Inferrer.RelationName(marker); + writer.WriteValue(typeName); } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (reader.TokenType == JsonToken.String) { - string indices = reader.Value.ToString(); - return (Features)indices; + string typeName = reader.Value.ToString(); + return (RelationName) typeName; } return null; } diff --git a/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameResolver.cs b/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameResolver.cs new file mode 100644 index 00000000000..a931f0d1330 --- /dev/null +++ b/src/Nest/CommonAbstractions/Infer/RelationName/RelationNameResolver.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Concurrent; + +namespace Nest +{ + public class RelationNameResolver + { + private readonly IConnectionSettingsValues _connectionSettings; + private readonly ConcurrentDictionary RelationNames = new ConcurrentDictionary(); + + public RelationNameResolver(IConnectionSettingsValues connectionSettings) + { + connectionSettings.ThrowIfNull(nameof(connectionSettings)); + this._connectionSettings = connectionSettings; + } + + public string Resolve() where T : class => this.Resolve(typeof(T)); + + public string Resolve(RelationName t) => t?.Name ?? this.ResolveType(t?.Type); + + private string ResolveType(Type type) + { + if (type == null) return null; + string typeName; + + if (RelationNames.TryGetValue(type, out typeName)) + return typeName; + + if (_connectionSettings.DefaultRelationNames.TryGetValue(type, out typeName)) + { + RelationNames.TryAdd(type, typeName); + return typeName; + } + + var att = ElasticsearchTypeAttribute.From(type); + if (att != null && !att.Name.IsNullOrEmpty()) + typeName = att.Name; + else + typeName = _connectionSettings.DefaultTypeNameInferrer(type); + + RelationNames.TryAdd(type, typeName); + return typeName; + } + + } +} diff --git a/src/Nest/CommonAbstractions/Infer/TypeName/TypeName.cs b/src/Nest/CommonAbstractions/Infer/TypeName/TypeName.cs index 66fec80652f..e69c14c1b6f 100644 --- a/src/Nest/CommonAbstractions/Infer/TypeName/TypeName.cs +++ b/src/Nest/CommonAbstractions/Infer/TypeName/TypeName.cs @@ -1,75 +1,68 @@ using System; using System.Diagnostics; +using System.Linq; using Elasticsearch.Net; namespace Nest { [ContractJsonConverter(typeof(TypeNameJsonConverter))] [DebuggerDisplay("{DebugDisplay,nq}")] - public class TypeName : IEquatable , IUrlParameter + public class TypeName : IEquatable, IUrlParameter { - public string Name { get; set; } - public Type Type { get; set; } + private static int TypeHashCode { get; } = typeof(TypeName).GetHashCode(); - internal string DebugDisplay => Type == null ? Name : $"{nameof(TypeName)} for typeof: {Type?.Name}"; + public string Name { get; } + public Type Type { get; } - public static TypeName Create(Type type) + private TypeName(string type) { - return GetTypeNameForType(type); + this.Name = type; } - - public static TypeName Create() where T : class + private TypeName(Type type) { - return GetTypeNameForType(typeof(T)); + this.Type = type; } - private static TypeName GetTypeNameForType(Type type) - { - return new TypeName { Type = type }; - } + internal string DebugDisplay => Type == null ? Name : $"{nameof(TypeName)} for typeof: {Type?.Name}"; - public static implicit operator TypeName(string typeName) - { - return typeName == null ? null : new TypeName { Name = typeName }; - } + public static TypeName Create(Type type) => GetTypeNameForType(type); - public static implicit operator TypeName(Type type) - { - return type == null ? null : new TypeName { Type = type }; - } + public static TypeName Create() where T : class => GetTypeNameForType(typeof(T)); + + private static TypeName GetTypeNameForType(Type type) => new TypeName(type); + + public static implicit operator TypeName(string typeName) => typeName == null ? null : new TypeName(typeName); + + public static implicit operator TypeName(Type type) => type == null ? null : new TypeName(type); public override int GetHashCode() { - if (this.Name != null) - return this.Name.GetHashCode(); - return this.Type?.GetHashCode() ?? 0; + unchecked + { + var result = TypeHashCode; + result = (result * 397) ^ (this.Name?.GetHashCode() ?? this.Type?.GetHashCode() ?? 0); + return result; + } } - bool IEquatable.Equals(TypeName other) - { - return Equals(other); - } + bool IEquatable.Equals(TypeName other) => Equals(other); public override bool Equals(object obj) { var s = obj as string; if (!s.IsNullOrEmpty()) return this.EqualsString(s); var pp = obj as TypeName; - if (pp != null) return this.EqualsMarker(pp); - - return base.Equals(obj); + return this.EqualsMarker(pp); } public override string ToString() { if (!this.Name.IsNullOrEmpty()) return this.Name; - if (this.Type != null) - return this.Type.Name; - return string.Empty; + return this.Type != null ? this.Type.Name : string.Empty; } - public bool EqualsMarker(TypeName other) + private bool EqualsMarker(TypeName other) { if (!this.Name.IsNullOrEmpty() && other != null && !other.Name.IsNullOrEmpty()) return EqualsString(other.Name); @@ -78,7 +71,7 @@ public bool EqualsMarker(TypeName other) return false; } - public bool EqualsString(string other) + private bool EqualsString(string other) { return !other.IsNullOrEmpty() && other == this.Name; } @@ -96,5 +89,6 @@ string IUrlParameter.GetString(IConnectionConfigurationValues settings) public Types And() => new Types(new TypeName[] { this, typeof(T)}); public Types And(TypeName type) => new Types(new TypeName[] { this, type }); + public Types And(TypeName[] types) => new Types(new TypeName[] { this }.Concat(types)); } } diff --git a/src/Nest/CommonAbstractions/Infer/Types/Types.cs b/src/Nest/CommonAbstractions/Infer/Types/Types.cs index 74f489b248f..66be61edfe5 100644 --- a/src/Nest/CommonAbstractions/Infer/Types/Types.cs +++ b/src/Nest/CommonAbstractions/Infer/Types/Types.cs @@ -37,8 +37,8 @@ public ManyTypes And() } } - internal Types(Types.AllTypesMarker all) : base(all) { } - internal Types(Types.ManyTypes types) : base(types) { } + internal Types(AllTypesMarker all) : base(all) { } + internal Types(ManyTypes types) : base(types) { } internal Types(IEnumerable types) : base(new ManyTypes(types)) { } public static TypeName Type(TypeName type) => type; diff --git a/src/Nest/CommonAbstractions/LowLevelDispatch/LowLevelDispatch.cs b/src/Nest/CommonAbstractions/LowLevelDispatch/LowLevelDispatch.cs index d8c79d7f99f..785f33c37bf 100644 --- a/src/Nest/CommonAbstractions/LowLevelDispatch/LowLevelDispatch.cs +++ b/src/Nest/CommonAbstractions/LowLevelDispatch/LowLevelDispatch.cs @@ -52,6 +52,7 @@ internal static string PrettyPrintEndpoint(IRequest request, string endpoint) case "index_metric" : return PrettyParam(key, request.RouteValues.IndexMetric); case "lang" : return PrettyParam(key, request.RouteValues.Lang); case "metric" : return PrettyParam(key, request.RouteValues.Metric); + case "nodes" : return PrettyParam(key, request.RouteValues.NodeId); case "node_id" : return PrettyParam(key, request.RouteValues.NodeId); case "repository" : return PrettyParam(key, request.RouteValues.Repository); case "scroll_id" : return PrettyParam(key, request.RouteValues.ScrollId); diff --git a/src/Nest/CommonAbstractions/Request/RouteValues.cs b/src/Nest/CommonAbstractions/Request/RouteValues.cs index 530f5c129de..618d715973d 100644 --- a/src/Nest/CommonAbstractions/Request/RouteValues.cs +++ b/src/Nest/CommonAbstractions/Request/RouteValues.cs @@ -39,14 +39,10 @@ public class RouteValues public string SnapshotId => GetResolved("snapshot_id"); public string CategoryId => GetResolved("category_id"); public string Timestamp => GetResolved("timestamp"); + public string Context => GetResolved("context"); public WatcherStatsMetric? WatcherStatsMetric => GetResolved("watcher_stats_metric").ToEnum(); - private string GetResolved(string route) - { - string resolved; - if (this._resolved.TryGetValue(route, out resolved)) return resolved; - return null; - } + private string GetResolved(string route) => this._resolved.TryGetValue(route, out var resolved) ? resolved : null; private RouteValues Route(string name, IUrlParameter routeValue, bool required = true) { @@ -56,7 +52,7 @@ private RouteValues Route(string name, IUrlParameter routeValue, bool required = this._routeValues.Remove(name); return this; } - else if (routeValue == null) return this; + if (routeValue == null) return this; this._routeValues[name] = routeValue; return this; diff --git a/src/Nest/CommonAbstractions/Response/ElasticsearchVersionInfo.cs b/src/Nest/CommonAbstractions/Response/ElasticsearchVersionInfo.cs index 0ba75b2d495..97bd7578018 100644 --- a/src/Nest/CommonAbstractions/Response/ElasticsearchVersionInfo.cs +++ b/src/Nest/CommonAbstractions/Response/ElasticsearchVersionInfo.cs @@ -7,10 +7,10 @@ public class ElasticsearchVersionInfo { public string Number { get; set; } - [JsonProperty(PropertyName = "snapshot_build")] + [JsonProperty("snapshot_build")] public bool IsSnapShotBuild { get; set; } - [JsonProperty(PropertyName = "lucene_version")] + [JsonProperty("lucene_version")] public string LuceneVersion { get; set; } } } diff --git a/src/Nest/CommonAbstractions/Response/IndicesResponseBase.cs b/src/Nest/CommonAbstractions/Response/IndicesResponseBase.cs index 595515cbeb7..8b414bce89a 100644 --- a/src/Nest/CommonAbstractions/Response/IndicesResponseBase.cs +++ b/src/Nest/CommonAbstractions/Response/IndicesResponseBase.cs @@ -5,16 +5,16 @@ namespace Nest public interface IIndicesResponse : IResponse { bool Acknowledged { get; } - ShardsMetaData ShardsHit { get; } + ShardsMetadata ShardsHit { get; } } [JsonObject] public abstract class IndicesResponseBase : ResponseBase, IIndicesResponse { - [JsonProperty(PropertyName = "acknowledged")] + [JsonProperty("acknowledged")] public bool Acknowledged { get; private set; } - [JsonProperty(PropertyName = "_shards")] - public ShardsMetaData ShardsHit { get; private set; } + [JsonProperty("_shards")] + public ShardsMetadata ShardsHit { get; private set; } } } diff --git a/src/Nest/CommonAbstractions/Response/ShardsOperationResponseBase.cs b/src/Nest/CommonAbstractions/Response/ShardsOperationResponseBase.cs index 87fa72aa6e2..44500544531 100644 --- a/src/Nest/CommonAbstractions/Response/ShardsOperationResponseBase.cs +++ b/src/Nest/CommonAbstractions/Response/ShardsOperationResponseBase.cs @@ -4,12 +4,12 @@ namespace Nest { public interface IShardsOperationResponse : IResponse { - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } } public abstract class ShardsOperationResponseBase : ResponseBase, IShardsOperationResponse { [JsonProperty("_shards")] - public ShardsMetaData Shards { get; internal set; } + public ShardsMetadata Shards { get; internal set; } } -} \ No newline at end of file +} diff --git a/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/VerbatimDictionaryKeysConverter.cs b/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/VerbatimDictionaryKeysConverter.cs index 8e825a04776..ca0f08332dc 100644 --- a/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/VerbatimDictionaryKeysConverter.cs +++ b/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/VerbatimDictionaryKeysConverter.cs @@ -39,6 +39,7 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s PropertyName propertyName; IndexName indexName; TypeName typeName; + RelationName relationName; foreach (DictionaryEntry entry in dictionary) { @@ -72,6 +73,10 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s { key = settings.Inferrer.TypeName(typeName); } + else if (AsType(entry.Key, out relationName)) + { + key = settings.Inferrer.RelationName(relationName); + } else key = Convert.ToString(entry.Key, CultureInfo.InvariantCulture); @@ -107,6 +112,7 @@ internal class VerbatimDictionaryKeysJsonConverter : JsonConverter private readonly bool _keyIsPropertyName = typeof(TKey) == typeof(PropertyName); private readonly bool _keyIsIndexName = typeof(TKey) == typeof(IndexName); private readonly bool _keyIsTypeName = typeof(TKey) == typeof(TypeName); + private readonly bool _keyIsRelationName = typeof(TKey) == typeof(RelationName); public override bool CanConvert(Type t) => typeof(IDictionary).IsAssignableFrom(t) || @@ -169,6 +175,11 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s var typeName = entry.Key as TypeName; key = settings.Inferrer.TypeName(typeName); } + else if (_keyIsRelationName) + { + var typeName = entry.Key as RelationName; + key = settings.Inferrer.RelationName(typeName); + } else key = Convert.ToString(entry.Key, CultureInfo.InvariantCulture); diff --git a/src/Nest/CommonAbstractions/SerializationBehavior/StatefulDeserialization/ConcreteTypeConverter.cs b/src/Nest/CommonAbstractions/SerializationBehavior/StatefulDeserialization/ConcreteTypeConverter.cs index 29eddf5cc5f..9a73c2b2074 100644 --- a/src/Nest/CommonAbstractions/SerializationBehavior/StatefulDeserialization/ConcreteTypeConverter.cs +++ b/src/Nest/CommonAbstractions/SerializationBehavior/StatefulDeserialization/ConcreteTypeConverter.cs @@ -137,8 +137,10 @@ internal static Type GetConcreteTypeUsingSelector( Type = d._type, Version = d._version, Id = d._id, +#pragma warning disable 618 Parent = d._parent, - Routing = d._routing, +#pragma warning restore 618 + Routing = d._routing ?? d._parent, _Highlight = d.highlight is Dictionary> ? d.highlight : null, Explanation = d._explanation is Explanation ? d._explanation : null, Nested = d._nested diff --git a/src/Nest/CommonAbstractions/Static/Static.cs b/src/Nest/CommonAbstractions/Static/Static.cs index e2df2349cfd..2d08c1face8 100644 --- a/src/Nest/CommonAbstractions/Static/Static.cs +++ b/src/Nest/CommonAbstractions/Static/Static.cs @@ -23,6 +23,10 @@ public static class Infer public static Types Type(params TypeName[] types) => new Types.ManyTypes(types); public static Types AllTypes = Nest.Types.All; + public static RelationName Relation(string type) => type; + public static RelationName Relation(Type type) => type; + public static RelationName Relation() => typeof(T); + public static Names Names(params string[] names) => string.Join(",", names); public static Names Names(IEnumerable names) => string.Join(",", names); diff --git a/src/Nest/CommonOptions/Hit/ShardsMetaData.cs b/src/Nest/CommonOptions/Hit/ShardsMetaData.cs index e20b435cbf0..670903f40c6 100644 --- a/src/Nest/CommonOptions/Hit/ShardsMetaData.cs +++ b/src/Nest/CommonOptions/Hit/ShardsMetaData.cs @@ -4,7 +4,7 @@ namespace Nest { [JsonObject] - public class ShardsMetaData + public class ShardsMetadata { [JsonProperty] public int Total { get; internal set; } @@ -17,5 +17,6 @@ public class ShardsMetaData [JsonProperty("failures")] public IReadOnlyCollection Failures { get; internal set; } = EmptyReadOnly.Collection; + } } diff --git a/src/Nest/CommonOptions/Range/AggregationRange.cs b/src/Nest/CommonOptions/Range/AggregationRange.cs index 674fddf2aa5..abfe7df5507 100644 --- a/src/Nest/CommonOptions/Range/AggregationRange.cs +++ b/src/Nest/CommonOptions/Range/AggregationRange.cs @@ -13,13 +13,13 @@ namespace Nest [Obsolete("Renamed to IAggregationRange scheduled for removal in 6.0")] public interface IRange { - [JsonProperty(PropertyName = "from")] + [JsonProperty("from")] double? From { get; set; } - [JsonProperty(PropertyName = "to")] + [JsonProperty("to")] double? To { get; set; } - [JsonProperty(PropertyName = "key")] + [JsonProperty("key")] string Key { get; set; } } diff --git a/src/Nest/CommonOptions/Scripting/InlineScript.cs b/src/Nest/CommonOptions/Scripting/InlineScript.cs index 140ed155290..d3e4b00996a 100644 --- a/src/Nest/CommonOptions/Scripting/InlineScript.cs +++ b/src/Nest/CommonOptions/Scripting/InlineScript.cs @@ -1,11 +1,16 @@ -using Newtonsoft.Json; +using System; +using Newtonsoft.Json; namespace Nest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public interface IInlineScript : IScript { - [JsonProperty("inline")] + [JsonProperty("source")] + string Source { get; set; } + + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] string Inline { get; set; } } @@ -13,10 +18,11 @@ public class InlineScript : ScriptBase, IInlineScript { public InlineScript(string script) { - this.Inline = script; + this.Source = script; } - public string Inline { get; set; } + public string Source { get; set; } + public string Inline { get => this.Source; set => this.Source = value; } public static implicit operator InlineScript(string script) => new InlineScript(script); } @@ -24,15 +30,18 @@ public InlineScript(string script) public class InlineScriptDescriptor : ScriptDescriptorBase, IInlineScript { - string IInlineScript.Inline { get; set; } + string IInlineScript.Inline { get => Self.Source; set => Self.Source = value; } + string IInlineScript.Source { get; set; } public InlineScriptDescriptor() {} public InlineScriptDescriptor(string script) { - Self.Inline = script; + Self.Source = script; } - public InlineScriptDescriptor Inline(string script) => Assign(a => a.Inline = script); + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + public InlineScriptDescriptor Inline(string script) => Assign(a => a.Source = script); + public InlineScriptDescriptor Source(string script) => Assign(a => a.Source = script); } } diff --git a/src/Nest/CommonOptions/Scripting/ScriptBase.cs b/src/Nest/CommonOptions/Scripting/ScriptBase.cs index 16eb6b2fb61..dbea860f3cb 100644 --- a/src/Nest/CommonOptions/Scripting/ScriptBase.cs +++ b/src/Nest/CommonOptions/Scripting/ScriptBase.cs @@ -46,6 +46,9 @@ public class ScriptDescriptor : DescriptorBase public IndexedScriptDescriptor Indexed(string id) => new IndexedScriptDescriptor(id); + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] public InlineScriptDescriptor Inline(string script) => new InlineScriptDescriptor(script); + + public InlineScriptDescriptor Source(string script) => new InlineScriptDescriptor(script); } } diff --git a/src/Nest/CommonOptions/Scripting/ScriptJsonConverter.cs b/src/Nest/CommonOptions/Scripting/ScriptJsonConverter.cs index 027fe9c21f2..8fb42e894b5 100644 --- a/src/Nest/CommonOptions/Scripting/ScriptJsonConverter.cs +++ b/src/Nest/CommonOptions/Scripting/ScriptJsonConverter.cs @@ -24,6 +24,11 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist var inline = dict["inline"].ToString(); script = new InlineScript(inline); } + if (dict.ContainsKey("source")) + { + var inline = dict["source"].ToString(); + script = new InlineScript(inline); + } if (dict.ContainsKey("file")) { var file = dict["file"].ToString(); diff --git a/src/Nest/CommonOptions/Stats/DocStats.cs b/src/Nest/CommonOptions/Stats/DocStats.cs index 9efaa5607d4..63d2f16b4c0 100644 --- a/src/Nest/CommonOptions/Stats/DocStats.cs +++ b/src/Nest/CommonOptions/Stats/DocStats.cs @@ -5,10 +5,10 @@ namespace Nest [JsonObject] public class DocStats { - [JsonProperty(PropertyName = "count")] + [JsonProperty("count")] public long Count { get; set; } - [JsonProperty(PropertyName = "deleted")] + [JsonProperty("deleted")] public long Deleted { get; set; } } } diff --git a/src/Nest/CommonOptions/Stats/FlushStats.cs b/src/Nest/CommonOptions/Stats/FlushStats.cs index 54c2ea90a3d..51bb633cb8c 100644 --- a/src/Nest/CommonOptions/Stats/FlushStats.cs +++ b/src/Nest/CommonOptions/Stats/FlushStats.cs @@ -5,13 +5,13 @@ namespace Nest [JsonObject] public class FlushStats { - - [JsonProperty(PropertyName = "total")] + + [JsonProperty("total")] public long Total { get; set; } - [JsonProperty(PropertyName = "total_time")] + [JsonProperty("total_time")] public string TotalTime { get; set; } - [JsonProperty(PropertyName = "total_time_in_millis")] + [JsonProperty("total_time_in_millis")] public long TotalTimeInMilliseconds { get; set; } } diff --git a/src/Nest/CommonOptions/Stats/GetStats.cs b/src/Nest/CommonOptions/Stats/GetStats.cs index 16ffdd9e7c6..4985a9f4036 100644 --- a/src/Nest/CommonOptions/Stats/GetStats.cs +++ b/src/Nest/CommonOptions/Stats/GetStats.cs @@ -5,31 +5,31 @@ namespace Nest [JsonObject] public class GetStats { - [JsonProperty(PropertyName = "current")] + [JsonProperty("current")] public long Current { get; set; } - [JsonProperty(PropertyName = "exists_time")] + [JsonProperty("exists_time")] public string ExistsTime { get; set; } - [JsonProperty(PropertyName = "exists_time_in_millis")] + [JsonProperty("exists_time_in_millis")] public long ExistsTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "exists_total")] + [JsonProperty("exists_total")] public long ExistsTotal { get; set; } - [JsonProperty(PropertyName = "missing_time")] + [JsonProperty("missing_time")] public string MissingTime { get; set; } - [JsonProperty(PropertyName = "missing_time_in_millis")] + [JsonProperty("missing_time_in_millis")] public long MissingTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "missing_total")] + [JsonProperty("missing_total")] public long MissingTotal { get; set; } - [JsonProperty(PropertyName = "time")] + [JsonProperty("time")] public string Time { get; set; } - [JsonProperty(PropertyName = "time_in_millis")] + [JsonProperty("time_in_millis")] public long TimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "total")] + [JsonProperty("total")] public long Total { get; set; } } diff --git a/src/Nest/CommonOptions/Stats/MergesStats.cs b/src/Nest/CommonOptions/Stats/MergesStats.cs index 66993027f59..3cd6d182bc8 100644 --- a/src/Nest/CommonOptions/Stats/MergesStats.cs +++ b/src/Nest/CommonOptions/Stats/MergesStats.cs @@ -5,47 +5,47 @@ namespace Nest [JsonObject] public class MergesStats { - - [JsonProperty(PropertyName = "current")] + + [JsonProperty("current")] public long Current { get; set; } - [JsonProperty(PropertyName = "current_docs")] + [JsonProperty("current_docs")] public long CurrentDocuments { get; set; } - [JsonProperty(PropertyName = "current_size")] + [JsonProperty("current_size")] public string CurrentSize { get; set; } - [JsonProperty(PropertyName = "current_size_in_bytes")] + [JsonProperty("current_size_in_bytes")] public long CurrentSizeInBytes { get; set; } - [JsonProperty(PropertyName = "total")] + [JsonProperty("total")] public long Total { get; set; } - [JsonProperty(PropertyName = "total_auto_throttle")] + [JsonProperty("total_auto_throttle")] public string TotalAutoThrottle { get; set; } - [JsonProperty(PropertyName = "total_auto_throttle_in_bytes")] + [JsonProperty("total_auto_throttle_in_bytes")] public long TotalAutoThrottleInBytes { get; set; } - [JsonProperty(PropertyName = "total_docs")] + [JsonProperty("total_docs")] public long TotalDocuments { get; set; } - [JsonProperty(PropertyName = "total_size")] + [JsonProperty("total_size")] public string TotalSize { get; set; } - [JsonProperty(PropertyName = "total_size_in_bytes")] + [JsonProperty("total_size_in_bytes")] public string TotalSizeInBytes { get; set; } - [JsonProperty(PropertyName = "total_stopped_time")] + [JsonProperty("total_stopped_time")] public string TotalStoppedTime { get; set; } - [JsonProperty(PropertyName = "total__stopped_time_in_millis")] + [JsonProperty("total__stopped_time_in_millis")] public long TotalStoppedTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "total_throttled_time")] + [JsonProperty("total_throttled_time")] public string TotalThrottledTime { get; set; } - [JsonProperty(PropertyName = "total_throttled_time_in_millis")] + [JsonProperty("total_throttled_time_in_millis")] public long TotalThrottledTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "total_time")] + [JsonProperty("total_time")] public string TotalTime { get; set; } - [JsonProperty(PropertyName = "total_time_in_millis")] + [JsonProperty("total_time_in_millis")] public long TotalTimeInMilliseconds { get; set; } } } diff --git a/src/Nest/CommonOptions/Stats/RefreshStats.cs b/src/Nest/CommonOptions/Stats/RefreshStats.cs index e9492ee2795..148a85982c6 100644 --- a/src/Nest/CommonOptions/Stats/RefreshStats.cs +++ b/src/Nest/CommonOptions/Stats/RefreshStats.cs @@ -5,13 +5,13 @@ namespace Nest [JsonObject] public class RefreshStats { - - [JsonProperty(PropertyName = "total")] + + [JsonProperty("total")] public long Total { get; set; } - [JsonProperty(PropertyName = "total_time")] + [JsonProperty("total_time")] public string TotalTime { get; set; } - [JsonProperty(PropertyName = "total_time_in_millis")] + [JsonProperty("total_time_in_millis")] public long TotalTimeInMilliseconds { get; set; } } diff --git a/src/Nest/CommonOptions/Stats/SearchStats.cs b/src/Nest/CommonOptions/Stats/SearchStats.cs index 6429871e998..24dce92911b 100644 --- a/src/Nest/CommonOptions/Stats/SearchStats.cs +++ b/src/Nest/CommonOptions/Stats/SearchStats.cs @@ -5,43 +5,43 @@ namespace Nest [JsonObject] public class SearchStats { - [JsonProperty(PropertyName = "open_contexts")] + [JsonProperty("open_contexts")] public long OpenContexts { get; set; } - [JsonProperty(PropertyName = "fetch_current")] + [JsonProperty("fetch_current")] public long FetchCurrent { get; set; } - [JsonProperty(PropertyName = "fetch_time_in_millis")] + [JsonProperty("fetch_time_in_millis")] public long FetchTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "fetch_total")] + [JsonProperty("fetch_total")] public long FetchTotal { get; set; } - [JsonProperty(PropertyName = "query_current")] + [JsonProperty("query_current")] public long QueryCurrent { get; set; } - [JsonProperty(PropertyName = "query_time_in_millis")] + [JsonProperty("query_time_in_millis")] public long QueryTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "query_total")] + [JsonProperty("query_total")] public long QueryTotal { get; set; } - [JsonProperty(PropertyName = "scroll_current")] + [JsonProperty("scroll_current")] public long ScrollCurrent { get; set; } - [JsonProperty(PropertyName = "scroll_time_in_millis")] + [JsonProperty("scroll_time_in_millis")] public long ScrollTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "scroll_total")] + [JsonProperty("scroll_total")] public long ScrollTotal { get; set; } - [JsonProperty(PropertyName = "suggest_current")] + [JsonProperty("suggest_current")] public long SuggestCurrent { get; set; } - [JsonProperty(PropertyName = "suggest_time_in_millis")] + [JsonProperty("suggest_time_in_millis")] public long SuggestTimeInMilliseconds { get; set; } - [JsonProperty(PropertyName = "suggest_total")] + [JsonProperty("suggest_total")] public long SuggestTotal { get; set; } } } diff --git a/src/Nest/CommonOptions/Stats/StoreStats.cs b/src/Nest/CommonOptions/Stats/StoreStats.cs index 3dae480ae69..3953bdd45ae 100644 --- a/src/Nest/CommonOptions/Stats/StoreStats.cs +++ b/src/Nest/CommonOptions/Stats/StoreStats.cs @@ -5,10 +5,10 @@ namespace Nest [JsonObject] public class StoreStats { - [JsonProperty(PropertyName = "size")] + [JsonProperty("size")] public string Size { get; set; } - [JsonProperty(PropertyName = "size_in_bytes")] + [JsonProperty("size_in_bytes")] public double SizeInBytes { get; set; } [JsonProperty("throttle_time")] diff --git a/src/Nest/Document/Multiple/Bulk/BulkOperation/BulkOperationBase.cs b/src/Nest/Document/Multiple/Bulk/BulkOperation/BulkOperationBase.cs index fced5c09329..f881c213cde 100644 --- a/src/Nest/Document/Multiple/Bulk/BulkOperation/BulkOperationBase.cs +++ b/src/Nest/Document/Multiple/Bulk/BulkOperation/BulkOperationBase.cs @@ -11,6 +11,7 @@ public abstract class BulkOperationBase : IBulkOperation public long? Version { get; set; } public VersionType? VersionType { get; set; } public string Routing { get; set; } + [Obsolete("This property is no longer available in indices created in Elasticsearch 6.x and up")] public Id Parent { get; set; } [Obsolete("This property is no longer returned on indices created in Elasticsearch 5.x and up")] public long? Timestamp { get; set; } @@ -60,6 +61,7 @@ public abstract class BulkOperationDescriptorBase long? IBulkOperation.Version { get; set; } VersionType? IBulkOperation.VersionType { get; set; } string IBulkOperation.Routing { get; set; } + [Obsolete("This feature is no longer supported on indices created in Elasticsearch 6.x and up")] Id IBulkOperation.Parent { get; set; } [Obsolete("This property is no longer returned on indices created in Elasticsearch 5.x and up")] long? IBulkOperation.Timestamp { get; set; } @@ -91,6 +93,7 @@ public abstract class BulkOperationDescriptorBase public TDescriptor Routing(string routing) => Assign(a => a.Routing = routing); + [Obsolete("This feature is no longer supported on indices created in Elasticsearch 6.x and up")] public TDescriptor Parent(Id parent) => Assign(a => a.Parent = parent); [Obsolete("This feature is no longer supported on indices created in Elasticsearch 5.x and up")] diff --git a/src/Nest/Document/Multiple/Bulk/BulkRequestJsonConverter.cs b/src/Nest/Document/Multiple/Bulk/BulkRequestJsonConverter.cs index a328d01168c..6014cac0ef2 100644 --- a/src/Nest/Document/Multiple/Bulk/BulkRequestJsonConverter.cs +++ b/src/Nest/Document/Multiple/Bulk/BulkRequestJsonConverter.cs @@ -20,9 +20,9 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s foreach(var op in bulk.Operations) { op.Index = op.Index ?? bulk.Index ?? op.ClrType; - if (op.Index.EqualsMarker(bulk.Index)) op.Index = null; + if (op.Index.Equals(bulk.Index)) op.Index = null; op.Type = op.Type ?? bulk.Type ?? op.ClrType; - if (op.Type.EqualsMarker(bulk.Type)) op.Type = null; + if (op.Type.Equals(bulk.Type)) op.Type = null; op.Id = op.GetIdForOperation(settings.Inferrer); var opJson = elasticsearchSerializer.SerializeToString(op, SerializationFormatting.None); diff --git a/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs b/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs index 09ff590698d..8c900c68496 100644 --- a/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs +++ b/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs @@ -12,7 +12,7 @@ public class BulkIndexResponseItem : BulkResponseItemBase /// /// Null if Percolation was not requested while indexing this doc, otherwise returns the percolator _ids that matched (if any) /// - [JsonProperty(PropertyName = "matches")] + [JsonProperty("matches")] public IEnumerable Matches { get; internal set; } } } diff --git a/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkResponseItemBase.cs b/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkResponseItemBase.cs index 562b62a7aca..13aa2a3f3c1 100644 --- a/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkResponseItemBase.cs +++ b/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkResponseItemBase.cs @@ -54,7 +54,13 @@ public interface IBulkResponseItem /// The shards associated with the bulk operation /// [JsonProperty("_shards")] - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } + + [JsonProperty("_seq_no")] + long SequenceNumber { get; } + + [JsonProperty("_primary_term")] + long PrimaryTerm { get; } /// /// Specifies wheter this particular bulk operation succeeded or not @@ -87,7 +93,13 @@ public abstract class BulkResponseItemBase : IBulkResponseItem public BulkError Error { get; internal set; } /// - public ShardsMetaData Shards { get; internal set; } + public ShardsMetadata Shards { get; internal set; } + + /// + public long SequenceNumber { get; internal set; } + + /// + public long PrimaryTerm { get; internal set; } /// public bool IsValid diff --git a/src/Nest/Document/Multiple/MultiGet/Request/IMultiGetOperation.cs b/src/Nest/Document/Multiple/MultiGet/Request/IMultiGetOperation.cs index 24ee54f6251..b372bb0adb0 100644 --- a/src/Nest/Document/Multiple/MultiGet/Request/IMultiGetOperation.cs +++ b/src/Nest/Document/Multiple/MultiGet/Request/IMultiGetOperation.cs @@ -7,22 +7,22 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter>))] public interface IMultiGetOperation { - [JsonProperty(PropertyName = "_index")] + [JsonProperty("_index")] IndexName Index { get; set; } - [JsonProperty(PropertyName = "_type")] + [JsonProperty("_type")] TypeName Type { get; set; } - [JsonProperty(PropertyName = "_id")] + [JsonProperty("_id")] Id Id { get; set; } - [JsonProperty(PropertyName = "stored_fields")] + [JsonProperty("stored_fields")] Fields StoredFields { get; set; } - [JsonProperty(PropertyName = "_routing")] + [JsonProperty("_routing")] string Routing { get; set; } - [JsonProperty(PropertyName = "_source")] + [JsonProperty("_source")] Union Source { get; set; } Type ClrType { get; } diff --git a/src/Nest/Document/Multiple/MultiGet/Response/MultiGetHit.cs b/src/Nest/Document/Multiple/MultiGet/Response/MultiGetHit.cs index c7e4b89010a..12dcfa2bae8 100644 --- a/src/Nest/Document/Multiple/MultiGet/Response/MultiGetHit.cs +++ b/src/Nest/Document/Multiple/MultiGet/Response/MultiGetHit.cs @@ -18,6 +18,7 @@ public interface IMultiGetHit where T : class string Id { get; } + [Obsolete("This feature is no longer supported on indices created in Elasticsearch 6.x and up")] string Parent { get; } string Routing { get; } diff --git a/src/Nest/Document/Multiple/Reindex/ReindexObservable.cs b/src/Nest/Document/Multiple/Reindex/ReindexObservable.cs index 3285eb0c307..f852c735374 100644 --- a/src/Nest/Document/Multiple/Reindex/ReindexObservable.cs +++ b/src/Nest/Document/Multiple/Reindex/ReindexObservable.cs @@ -105,7 +105,11 @@ private BulkAllObservable> BulkAll(IEnumerable string Version { get; } - /// - /// Whether or not the document was found and deleted from the index. - /// - bool Found { get; } - /// /// The operation that was performed on the document. /// Result Result { get; } + + ShardsMetadata Shards { get; } + long SequenceNumber { get; } + long PrimaryTerm { get; } } @@ -51,10 +50,16 @@ public class DeleteResponse : ResponseBase, IDeleteResponse [JsonProperty("_version")] public string Version { get; internal set; } - [JsonProperty("found")] - public bool Found { get; internal set; } - [JsonProperty("result")] public Result Result { get; internal set; } + + [JsonProperty("_shards")] + public ShardsMetadata Shards { get; internal set; } + + [JsonProperty("_seq_no")] + public long SequenceNumber { get; internal set; } + + [JsonProperty("_primary_term")] + public long PrimaryTerm { get; internal set; } } } diff --git a/src/Nest/Document/Single/Get/GetResponse.cs b/src/Nest/Document/Single/Get/GetResponse.cs index e460a5b1e21..b13b85552ee 100644 --- a/src/Nest/Document/Single/Get/GetResponse.cs +++ b/src/Nest/Document/Single/Get/GetResponse.cs @@ -30,6 +30,7 @@ public interface IGetResponse : IResponse where T : class FieldValues Fields { get; } [JsonProperty("_parent")] + [Obsolete("No longer returned on indices created in Elasticsearch 6.0")] string Parent { get; } [JsonProperty("_routing")] diff --git a/src/Nest/Document/Single/Index/IndexResponse.cs b/src/Nest/Document/Single/Index/IndexResponse.cs index 2b59aa1157d..39823ddf98b 100644 --- a/src/Nest/Document/Single/Index/IndexResponse.cs +++ b/src/Nest/Document/Single/Index/IndexResponse.cs @@ -8,8 +8,10 @@ public interface IIndexResponse : IResponse string Index { get; } string Type { get; } long Version { get; } - bool Created { get; } Result Result { get; } + ShardsMetadata Shards { get; } + long SequenceNumber { get; } + long PrimaryTerm { get; } } [JsonObject] @@ -27,11 +29,17 @@ public class IndexResponse : ResponseBase, IIndexResponse [JsonProperty("_version")] public long Version { get; internal set; } - [JsonProperty("created")] - public bool Created { get; internal set; } - [JsonProperty("result")] public Result Result { get; internal set; } + [JsonProperty("_shards")] + public ShardsMetadata Shards { get; internal set; } + + [JsonProperty("_seq_no")] + public long SequenceNumber { get; internal set; } + + [JsonProperty("_primary_term")] + public long PrimaryTerm { get; internal set; } + } } diff --git a/src/Nest/Document/Single/Update/UpdateRequest.cs b/src/Nest/Document/Single/Update/UpdateRequest.cs index 6d6444ce5b8..ed98a6e0d47 100644 --- a/src/Nest/Document/Single/Update/UpdateRequest.cs +++ b/src/Nest/Document/Single/Update/UpdateRequest.cs @@ -9,27 +9,30 @@ public partial interface IUpdateRequest where TDocument : class where TPartialDocument : class { - [JsonProperty(PropertyName = "script")] + [JsonProperty("script")] IScript Script { get; set; } - [JsonProperty(PropertyName = "upsert")] + [JsonProperty("upsert")] TDocument Upsert { get; set; } - [JsonProperty(PropertyName = "doc_as_upsert")] + [JsonProperty("doc_as_upsert")] bool? DocAsUpsert { get; set; } /// /// If you would like your script to run regardless of whether the document exists or not — i.e. the script handles /// initializing the document instead of the upsert element — then set scripted_upsert to true /// - [JsonProperty(PropertyName = "scripted_upsert")] + [JsonProperty("scripted_upsert")] bool? ScriptedUpsert { get; set; } - [JsonProperty(PropertyName = "doc")] + [JsonProperty("doc")] TPartialDocument Doc { get; set; } - [JsonProperty(PropertyName = "detect_noop")] + [JsonProperty("detect_noop")] bool? DetectNoop { get; set; } + + [JsonProperty("_source")] + Union Source { get; set; } } public partial class UpdateRequest @@ -48,12 +51,15 @@ public partial class UpdateRequest public bool? DetectNoop { get; set; } /// public bool? ScriptedUpsert { get; set; } + /// + public Union Source { get; set; } /// + [Obsolete("Removed in Elasticsearch 7.x, use source filtering instead")] public Fields Fields { - get { return Self.RequestParameters.GetQueryStringValue("fields"); } - set { Self.RequestParameters.AddQueryString("fields", value); } + get => Self.RequestParameters.GetQueryStringValue("fields"); + set => Self.RequestParameters.AddQueryString("fields", value); } } @@ -73,6 +79,8 @@ public partial class UpdateDescriptor bool? IUpdateRequest.ScriptedUpsert { get; set; } + Union IUpdateRequest.Source { get; set; } + /// /// The full document to be created if an existing document does not exist for a partial merge. /// @@ -95,9 +103,16 @@ public UpdateDescriptor Script(Func Fields(Fields fields) => Assign(a => a.RequestParameters.AddQueryString("fields", fields)); + public UpdateDescriptor Source(bool enabled = true) => Assign(a => a.Source = enabled); + + public UpdateDescriptor Source(Func, ISourceFilter> selector) => + Assign(a => a.Source = new Union(selector?.Invoke(new SourceFilterDescriptor()))); + + [Obsolete("Removed in Elasticsearch 7.x, use source filtering instead")] public UpdateDescriptor Fields(params Expression>[] typedPathLookups) => Assign(a => a.RequestParameters.AddQueryString("fields", typedPathLookups)); + [Obsolete("Removed in Elasticsearch 7.x, use source filtering instead")] public UpdateDescriptor Fields(params string[] fields) => Assign(a => a.RequestParameters.AddQueryString("fields", fields)); } diff --git a/src/Nest/Document/Single/Update/UpdateResponse.cs b/src/Nest/Document/Single/Update/UpdateResponse.cs index 7ac1bd3f621..cdeabc01c7d 100644 --- a/src/Nest/Document/Single/Update/UpdateResponse.cs +++ b/src/Nest/Document/Single/Update/UpdateResponse.cs @@ -5,22 +5,22 @@ namespace Nest public interface IUpdateResponse : IResponse where T : class { - [JsonProperty(PropertyName = "_shards")] - ShardsMetaData ShardsHit { get; } + [JsonProperty("_shards")] + ShardsMetadata ShardsHit { get; } - [JsonProperty(PropertyName = "_index")] + [JsonProperty("_index")] string Index { get; } - [JsonProperty(PropertyName = "_type")] + [JsonProperty("_type")] string Type { get; } - [JsonProperty(PropertyName = "_id")] + [JsonProperty("_id")] string Id { get; } - [JsonProperty(PropertyName = "_version")] + [JsonProperty("_version")] long Version { get; } - [JsonProperty(PropertyName = "get")] + [JsonProperty("get")] InstantGet Get { get; } [JsonProperty("result")] @@ -31,7 +31,7 @@ public interface IUpdateResponse : IResponse public class UpdateResponse : ResponseBase, IUpdateResponse where T : class { - public ShardsMetaData ShardsHit { get; private set; } + public ShardsMetadata ShardsHit { get; private set; } public string Index { get; private set; } public string Type { get; private set; } public string Id { get; private set; } diff --git a/src/Nest/Indices/Analyze/AnalyzeResponse.cs b/src/Nest/Indices/Analyze/AnalyzeResponse.cs index a8d63e59d8e..db5ba29e86e 100644 --- a/src/Nest/Indices/Analyze/AnalyzeResponse.cs +++ b/src/Nest/Indices/Analyze/AnalyzeResponse.cs @@ -11,7 +11,7 @@ public interface IAnalyzeResponse : IResponse [JsonObject] public class AnalyzeResponse : ResponseBase, IAnalyzeResponse { - [JsonProperty(PropertyName = "tokens")] + [JsonProperty("tokens")] public IReadOnlyCollection Tokens { get; internal set; } = EmptyReadOnly.Collection; } } diff --git a/src/Nest/Indices/Monitoring/IndicesSegments/IndexSegment.cs b/src/Nest/Indices/Monitoring/IndicesSegments/IndexSegment.cs index f2dc6e57ef9..ed5a4b436d5 100644 --- a/src/Nest/Indices/Monitoring/IndicesSegments/IndexSegment.cs +++ b/src/Nest/Indices/Monitoring/IndicesSegments/IndexSegment.cs @@ -6,7 +6,7 @@ namespace Nest [JsonObject] public class IndexSegment { - [JsonProperty(PropertyName = "shards")] + [JsonProperty("shards")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Shards { get; internal set; } = EmptyReadOnly.Dictionary; diff --git a/src/Nest/Indices/Monitoring/IndicesSegments/Segment.cs b/src/Nest/Indices/Monitoring/IndicesSegments/Segment.cs index 80cf3a3c8d5..38032e28d36 100644 --- a/src/Nest/Indices/Monitoring/IndicesSegments/Segment.cs +++ b/src/Nest/Indices/Monitoring/IndicesSegments/Segment.cs @@ -5,25 +5,25 @@ namespace Nest [JsonObject] public class Segment { - [JsonProperty(PropertyName = "generation")] + [JsonProperty("generation")] public int Generation { get; internal set; } - [JsonProperty(PropertyName = "num_docs")] + [JsonProperty("num_docs")] public long TotalDocuments { get; internal set; } - [JsonProperty(PropertyName = "deleted_docs")] + [JsonProperty("deleted_docs")] public long DeletedDocuments { get; internal set; } - [JsonProperty(PropertyName = "size")] + [JsonProperty("size")] public string Size { get; internal set; } - [JsonProperty(PropertyName = "size_in_bytes")] + [JsonProperty("size_in_bytes")] public double SizeInBytes { get; internal set; } - [JsonProperty(PropertyName = "committed")] + [JsonProperty("committed")] public bool Committed { get; internal set; } - [JsonProperty(PropertyName = "Search")] + [JsonProperty("Search")] public bool Search { get; internal set; } } -} \ No newline at end of file +} diff --git a/src/Nest/Indices/Monitoring/IndicesSegments/SegmentsResponse.cs b/src/Nest/Indices/Monitoring/IndicesSegments/SegmentsResponse.cs index e697c48e085..395b224c2ce 100644 --- a/src/Nest/Indices/Monitoring/IndicesSegments/SegmentsResponse.cs +++ b/src/Nest/Indices/Monitoring/IndicesSegments/SegmentsResponse.cs @@ -5,7 +5,7 @@ namespace Nest { public interface ISegmentsResponse : IResponse { - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } IReadOnlyDictionary Indices { get; } } @@ -13,10 +13,10 @@ public interface ISegmentsResponse : IResponse public class SegmentsResponse : ResponseBase, ISegmentsResponse { - [JsonProperty(PropertyName = "_shards")] - public ShardsMetaData Shards { get; internal set; } + [JsonProperty("_shards")] + public ShardsMetadata Shards { get; internal set; } - [JsonProperty(PropertyName = "indices")] + [JsonProperty("indices")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Indices { get; internal set; } = EmptyReadOnly.Dictionary; diff --git a/src/Nest/Indices/Monitoring/IndicesSegments/ShardSegmentRouting.cs b/src/Nest/Indices/Monitoring/IndicesSegments/ShardSegmentRouting.cs index 433a191c7a3..eb03707bdab 100644 --- a/src/Nest/Indices/Monitoring/IndicesSegments/ShardSegmentRouting.cs +++ b/src/Nest/Indices/Monitoring/IndicesSegments/ShardSegmentRouting.cs @@ -5,13 +5,13 @@ namespace Nest [JsonObject] public class ShardSegmentRouting { - [JsonProperty(PropertyName = "state")] + [JsonProperty("state")] public string State { get; internal set; } - [JsonProperty(PropertyName = "primary")] + [JsonProperty("primary")] public bool Primary { get; internal set; } - [JsonProperty(PropertyName = "node")] + [JsonProperty("node")] public string Node { get; internal set; } } } diff --git a/src/Nest/Indices/Monitoring/IndicesSegments/ShardsSegment.cs b/src/Nest/Indices/Monitoring/IndicesSegments/ShardsSegment.cs index f7c4e4d8ae1..3228b3887b2 100644 --- a/src/Nest/Indices/Monitoring/IndicesSegments/ShardsSegment.cs +++ b/src/Nest/Indices/Monitoring/IndicesSegments/ShardsSegment.cs @@ -9,13 +9,13 @@ namespace Nest [JsonConverter(typeof(ShardsSegment.Json))] public class ShardsSegment { - [JsonProperty(PropertyName = "num_committed_segments")] + [JsonProperty("num_committed_segments")] public int CommittedSegments { get; internal set; } - [JsonProperty(PropertyName = "num_search_segments")] + [JsonProperty("num_search_segments")] public int SearchSegments { get; internal set; } - [JsonProperty(PropertyName = "routing")] + [JsonProperty("routing")] public ShardSegmentRouting Routing { get; internal set; } [JsonProperty] diff --git a/src/Nest/Indices/Monitoring/IndicesShardStores/IndicesShardStoresResponse.cs b/src/Nest/Indices/Monitoring/IndicesShardStores/IndicesShardStoresResponse.cs index 70b57b259a3..b0683f0a8bc 100644 --- a/src/Nest/Indices/Monitoring/IndicesShardStores/IndicesShardStoresResponse.cs +++ b/src/Nest/Indices/Monitoring/IndicesShardStores/IndicesShardStoresResponse.cs @@ -7,7 +7,7 @@ namespace Nest { public interface IIndicesShardStoresResponse : IResponse { - [JsonProperty(PropertyName = "indices")] + [JsonProperty("indices")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] IReadOnlyDictionary Indices { get; } } @@ -20,14 +20,14 @@ public class IndicesShardStoresResponse : ResponseBase, IIndicesShardStoresRespo public class IndicesShardStores { - [JsonProperty(PropertyName = "shards")] + [JsonProperty("shards")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Shards { get; internal set; } = EmptyReadOnly.Dictionary; } public class ShardStoreWrapper { - [JsonProperty(PropertyName = "stores")] + [JsonProperty("stores")] public IReadOnlyCollection Stores { get; internal set; } = EmptyReadOnly.Collection; } diff --git a/src/Nest/Indices/Monitoring/IndicesStats/IndexStats.cs b/src/Nest/Indices/Monitoring/IndicesStats/IndexStats.cs index c5e05450518..6412169e2d0 100644 --- a/src/Nest/Indices/Monitoring/IndicesStats/IndexStats.cs +++ b/src/Nest/Indices/Monitoring/IndicesStats/IndexStats.cs @@ -5,52 +5,52 @@ namespace Nest [JsonObject] public class IndexStats { - [JsonProperty(PropertyName = "docs")] + [JsonProperty("docs")] public DocStats Documents { get; set; } - [JsonProperty(PropertyName = "store")] + [JsonProperty("store")] public StoreStats Store { get; set; } - [JsonProperty(PropertyName = "indexing")] + [JsonProperty("indexing")] public IndexingStats Indexing { get; set; } - [JsonProperty(PropertyName = "get")] + [JsonProperty("get")] public GetStats Get { get; set; } - [JsonProperty(PropertyName = "search")] + [JsonProperty("search")] public SearchStats Search { get; set; } - [JsonProperty(PropertyName = "merges")] + [JsonProperty("merges")] public MergesStats Merges { get; set; } - [JsonProperty(PropertyName = "refresh")] + [JsonProperty("refresh")] public RefreshStats Refresh { get; set; } - [JsonProperty(PropertyName = "flush")] + [JsonProperty("flush")] public FlushStats Flush { get; set; } - [JsonProperty(PropertyName = "warmer")] + [JsonProperty("warmer")] public WarmerStats Warmer { get; set; } - [JsonProperty(PropertyName = "query_cache")] + [JsonProperty("query_cache")] public QueryCacheStats QueryCache { get; set; } - [JsonProperty(PropertyName = "fielddata")] + [JsonProperty("fielddata")] public FielddataStats Fielddata { get; set; } - [JsonProperty(PropertyName = "completion")] + [JsonProperty("completion")] public CompletionStats Completion { get; set; } - [JsonProperty(PropertyName = "segments")] + [JsonProperty("segments")] public SegmentsStats Segments { get; set; } - [JsonProperty(PropertyName = "translog")] + [JsonProperty("translog")] public TranslogStats Translog { get; set; } - [JsonProperty(PropertyName = "request_cache")] + [JsonProperty("request_cache")] public RequestCacheStats RequestCache { get; set; } - [JsonProperty(PropertyName = "recovery")] + [JsonProperty("recovery")] public RecoveryStats Recovery { get; set; } } } diff --git a/src/Nest/Indices/Monitoring/IndicesStats/IndicesStats.cs b/src/Nest/Indices/Monitoring/IndicesStats/IndicesStats.cs index e2ce302e1dd..6168d548558 100644 --- a/src/Nest/Indices/Monitoring/IndicesStats/IndicesStats.cs +++ b/src/Nest/Indices/Monitoring/IndicesStats/IndicesStats.cs @@ -5,9 +5,9 @@ namespace Nest [JsonObject] public class IndicesStats { - [JsonProperty(PropertyName = "primaries")] + [JsonProperty("primaries")] public IndexStats Primaries { get; set; } - [JsonProperty(PropertyName = "total")] + [JsonProperty("total")] public IndexStats Total { get; set; } } } diff --git a/src/Nest/Indices/Monitoring/IndicesStats/IndicesStatsResponse.cs b/src/Nest/Indices/Monitoring/IndicesStats/IndicesStatsResponse.cs index f719068feeb..118ca640f75 100644 --- a/src/Nest/Indices/Monitoring/IndicesStats/IndicesStatsResponse.cs +++ b/src/Nest/Indices/Monitoring/IndicesStats/IndicesStatsResponse.cs @@ -5,7 +5,7 @@ namespace Nest { public interface IIndicesStatsResponse : IResponse { - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } IndicesStats Stats { get;} IReadOnlyDictionary Indices { get; } } @@ -14,13 +14,13 @@ public interface IIndicesStatsResponse : IResponse public class IndicesStatsResponse : ResponseBase, IIndicesStatsResponse { - [JsonProperty(PropertyName = "_shards")] - public ShardsMetaData Shards { get; internal set; } + [JsonProperty("_shards")] + public ShardsMetadata Shards { get; internal set; } - [JsonProperty(PropertyName = "_all")] + [JsonProperty("_all")] public IndicesStats Stats { get; internal set; } - [JsonProperty(PropertyName = "indices")] + [JsonProperty("indices")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Indices { get; internal set; } = EmptyReadOnly.Dictionary; diff --git a/src/Nest/Indices/StatusManagement/Upgrade/UpgradeResponse.cs b/src/Nest/Indices/StatusManagement/Upgrade/UpgradeResponse.cs index 3b39665cc8f..4d3b2d5756d 100644 --- a/src/Nest/Indices/StatusManagement/Upgrade/UpgradeResponse.cs +++ b/src/Nest/Indices/StatusManagement/Upgrade/UpgradeResponse.cs @@ -5,11 +5,11 @@ namespace Nest public interface IUpgradeResponse : IResponse { [JsonProperty("_shards")] - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } } public class UpgradeResponse : ResponseBase, IUpgradeResponse { - public ShardsMetaData Shards { get; internal set; } + public ShardsMetadata Shards { get; internal set; } } } diff --git a/src/Nest/Ingest/Processor/ElasticClient-GrokProcessorPatterns.cs b/src/Nest/Ingest/Processor/ElasticClient-GrokProcessorPatterns.cs new file mode 100644 index 00000000000..1ebb3f3d7ea --- /dev/null +++ b/src/Nest/Ingest/Processor/ElasticClient-GrokProcessorPatterns.cs @@ -0,0 +1,52 @@ +using System; +using System.Threading.Tasks; +using Elasticsearch.Net; +using System.Threading; + +namespace Nest +{ + public partial interface IElasticClient + { + /// + /// Retrieving which patterns the grok processor is packaged with, useful as different versions are bundled with different processors. + /// https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html + /// + /// An optional descriptor to further describe the endpoint usage operation + IGrokProcessorPatternsResponse GrokProcessorPatterns(Func selector = null); + + /// + IGrokProcessorPatternsResponse GrokProcessorPatterns(IGrokProcessorPatternsRequest request); + + /// + Task GrokProcessorPatternsAsync(Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + Task GrokProcessorPatternsAsync(IGrokProcessorPatternsRequest request, CancellationToken cancellationToken = default(CancellationToken)); + } + + public partial class ElasticClient + { + /// + public IGrokProcessorPatternsResponse GrokProcessorPatterns(Func selector = null) => + this.GrokProcessorPatterns(selector.InvokeOrDefault(new GrokProcessorPatternsDescriptor())); + + /// + public IGrokProcessorPatternsResponse GrokProcessorPatterns(IGrokProcessorPatternsRequest request) => + this.Dispatcher.Dispatch( + request, + (p, d) => this.LowLevelDispatch.IngestProcessorGrokDispatch(p) + ); + + /// + public Task GrokProcessorPatternsAsync(Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => + this.GrokProcessorPatternsAsync(selector.InvokeOrDefault(new GrokProcessorPatternsDescriptor()), cancellationToken); + + /// + public Task GrokProcessorPatternsAsync(IGrokProcessorPatternsRequest request, CancellationToken cancellationToken = default(CancellationToken)) => + this.Dispatcher.DispatchAsync( + request, + cancellationToken, + (p, d, c) => this.LowLevelDispatch.IngestProcessorGrokDispatchAsync(p, c) + ); + } +} diff --git a/src/Nest/Ingest/Processor/GrokProcessorPatternsRequest.cs b/src/Nest/Ingest/Processor/GrokProcessorPatternsRequest.cs new file mode 100644 index 00000000000..b75d80aef6d --- /dev/null +++ b/src/Nest/Ingest/Processor/GrokProcessorPatternsRequest.cs @@ -0,0 +1,9 @@ +namespace Nest +{ + public partial interface IGrokProcessorPatternsRequest { } + + public partial class GrokProcessorPatternsRequest { } + + [DescriptorFor("IngestProcessorGrok")] + public partial class GrokProcessorPatternsDescriptor { } +} diff --git a/src/Nest/Ingest/Processor/GrokProcessorPatternsResponse.cs b/src/Nest/Ingest/Processor/GrokProcessorPatternsResponse.cs new file mode 100644 index 00000000000..4142e70d2fe --- /dev/null +++ b/src/Nest/Ingest/Processor/GrokProcessorPatternsResponse.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Nest +{ + public interface IGrokProcessorPatternsResponse : IResponse + { + IReadOnlyDictionary Patterns { get; } + } + + public class GrokProcessorPatternsResponse : ResponseBase, IGrokProcessorPatternsResponse + { + [JsonProperty("patterns")] + public IReadOnlyDictionary Patterns { get; internal set; } = EmptyReadOnly.Dictionary; + } +} diff --git a/src/Nest/Ingest/Processors/ScriptProcessor.cs b/src/Nest/Ingest/Processors/ScriptProcessor.cs index edcdf2c03d9..b16b492a0b4 100644 --- a/src/Nest/Ingest/Processors/ScriptProcessor.cs +++ b/src/Nest/Ingest/Processors/ScriptProcessor.cs @@ -35,7 +35,11 @@ public interface IScriptProcessor : IProcessor /// /// An inline script to be executed /// - [JsonProperty("inline")] + [JsonProperty("source")] + string Source { get; set; } + + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] string Inline { get; set; } /// @@ -68,10 +72,11 @@ public class ScriptProcessor : ProcessorBase, IScriptProcessor /// public string Id { get; set; } - /// - /// An inline script to be executed - /// - public string Inline { get; set; } + /// An inline script to be executed + public string Source { get; set; } + /// An inline script to be executed + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + public string Inline { get => this.Source; set => this.Source = value; } /// /// Parameters for the script @@ -90,7 +95,8 @@ public class ScriptProcessorDescriptor string IScriptProcessor.Lang { get; set; } string IScriptProcessor.File{ get; set; } string IScriptProcessor.Id{ get; set; } - string IScriptProcessor.Inline { get; set; } + string IScriptProcessor.Inline { get => Self.Source; set => Self.Source = value; } + string IScriptProcessor.Source { get; set; } Dictionary IScriptProcessor.Params { get; set; } /// @@ -111,8 +117,14 @@ public class ScriptProcessorDescriptor /// /// An inline script to be executed /// + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] public ScriptProcessorDescriptor Inline(string inline) => Assign(a => a.Inline = inline); + /// + /// An inline script to be executed + /// + public ScriptProcessorDescriptor Source(string source) => Assign(a => a.Source = source); + /// /// Parameters for the script /// diff --git a/src/Nest/Mapping/DynamicTemplate/SingleMapping.cs b/src/Nest/Mapping/DynamicTemplate/SingleMapping.cs index 826173aacbb..403bbc1c355 100644 --- a/src/Nest/Mapping/DynamicTemplate/SingleMapping.cs +++ b/src/Nest/Mapping/DynamicTemplate/SingleMapping.cs @@ -79,6 +79,9 @@ public IProperty IntegerRange(Func, IIntegerRa public IProperty LongRange(Func, ILongRangeProperty> selector) => selector?.Invoke(new LongRangePropertyDescriptor()); + public IProperty Join(Func, IJoinProperty> selector) => + selector?.Invoke(new JoinPropertyDescriptor()); + #pragma warning disable CS3001 // Argument type is not CLS-compliant public IProperty Scalar(Expression> field, Func, INumberProperty> selector = null) => selector.InvokeOrDefault(new NumberPropertyDescriptor().Name(field).Type(NumberType.Integer)); diff --git a/src/Nest/Mapping/Mappings.cs b/src/Nest/Mapping/Mappings.cs index fed9fb98a5c..b0c9978c777 100644 --- a/src/Nest/Mapping/Mappings.cs +++ b/src/Nest/Mapping/Mappings.cs @@ -22,15 +22,37 @@ public Mappings(Dictionary container) public class MappingsDescriptor : IsADictionaryDescriptorBase { public MappingsDescriptor() : base(new Mappings()) { } + internal MappingsDescriptor(IMappings mappings) : base(mappings) { } - public MappingsDescriptor Map(Func, ITypeMapping> selector) where T : class => - Assign(typeof (T), selector?.Invoke(new TypeMappingDescriptor())); + protected MultipleMappingsDescriptor AssignMap(IPromise d) => + new MultipleMappingsDescriptor(d.Value); - public MappingsDescriptor Map(TypeName name, Func, ITypeMapping> selector) where T : class => - Assign(name, selector?.Invoke(new TypeMappingDescriptor())); + public virtual MultipleMappingsDescriptor Map(Func, ITypeMapping> selector) where T : class => + AssignMap(Assign(typeof (T), selector?.Invoke(new TypeMappingDescriptor()))); - public MappingsDescriptor Map(TypeName name, Func, ITypeMapping> selector) => - Assign(name, selector?.Invoke(new TypeMappingDescriptor())); + public virtual MultipleMappingsDescriptor Map(TypeName name, Func, ITypeMapping> selector) where T : class => + AssignMap(Assign(name, selector?.Invoke(new TypeMappingDescriptor()))); + + public virtual MultipleMappingsDescriptor Map(TypeName name, Func, ITypeMapping> selector) => + AssignMap(Assign(name, selector?.Invoke(new TypeMappingDescriptor()))); + } + + public class MultipleMappingsDescriptor : MappingsDescriptor + { + internal MultipleMappingsDescriptor(IMappings mappings) : base(mappings) { } + +#pragma warning disable 0809 + [Obsolete("Mapping multiple types is no longer supported on indices created in Elasticsearch 6.x and up")] + public override MultipleMappingsDescriptor Map(Func, ITypeMapping> selector) => + AssignMap(Assign(typeof(T), selector?.Invoke(new TypeMappingDescriptor()))); + + [Obsolete("Mapping multiple types is no longer supported on indices created in Elasticsearch 6.x and up")] + public override MultipleMappingsDescriptor Map(TypeName name, Func, ITypeMapping> selector) => + AssignMap(Assign(name, selector?.Invoke(new TypeMappingDescriptor()))); + + [Obsolete("Mapping multiple types is no longer supported on indices created in Elasticsearch 6.x and up")] + public override MultipleMappingsDescriptor Map(TypeName name, Func, ITypeMapping> selector) => + AssignMap(Assign(name, selector?.Invoke(new TypeMappingDescriptor()))); } diff --git a/src/Nest/Mapping/TypeMapping.cs b/src/Nest/Mapping/TypeMapping.cs index 2af948e588d..b666432428b 100644 --- a/src/Nest/Mapping/TypeMapping.cs +++ b/src/Nest/Mapping/TypeMapping.cs @@ -136,6 +136,17 @@ public class TypeMappingDescriptor : DescriptorBase, public TypeMappingDescriptor AutoMap(IPropertyVisitor visitor = null, int maxRecursion = 0) => Assign(a => a.Properties = a.Properties.AutoMap(visitor, maxRecursion)); + /// + /// Convenience method to map as much as it can based on attributes set on the type. + /// This particular overload is useful for automapping any children + ///
This method also automatically sets up mappings for known values types (int, long, double, datetime, etc)
+ ///
Class types default to object and Enums to int
+ ///
Later calls can override whatever is set is by this call.
+ ///
+ public TypeMappingDescriptor AutoMap(IPropertyVisitor visitor = null, int maxRecursion = 0) + where TDocument : class => + Assign(a => a.Properties = a.Properties.AutoMap(visitor, maxRecursion)); + /// public TypeMappingDescriptor AutoMap(int maxRecursion) => AutoMap(null, maxRecursion); @@ -205,6 +216,10 @@ public TypeMappingDescriptor Meta(Func, Flue public TypeMappingDescriptor Properties(Func, IPromise> propertiesSelector) => Assign(a => a.Properties = propertiesSelector?.Invoke(new PropertiesDescriptor(Self.Properties))?.Value); + public TypeMappingDescriptor Properties(Func, IPromise> propertiesSelector) + where TDocument : class => + Assign(a => a.Properties = propertiesSelector?.Invoke(new PropertiesDescriptor(Self.Properties))?.Value); + /// public TypeMappingDescriptor DynamicTemplates(Func, IPromise> dynamicTemplatesSelector) => Assign(a => a.DynamicTemplates = dynamicTemplatesSelector?.Invoke(new DynamicTemplateContainerDescriptor())?.Value); diff --git a/src/Nest/Mapping/Types/Core/Join/Children.cs b/src/Nest/Mapping/Types/Core/Join/Children.cs new file mode 100644 index 00000000000..c2c48e43637 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Join/Children.cs @@ -0,0 +1,33 @@ +using System; +using System.CodeDom; +using System.Collections.Generic; +using System.Linq; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + +namespace Nest +{ + [JsonConverter(typeof(ChildrenJsonConverter))] + public class Children : List + { + public Children() { } + + public Children(RelationName child, params RelationName[] moreChildren) + { + if (child != null) this.Add(child); + if (moreChildren == null || moreChildren.Length == 0) return; + this.AddRange(moreChildren); + } + + public static implicit operator Children(RelationName child) + { + if (child == null) return null; + var children = new Children{child}; + return children; + } + + public static implicit operator Children(Type type) => type == null ? null : new Children { type }; + public static implicit operator Children(string type) => type == null ? null : new Children { type }; + } + +} diff --git a/src/Nest/Mapping/Types/Core/Join/ChildrenJsonConverter.cs b/src/Nest/Mapping/Types/Core/Join/ChildrenJsonConverter.cs new file mode 100644 index 00000000000..9984f6a0fa5 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Join/ChildrenJsonConverter.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Elasticsearch.Net; +using Newtonsoft.Json; + +namespace Nest +{ + internal class ChildrenJsonConverter : JsonConverter + { + public override bool CanConvert(Type objectType) => true; + + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + var children = value as Children; + if (children == null || children.Count == 0) + { + writer.WriteNull(); + return; + } + var settings = serializer.GetConnectionSettings(); + var resolved = children.Cast().ToList(); + if (resolved.Count == 1) + { + writer.WriteValue(resolved[0].GetString(settings)); + return; + } + writer.WriteStartArray(); + foreach(var r in resolved) + writer.WriteValue(r.GetString(settings)); + writer.WriteEndArray(); + } + + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + var c = new Children(); + if (reader.TokenType == JsonToken.String) + { + var type = reader.Value.ToString(); + c.Add(type); + return c; + } + if (reader.TokenType != JsonToken.StartArray) return null; + var types = new List { }; + while (reader.TokenType != JsonToken.EndArray) + { + var type = reader.ReadAsString(); + if (reader.TokenType == JsonToken.String) + types.Add(type); + } + c.AddRange(types); + return c; + } + + } +} diff --git a/src/Nest/Mapping/Types/Core/Join/JoinAttribute.cs b/src/Nest/Mapping/Types/Core/Join/JoinAttribute.cs new file mode 100644 index 00000000000..4b4226ae7a6 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Join/JoinAttribute.cs @@ -0,0 +1,33 @@ +using System; +using System.Linq; + +#pragma warning disable 3015 + +namespace Nest +{ + public class JoinAttribute : ElasticsearchPropertyAttributeBase, IJoinProperty + { + public JoinAttribute(RelationName parent, RelationName child, params RelationName[] moreChildren) : base(FieldType.Join) + { + Self.Relations = new Relations {{ parent, new Children(child, moreChildren) }}; + } + + public JoinAttribute(Type parent, Type child, params Type[] moreChildren) : base(FieldType.Join) + { + var children = new Children { child }; + children.AddRange(moreChildren.Select(c => (RelationName) c)); + Self.Relations = new Relations {{ parent, children}}; + } + + public JoinAttribute(string parent, string child, params string[] moreChildren) : base(FieldType.Join) + { + var children = new Children{ child }; + children.AddRange(moreChildren.Select(c => (RelationName) c)); + Self.Relations = new Relations {{ parent, children}}; + } + + private IJoinProperty Self => this; + + IRelations IJoinProperty.Relations { get; set; } + } +} diff --git a/src/Nest/Mapping/Types/Core/Join/JoinField.cs b/src/Nest/Mapping/Types/Core/Join/JoinField.cs new file mode 100644 index 00000000000..1da71f3ae44 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Join/JoinField.cs @@ -0,0 +1,46 @@ +using System.CodeDom; +using Newtonsoft.Json; + +namespace Nest +{ + [JsonConverter(typeof(JoinFieldJsonConverter))] + public class JoinField : Union + { + public JoinField(Parent parent) : base(parent) { } + + public JoinField(Child child) : base(child) { } + + public static JoinField Root() => new Parent(typeof(TParent)); + public static JoinField Root(RelationName parent) => new Parent(parent); + + public static JoinField Link(RelationName child, Id parentId) => new Child(child, parentId); + public static JoinField Link(TParentDocument parent) where TParentDocument : class => + new Child(typeof(TChild), Id.From(parent)); + public static JoinField Link(Id parentId) => new Child(typeof(TChild), parentId); + + public static implicit operator JoinField(Parent parent) => new JoinField(parent); + public static implicit operator JoinField(string parentName) => new JoinField(new Parent(parentName)); + public static implicit operator JoinField(Child child) => new JoinField(child); + + public class Parent + { + internal RelationName Name { get; } + + public Parent(RelationName name) + { + Name = name; + } + } + public class Child + { + internal Id Parent { get; } + internal RelationName Name { get; } + + public Child(RelationName name, Id parent) + { + Name = name; + Parent = parent; + } + } + } +} diff --git a/src/Nest/Mapping/Types/Core/Join/JoinFieldJsonConverter.cs b/src/Nest/Mapping/Types/Core/Join/JoinFieldJsonConverter.cs new file mode 100644 index 00000000000..6596f87d637 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Join/JoinFieldJsonConverter.cs @@ -0,0 +1,53 @@ +using System; +using System.Linq; +using Elasticsearch.Net; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + +namespace Nest +{ + internal class JoinFieldJsonConverter :JsonConverter + { + public override bool CanRead => true; + public override bool CanWrite => true; + + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == JsonToken.String) + { + var parent = reader.Value.ToString(); + return new JoinField(new JoinField.Parent(parent)); + } + var jObject = JObject.Load(reader); + if (jObject.Properties().Any(p=>p.Name == "parent")) + using(var childReader = jObject.CreateReader()) + return (JoinField)serializer.Deserialize(childReader); + + using(var parentReader = jObject.CreateReader()) + return (JoinField)serializer.Deserialize(parentReader); + } + + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + var join = value as JoinField; + if (join == null) + { + writer.WriteNull(); + return; + } + join.Match( + p => serializer.Serialize(writer, p.Name), + c => + { + writer.WriteStartObject(); + writer.WriteProperty(serializer, "name", c.Name); + var id = (c.Parent as IUrlParameter)?.GetString(serializer.GetConnectionSettings()); + writer.WriteProperty(serializer, "parent", id); + writer.WriteEndObject(); + } + ); + } + + public override bool CanConvert(Type objectType) => true; + } +} diff --git a/src/Nest/Mapping/Types/Core/Join/JoinProperty.cs b/src/Nest/Mapping/Types/Core/Join/JoinProperty.cs new file mode 100644 index 00000000000..a20f0b2d7e5 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Join/JoinProperty.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Newtonsoft.Json; + +namespace Nest +{ + [JsonObject(MemberSerialization.OptIn)] + public interface IJoinProperty : IProperty + { + /// + /// Should the field be searchable? Accepts true (default) and false. + /// + [JsonProperty("relations")] + IRelations Relations { get; set; } + } + + [DebuggerDisplay("{DebugDisplay}")] + public class JoinProperty : PropertyBase, IJoinProperty + { + public JoinProperty() : base(FieldType.Join) { } + + public IRelations Relations { get; set; } + } + + [DebuggerDisplay("{DebugDisplay}")] + public class JoinPropertyDescriptor : PropertyDescriptorBase, IJoinProperty, T>, IJoinProperty + where T : class + { + public JoinPropertyDescriptor() : base(FieldType.Join) { } + + IRelations IJoinProperty.Relations { get; set; } + + public JoinPropertyDescriptor Relations(Func> selector) => + Assign(a => a.Relations = selector?.Invoke(new RelationsDescriptor())?.Value); + } +} diff --git a/src/Nest/Mapping/Types/Core/Join/Relations.cs b/src/Nest/Mapping/Types/Core/Join/Relations.cs new file mode 100644 index 00000000000..9c625f9dd53 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Join/Relations.cs @@ -0,0 +1,34 @@ +using System.Collections.Generic; +using System.Linq; +using Newtonsoft.Json; + +namespace Nest +{ + [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] + public interface IRelations : IIsADictionary { } + + public class Relations : IsADictionaryBase, IRelations + { + public Relations() {} + public Relations(IDictionary container) : base(container) { } + public Relations(Dictionary container) + : base(container.Select(kv => kv).ToDictionary(kv => kv.Key, kv => kv.Value)) + { } + + public void Add(RelationName type, Children children) => BackingDictionary.Add(type, children); + public void Add(RelationName type, RelationName child, params RelationName[] moreChildren) => + BackingDictionary.Add(type, new Children(child, moreChildren)); + } + + public class RelationsDescriptor : IsADictionaryDescriptorBase + { + public RelationsDescriptor() : base(new Relations()) { } + internal RelationsDescriptor(IRelations relations) : base(relations) { } + + public RelationsDescriptor Join(RelationName parent, RelationName child, params RelationName[] moreChildren) => + Assign(parent, new Children(child, moreChildren)); + public RelationsDescriptor Join(RelationName child, params RelationName[] moreChildren) => + Assign(typeof(TParent), new Children(child, moreChildren)); + public RelationsDescriptor Join() => Assign(typeof(TParent), typeof(TChild)); + } +} diff --git a/src/Nest/Mapping/Types/FieldType.cs b/src/Nest/Mapping/Types/FieldType.cs index 00f230a4437..cff1dcbf6f1 100644 --- a/src/Nest/Mapping/Types/FieldType.cs +++ b/src/Nest/Mapping/Types/FieldType.cs @@ -86,5 +86,7 @@ public enum FieldType DoubleRange, [EnumMember(Value = "date_range")] DateRange, + [EnumMember(Value = "join")] + Join, } } diff --git a/src/Nest/Mapping/Types/Properties.cs b/src/Nest/Mapping/Types/Properties.cs index 5ba14caa339..eb2529b1ac6 100644 --- a/src/Nest/Mapping/Types/Properties.cs +++ b/src/Nest/Mapping/Types/Properties.cs @@ -66,9 +66,11 @@ TReturnType Nested(Func, INestedProp TReturnType FloatRange(Func, IFloatRangeProperty> selector); TReturnType IntegerRange(Func, IIntegerRangeProperty> selector); TReturnType LongRange(Func, ILongRangeProperty> selector); + TReturnType Join(Func, IJoinProperty> selector); } - public partial class PropertiesDescriptor : IsADictionaryDescriptorBase, IProperties, PropertyName, IProperty>, IPropertiesDescriptor> + public partial class PropertiesDescriptor + : IsADictionaryDescriptorBase, IProperties, PropertyName, IProperty>, IPropertiesDescriptor> where T : class { public PropertiesDescriptor() : base(new Properties()) { } @@ -125,6 +127,8 @@ public PropertiesDescriptor Nested(Func LongRange(Func, ILongRangeProperty> selector) => SetProperty(selector); + public PropertiesDescriptor Join(Func, IJoinProperty> selector) => SetProperty(selector); + public PropertiesDescriptor Custom(IProperty customType) => SetProperty(customType); private PropertiesDescriptor SetProperty(Func selector) diff --git a/src/Nest/Mapping/Types/PropertyJsonConverter.cs b/src/Nest/Mapping/Types/PropertyJsonConverter.cs index 44a44c15e72..e34de0a58b0 100644 --- a/src/Nest/Mapping/Types/PropertyJsonConverter.cs +++ b/src/Nest/Mapping/Types/PropertyJsonConverter.cs @@ -83,6 +83,8 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist return jObject.ToObject(); case FieldType.LongRange: return jObject.ToObject(); + case FieldType.Join: + return jObject.ToObject(); case FieldType.None: break; default: diff --git a/src/Nest/Mapping/Visitor/IMappingVisitor.cs b/src/Nest/Mapping/Visitor/IMappingVisitor.cs index 6bc4bac0ce0..ab5b35d96d0 100644 --- a/src/Nest/Mapping/Visitor/IMappingVisitor.cs +++ b/src/Nest/Mapping/Visitor/IMappingVisitor.cs @@ -29,6 +29,7 @@ public interface IMappingVisitor void Visit(ILongRangeProperty property); void Visit(IDoubleRangeProperty property); void Visit(IDateRangeProperty property); + void Visit(IJoinProperty property); } public class NoopMappingVisitor : IMappingVisitor @@ -80,5 +81,7 @@ public virtual void Visit(ILongRangeProperty property) { } public virtual void Visit(IDoubleRangeProperty property) { } public virtual void Visit(IDateRangeProperty property) { } + + public virtual void Visit(IJoinProperty property) { } } } diff --git a/src/Nest/Mapping/Visitor/MappingWalker.cs b/src/Nest/Mapping/Visitor/MappingWalker.cs index 02080abd4bf..b795f9af143 100644 --- a/src/Nest/Mapping/Visitor/MappingWalker.cs +++ b/src/Nest/Mapping/Visitor/MappingWalker.cs @@ -212,6 +212,12 @@ public void Accept(IProperties properties) this.Accept(t.Fields); }); break; + case FieldType.Join: + this.Visit(field, t => + { + this._visitor.Visit(t); + }); + break; } } } diff --git a/src/Nest/Mapping/Visitor/PropertyWalker.cs b/src/Nest/Mapping/Visitor/PropertyWalker.cs index 7084910e8c8..de5e55e6afd 100644 --- a/src/Nest/Mapping/Visitor/PropertyWalker.cs +++ b/src/Nest/Mapping/Visitor/PropertyWalker.cs @@ -157,7 +157,7 @@ private IProperty InferProperty(Type type) return new ObjectProperty(); } - private Type GetUnderlyingType(Type type) + private static Type GetUnderlyingType(Type type) { if (type.IsArray) return type.GetElementType(); diff --git a/src/Nest/Modules/Scripting/DeleteScript/ElasticClient-DeleteScript.cs b/src/Nest/Modules/Scripting/DeleteScript/ElasticClient-DeleteScript.cs index b6c7e4fdfd8..b688ea523e4 100644 --- a/src/Nest/Modules/Scripting/DeleteScript/ElasticClient-DeleteScript.cs +++ b/src/Nest/Modules/Scripting/DeleteScript/ElasticClient-DeleteScript.cs @@ -8,13 +8,13 @@ namespace Nest public partial interface IElasticClient { /// - IDeleteScriptResponse DeleteScript(Name language, Id id, Func selector = null); + IDeleteScriptResponse DeleteScript(Id id, Func selector = null); /// IDeleteScriptResponse DeleteScript(IDeleteScriptRequest request); /// - Task DeleteScriptAsync(Name language, Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteScriptAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); /// Task DeleteScriptAsync(IDeleteScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)); @@ -30,12 +30,12 @@ public IDeleteScriptResponse DeleteScript(IDeleteScriptRequest request) => ); /// - public IDeleteScriptResponse DeleteScript(Name language, Id id, Func selector = null) => - this.DeleteScript(selector.InvokeOrDefault(new DeleteScriptDescriptor(language, id))); + public IDeleteScriptResponse DeleteScript(Id id, Func selector = null) => + this.DeleteScript(selector.InvokeOrDefault(new DeleteScriptDescriptor(id))); /// - public Task DeleteScriptAsync(Name language, Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => - this.DeleteScriptAsync(selector.InvokeOrDefault(new DeleteScriptDescriptor(language, id)), cancellationToken); + public Task DeleteScriptAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => + this.DeleteScriptAsync(selector.InvokeOrDefault(new DeleteScriptDescriptor(id)), cancellationToken); /// public Task DeleteScriptAsync(IDeleteScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)) => diff --git a/src/Nest/Modules/Scripting/GetScript/ElasticClient-GetScript.cs b/src/Nest/Modules/Scripting/GetScript/ElasticClient-GetScript.cs index 3456bfe75c9..82bbbbf72e7 100644 --- a/src/Nest/Modules/Scripting/GetScript/ElasticClient-GetScript.cs +++ b/src/Nest/Modules/Scripting/GetScript/ElasticClient-GetScript.cs @@ -9,13 +9,13 @@ public partial interface IElasticClient { /// - IGetScriptResponse GetScript(Name language, Id id, Func selector = null); + IGetScriptResponse GetScript(Id id, Func selector = null); /// IGetScriptResponse GetScript(IGetScriptRequest request); /// - Task GetScriptAsync(Name language, Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); + Task GetScriptAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); /// Task GetScriptAsync(IGetScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)); @@ -25,8 +25,8 @@ public partial interface IElasticClient public partial class ElasticClient { /// - public IGetScriptResponse GetScript(Name language, Id id, Func selector = null) => - this.GetScript(selector.InvokeOrDefault(new GetScriptDescriptor(language, id))); + public IGetScriptResponse GetScript(Id id, Func selector = null) => + this.GetScript(selector.InvokeOrDefault(new GetScriptDescriptor(id))); /// public IGetScriptResponse GetScript(IGetScriptRequest request) => @@ -36,8 +36,8 @@ public IGetScriptResponse GetScript(IGetScriptRequest request) => ); /// - public Task GetScriptAsync(Name language, Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => - this.GetScriptAsync(selector.InvokeOrDefault(new GetScriptDescriptor(language, id)), cancellationToken); + public Task GetScriptAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => + this.GetScriptAsync(selector.InvokeOrDefault(new GetScriptDescriptor(id)), cancellationToken); /// public Task GetScriptAsync(IGetScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)) => diff --git a/src/Nest/Modules/Scripting/GetScript/GetScriptResponse.cs b/src/Nest/Modules/Scripting/GetScript/GetScriptResponse.cs index d60e97bea29..16073fe1a50 100644 --- a/src/Nest/Modules/Scripting/GetScript/GetScriptResponse.cs +++ b/src/Nest/Modules/Scripting/GetScript/GetScriptResponse.cs @@ -1,16 +1,16 @@ -using Newtonsoft.Json; - -namespace Nest +using Newtonsoft.Json; + +namespace Nest { public interface IGetScriptResponse : IResponse { - string Script { get; } + IStoredScript Script { get; } } [JsonObject(MemberSerialization.OptIn)] public class GetScriptResponse : ResponseBase, IGetScriptResponse { [JsonProperty("script")] - public string Script { get; set; } - } -} \ No newline at end of file + public IStoredScript Script { get; set; } + } +} diff --git a/src/Nest/Modules/Scripting/IStoredScript.cs b/src/Nest/Modules/Scripting/IStoredScript.cs new file mode 100644 index 00000000000..d5c0fdbce54 --- /dev/null +++ b/src/Nest/Modules/Scripting/IStoredScript.cs @@ -0,0 +1,74 @@ +using System.Collections.Generic; +using Elasticsearch.Net; +using Newtonsoft.Json; + +namespace Nest +{ + [JsonObject(MemberSerialization = MemberSerialization.OptIn)] + [JsonConverter(typeof(ReadAsTypeJsonConverter))] + public interface IStoredScript + { + [JsonProperty("lang")] + string Lang { get; set; } + + [JsonProperty("source")] + string Source { get; set; } + } + public class StoredScript : IStoredScript + { + [JsonProperty("lang")] + string IStoredScript.Lang { get; set; } + [JsonProperty("source")] + string IStoredScript.Source { get; set; } + + //used for deserialization + internal StoredScript() { } + + protected StoredScript(string lang, string source) + { + ((IStoredScript) this).Lang = lang; + ((IStoredScript) this).Source = source; + } + } + + public class PainlessScript : StoredScript + { + private static readonly string Lang = ScriptLang.Painless.GetStringValue(); + public PainlessScript(string source) : base(Lang, source) { } + } + public class GroovyScript : StoredScript + { + private static readonly string Lang = ScriptLang.Groovy.GetStringValue(); + public GroovyScript(string source) : base(Lang, source) { } + } + public class JavaScriptScript : StoredScript + { + private static readonly string Lang = ScriptLang.JS.GetStringValue(); + public JavaScriptScript(string source) : base(Lang, source) { } + } + public class PythonScript : StoredScript + { + private static readonly string Lang = ScriptLang.Python.GetStringValue(); + public PythonScript(string source) : base(Lang, source) { } + } + public class LuceneExpressionScript : StoredScript + { + private static readonly string Lang = ScriptLang.Expression.GetStringValue(); + public LuceneExpressionScript(string source) : base(Lang, source) { } + } + public class MustacheScript : StoredScript + { + private static readonly string Lang = ScriptLang.Mustache.GetStringValue(); + public MustacheScript(string source) : base(Lang, source) { } + } + + public class StoredScriptDescriptor : DescriptorBase, IStoredScript + { + string IStoredScript.Lang { get; set; } + string IStoredScript.Source { get; set; } + + public StoredScriptDescriptor Lang(string lang) => Assign(a => a.Lang = lang); + + public StoredScriptDescriptor Source(string source) => Assign(a => a.Source = source); + } +} diff --git a/src/Nest/Modules/Scripting/PutScript/ElasticClient-PutScript.cs b/src/Nest/Modules/Scripting/PutScript/ElasticClient-PutScript.cs index 7678c58f6ef..1a2d3c005a6 100644 --- a/src/Nest/Modules/Scripting/PutScript/ElasticClient-PutScript.cs +++ b/src/Nest/Modules/Scripting/PutScript/ElasticClient-PutScript.cs @@ -8,13 +8,13 @@ namespace Nest public partial interface IElasticClient { /// - IPutScriptResponse PutScript(Name language, Id id, Func selector); + IPutScriptResponse PutScript(Id id, Func selector); /// IPutScriptResponse PutScript(IPutScriptRequest request); /// - Task PutScriptAsync(Name language, Id id, Func selector, CancellationToken cancellationToken = default(CancellationToken)); + Task PutScriptAsync(Id id, Func selector, CancellationToken cancellationToken = default(CancellationToken)); /// Task PutScriptAsync(IPutScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)); @@ -22,8 +22,8 @@ public partial interface IElasticClient } public partial class ElasticClient { - public IPutScriptResponse PutScript(Name language, Id id, Func selector) => - this.PutScript(selector?.Invoke(new PutScriptDescriptor(language, id))); + public IPutScriptResponse PutScript(Id id, Func selector) => + this.PutScript(selector?.Invoke(new PutScriptDescriptor(id))); public IPutScriptResponse PutScript(IPutScriptRequest request) => this.Dispatcher.Dispatch( @@ -31,8 +31,8 @@ public IPutScriptResponse PutScript(IPutScriptRequest request) => this.LowLevelDispatch.PutScriptDispatch ); - public Task PutScriptAsync(Name language, Id id, Func selector, CancellationToken cancellationToken = default(CancellationToken)) => - this.PutScriptAsync(selector?.Invoke(new PutScriptDescriptor(language, id)), cancellationToken); + public Task PutScriptAsync(Id id, Func selector, CancellationToken cancellationToken = default(CancellationToken)) => + this.PutScriptAsync(selector?.Invoke(new PutScriptDescriptor(id)), cancellationToken); public Task PutScriptAsync(IPutScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync( diff --git a/src/Nest/Modules/Scripting/PutScript/PutScriptRequest.cs b/src/Nest/Modules/Scripting/PutScript/PutScriptRequest.cs index 6626306a642..cb764fa906e 100644 --- a/src/Nest/Modules/Scripting/PutScript/PutScriptRequest.cs +++ b/src/Nest/Modules/Scripting/PutScript/PutScriptRequest.cs @@ -1,23 +1,32 @@ +using System; using Newtonsoft.Json; namespace Nest { - public partial interface IPutScriptRequest + public partial interface IPutScriptRequest { [JsonProperty("script")] - string Script { get; set; } + IStoredScript Script { get; set; } } - public partial class PutScriptRequest + public partial class PutScriptRequest { - public string Script { get; set; } + public IStoredScript Script { get; set; } } [DescriptorFor("ScriptPut")] - public partial class PutScriptDescriptor + public partial class PutScriptDescriptor { - string IPutScriptRequest.Script { get; set; } + IStoredScript IPutScriptRequest.Script { get; set; } - public PutScriptDescriptor Script(string script) => Assign(a => a.Script = script); + public PutScriptDescriptor Script(Func selector) => + Assign(a => a.Script = selector?.Invoke(new StoredScriptDescriptor())); + + public PutScriptDescriptor Painless(string source) => Assign(a => a.Script = new PainlessScript(source)); + public PutScriptDescriptor Groovy(string source) => Assign(a => a.Script = new GroovyScript(source)); + public PutScriptDescriptor JavaScript(string source) => Assign(a => a.Script = new JavaScriptScript(source)); + public PutScriptDescriptor Python(string source) => Assign(a => a.Script = new PythonScript(source)); + public PutScriptDescriptor LuceneExpression(string source) => Assign(a => a.Script = new LuceneExpressionScript(source)); + public PutScriptDescriptor Mustache(string source) => Assign(a => a.Script = new MustacheScript(source)); } -} \ No newline at end of file +} diff --git a/src/Nest/Modules/Scripting/ScriptLang.cs b/src/Nest/Modules/Scripting/ScriptLang.cs index 0bdd371c575..96c1a2ee085 100644 --- a/src/Nest/Modules/Scripting/ScriptLang.cs +++ b/src/Nest/Modules/Scripting/ScriptLang.cs @@ -24,9 +24,5 @@ public enum ScriptLang [EnumMember(Value = "mustache")] Mustache, - - [EnumMember(Value = "native")] - Native, } - } diff --git a/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/CompactNodeInfo.cs b/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/CompactNodeInfo.cs index ef5afea1aa1..f48eae392f4 100644 --- a/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/CompactNodeInfo.cs +++ b/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/CompactNodeInfo.cs @@ -5,7 +5,7 @@ namespace Nest [JsonObject] public class CompactNodeInfo { - [JsonProperty(PropertyName = "name")] + [JsonProperty("name")] public string Name { get; internal set; } } -} \ No newline at end of file +} diff --git a/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/VerifyRepositoryResponse.cs b/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/VerifyRepositoryResponse.cs index 89426fa7769..f94ba6bd2d1 100644 --- a/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/VerifyRepositoryResponse.cs +++ b/src/Nest/Modules/SnapshotAndRestore/Repositories/VerifyRepository/VerifyRepositoryResponse.cs @@ -9,7 +9,7 @@ public interface IVerifyRepositoryResponse : IResponse /// /// A dictionary of nodeId => nodeinfo of nodes that verified the repository /// - [JsonProperty(PropertyName = "nodes")] + [JsonProperty("nodes")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] IReadOnlyDictionary Nodes { get; } } diff --git a/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreObservable/RestoreObservable.cs b/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreObservable/RestoreObservable.cs index 7aa729ef454..2e35b920b4e 100644 --- a/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreObservable/RestoreObservable.cs +++ b/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreObservable/RestoreObservable.cs @@ -189,11 +189,10 @@ public void CheckStatus() { var indices = _restoreRequest.Indices.Item2.Indices.Select( - x => new IndexName - { - Name = Regex.Replace(x.Name, _renamePattern, _renameReplacement), - Type = x.Type - }) + x => IndexName.Rebuild( + Regex.Replace(x.Name, _renamePattern, _renameReplacement), + x.Type + )) .ToArray(); var recoveryStatus = _elasticClient.RecoveryStatus(new RecoveryStatusRequest(indices) diff --git a/src/Nest/Modules/SnapshotAndRestore/Restore/SnapshotRestore.cs b/src/Nest/Modules/SnapshotAndRestore/Restore/SnapshotRestore.cs index dd9d08c8ba1..47d1b1635d9 100644 --- a/src/Nest/Modules/SnapshotAndRestore/Restore/SnapshotRestore.cs +++ b/src/Nest/Modules/SnapshotAndRestore/Restore/SnapshotRestore.cs @@ -13,6 +13,6 @@ public class SnapshotRestore EmptyReadOnly.Collection; [JsonProperty("shards")] - public ShardsMetaData Shards { get; internal set; } + public ShardsMetadata Shards { get; internal set; } } } diff --git a/src/Nest/Modules/SnapshotAndRestore/Snapshot/Snapshot.cs b/src/Nest/Modules/SnapshotAndRestore/Snapshot/Snapshot.cs index 1010acddffc..6e0a4e7857c 100644 --- a/src/Nest/Modules/SnapshotAndRestore/Snapshot/Snapshot.cs +++ b/src/Nest/Modules/SnapshotAndRestore/Snapshot/Snapshot.cs @@ -32,7 +32,7 @@ public class Snapshot public long DurationInMilliseconds { get; internal set; } [JsonProperty("shards")] - public ShardsMetaData Shards { get; internal set; } + public ShardsMetadata Shards { get; internal set; } [JsonProperty("failures")] public IReadOnlyCollection Failures { get; internal set; } diff --git a/src/Nest/QueryDsl/Abstractions/Container/QueryContainerDescriptor.cs b/src/Nest/QueryDsl/Abstractions/Container/QueryContainerDescriptor.cs index 4d04f3edf84..6d01bf06080 100644 --- a/src/Nest/QueryDsl/Abstractions/Container/QueryContainerDescriptor.cs +++ b/src/Nest/QueryDsl/Abstractions/Container/QueryContainerDescriptor.cs @@ -327,6 +327,16 @@ public QueryContainer MatchNone(Func public QueryContainer Term(Expression> field, object value, double? boost = null, string name = null) => this.Term(t => t.Field(field).Value(value).Boost(boost).Name(name)); + /// + /// Helper method to easily filter on join relations + /// + public QueryContainer HasRelationName(Expression> field, RelationName value) => + this.Term(t => t.Field(field).Value(value)); + + /// Helper method to easily filter on join relations + public QueryContainer HasRelationName(Expression> field) => + this.Term(t => t.Field(field).Value(Infer.Relation())); + /// /// Matches documents that have fields that contain a term (not analyzed). /// The term query maps to Lucene TermQuery. diff --git a/src/Nest/QueryDsl/Abstractions/FieldLookup/FieldLookup.cs b/src/Nest/QueryDsl/Abstractions/FieldLookup/FieldLookup.cs index dc048717818..88d2dc57f3e 100644 --- a/src/Nest/QueryDsl/Abstractions/FieldLookup/FieldLookup.cs +++ b/src/Nest/QueryDsl/Abstractions/FieldLookup/FieldLookup.cs @@ -49,8 +49,8 @@ public class FieldLookupDescriptor : DescriptorBase, public FieldLookupDescriptor() { - Self.Type = new TypeName { Type = this._ClrType }; - Self.Index = new IndexName { Type = this._ClrType }; + Self.Type = this._ClrType; + Self.Index = this._ClrType; } public FieldLookupDescriptor Index(IndexName index) => Assign(a => a.Index = index); diff --git a/src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs b/src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs index fb1294fcbf7..5a708b63af7 100644 --- a/src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs +++ b/src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs @@ -9,10 +9,10 @@ public interface IQuery /// /// The _name of the query. this allows you to retrieve for each document what part of the query it matched on /// - [JsonProperty(PropertyName = "_name")] + [JsonProperty("_name")] string Name { get; set; } - [JsonProperty(PropertyName = "boost")] + [JsonProperty("boost")] double? Boost { get; set; } [JsonIgnore] diff --git a/src/Nest/QueryDsl/Compound/ConstantScore/ConstantScoreQuery.cs b/src/Nest/QueryDsl/Compound/ConstantScore/ConstantScoreQuery.cs index d0abca50e98..c9c0b39f586 100644 --- a/src/Nest/QueryDsl/Compound/ConstantScore/ConstantScoreQuery.cs +++ b/src/Nest/QueryDsl/Compound/ConstantScore/ConstantScoreQuery.cs @@ -8,7 +8,7 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter>))] public interface IConstantScoreQuery : IQuery { - [JsonProperty(PropertyName = "filter")] + [JsonProperty("filter")] QueryContainer Filter { get; set; } } diff --git a/src/Nest/QueryDsl/Compound/Dismax/DismaxQuery.cs b/src/Nest/QueryDsl/Compound/Dismax/DismaxQuery.cs index c38cfefac01..32a5a872ca1 100644 --- a/src/Nest/QueryDsl/Compound/Dismax/DismaxQuery.cs +++ b/src/Nest/QueryDsl/Compound/Dismax/DismaxQuery.cs @@ -9,10 +9,10 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IDisMaxQuery : IQuery { - [JsonProperty(PropertyName = "tie_breaker")] + [JsonProperty("tie_breaker")] double? TieBreaker { get; set; } - [JsonProperty(PropertyName = "queries")] + [JsonProperty("queries")] IEnumerable Queries { get; set; } } diff --git a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Decay/DecayFunctionBase.cs b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Decay/DecayFunctionBase.cs index c5af913c094..f8c8c8d66c7 100644 --- a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Decay/DecayFunctionBase.cs +++ b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Decay/DecayFunctionBase.cs @@ -10,10 +10,10 @@ public interface IDecayFunction : IScoreFunction Field Field { get; set; } - [JsonProperty(PropertyName = "decay")] + [JsonProperty("decay")] double? Decay { get; set; } - [JsonProperty(PropertyName = "multi_value_mode")] + [JsonProperty("multi_value_mode")] MultiValueMode? MultiValueMode { get; set; } @@ -21,13 +21,13 @@ public interface IDecayFunction : IScoreFunction public interface IDecayFunction : IDecayFunction { - [JsonProperty(PropertyName = "origin")] + [JsonProperty("origin")] TOrigin Origin { get; set; } - [JsonProperty(PropertyName = "scale")] + [JsonProperty("scale")] TScale Scale { get; set; } - [JsonProperty(PropertyName = "offset")] + [JsonProperty("offset")] TScale Offset { get; set; } } diff --git a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Random/RandomScoreFunction.cs b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Random/RandomScoreFunction.cs index 6733857b7e7..b45d85c54f8 100644 --- a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Random/RandomScoreFunction.cs +++ b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/Random/RandomScoreFunction.cs @@ -1,4 +1,6 @@ -using Newtonsoft.Json; +using System; +using System.Linq.Expressions; +using Newtonsoft.Json; namespace Nest { @@ -6,22 +8,31 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IRandomScoreFunction : IScoreFunction { - [JsonProperty(PropertyName = "seed")] + [JsonProperty("seed")] Union Seed { get; set; } + + [JsonProperty("field")] + Field Field { get; set; } } public class RandomScoreFunction: FunctionScoreFunctionBase, IRandomScoreFunction { public Union Seed { get; set; } + + public Field Field { get; set; } } public class RandomScoreFunctionDescriptor : FunctionScoreFunctionDescriptorBase, IRandomScoreFunction,T>, IRandomScoreFunction where T : class { Union IRandomScoreFunction.Seed { get; set; } + Field IRandomScoreFunction.Field { get; set; } public RandomScoreFunctionDescriptor Seed(long? seed) => Assign(a => a.Seed = seed); public RandomScoreFunctionDescriptor Seed(string seed) => Assign(a => a.Seed = seed); + public RandomScoreFunctionDescriptor Field(Field field) => Assign(a => a.Field = field); + public RandomScoreFunctionDescriptor Field(Expression> objectPath) => + Assign(a => a.Field = objectPath); } -} \ No newline at end of file +} diff --git a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctionJsonConverter.cs b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctionJsonConverter.cs index 34f68117a2a..d03bcee7a35 100644 --- a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctionJsonConverter.cs +++ b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctionJsonConverter.cs @@ -50,11 +50,6 @@ private bool WriteScriptScore(JsonWriter writer, IScriptScoreFunction value, Jso if (value == null) return false; writer.WritePropertyName("script_score"); serializer.Serialize(writer, value.Script); - //writer.WriteStartObject(); - //{ - // writer.WriteProperty(serializer, "script", value.Script); - //} - //writer.WriteEndObject(); return true; } @@ -65,6 +60,7 @@ private bool WriteRandomScore(JsonWriter writer, IRandomScoreFunction value, Jso writer.WriteStartObject(); { writer.WriteProperty(serializer, "seed", value.Seed); + writer.WriteProperty(serializer, "field", value.Field); } writer.WriteEndObject(); return true; diff --git a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctions.cs b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctions.cs index 692e1ad2332..a19081753c1 100644 --- a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctions.cs +++ b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScoreFunctions.cs @@ -41,11 +41,13 @@ public ScoreFunctionsDescriptor ScriptScore(Func FieldValueFactor(Func, IFieldValueFactorFunction> selector) => Assign(a => a.AddIfNotNull(selector?.Invoke(new FieldValueFactorFunctionDescriptor()))); - public ScoreFunctionsDescriptor RandomScore(Func, IRandomScoreFunction> selector) => - Assign(a => a.AddIfNotNull(selector?.Invoke(new RandomScoreFunctionDescriptor()))); + public ScoreFunctionsDescriptor RandomScore(Func, IRandomScoreFunction> selector = null) => + Assign(a => a.AddIfNotNull(selector.InvokeOrDefault(new RandomScoreFunctionDescriptor()))); - public ScoreFunctionsDescriptor RandomScore(long? seed) => Assign(a => a.AddIfNotNull(new RandomScoreFunction { Seed = seed })); + [Obsolete("Elasticsearch 7.x will require a field when a seed is provided")] + public ScoreFunctionsDescriptor RandomScore(long seed) => Assign(a => a.AddIfNotNull(new RandomScoreFunction { Seed = seed })); + [Obsolete("Elasticsearch 7.x will require a field when a seed is provided")] public ScoreFunctionsDescriptor RandomScore(string seed) => Assign(a => a.AddIfNotNull(new RandomScoreFunction { Seed = seed })); public ScoreFunctionsDescriptor Weight(Func, IWeightFunction> selector) => @@ -54,4 +56,4 @@ public ScoreFunctionsDescriptor Weight(Func, IWei public ScoreFunctionsDescriptor Weight(double weight) => Assign(a => a.AddIfNotNull(new WeightFunction { Weight = weight })); } -} \ No newline at end of file +} diff --git a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScriptScore/ScriptScoreFunction.cs b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScriptScore/ScriptScoreFunction.cs index 9610a400b5a..736a66f8733 100644 --- a/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScriptScore/ScriptScoreFunction.cs +++ b/src/Nest/QueryDsl/Compound/FunctionScore/Functions/ScriptScore/ScriptScoreFunction.cs @@ -6,7 +6,7 @@ namespace Nest [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public interface IScriptScoreFunction : IScoreFunction { - [JsonProperty(PropertyName = "script")] + [JsonProperty("script")] IScriptQuery Script { get; set; } } diff --git a/src/Nest/QueryDsl/FullText/CommonTerms/CommonTermsQuery.cs b/src/Nest/QueryDsl/FullText/CommonTerms/CommonTermsQuery.cs index a9c102e1fad..4ef8979ef23 100644 --- a/src/Nest/QueryDsl/FullText/CommonTerms/CommonTermsQuery.cs +++ b/src/Nest/QueryDsl/FullText/CommonTerms/CommonTermsQuery.cs @@ -7,27 +7,27 @@ namespace Nest [JsonConverter(typeof (FieldNameQueryJsonConverter))] public interface ICommonTermsQuery : IFieldNameQuery { - [JsonProperty(PropertyName = "query")] + [JsonProperty("query")] string Query { get; set; } - [JsonProperty(PropertyName = "cutoff_frequency")] + [JsonProperty("cutoff_frequency")] double? CutoffFrequency { get; set; } - [JsonProperty(PropertyName = "low_freq_operator")] + [JsonProperty("low_freq_operator")] [JsonConverter(typeof (StringEnumConverter))] Operator? LowFrequencyOperator { get; set; } - [JsonProperty(PropertyName = "high_freq_operator")] + [JsonProperty("high_freq_operator")] [JsonConverter(typeof (StringEnumConverter))] Operator? HighFrequencyOperator { get; set; } - [JsonProperty(PropertyName = "minimum_should_match")] + [JsonProperty("minimum_should_match")] MinimumShouldMatch MinimumShouldMatch { get; set; } - [JsonProperty(PropertyName = "analyzer")] + [JsonProperty("analyzer")] string Analyzer { get; set; } - [JsonProperty(PropertyName = "disable_coord")] + [JsonProperty("disable_coord")] bool? DisableCoord { get; set; } } diff --git a/src/Nest/QueryDsl/FullText/MatchPhrase/MatchPhraseQuery.cs b/src/Nest/QueryDsl/FullText/MatchPhrase/MatchPhraseQuery.cs index 02d669c46eb..28b2056fb0a 100644 --- a/src/Nest/QueryDsl/FullText/MatchPhrase/MatchPhraseQuery.cs +++ b/src/Nest/QueryDsl/FullText/MatchPhrase/MatchPhraseQuery.cs @@ -7,13 +7,13 @@ namespace Nest [JsonConverter(typeof(FieldNameQueryJsonConverter))] public interface IMatchPhraseQuery : IFieldNameQuery { - [JsonProperty(PropertyName = "query")] + [JsonProperty("query")] string Query { get; set; } - [JsonProperty(PropertyName = "analyzer")] + [JsonProperty("analyzer")] string Analyzer { get; set; } - [JsonProperty(PropertyName = "slop")] + [JsonProperty("slop")] int? Slop { get; set; } } diff --git a/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs b/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs index 5e23472b008..2038a5d0ae2 100644 --- a/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs +++ b/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs @@ -7,16 +7,16 @@ namespace Nest [JsonConverter(typeof(FieldNameQueryJsonConverter))] public interface IMatchPhrasePrefixQuery : IFieldNameQuery { - [JsonProperty(PropertyName = "query")] + [JsonProperty("query")] string Query { get; set; } - [JsonProperty(PropertyName = "analyzer")] + [JsonProperty("analyzer")] string Analyzer { get; set; } - [JsonProperty(PropertyName = "max_expansions")] + [JsonProperty("max_expansions")] int? MaxExpansions { get; set; } - [JsonProperty(PropertyName = "slop")] + [JsonProperty("slop")] int? Slop { get; set; } } diff --git a/src/Nest/QueryDsl/FullText/SimpleQueryString/SimpleQueryStringQuery.cs b/src/Nest/QueryDsl/FullText/SimpleQueryString/SimpleQueryStringQuery.cs index 2d7b35841d8..369ffa564f1 100644 --- a/src/Nest/QueryDsl/FullText/SimpleQueryString/SimpleQueryStringQuery.cs +++ b/src/Nest/QueryDsl/FullText/SimpleQueryString/SimpleQueryStringQuery.cs @@ -7,33 +7,33 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter>))] public interface ISimpleQueryStringQuery : IQuery { - [JsonProperty(PropertyName = "fields")] + [JsonProperty("fields")] Fields Fields { get; set; } - [JsonProperty(PropertyName = "query")] + [JsonProperty("query")] string Query { get; set; } - [JsonProperty(PropertyName = "analyzer")] + [JsonProperty("analyzer")] string Analyzer { get; set; } - [JsonProperty(PropertyName = "default_operator")] + [JsonProperty("default_operator")] Operator? DefaultOperator { get; set; } - [JsonProperty(PropertyName = "flags")] + [JsonProperty("flags")] SimpleQueryStringFlags? Flags { get; set; } - [JsonProperty(PropertyName = "locale")] + [JsonProperty("locale")] [Obsolete("Deprecated in Elasticsearch 5.1.1. Can be performed by the analyzer applied")] string Locale { get; set; } - [JsonProperty(PropertyName = "lowercase_expanded_terms")] + [JsonProperty("lowercase_expanded_terms")] [Obsolete("Deprecated in Elasticsearch 5.1.1. Can be performed by the analyzer applied")] bool? LowercaseExpandedTerms { get; set; } - [JsonProperty(PropertyName = "lenient")] + [JsonProperty("lenient")] bool? Lenient { get; set; } - [JsonProperty(PropertyName = "analyze_wildcard")] + [JsonProperty("analyze_wildcard")] bool? AnalyzeWildcard { get; set; } [JsonProperty("minimum_should_match")] diff --git a/src/Nest/QueryDsl/Joining/ParentId/ParentIdQuery.cs b/src/Nest/QueryDsl/Joining/ParentId/ParentIdQuery.cs index 5880d8879d4..75d4e87a41f 100644 --- a/src/Nest/QueryDsl/Joining/ParentId/ParentIdQuery.cs +++ b/src/Nest/QueryDsl/Joining/ParentId/ParentIdQuery.cs @@ -18,7 +18,7 @@ public interface IParentIdQuery : IQuery /// The child type. This must be a type with _parent field. /// [JsonProperty("type")] - TypeName Type { get; set; } + RelationName Type { get; set; } /// /// The id of the parent document to get children for. @@ -42,7 +42,7 @@ public class ParentIdQuery : QueryBase, IParentIdQuery internal static bool IsConditionless(IParentIdQuery q) => q.Type.IsConditionless() || q.Id.IsConditionless(); - public TypeName Type { get; set; } + public RelationName Type { get; set; } public Id Id { get; set; } @@ -56,13 +56,13 @@ public class ParentIdQueryDescriptor { protected override bool Conditionless => ParentIdQuery.IsConditionless(this); - TypeName IParentIdQuery.Type { get; set; } + RelationName IParentIdQuery.Type { get; set; } Id IParentIdQuery.Id { get; set; } bool? IParentIdQuery.IgnoreUnmapped { get; set; } public ParentIdQueryDescriptor Id(Id id) => Assign(a => a.Id = id); - public ParentIdQueryDescriptor Type(TypeName type) => Assign(a => a.Type = type); + public ParentIdQueryDescriptor Type(RelationName type) => Assign(a => a.Type = type); public ParentIdQueryDescriptor Type() => Assign(a => a.Type = typeof(TChild)); diff --git a/src/Nest/QueryDsl/MatchAllQuery.cs b/src/Nest/QueryDsl/MatchAllQuery.cs index 3ba944fef3b..a5707432bdc 100644 --- a/src/Nest/QueryDsl/MatchAllQuery.cs +++ b/src/Nest/QueryDsl/MatchAllQuery.cs @@ -12,7 +12,7 @@ public interface IMatchAllQuery : IQuery /// boosting into account, the norms_field needs to be provided in order to explicitly specify which /// field the boosting will be done on (Note, this will result in slower execution time). /// - [JsonProperty(PropertyName = "norm_field")] + [JsonProperty("norm_field")] string NormField { get; set; } } diff --git a/src/Nest/QueryDsl/Span/Containing/SpanContainingQuery.cs b/src/Nest/QueryDsl/Span/Containing/SpanContainingQuery.cs index a44e0139da9..76f909f97e8 100644 --- a/src/Nest/QueryDsl/Span/Containing/SpanContainingQuery.cs +++ b/src/Nest/QueryDsl/Span/Containing/SpanContainingQuery.cs @@ -7,10 +7,10 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface ISpanContainingQuery : ISpanSubQuery { - [JsonProperty(PropertyName = "little")] + [JsonProperty("little")] ISpanQuery Little { get; set; } - [JsonProperty(PropertyName = "big")] + [JsonProperty("big")] ISpanQuery Big { get; set; } } diff --git a/src/Nest/QueryDsl/Span/First/SpanFirstQuery.cs b/src/Nest/QueryDsl/Span/First/SpanFirstQuery.cs index a3af39ad402..af02740d554 100644 --- a/src/Nest/QueryDsl/Span/First/SpanFirstQuery.cs +++ b/src/Nest/QueryDsl/Span/First/SpanFirstQuery.cs @@ -7,10 +7,10 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter>))] public interface ISpanFirstQuery : ISpanSubQuery { - [JsonProperty(PropertyName = "match")] + [JsonProperty("match")] ISpanQuery Match { get; set; } - [JsonProperty(PropertyName = "end")] + [JsonProperty("end")] int? End { get; set; } } @@ -24,11 +24,11 @@ public class SpanFirstQuery : QueryBase, ISpanFirstQuery internal static bool IsConditionless(ISpanFirstQuery q) => q.Match == null || q.Match.Conditionless; } - public class SpanFirstQueryDescriptor + public class SpanFirstQueryDescriptor : QueryDescriptorBase, ISpanFirstQuery> , ISpanFirstQuery where T : class { - protected override bool Conditionless => SpanFirstQuery.IsConditionless(this); + protected override bool Conditionless => SpanFirstQuery.IsConditionless(this); ISpanQuery ISpanFirstQuery.Match { get; set; } int? ISpanFirstQuery.End { get; set; } diff --git a/src/Nest/QueryDsl/Span/Near/SpanNearQuery.cs b/src/Nest/QueryDsl/Span/Near/SpanNearQuery.cs index 9fd869e588c..5eda9d2317c 100644 --- a/src/Nest/QueryDsl/Span/Near/SpanNearQuery.cs +++ b/src/Nest/QueryDsl/Span/Near/SpanNearQuery.cs @@ -9,17 +9,17 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter>))] public interface ISpanNearQuery : ISpanSubQuery { - [JsonProperty(PropertyName = "clauses")] + [JsonProperty("clauses")] IEnumerable Clauses { get; set; } - [JsonProperty(PropertyName = "slop")] + [JsonProperty("slop")] int? Slop { get; set; } - [JsonProperty(PropertyName = "in_order")] + [JsonProperty("in_order")] bool? InOrder { get; set; } #pragma warning disable 618 - [JsonProperty(PropertyName = "collect_payloads")] + [JsonProperty("collect_payloads")] [Obsolete("Payloads will be loaded when needed")] bool? CollectPayloads { get; set; } #pragma warning restore 618 diff --git a/src/Nest/QueryDsl/Span/Not/SpanNotQuery.cs b/src/Nest/QueryDsl/Span/Not/SpanNotQuery.cs index 2797f760e12..7a017c814a9 100644 --- a/src/Nest/QueryDsl/Span/Not/SpanNotQuery.cs +++ b/src/Nest/QueryDsl/Span/Not/SpanNotQuery.cs @@ -7,19 +7,19 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface ISpanNotQuery : ISpanSubQuery { - [JsonProperty(PropertyName = "include")] + [JsonProperty("include")] ISpanQuery Include { get; set; } - [JsonProperty(PropertyName = "exclude")] + [JsonProperty("exclude")] ISpanQuery Exclude { get; set; } - [JsonProperty(PropertyName = "pre")] + [JsonProperty("pre")] int? Pre { get; set; } - [JsonProperty(PropertyName = "post")] + [JsonProperty("post")] int? Post { get; set; } - [JsonProperty(PropertyName = "dist")] + [JsonProperty("dist")] int? Dist { get; set; } } diff --git a/src/Nest/QueryDsl/Span/Or/SpanOrQuery.cs b/src/Nest/QueryDsl/Span/Or/SpanOrQuery.cs index 02b1e93d9ca..50b8f29a638 100644 --- a/src/Nest/QueryDsl/Span/Or/SpanOrQuery.cs +++ b/src/Nest/QueryDsl/Span/Or/SpanOrQuery.cs @@ -9,7 +9,7 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface ISpanOrQuery : ISpanSubQuery { - [JsonProperty(PropertyName = "clauses")] + [JsonProperty("clauses")] IEnumerable Clauses { get; set; } } @@ -22,7 +22,7 @@ public class SpanOrQuery : QueryBase, ISpanOrQuery internal static bool IsConditionless(ISpanOrQuery q) => !q.Clauses.HasAny() || q.Clauses.Cast().All(qq => qq.Conditionless); } - public class SpanOrQueryDescriptor + public class SpanOrQueryDescriptor : QueryDescriptorBase, ISpanOrQuery> , ISpanOrQuery where T : class { diff --git a/src/Nest/QueryDsl/Span/Within/SpanWithinQuery.cs b/src/Nest/QueryDsl/Span/Within/SpanWithinQuery.cs index f826e449f19..030774772ff 100644 --- a/src/Nest/QueryDsl/Span/Within/SpanWithinQuery.cs +++ b/src/Nest/QueryDsl/Span/Within/SpanWithinQuery.cs @@ -7,10 +7,10 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface ISpanWithinQuery : ISpanSubQuery { - [JsonProperty(PropertyName = "little")] + [JsonProperty("little")] ISpanQuery Little { get; set; } - [JsonProperty(PropertyName = "big")] + [JsonProperty("big")] ISpanQuery Big { get; set; } } diff --git a/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/Like.cs b/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/Like.cs index 0a26fe79ab0..2b35f5fd117 100644 --- a/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/Like.cs +++ b/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/Like.cs @@ -31,7 +31,7 @@ public LikeDescriptor Document(Func, ILikeDocument> } } - internal class LikeJsonConverter :JsonConverter + internal class LikeJsonConverter :JsonConverter { public override bool CanRead => true; public override bool CanWrite => true; diff --git a/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/LikeDocument.cs b/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/LikeDocument.cs index cd57cf7cf3e..1fff15332b5 100644 --- a/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/LikeDocument.cs +++ b/src/Nest/QueryDsl/Specialized/MoreLikeThis/Like/LikeDocument.cs @@ -7,25 +7,25 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter>))] public interface ILikeDocument { - [JsonProperty(PropertyName = "_index")] + [JsonProperty("_index")] IndexName Index { get; set; } - [JsonProperty(PropertyName = "_type")] + [JsonProperty("_type")] TypeName Type { get; set; } - [JsonProperty(PropertyName = "_id")] + [JsonProperty("_id")] Id Id { get; set; } - [JsonProperty(PropertyName = "fields")] + [JsonProperty("fields")] Fields Fields { get; set; } - [JsonProperty(PropertyName = "_routing")] + [JsonProperty("_routing")] string Routing { get; set; } - [JsonProperty(PropertyName = "doc")] + [JsonProperty("doc")] object Document { get; set; } - [JsonProperty(PropertyName = "per_field_analyzer")] + [JsonProperty("per_field_analyzer")] IPerFieldAnalyzer PerFieldAnalyzer { get; set; } Type ClrType { get; } diff --git a/src/Nest/QueryDsl/Specialized/MoreLikeThis/MoreLikeThisQuery.cs b/src/Nest/QueryDsl/Specialized/MoreLikeThis/MoreLikeThisQuery.cs index d6b24248d82..24f81cefb19 100644 --- a/src/Nest/QueryDsl/Specialized/MoreLikeThis/MoreLikeThisQuery.cs +++ b/src/Nest/QueryDsl/Specialized/MoreLikeThis/MoreLikeThisQuery.cs @@ -9,46 +9,46 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter>))] public interface IMoreLikeThisQuery : IQuery { - [JsonProperty(PropertyName = "fields")] + [JsonProperty("fields")] Fields Fields { get; set; } - [JsonProperty(PropertyName = "like")] + [JsonProperty("like")] IEnumerable Like { get; set; } - [JsonProperty(PropertyName = "unlike")] + [JsonProperty("unlike")] IEnumerable Unlike { get; set; } - [JsonProperty(PropertyName = "max_query_terms")] + [JsonProperty("max_query_terms")] int? MaxQueryTerms { get; set; } - [JsonProperty(PropertyName = "min_term_freq")] + [JsonProperty("min_term_freq")] int? MinTermFrequency { get; set; } - [JsonProperty(PropertyName = "min_doc_freq")] + [JsonProperty("min_doc_freq")] int? MinDocumentFrequency { get; set; } - [JsonProperty(PropertyName = "max_doc_freq")] + [JsonProperty("max_doc_freq")] int? MaxDocumentFrequency { get; set; } - [JsonProperty(PropertyName = "min_word_len")] + [JsonProperty("min_word_len")] int? MinWordLength { get; set; } - [JsonProperty(PropertyName = "max_word_len")] + [JsonProperty("max_word_len")] int? MaxWordLength { get; set; } - [JsonProperty(PropertyName = "stop_words")] + [JsonProperty("stop_words")] StopWords StopWords { get; set; } - [JsonProperty(PropertyName = "analyzer")] + [JsonProperty("analyzer")] string Analyzer { get; set; } - [JsonProperty(PropertyName = "minimum_should_match")] + [JsonProperty("minimum_should_match")] MinimumShouldMatch MinimumShouldMatch { get; set; } - [JsonProperty(PropertyName = "boost_terms")] + [JsonProperty("boost_terms")] double? BoostTerms { get; set; } - [JsonProperty(PropertyName = "include")] + [JsonProperty("include")] bool? Include { get; set; } diff --git a/src/Nest/QueryDsl/Specialized/Percolate/PercolateQuery.cs b/src/Nest/QueryDsl/Specialized/Percolate/PercolateQuery.cs index 168982ad272..0a45f82ddf7 100644 --- a/src/Nest/QueryDsl/Specialized/Percolate/PercolateQuery.cs +++ b/src/Nest/QueryDsl/Specialized/Percolate/PercolateQuery.cs @@ -20,55 +20,56 @@ public interface IPercolateQuery : IQuery /// /// The type / mapping of the document to percolate. This is a required parameter. /// - [JsonProperty(PropertyName = "document_type")] + [JsonProperty("document_type")] + [Obsolete("Deprecated in 6.x, types are gone from indices created as of Elasticsearch 6.x")] TypeName DocumentType { get; set; } /// /// The source of the document to percolate. /// - [JsonProperty(PropertyName = "document")] + [JsonProperty("document")] object Document { get; set; } /// /// The id of the document to fetch for percolation. /// Can be specified to percolate an existing document instead of providing /// - [JsonProperty(PropertyName = "id")] + [JsonProperty("id")] Id Id { get; set; } /// /// The index the document resides in for percolation. /// Can be specified to percolate an existing document instead of providing /// - [JsonProperty(PropertyName = "index")] + [JsonProperty("index")] IndexName Index { get; set; } /// /// The type of the document to fetch for percolation. /// Can be specified to percolate an existing document instead of providing /// - [JsonProperty(PropertyName = "type")] + [JsonProperty("type")] TypeName Type { get; set; } /// /// Routing to be used to fetch the document to percolate. /// Can be specified to percolate an existing document instead of providing /// - [JsonProperty(PropertyName = "routing")] + [JsonProperty("routing")] string Routing { get; set; } /// /// Preference to be used to fetch the document to percolate. /// Can be specified to percolate an existing document instead of providing /// - [JsonProperty(PropertyName = "preference")] + [JsonProperty("preference")] string Preference { get; set; } /// /// The expected version of the document to be fetched for percolation. /// Can be specified to percolate an existing document instead of providing /// - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] long? Version { get; set; } } @@ -83,15 +84,10 @@ public class PercolateQuery : QueryBase, IPercolateQuery internal static bool IsConditionless(IPercolateQuery q) { - var docFields = q.DocumentType.IsConditionless() || q.Document == null; + var docFields = q.Document == null; + if (!docFields) return false; - if (!docFields) - { - return false; - } - - return q.DocumentType.IsConditionless() || - q.Type.IsConditionless() || + return q.Type.IsConditionless() || q.Index == null || q.Id.IsConditionless() || q.Field.IsConditionless(); @@ -105,6 +101,7 @@ internal static bool IsConditionless(IPercolateQuery q) /// /// The type / mapping of the document to percolate. This is a required parameter. /// + [Obsolete("Deprecated in 6.x, types are gone from indices created as of Elasticsearch 6.x")] public TypeName DocumentType { get; set; } /// @@ -186,11 +183,13 @@ public class PercolateQueryDescriptor /// /// The type / mapping of the document to percolate. This is a required parameter. /// + [Obsolete("Deprecated in 6.x, types are gone from indices created as of Elasticsearch 6.x")] public PercolateQueryDescriptor DocumentType(TypeName type) => Assign(a => a.DocumentType = type); /// /// The type / mapping of the document to percolate. This is a required parameter. /// + [Obsolete("Deprecated in 6.x, types are gone from indices created as of Elasticsearch 6.x")] public PercolateQueryDescriptor DocumentType() => Assign(a => a.DocumentType = typeof(TDocument)); /// diff --git a/src/Nest/QueryDsl/Specialized/Script/ScriptQuery.cs b/src/Nest/QueryDsl/Specialized/Script/ScriptQuery.cs index 788446d061e..bac219f7d4f 100644 --- a/src/Nest/QueryDsl/Specialized/Script/ScriptQuery.cs +++ b/src/Nest/QueryDsl/Specialized/Script/ScriptQuery.cs @@ -10,27 +10,33 @@ namespace Nest [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public interface IScriptQuery : IQuery { - [JsonProperty(PropertyName = "inline")] + [JsonProperty("source")] + string Source { get; set; } + + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] string Inline { get; set; } - [JsonProperty(PropertyName = "id")] + [JsonProperty("id")] Id Id { get; set; } [JsonProperty("file")] string File { get; set; } - [JsonProperty(PropertyName = "params")] + [JsonProperty("params")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] Dictionary Params { get; set; } - [JsonProperty(PropertyName = "lang")] + [JsonProperty("lang")] string Lang { get; set; } } public class ScriptQuery : QueryBase, IScriptQuery { protected override bool Conditionless => IsConditionless(this); - public string Inline { get; set; } + public string Source { get; set; } + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + public string Inline { get => this.Source; set => this.Source = value; } public Id Id { get; set; } public string File { get; set; } public Dictionary Params { get; set; } @@ -38,7 +44,7 @@ public class ScriptQuery : QueryBase, IScriptQuery internal override void InternalWrapInContainer(IQueryContainer c) => c.Script = this; internal static bool IsConditionless(IScriptQuery q) => - q.Inline.IsNullOrEmpty() && q.Id == null && q.File.IsNullOrEmpty(); + q.Source.IsNullOrEmpty() && q.Id == null && q.File.IsNullOrEmpty(); } @@ -47,20 +53,21 @@ public class ScriptQueryDescriptor , IScriptQuery where T : class { protected override bool Conditionless => ScriptQuery.IsConditionless(this); - string IScriptQuery.Inline { get; set; } + string IScriptQuery.Inline { get => Self.Source; set => Self.Source = value; } + string IScriptQuery.Source { get; set; } Id IScriptQuery.Id { get; set; } string IScriptQuery.File { get; set; } string IScriptQuery.Lang { get; set; } Dictionary IScriptQuery.Params { get; set; } - /// - /// Inline script to execute - /// + /// Inline script to execute + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] public ScriptQueryDescriptor Inline(string script) => Assign(a => a.Inline = script); - /// - /// Id of an indexed script to execute - /// + /// Inline script to execute + public ScriptQueryDescriptor Source(string script) => Assign(a => a.Source = script); + + /// Id of an indexed script to execute public ScriptQueryDescriptor Id(string scriptId) => Assign(a => a.Id = scriptId); /// diff --git a/src/Nest/QueryDsl/Specialized/Script/ScriptQueryConverter.cs b/src/Nest/QueryDsl/Specialized/Script/ScriptQueryConverter.cs index 43d0e463fc2..50e159c5502 100644 --- a/src/Nest/QueryDsl/Specialized/Script/ScriptQueryConverter.cs +++ b/src/Nest/QueryDsl/Specialized/Script/ScriptQueryConverter.cs @@ -25,7 +25,7 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s { if (v.Id != null) writer.WriteProperty(serializer, "id", v.Id); if (v.File != null) writer.WriteProperty(serializer, "file", v.File); - if (v.Inline != null) writer.WriteProperty(serializer, "inline", v.Inline); + if (v.Source != null) writer.WriteProperty(serializer, "source", v.Source); if (v.Lang != null) writer.WriteProperty(serializer, "lang", v.Lang); if (v.Params != null) writer.WriteProperty(serializer, "params", v.Params); } @@ -59,7 +59,8 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist r.File = p.Value.Value(); break; case "inline": - r.Inline = p.Value.Value(); + case "source": + r.Source = p.Value.Value(); break; case "lang": r.Lang = p.Value.Value(); diff --git a/src/Nest/QueryDsl/Specialized/Template/TemplateQuery.cs b/src/Nest/QueryDsl/Specialized/Template/TemplateQuery.cs index a4dfa9bb2cf..5081f02e101 100644 --- a/src/Nest/QueryDsl/Specialized/Template/TemplateQuery.cs +++ b/src/Nest/QueryDsl/Specialized/Template/TemplateQuery.cs @@ -11,39 +11,50 @@ public interface ITemplateQuery : IQuery [JsonProperty("file")] string File { get; set; } - [JsonProperty("inline")] + [JsonProperty("source")] + string Source { get; set; } + + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] string Inline { get; set; } [JsonProperty("id")] Id Id { get; set; } [JsonProperty("params")] - IDictionary Params { get; set; } + IDictionary Params { get; set; } } public class TemplateQuery : QueryBase, ITemplateQuery { protected override bool Conditionless => IsConditionless(this); public string File { get; set; } - public string Inline { get; set; } + /// An inline script to be executed + public string Source { get; set; } + /// An inline script to be executed + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + public string Inline { get => this.Source; set => this.Source = value; } public Id Id { get; set; } public IDictionary Params { get; set;} internal override void InternalWrapInContainer(IQueryContainer c) => c.Template = this; - internal static bool IsConditionless(ITemplateQuery q) => q.File.IsNullOrEmpty() && q.Id == null && q.Inline.IsNullOrEmpty(); + internal static bool IsConditionless(ITemplateQuery q) => q.File.IsNullOrEmpty() && q.Id == null && q.Source.IsNullOrEmpty(); } - public class TemplateQueryDescriptor + public class TemplateQueryDescriptor : QueryDescriptorBase, ITemplateQuery> , ITemplateQuery where T : class { protected override bool Conditionless => TemplateQuery.IsConditionless(this); string ITemplateQuery.File { get; set; } - string ITemplateQuery.Inline { get; set; } + string ITemplateQuery.Source { get; set; } + string ITemplateQuery.Inline { get => Self.Source; set => Self.Source = value; } Id ITemplateQuery.Id { get; set; } IDictionary ITemplateQuery.Params { get; set; } + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] public TemplateQueryDescriptor Inline(string script) => Assign(a => a.Inline = script); + public TemplateQueryDescriptor Source(string script) => Assign(a => a.Source = script); public TemplateQueryDescriptor File(string file) => Assign(a => a.File = file); diff --git a/src/Nest/QueryDsl/TermLevel/Ids/IdsQuery.cs b/src/Nest/QueryDsl/TermLevel/Ids/IdsQuery.cs index 7c4bbd867d1..e1b768a8b7e 100644 --- a/src/Nest/QueryDsl/TermLevel/Ids/IdsQuery.cs +++ b/src/Nest/QueryDsl/TermLevel/Ids/IdsQuery.cs @@ -9,13 +9,13 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IIdsQuery : IQuery { - [JsonProperty(PropertyName = "types")] + [JsonProperty("type")] Types Types { get; set; } - [JsonProperty(PropertyName = "values")] + [JsonProperty("values")] IEnumerable Values { get; set; } } - + public class IdsQuery : QueryBase, IIdsQuery { protected override bool Conditionless => IsConditionless(this); @@ -26,7 +26,7 @@ public class IdsQuery : QueryBase, IIdsQuery internal static bool IsConditionless(IIdsQuery q) => !q.Values.HasAny(); } - public class IdsQueryDescriptor + public class IdsQueryDescriptor : QueryDescriptorBase , IIdsQuery { @@ -37,7 +37,7 @@ public class IdsQueryDescriptor public IdsQueryDescriptor Types(params TypeName[] types) => Assign(a=>a.Types = types); public IdsQueryDescriptor Types(IEnumerable values) => Types(values?.ToArray()); - + public IdsQueryDescriptor Types(Types types) => Assign(a=>a.Types = types); public IdsQueryDescriptor Values(params Id[] values) => Assign(a => a.Values = values); diff --git a/src/Nest/QueryDsl/TermLevel/Regexp/RegexpQuery.cs b/src/Nest/QueryDsl/TermLevel/Regexp/RegexpQuery.cs index ff7a44f4e01..9daf91b6610 100644 --- a/src/Nest/QueryDsl/TermLevel/Regexp/RegexpQuery.cs +++ b/src/Nest/QueryDsl/TermLevel/Regexp/RegexpQuery.cs @@ -12,7 +12,7 @@ public interface IRegexpQuery : IFieldNameQuery [JsonProperty("flags")] string Flags { get; set; } - [JsonProperty(PropertyName = "max_determinized_states")] + [JsonProperty("max_determinized_states")] int? MaximumDeterminizedStates { get; set; } } @@ -27,7 +27,7 @@ public class RegexpQuery : FieldNameQueryBase, IRegexpQuery internal static bool IsConditionless(IRegexpQuery q) => q.Field.IsConditionless() || q.Value.IsNullOrEmpty(); } - public class RegexpQueryDescriptor + public class RegexpQueryDescriptor : FieldNameQueryDescriptorBase, IRegexpQuery, T> , IRegexpQuery where T : class { diff --git a/src/Nest/QueryDsl/TermLevel/Type/TypeQuery.cs b/src/Nest/QueryDsl/TermLevel/Type/TypeQuery.cs index a2c4ce622f3..6956689495e 100644 --- a/src/Nest/QueryDsl/TermLevel/Type/TypeQuery.cs +++ b/src/Nest/QueryDsl/TermLevel/Type/TypeQuery.cs @@ -6,7 +6,7 @@ namespace Nest [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public interface ITypeQuery : IQuery { - [JsonProperty(PropertyName = "value")] + [JsonProperty("value")] TypeName Value { get; set; } } @@ -18,14 +18,14 @@ public class TypeQuery : QueryBase, ITypeQuery internal override void InternalWrapInContainer(IQueryContainer c) => c.Type = this; internal static bool IsConditionless(ITypeQuery q) => q.Value.IsConditionless(); } - - public class TypeQueryDescriptor + + public class TypeQueryDescriptor : QueryDescriptorBase , ITypeQuery { protected override bool Conditionless => TypeQuery.IsConditionless(this); - [JsonProperty(PropertyName = "value")] + [JsonProperty("value")] TypeName ITypeQuery.Value { get; set; } public TypeQueryDescriptor Value() => Assign(a => a.Value = typeof(T)); diff --git a/src/Nest/Search/Count/CountResponse.cs b/src/Nest/Search/Count/CountResponse.cs index 34775cc9d7c..e18a27ce59b 100644 --- a/src/Nest/Search/Count/CountResponse.cs +++ b/src/Nest/Search/Count/CountResponse.cs @@ -5,16 +5,16 @@ namespace Nest public interface ICountResponse : IResponse { long Count { get; } - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } } [JsonObject] public class CountResponse : ResponseBase, ICountResponse { - [JsonProperty(PropertyName = "count")] + [JsonProperty("count")] public long Count { get; internal set; } - [JsonProperty(PropertyName = "_shards")] - public ShardsMetaData Shards { get; internal set; } + [JsonProperty("_shards")] + public ShardsMetadata Shards { get; internal set; } } } diff --git a/src/Nest/Search/Explain/ExplainGet.cs b/src/Nest/Search/Explain/ExplainGet.cs index c95a0d90612..afe649b2be9 100644 --- a/src/Nest/Search/Explain/ExplainGet.cs +++ b/src/Nest/Search/Explain/ExplainGet.cs @@ -6,13 +6,13 @@ namespace Nest [JsonObject] public class InstantGet where T : class { - [JsonProperty(PropertyName = "found")] + [JsonProperty("found")] public bool Found { get; internal set; } - [JsonProperty(PropertyName = "_source")] + [JsonProperty("_source")] public T Source { get; internal set; } - [JsonProperty(PropertyName = "fields")] + [JsonProperty("fields")] public FieldValues Fields { get; internal set; } } diff --git a/src/Nest/Search/Explain/ExplainResponse.cs b/src/Nest/Search/Explain/ExplainResponse.cs index c3917e843c1..71a40ef01ed 100644 --- a/src/Nest/Search/Explain/ExplainResponse.cs +++ b/src/Nest/Search/Explain/ExplainResponse.cs @@ -15,13 +15,13 @@ public interface IExplainResponse : IResponse public class ExplainResponse : ResponseBase, IExplainResponse where T : class { - [JsonProperty(PropertyName = "matched")] + [JsonProperty("matched")] public bool Matched { get; internal set; } - [JsonProperty(PropertyName = "explanation")] + [JsonProperty("explanation")] public ExplanationDetail Explanation { get; internal set; } - [JsonProperty(PropertyName = "get")] + [JsonProperty("get")] public InstantGet Get { get; internal set; } } -} \ No newline at end of file +} diff --git a/src/Nest/Search/Explain/Explanation.cs b/src/Nest/Search/Explain/Explanation.cs index c069e0b1396..299bd949ed0 100644 --- a/src/Nest/Search/Explain/Explanation.cs +++ b/src/Nest/Search/Explain/Explanation.cs @@ -6,12 +6,12 @@ namespace Nest [JsonObject] public class Explanation { - [JsonProperty(PropertyName = "value")] + [JsonProperty("value")] public float Value { get; internal set; } - [JsonProperty(PropertyName = "description")] + [JsonProperty("description")] public string Description { get; internal set; } - [JsonProperty(PropertyName = "details")] + [JsonProperty("details")] public IReadOnlyCollection Details { get; internal set; } = EmptyReadOnly.Collection; } } diff --git a/src/Nest/Search/Explain/ExplanationDetail.cs b/src/Nest/Search/Explain/ExplanationDetail.cs index eb5968b2e50..2699b7a010d 100644 --- a/src/Nest/Search/Explain/ExplanationDetail.cs +++ b/src/Nest/Search/Explain/ExplanationDetail.cs @@ -6,13 +6,13 @@ namespace Nest [JsonObject] public class ExplanationDetail { - [JsonProperty(PropertyName = "value")] + [JsonProperty("value")] public float Value { get; internal set; } - [JsonProperty(PropertyName = "description")] + [JsonProperty("description")] public string Description { get; internal set; } - [JsonProperty(PropertyName = "details")] + [JsonProperty("details")] public IReadOnlyCollection Details { get; internal set; } = EmptyReadOnly.Collection; } } diff --git a/src/Nest/Search/FieldCapabilities/FieldCapabilitiesResponse.cs b/src/Nest/Search/FieldCapabilities/FieldCapabilitiesResponse.cs index d8d0334fc66..5bc55e263b6 100644 --- a/src/Nest/Search/FieldCapabilities/FieldCapabilitiesResponse.cs +++ b/src/Nest/Search/FieldCapabilities/FieldCapabilitiesResponse.cs @@ -12,7 +12,7 @@ public interface IFieldCapabilitiesResponse : IResponse public class FieldCapabilitiesResponse : ResponseBase, IFieldCapabilitiesResponse { - public ShardsMetaData Shards { get; internal set; } + public ShardsMetadata Shards { get; internal set; } public IReadOnlyDictionary Fields { get; internal set; } = EmptyReadOnly.Dictionary; } diff --git a/src/Nest/Search/FieldStats/ElasticClient-FieldStats.cs b/src/Nest/Search/FieldStats/ElasticClient-FieldStats.cs deleted file mode 100644 index d944d5010a2..00000000000 --- a/src/Nest/Search/FieldStats/ElasticClient-FieldStats.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Threading.Tasks; -using Elasticsearch.Net; -using System.Threading; - -namespace Nest -{ - public partial interface IElasticClient - { - /// - IFieldStatsResponse FieldStats(Indices indices, Func selector = null); - - /// - IFieldStatsResponse FieldStats(IFieldStatsRequest request); - - /// - Task FieldStatsAsync(Indices indices, Func selector= null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - Task FieldStatsAsync(IFieldStatsRequest request, CancellationToken cancellationToken = default(CancellationToken)); - } - - public partial class ElasticClient - { - /// - public IFieldStatsResponse FieldStats(Indices indices, Func selector = null) => - this.FieldStats(selector.InvokeOrDefault(new FieldStatsDescriptor().Index(indices))); - - /// - public IFieldStatsResponse FieldStats(IFieldStatsRequest request) => - this.Dispatcher.Dispatch( - request, this.LowLevelDispatch.FieldStatsDispatch - ); - - /// - public Task FieldStatsAsync(Indices indices, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => - this.FieldStatsAsync(selector.InvokeOrDefault(new FieldStatsDescriptor().Index(indices)), cancellationToken); - - /// - public Task FieldStatsAsync(IFieldStatsRequest request, CancellationToken cancellationToken = default(CancellationToken)) - => this.Dispatcher.DispatchAsync( - request, - cancellationToken, - this.LowLevelDispatch.FieldStatsDispatchAsync - ); - } -} diff --git a/src/Nest/Search/FieldStats/FieldStatsRequest.cs b/src/Nest/Search/FieldStats/FieldStatsRequest.cs deleted file mode 100644 index 13edc94a895..00000000000 --- a/src/Nest/Search/FieldStats/FieldStatsRequest.cs +++ /dev/null @@ -1,33 +0,0 @@ - -using System; -using Elasticsearch.Net; -using Newtonsoft.Json; - -namespace Nest -{ - public partial interface IFieldStatsRequest - { - [JsonProperty("fields")] - Fields Fields { get; set; } - - [JsonProperty("index_constraints")] - IIndexConstraints IndexConstraints { get; set; } - } - - public partial class FieldStatsRequest - { - public Fields Fields { get; set; } - public IIndexConstraints IndexConstraints { get; set; } - } - - public partial class FieldStatsDescriptor - { - Fields IFieldStatsRequest.Fields { get; set; } - IIndexConstraints IFieldStatsRequest.IndexConstraints { get; set; } - - public FieldStatsDescriptor Fields(Fields fields) => Assign(a => a.Fields = fields); - - public FieldStatsDescriptor IndexConstraints(Func> selector) => - Assign(a => a.IndexConstraints = selector?.Invoke(new IndexConstraintsDescriptor())?.Value); - } -} diff --git a/src/Nest/Search/FieldStats/FieldStatsResponse.cs b/src/Nest/Search/FieldStats/FieldStatsResponse.cs deleted file mode 100644 index 3a49776ebb2..00000000000 --- a/src/Nest/Search/FieldStats/FieldStatsResponse.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; - -namespace Nest -{ - [JsonObject] - public interface IFieldStatsResponse : IResponse - { - [JsonProperty("_shards")] - ShardsMetaData Shards { get; } - - [JsonProperty("indices")] - IReadOnlyDictionary Indices { get; } - } - - public class FieldStatsResponse : ResponseBase, IFieldStatsResponse - { - public ShardsMetaData Shards { get; internal set; } - public IReadOnlyDictionary Indices { get; internal set; } = - EmptyReadOnly.Dictionary; - } - - [JsonObject] - public class FieldStats - { - [JsonProperty("fields")] - public IReadOnlyDictionary Fields { get; internal set; } = EmptyReadOnly.Dictionary; - } - - public class FieldStatsField - { - [JsonProperty("max_doc")] - public long MaxDoc { get; internal set; } - - [JsonProperty("doc_count")] - public long DocCount { get; internal set; } - - [JsonProperty("density")] - public long Density { get; internal set; } - - [JsonProperty("sum_doc_freq")] - public long SumDocumentFrequency { get; internal set; } - - [JsonProperty("sum_total_term_freq")] - public long SumTotalTermFrequency { get; internal set; } - - [JsonProperty("searchable")] - public bool Searchable { get; internal set; } - - [JsonProperty("aggregatable")] - public bool Aggregatable { get; internal set; } - - [JsonProperty("min_value")] - //TODO this can also be an object in the case of geo_point/shape - public object MinValue { get; internal set; } - - [JsonProperty("min_value_as_string")] - public string MinValueAsString { get; internal set; } - - [JsonProperty("max_value")] - //TODO this can also be an object in the case of geo_point/shape - public object MaxValue { get; internal set; } - - [JsonProperty("max_value_as_string")] - public string MaxValueAsString { get; internal set; } - - } -} diff --git a/src/Nest/Search/FieldStats/IndexConstraint.cs b/src/Nest/Search/FieldStats/IndexConstraint.cs deleted file mode 100644 index ee436dec54c..00000000000 --- a/src/Nest/Search/FieldStats/IndexConstraint.cs +++ /dev/null @@ -1,81 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Nest -{ - public interface IIndexConstraint - { - [JsonProperty("min_value")] - IIndexConstraintComparison MinValue { get; set; } - - [JsonProperty("max_value")] - IIndexConstraintComparison MaxValue { get; set; } - } - - [JsonObject] - public class IndexConstraint : IIndexConstraint - { - public IIndexConstraintComparison MinValue { get; set; } - public IIndexConstraintComparison MaxValue { get; set; } - } - - public class IndexConstraintDescriptor - : DescriptorBase, IIndexConstraint - { - IIndexConstraintComparison IIndexConstraint.MaxValue { get; set; } - IIndexConstraintComparison IIndexConstraint.MinValue { get; set; } - - public IndexConstraintDescriptor MinValue(Func minValue) => - Assign(a => a.MinValue = minValue?.Invoke(new IndexConstraintComparisonDescriptor())); - - public IndexConstraintDescriptor MaxValue(Func maxValue) => - Assign(a => a.MaxValue = maxValue?.Invoke(new IndexConstraintComparisonDescriptor())); - } - - public interface IIndexConstraintComparison - { - [JsonProperty("gte")] - string GreaterThanOrEqualTo { get; set; } - - [JsonProperty("gt")] - string GreaterThan { get; set; } - - [JsonProperty("lte")] - string LessThanOrEqualTo { get; set; } - - [JsonProperty("lt")] - string LessThan { get; set; } - - [JsonProperty("format")] - string Format { get; set; } - } - - public class IndexConstraintComparison : IIndexConstraintComparison - { - public string GreaterThanOrEqualTo { get; set; } - public string GreaterThan { get; set; } - public string LessThanOrEqualTo { get; set; } - public string LessThan { get; set; } - public string Format { get; set; } - } - - public class IndexConstraintComparisonDescriptor - : DescriptorBase, IIndexConstraintComparison - { - string IIndexConstraintComparison.Format { get; set; } - string IIndexConstraintComparison.GreaterThan { get; set; } - string IIndexConstraintComparison.GreaterThanOrEqualTo { get; set; } - string IIndexConstraintComparison.LessThan { get; set; } - string IIndexConstraintComparison.LessThanOrEqualTo { get; set; } - - public IndexConstraintComparisonDescriptor Format(string format) => Assign(a => a.Format = format); - public IndexConstraintComparisonDescriptor GreaterThan(string gt) => Assign(a => a.GreaterThan = gt); - public IndexConstraintComparisonDescriptor GreaterThanOrEqualTo(string gte) => Assign(a => a.GreaterThanOrEqualTo = gte); - public IndexConstraintComparisonDescriptor LessThan(string lt) => Assign(a => a.LessThan = lt); - public IndexConstraintComparisonDescriptor LessThanOrEqualTo(string lte) => Assign(a => a.LessThanOrEqualTo = lte); - } -} diff --git a/src/Nest/Search/FieldStats/IndexConstraints.cs b/src/Nest/Search/FieldStats/IndexConstraints.cs deleted file mode 100644 index 126d3ff23c7..00000000000 --- a/src/Nest/Search/FieldStats/IndexConstraints.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Nest -{ - [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] - public interface IIndexConstraints : IIsADictionary { } - - public class IndexConstraints : IsADictionaryBase, IIndexConstraints - { - public IndexConstraints() {} - public IndexConstraints(IDictionary container) : base(container) { } - public IndexConstraints(Dictionary container) - : base(container.Select(kv => kv).ToDictionary(kv => kv.Key, kv => kv.Value)) - {} - - public void Add(Field field, IndexConstraint constraint) => BackingDictionary.Add(field, constraint); - } - - public class IndexConstraintsDescriptor : IsADictionaryDescriptorBase - { - public IndexConstraintsDescriptor() : base(new IndexConstraints()) { } - - public IndexConstraintsDescriptor IndexConstraint(Field field, Func selector) => - Assign(field, selector?.Invoke(new IndexConstraintDescriptor())); - } -} diff --git a/src/Nest/Search/MultiSearch/MultiSearchTemplate/ElasticClient-MultiSearchTemplate.cs b/src/Nest/Search/MultiSearchTemplate/ElasticClient-MultiSearchTemplate.cs similarity index 100% rename from src/Nest/Search/MultiSearch/MultiSearchTemplate/ElasticClient-MultiSearchTemplate.cs rename to src/Nest/Search/MultiSearchTemplate/ElasticClient-MultiSearchTemplate.cs diff --git a/src/Nest/Search/MultiSearch/MultiSearchTemplate/MultiSearchTemplateJsonConverter.cs b/src/Nest/Search/MultiSearchTemplate/MultiSearchTemplateJsonConverter.cs similarity index 100% rename from src/Nest/Search/MultiSearch/MultiSearchTemplate/MultiSearchTemplateJsonConverter.cs rename to src/Nest/Search/MultiSearchTemplate/MultiSearchTemplateJsonConverter.cs diff --git a/src/Nest/Search/MultiSearch/MultiSearchTemplate/MultiSearchTemplateRequest.cs b/src/Nest/Search/MultiSearchTemplate/MultiSearchTemplateRequest.cs similarity index 100% rename from src/Nest/Search/MultiSearch/MultiSearchTemplate/MultiSearchTemplateRequest.cs rename to src/Nest/Search/MultiSearchTemplate/MultiSearchTemplateRequest.cs diff --git a/src/Nest/Search/Search/Highlighting/Highlight.cs b/src/Nest/Search/Search/Highlighting/Highlight.cs index a9a637575ed..bef1cd018fa 100644 --- a/src/Nest/Search/Search/Highlighting/Highlight.cs +++ b/src/Nest/Search/Search/Highlighting/Highlight.cs @@ -91,7 +91,7 @@ public interface IHighlight [JsonProperty("tags_schema")] string TagsSchema { get; set; } - [JsonProperty(PropertyName = "fields")] + [JsonProperty("fields")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] Dictionary Fields { get; set; } diff --git a/src/Nest/Search/Search/Highlighting/HighlighterType.cs b/src/Nest/Search/Search/Highlighting/HighlighterType.cs index e744c4bf4e6..c40650d075c 100644 --- a/src/Nest/Search/Search/Highlighting/HighlighterType.cs +++ b/src/Nest/Search/Search/Highlighting/HighlighterType.cs @@ -19,14 +19,6 @@ public enum HighlighterType [EnumMember(Value = "plain")] Plain, - /// - /// Postings Highlighter. - /// If index_options is set to offsets in the mapping the postings highlighter - /// will be used instead of the plain highlighter - /// - [EnumMember(Value = "postings")] - Postings, - /// /// Fast Vector Highlighter. /// If term_vector information is provided by setting term_vector to with_positions_offsets @@ -35,7 +27,6 @@ public enum HighlighterType [EnumMember(Value = "fvh")] Fvh, - /// /// Unified Highlighter. /// The unified highlighter can extract offsets from either postings, term vectors, or via re-analyzing text. diff --git a/src/Nest/Search/Search/Hits/Hit.cs b/src/Nest/Search/Search/Hits/Hit.cs index f14271088d0..e38d8aebef1 100644 --- a/src/Nest/Search/Search/Hits/Hit.cs +++ b/src/Nest/Search/Search/Hits/Hit.cs @@ -12,6 +12,7 @@ public interface IHitMetadata where T : class long? Version { get; } string Routing { get; } string Id { get; } + [Obsolete("No longer returned on indexes created in Elasticsearch 6.x and up")] string Parent { get; } T Source { get; } } @@ -27,8 +28,10 @@ public static IHitMetadata Copy(this IHitMetadata : IHit where T : class public NestedIdentity Nested { get; internal set; } [JsonProperty("_parent")] + [Obsolete("This property is no longer returned on indices created in Elasticsearch 6.0.0 and up")] public string Parent { get; internal set; } [JsonProperty("_routing")] diff --git a/src/Nest/Search/Search/Hits/HitsMetaData.cs b/src/Nest/Search/Search/Hits/HitsMetaData.cs index ba906b39bd7..152dfb2b7b4 100644 --- a/src/Nest/Search/Search/Hits/HitsMetaData.cs +++ b/src/Nest/Search/Search/Hits/HitsMetaData.cs @@ -4,7 +4,7 @@ namespace Nest { [JsonObject] - public class HitsMetaData where T : class + public class HitsMetadata where T : class { [JsonProperty("total")] public long Total { get; internal set; } diff --git a/src/Nest/Search/Search/Hits/InnerHitsMetaData.cs b/src/Nest/Search/Search/Hits/InnerHitsMetaData.cs index b84053476d0..a5cc0357a07 100644 --- a/src/Nest/Search/Search/Hits/InnerHitsMetaData.cs +++ b/src/Nest/Search/Search/Hits/InnerHitsMetaData.cs @@ -4,7 +4,7 @@ namespace Nest { - public class InnerHitsMetaData + public class InnerHitsMetadata { [JsonProperty("total")] public long Total { get; internal set; } @@ -22,4 +22,4 @@ public IEnumerable Documents() where T : class return this.Hits.Select(hit => hit.Source.As()).ToList(); } } -} \ No newline at end of file +} diff --git a/src/Nest/Search/Search/Hits/InnerHitsResult.cs b/src/Nest/Search/Search/Hits/InnerHitsResult.cs index bc76e7d0dd9..ae5da3d3a94 100644 --- a/src/Nest/Search/Search/Hits/InnerHitsResult.cs +++ b/src/Nest/Search/Search/Hits/InnerHitsResult.cs @@ -7,14 +7,14 @@ namespace Nest public class InnerHitsResult { [JsonProperty("hits")] - public InnerHitsMetaData Hits { get; internal set; } + public InnerHitsMetadata Hits { get; internal set; } /// /// Retrieve documents as a strongly typed /// collection /// /// The hits document type - public IEnumerable Documents() where T : class => + public IEnumerable Documents() where T : class => this.Hits == null ? Enumerable.Empty() : this.Hits.Documents(); } -} \ No newline at end of file +} diff --git a/src/Nest/Search/Search/InnerHits/InnerHits.cs b/src/Nest/Search/Search/InnerHits/InnerHits.cs index 99719cebffd..be638d71ae8 100644 --- a/src/Nest/Search/Search/InnerHits/InnerHits.cs +++ b/src/Nest/Search/Search/InnerHits/InnerHits.cs @@ -18,25 +18,22 @@ public interface IInnerHits [JsonProperty("size")] int? Size { get; set; } - [JsonProperty(PropertyName = "sort")] + [JsonProperty("sort")] IList Sort { get; set; } - [JsonProperty(PropertyName = "highlight")] + [JsonProperty("highlight")] IHighlight Highlight { get; set; } - [JsonProperty(PropertyName = "explain")] + [JsonProperty("explain")] bool? Explain { get; set; } - [JsonProperty(PropertyName = "_source")] + [JsonProperty("_source")] Union Source { get; set; } - [JsonProperty(PropertyName = "version")] + [JsonProperty("version")] bool? Version { get; set; } - [JsonProperty(PropertyName = "fielddata_fields")] - IList FielddataFields { get; set; } - - [JsonProperty(PropertyName = "script_fields")] + [JsonProperty("script_fields")] IScriptFields ScriptFields { get; set; } } @@ -58,8 +55,6 @@ public class InnerHits : IInnerHits public bool? Version { get; set; } - public IList FielddataFields { get; set; } - public IScriptFields ScriptFields { get; set; } } @@ -74,7 +69,6 @@ public class InnerHitsDescriptor : DescriptorBase, IIn bool? IInnerHits.Explain { get; set; } Union IInnerHits.Source { get; set; } bool? IInnerHits.Version { get; set; } - IList IInnerHits.FielddataFields { get; set; } IScriptFields IInnerHits.ScriptFields { get; set; } public InnerHitsDescriptor From(int? from) => Assign(a => a.From = from); @@ -83,12 +77,6 @@ public class InnerHitsDescriptor : DescriptorBase, IIn public InnerHitsDescriptor Name(string name) => Assign(a => a.Name = name); - public InnerHitsDescriptor FielddataFields(params Field[] fielddataFields) => - Assign(a => a.FielddataFields = fielddataFields?.ToListOrNullIfEmpty()); - - public InnerHitsDescriptor FielddataFields(params Expression>[] fielddataFields) => - Assign(a => a.FielddataFields = fielddataFields?.Select(f => (Field)f).ToListOrNullIfEmpty()); - public InnerHitsDescriptor Explain(bool? explain = true) => Assign(a => a.Explain = explain); public InnerHitsDescriptor Version(bool? version = true) => Assign(a => a.Version = version); diff --git a/src/Nest/Search/Search/SearchRequest.cs b/src/Nest/Search/Search/SearchRequest.cs index 692458fa045..a9ed01159e8 100644 --- a/src/Nest/Search/Search/SearchRequest.cs +++ b/src/Nest/Search/Search/SearchRequest.cs @@ -63,9 +63,6 @@ public partial interface ISearchRequest : ICovariantSearchRequest [JsonProperty("stored_fields")] Fields StoredFields { get; set; } - [JsonProperty("fielddata_fields")] - Fields FielddataFields { get; set; } - [JsonProperty("script_fields")] IScriptFields ScriptFields { get; set; } @@ -113,7 +110,6 @@ public partial class SearchRequest public double? MinScore { get; set; } public long? TerminateAfter { get; set; } public Fields StoredFields { get; set; } - public Fields FielddataFields { get; set; } public IScriptFields ScriptFields { get; set; } public Union Source { get; set; } public IList Sort { get; set; } @@ -158,7 +154,6 @@ public partial class SearchRequest public double? MinScore { get; set; } public long? TerminateAfter { get; set; } public Fields StoredFields { get; set; } - public Fields FielddataFields { get; set; } public IScriptFields ScriptFields { get; set; } public Union Source { get; set; } public IList Sort { get; set; } @@ -227,7 +222,6 @@ public partial class SearchDescriptor where T : class QueryContainer ISearchRequest.Query { get; set; } QueryContainer ISearchRequest.PostFilter { get; set; } Fields ISearchRequest.StoredFields { get; set; } - Fields ISearchRequest.FielddataFields { get; set; } IScriptFields ISearchRequest.ScriptFields { get; set; } Union ISearchRequest.Source { get; set; } AggregationDictionary ISearchRequest.Aggregations { get; set; } @@ -269,12 +263,12 @@ public SearchDescriptor Source(Func, ISourceFilter> /// /// Enables explanation for each hit on how its score was computed. - /// (Use .DocumentsWithMetaData on the return results) + /// (Use .DocumentsWithMetadata on the return results) /// public SearchDescriptor Explain(bool explain = true) => Assign(a => a.Explain = explain); /// - /// Returns a version for each search hit. (Use .DocumentsWithMetaData on the return results) + /// Returns a version for each search hit. (Use .DocumentsWithMetadata on the return results) /// public SearchDescriptor Version(bool version = true) => Assign(a => a.Version = version); @@ -374,12 +368,6 @@ public SearchDescriptor StoredFields(Func, IPromise StoredFields(Fields fields) => Assign(a => a.StoredFields = fields); - /// - ///A comma-separated list of fields to return as the field data representation of a field for each hit - /// - public SearchDescriptor FielddataFields(Func, IPromise> fields) => - Assign(a => a.FielddataFields = fields?.Invoke(new FieldsDescriptor())?.Value); - public SearchDescriptor ScriptFields(Func> selector) => Assign(a => a.ScriptFields = selector?.Invoke(new ScriptFieldsDescriptor())?.Value); diff --git a/src/Nest/Search/Search/SearchResponse.cs b/src/Nest/Search/Search/SearchResponse.cs index ce96fa62a08..d54962bce44 100644 --- a/src/Nest/Search/Search/SearchResponse.cs +++ b/src/Nest/Search/Search/SearchResponse.cs @@ -11,12 +11,12 @@ public interface ISearchResponse : IResponse where T : class /// /// Gets the meta data about the shards on which the search query was executed. /// - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } /// /// Gets the meta data about the hits that match the search query criteria. /// - HitsMetaData HitsMetaData { get; } + HitsMetadata HitsMetadata { get; } /// /// Gets the collection of aggregations @@ -109,14 +109,14 @@ public class SearchResponse : ResponseBase, ISearchResponse where T : clas internal ServerError MultiSearchError { get; set; } protected override IApiCallDetails ApiCall => MultiSearchError != null ? new ApiCallDetailsOverride(base.ApiCall, MultiSearchError) : base.ApiCall; - [JsonProperty(PropertyName = "_shards")] - public ShardsMetaData Shards { get; internal set; } + [JsonProperty("_shards")] + public ShardsMetadata Shards { get; internal set; } - [JsonProperty(PropertyName = "aggregations")] + [JsonProperty("aggregations")] [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] public IReadOnlyDictionary Aggregations { get; internal set; } = EmptyReadOnly.Dictionary; - [JsonProperty(PropertyName = "profile")] + [JsonProperty("profile")] public Profile Profile { get; internal set; } private AggregationsHelper _agg; @@ -124,11 +124,11 @@ public class SearchResponse : ResponseBase, ISearchResponse where T : clas [JsonIgnore] public AggregationsHelper Aggs => _agg ?? (_agg = new AggregationsHelper(this.Aggregations)); - [JsonProperty(PropertyName = "suggest")] + [JsonProperty("suggest")] public IReadOnlyDictionary[]> Suggest { get; internal set; } = EmptyReadOnly[]>.Dictionary; - [JsonProperty(PropertyName = "took")] + [JsonProperty("took")] public long Took { get; internal set; } [JsonProperty("timed_out")] @@ -140,20 +140,20 @@ public class SearchResponse : ResponseBase, ISearchResponse where T : clas /// /// Only set when search type = scan and scroll specified /// - [JsonProperty(PropertyName = "_scroll_id")] + [JsonProperty("_scroll_id")] public string ScrollId { get; internal set; } - [JsonProperty(PropertyName = "hits")] - public HitsMetaData HitsMetaData { get; internal set; } + [JsonProperty("hits")] + public HitsMetadata HitsMetadata { get; internal set; } - [JsonProperty(PropertyName = "num_reduce_phases")] + [JsonProperty("num_reduce_phases")] public long NumberOfReducePhases { get; internal set; } [JsonIgnore] - public long Total => this.HitsMetaData?.Total ?? 0; + public long Total => this.HitsMetadata?.Total ?? 0; [JsonIgnore] - public double MaxScore => this.HitsMetaData?.MaxScore ?? 0; + public double MaxScore => this.HitsMetadata?.MaxScore ?? 0; private IReadOnlyCollection _documents; @@ -168,7 +168,7 @@ public class SearchResponse : ResponseBase, ISearchResponse where T : clas [JsonIgnore] public IReadOnlyCollection> Hits => - this._hits ?? (this._hits = this.HitsMetaData?.Hits ?? EmptyReadOnly>.Collection); + this._hits ?? (this._hits = this.HitsMetadata?.Hits ?? EmptyReadOnly>.Collection); private IReadOnlyCollection _fields; diff --git a/src/Nest/Search/Search/Sort/SortGeoDistance.cs b/src/Nest/Search/Search/Sort/SortGeoDistance.cs index 98a103fcfe9..d35027ffaa6 100644 --- a/src/Nest/Search/Search/Sort/SortGeoDistance.cs +++ b/src/Nest/Search/Search/Sort/SortGeoDistance.cs @@ -10,10 +10,10 @@ public interface IGeoDistanceSort : ISort Field Field { get; set; } IEnumerable Points { get; set; } - [JsonProperty(PropertyName = "unit")] + [JsonProperty("unit")] DistanceUnit? GeoUnit { get; set; } - [JsonProperty(PropertyName = "distance_type")] + [JsonProperty("distance_type")] GeoDistanceType? DistanceType { get; set; } } @@ -27,7 +27,7 @@ public class GeoDistanceSort : SortBase, IGeoDistanceSort } - public class SortGeoDistanceDescriptor : SortDescriptorBase, IGeoDistanceSort, T>, IGeoDistanceSort + public class SortGeoDistanceDescriptor : SortDescriptorBase, IGeoDistanceSort, T>, IGeoDistanceSort where T : class { diff --git a/src/Nest/Search/Search/Sort/SortScript.cs b/src/Nest/Search/Search/Sort/SortScript.cs index 1e2faf46de9..07af4b267af 100644 --- a/src/Nest/Search/Search/Sort/SortScript.cs +++ b/src/Nest/Search/Search/Sort/SortScript.cs @@ -5,10 +5,10 @@ namespace Nest { public interface IScriptSort : ISort { - [JsonProperty(PropertyName = "type")] + [JsonProperty("type")] string Type { get; set; } - [JsonProperty(PropertyName = "script")] + [JsonProperty("script")] IScript Script { get; set; } } @@ -22,7 +22,7 @@ public class ScriptSort : SortBase, IScriptSort public string Language { get; set; } } - public class SortScriptDescriptor : SortDescriptorBase, IScriptSort, T>, IScriptSort + public class SortScriptDescriptor : SortDescriptorBase, IScriptSort, T>, IScriptSort where T : class { protected override Field SortKey => "_script"; diff --git a/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/DeleteSearchTemplateRequest.cs b/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/DeleteSearchTemplateRequest.cs deleted file mode 100644 index c52281b09dc..00000000000 --- a/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/DeleteSearchTemplateRequest.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace Nest -{ - public partial interface IDeleteSearchTemplateRequest - { - } - - public partial class DeleteSearchTemplateRequest - { - } - - [DescriptorFor("DeleteTemplate")] - public partial class DeleteSearchTemplateDescriptor - { - } -} diff --git a/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/DeleteSearchTemplateResponse.cs b/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/DeleteSearchTemplateResponse.cs deleted file mode 100644 index 6fb7cf92272..00000000000 --- a/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/DeleteSearchTemplateResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Nest -{ - public interface IDeleteSearchTemplateResponse : IAcknowledgedResponse { } - - public class DeleteSearchTemplateResponse : AcknowledgedResponseBase, IDeleteSearchTemplateResponse { } -} diff --git a/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/ElasticClient-DeleteSearchTemplate.cs b/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/ElasticClient-DeleteSearchTemplate.cs deleted file mode 100644 index d770dcae39e..00000000000 --- a/src/Nest/Search/SearchTemplate/DeleteSearchTemplate/ElasticClient-DeleteSearchTemplate.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Threading.Tasks; -using Elasticsearch.Net; -using System.Threading; - -namespace Nest -{ - public partial interface IElasticClient - { - /// - IDeleteSearchTemplateResponse DeleteSearchTemplate(Id id, Func selector = null); - - /// - IDeleteSearchTemplateResponse DeleteSearchTemplate(IDeleteSearchTemplateRequest request); - - /// - Task DeleteSearchTemplateAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - Task DeleteSearchTemplateAsync(IDeleteSearchTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)); - } - - public partial class ElasticClient - { - public IDeleteSearchTemplateResponse DeleteSearchTemplate(Id id, Func selector = null) => - this.DeleteSearchTemplate(selector.InvokeOrDefault(new DeleteSearchTemplateDescriptor(id))); - - - public IDeleteSearchTemplateResponse DeleteSearchTemplate(IDeleteSearchTemplateRequest request) => - this.Dispatcher.Dispatch( - request, - (p, d) => this.LowLevelDispatch.DeleteTemplateDispatch(p) - ); - - public Task DeleteSearchTemplateAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => - this.DeleteSearchTemplateAsync(selector.InvokeOrDefault(new DeleteSearchTemplateDescriptor(id)), cancellationToken); - - public Task DeleteSearchTemplateAsync(IDeleteSearchTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)) => - this.Dispatcher.DispatchAsync( - request, - cancellationToken, - (p, d, c) => this.LowLevelDispatch.DeleteTemplateDispatchAsync(p, c) - ); - } -} diff --git a/src/Nest/Search/SearchTemplate/GetSearchTemplate/ElasticClient-GetSearchTemplate.cs b/src/Nest/Search/SearchTemplate/GetSearchTemplate/ElasticClient-GetSearchTemplate.cs deleted file mode 100644 index a79e3f329f6..00000000000 --- a/src/Nest/Search/SearchTemplate/GetSearchTemplate/ElasticClient-GetSearchTemplate.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Threading.Tasks; -using Elasticsearch.Net; -using System.Threading; - -namespace Nest -{ - public partial interface IElasticClient - { - /// - IGetSearchTemplateResponse GetSearchTemplate(Id id, Func selector = null); - - /// - IGetSearchTemplateResponse GetSearchTemplate(IGetSearchTemplateRequest request); - - /// - Task GetSearchTemplateAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); - - /// - Task GetSearchTemplateAsync(IGetSearchTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)); - } - public partial class ElasticClient - { - public IGetSearchTemplateResponse GetSearchTemplate(Id id, Func selector = null) => - this.GetSearchTemplate(selector.InvokeOrDefault(new GetSearchTemplateDescriptor(id))); - - public IGetSearchTemplateResponse GetSearchTemplate(IGetSearchTemplateRequest request) => - this.Dispatcher.Dispatch( - request, - (p, d) => this.LowLevelDispatch.GetTemplateDispatch(p) - ); - - public Task GetSearchTemplateAsync(Id id, Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => - this.GetSearchTemplateAsync(selector.InvokeOrDefault(new GetSearchTemplateDescriptor(id)), cancellationToken); - - public Task GetSearchTemplateAsync(IGetSearchTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)) => - this.Dispatcher.DispatchAsync( - request, - cancellationToken, - (p, d, c) => this.LowLevelDispatch.GetTemplateDispatchAsync(p, c) - ); - } -} diff --git a/src/Nest/Search/SearchTemplate/GetSearchTemplate/GetSearchTemplateRequest.cs b/src/Nest/Search/SearchTemplate/GetSearchTemplate/GetSearchTemplateRequest.cs deleted file mode 100644 index 402b97ea510..00000000000 --- a/src/Nest/Search/SearchTemplate/GetSearchTemplate/GetSearchTemplateRequest.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace Nest -{ - public partial interface IGetSearchTemplateRequest - { - } - - public partial class GetSearchTemplateRequest - { - } - - - [DescriptorFor("GetTemplate")] - public partial class GetSearchTemplateDescriptor - { - } -} diff --git a/src/Nest/Search/SearchTemplate/GetSearchTemplate/GetSearchTemplateResponse.cs b/src/Nest/Search/SearchTemplate/GetSearchTemplate/GetSearchTemplateResponse.cs deleted file mode 100644 index 2f52e6745bf..00000000000 --- a/src/Nest/Search/SearchTemplate/GetSearchTemplate/GetSearchTemplateResponse.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Newtonsoft.Json; - -namespace Nest -{ - public interface IGetSearchTemplateResponse : IResponse - { - string Template { get; } - } - - [JsonObject] - public class GetSearchTemplateResponse : ResponseBase, IGetSearchTemplateResponse - { - [JsonProperty("template")] - public string Template { get; internal set; } - } -} diff --git a/src/Nest/Search/SearchTemplate/PutSearchTemplate/ElasticClient-PutSearchTemplate.cs b/src/Nest/Search/SearchTemplate/PutSearchTemplate/ElasticClient-PutSearchTemplate.cs deleted file mode 100644 index e0a5926641a..00000000000 --- a/src/Nest/Search/SearchTemplate/PutSearchTemplate/ElasticClient-PutSearchTemplate.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Threading.Tasks; -using Elasticsearch.Net; -using System.Threading; - -namespace Nest -{ - public partial interface IElasticClient - { - /// - IPutSearchTemplateResponse PutSearchTemplate(Id id, Func selector); - - /// - IPutSearchTemplateResponse PutSearchTemplate(IPutSearchTemplateRequest request); - - /// - Task PutSearchTemplateAsync(Id id, Func selector, CancellationToken cancellationToken = default(CancellationToken)); - - /// - Task PutSearchTemplateAsync(IPutSearchTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)); - } - - public partial class ElasticClient - { - /// - public IPutSearchTemplateResponse PutSearchTemplate(Id id, Func selector) => - this.PutSearchTemplate(selector?.Invoke(new PutSearchTemplateDescriptor(id))); - - /// - public IPutSearchTemplateResponse PutSearchTemplate(IPutSearchTemplateRequest request) => - this.Dispatcher.Dispatch( - request, - this.LowLevelDispatch.PutTemplateDispatch - ); - - /// - public Task PutSearchTemplateAsync(Id id, Func selector, CancellationToken cancellationToken = default(CancellationToken)) => - this.PutSearchTemplateAsync(selector?.Invoke(new PutSearchTemplateDescriptor(id)), cancellationToken); - - /// - public Task PutSearchTemplateAsync(IPutSearchTemplateRequest request, CancellationToken cancellationToken = default(CancellationToken)) => - this.Dispatcher.DispatchAsync( - request, - cancellationToken, - this.LowLevelDispatch.PutTemplateDispatchAsync - ); - } -} diff --git a/src/Nest/Search/SearchTemplate/PutSearchTemplate/PutSearchTemplateRequest.cs b/src/Nest/Search/SearchTemplate/PutSearchTemplate/PutSearchTemplateRequest.cs deleted file mode 100644 index d40d02c1ff4..00000000000 --- a/src/Nest/Search/SearchTemplate/PutSearchTemplate/PutSearchTemplateRequest.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Newtonsoft.Json; - -namespace Nest -{ - [JsonConverter(typeof(ReadAsTypeJsonConverter))] - public partial interface IPutSearchTemplateRequest - { - [JsonProperty("template")] - string Template { get; set; } - } - - public partial class PutSearchTemplateRequest - { - public string Template { get; set; } - } - - [DescriptorFor("PutTemplate")] - public partial class PutSearchTemplateDescriptor - { - string IPutSearchTemplateRequest.Template { get; set; } - - public PutSearchTemplateDescriptor Template(string template) => Assign(a => a.Template = template); - } -} diff --git a/src/Nest/Search/SearchTemplate/PutSearchTemplate/PutSearchTemplateResponse.cs b/src/Nest/Search/SearchTemplate/PutSearchTemplate/PutSearchTemplateResponse.cs deleted file mode 100644 index 16fdb018195..00000000000 --- a/src/Nest/Search/SearchTemplate/PutSearchTemplate/PutSearchTemplateResponse.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Nest -{ - public interface IPutSearchTemplateResponse : IAcknowledgedResponse { } - - public class PutSearchTemplateResponse : AcknowledgedResponseBase, IPutSearchTemplateResponse { } -} diff --git a/src/Nest/Search/SearchTemplate/RenderSearchTemplate/RenderSearchTemplateRequest.cs b/src/Nest/Search/SearchTemplate/RenderSearchTemplate/RenderSearchTemplateRequest.cs index 268d8c58b83..1141353d7dc 100644 --- a/src/Nest/Search/SearchTemplate/RenderSearchTemplate/RenderSearchTemplateRequest.cs +++ b/src/Nest/Search/SearchTemplate/RenderSearchTemplate/RenderSearchTemplateRequest.cs @@ -6,7 +6,11 @@ namespace Nest { public partial interface IRenderSearchTemplateRequest { - [JsonProperty("inline")] + [JsonProperty("source")] + string Source { get; set; } + + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] string Inline { get; set; } [JsonProperty("file")] @@ -20,7 +24,9 @@ public partial interface IRenderSearchTemplateRequest public partial class RenderSearchTemplateRequest { - public string Inline { get; set; } + public string Source { get; set; } + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + public string Inline { get => this.Source; set => this.Source = value; } public string File { get; set; } public Dictionary Params { get; set; } } @@ -28,11 +34,14 @@ public partial class RenderSearchTemplateRequest public partial class RenderSearchTemplateDescriptor { - string IRenderSearchTemplateRequest.Inline { get; set; } + string IRenderSearchTemplateRequest.Inline { get => Self.Source; set => Self.Source = value; } + string IRenderSearchTemplateRequest.Source { get; set; } string IRenderSearchTemplateRequest.File { get; set; } Dictionary IRenderSearchTemplateRequest.Params { get; set; } + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] public RenderSearchTemplateDescriptor Inline(string inline) => Assign(a => a.Inline = inline); + public RenderSearchTemplateDescriptor Source(string source) => Assign(a => a.Source = source); public RenderSearchTemplateDescriptor File(string file) => Assign(a => a.File = file); diff --git a/src/Nest/Search/SearchTemplate/SearchTemplateRequest.cs b/src/Nest/Search/SearchTemplate/SearchTemplateRequest.cs index 36fbaba3961..667df975786 100644 --- a/src/Nest/Search/SearchTemplate/SearchTemplateRequest.cs +++ b/src/Nest/Search/SearchTemplate/SearchTemplateRequest.cs @@ -10,11 +10,12 @@ public partial interface ISearchTemplateRequest : ICovariantSearchRequest [JsonProperty("params")] IDictionary Params { get; set; } - [JsonProperty("inline")] - string Inline { get; set; } + [JsonProperty("source")] + string Source { get; set; } - [JsonProperty("file")] - string File { get; set; } + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] + string Inline { get; set; } [JsonProperty("id")] string Id { get; set; } @@ -30,8 +31,9 @@ public partial interface ISearchTemplateRequest : ICovariantSearchRequest public partial class SearchTemplateRequest { - public string Inline { get; set; } - public string File { get; set; } + public string Source { get; set; } + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + public string Inline { get => this.Source; set => this.Source = value; } public string Id { get; set; } public IDictionary Params { get; set; } protected Type ClrType { get; set; } @@ -79,11 +81,12 @@ public partial class SearchTemplateDescriptor where T : class /// internal bool _Strict { get; set; } - string ISearchTemplateRequest.Inline { get; set; } + string ISearchTemplateRequest.Inline { get => Self.Source; set => Self.Source = value; } + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] public SearchTemplateDescriptor Inline(string template) => Assign(a => a.Inline = template); - string ISearchTemplateRequest.File { get; set; } - public SearchTemplateDescriptor File(string file) => Assign(a => a.File = file); + string ISearchTemplateRequest.Source { get; set; } + public SearchTemplateDescriptor Source(string template) => Assign(a => a.Source = template); string ISearchTemplateRequest.Id { get; set; } public SearchTemplateDescriptor Id(string id) => Assign(a => a.Id = id); diff --git a/src/Nest/Search/Suggesters/CompletionSuggester/FuzzySuggest.cs b/src/Nest/Search/Suggesters/CompletionSuggester/FuzzySuggest.cs index 3d335671165..f81bb730f9d 100644 --- a/src/Nest/Search/Suggesters/CompletionSuggester/FuzzySuggest.cs +++ b/src/Nest/Search/Suggesters/CompletionSuggester/FuzzySuggest.cs @@ -6,19 +6,19 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IFuzzySuggester { - [JsonProperty(PropertyName = "transpositions")] + [JsonProperty("transpositions")] bool? Transpositions { get; set; } - [JsonProperty(PropertyName = "min_length")] + [JsonProperty("min_length")] int? MinLength { get; set; } - [JsonProperty(PropertyName = "prefix_length")] + [JsonProperty("prefix_length")] int? PrefixLength { get; set; } - [JsonProperty(PropertyName = "fuzziness")] + [JsonProperty("fuzziness")] IFuzziness Fuzziness { get; set; } - [JsonProperty(PropertyName = "unicode_aware")] + [JsonProperty("unicode_aware")] bool? UnicodeAware { get; set; } } @@ -31,7 +31,7 @@ public class FuzzySuggester : IFuzzySuggester public bool? UnicodeAware { get; set; } } - public class FuzzySuggestDescriptor : DescriptorBase, IFuzzySuggester>, IFuzzySuggester + public class FuzzySuggestDescriptor : DescriptorBase, IFuzzySuggester>, IFuzzySuggester where T : class { bool? IFuzzySuggester.Transpositions { get; set; } diff --git a/src/Nest/Search/Suggesters/PhraseSuggester/DirectGenerator.cs b/src/Nest/Search/Suggesters/PhraseSuggester/DirectGenerator.cs index 62a8fc071b3..4d38aee9e2c 100644 --- a/src/Nest/Search/Suggesters/PhraseSuggester/DirectGenerator.cs +++ b/src/Nest/Search/Suggesters/PhraseSuggester/DirectGenerator.cs @@ -10,38 +10,38 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IDirectGenerator { - [JsonProperty(PropertyName = "field")] + [JsonProperty("field")] Field Field { get; set; } - [JsonProperty(PropertyName = "size")] + [JsonProperty("size")] int? Size { get; set; } - [JsonProperty(PropertyName = "prefix_length")] + [JsonProperty("prefix_length")] int? PrefixLength { get; set; } - [JsonProperty(PropertyName = "suggest_mode")] + [JsonProperty("suggest_mode")] [JsonConverter(typeof(StringEnumConverter))] SuggestMode? SuggestMode { get; set; } - [JsonProperty(PropertyName = "min_word_length")] + [JsonProperty("min_word_length")] int? MinWordLength { get; set; } - [JsonProperty(PropertyName = "max_edits")] + [JsonProperty("max_edits")] int? MaxEdits { get; set; } - [JsonProperty(PropertyName = "max_inspections")] + [JsonProperty("max_inspections")] decimal? MaxInspections { get; set; } - [JsonProperty(PropertyName = "min_doc_freq")] + [JsonProperty("min_doc_freq")] decimal? MinDocFrequency { get; set; } - [JsonProperty(PropertyName = "max_term_freq")] + [JsonProperty("max_term_freq")] decimal? MaxTermFrequency { get; set; } - [JsonProperty(PropertyName = "pre_filter")] + [JsonProperty("pre_filter")] string PreFilter { get; set; } - [JsonProperty(PropertyName = "post_filter")] + [JsonProperty("post_filter")] string PostFilter { get; set; } } diff --git a/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestCollate.cs b/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestCollate.cs index da28bd30669..d6aba8633ae 100644 --- a/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestCollate.cs +++ b/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestCollate.cs @@ -8,10 +8,10 @@ namespace Nest [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IPhraseSuggestCollate { - [JsonProperty(PropertyName = "query")] + [JsonProperty("query")] ITemplateQuery Query { get; set; } - [JsonProperty(PropertyName = "prune")] + [JsonProperty("prune")] bool? Prune { get; set; } } diff --git a/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestHighlight.cs b/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestHighlight.cs index f508b0859e4..fce910de237 100644 --- a/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestHighlight.cs +++ b/src/Nest/Search/Suggesters/PhraseSuggester/PhraseSuggestHighlight.cs @@ -5,10 +5,10 @@ namespace Nest [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public interface IPhraseSuggestHighlight { - [JsonProperty(PropertyName = "pre_tag")] + [JsonProperty("pre_tag")] string PreTag { get; set; } - [JsonProperty(PropertyName = "post_tag")] + [JsonProperty("post_tag")] string PostTag { get; set; } } diff --git a/src/Nest/Search/Validate/ValidateQueryResponse.cs b/src/Nest/Search/Validate/ValidateQueryResponse.cs index 0856afde43b..573d7594494 100644 --- a/src/Nest/Search/Validate/ValidateQueryResponse.cs +++ b/src/Nest/Search/Validate/ValidateQueryResponse.cs @@ -7,23 +7,23 @@ namespace Nest public interface IValidateQueryResponse : IResponse { bool Valid { get; } - ShardsMetaData Shards { get; } + ShardsMetadata Shards { get; } IReadOnlyCollection Explanations { get; } } [JsonObject] public class ValidateQueryResponse : ResponseBase, IValidateQueryResponse { - [JsonProperty(PropertyName = "valid")] + [JsonProperty("valid")] public bool Valid { get; internal set; } - [JsonProperty(PropertyName = "_shards")] - public ShardsMetaData Shards { get; internal set; } + [JsonProperty("_shards")] + public ShardsMetadata Shards { get; internal set; } /// /// Gets the explanations if Explain() was set. /// - [JsonProperty(PropertyName = "explanations")] + [JsonProperty("explanations")] public IReadOnlyCollection Explanations { get; internal set; } = EmptyReadOnly.Collection; } } diff --git a/src/Nest/Search/Validate/ValidationExplanation.cs b/src/Nest/Search/Validate/ValidationExplanation.cs index a21928599df..8714a9933f0 100644 --- a/src/Nest/Search/Validate/ValidationExplanation.cs +++ b/src/Nest/Search/Validate/ValidationExplanation.cs @@ -5,16 +5,16 @@ namespace Nest [JsonObject] public class ValidationExplanation { - [JsonProperty(PropertyName = "index")] + [JsonProperty("index")] public string Index { get; internal set; } - [JsonProperty(PropertyName = "valid")] + [JsonProperty("valid")] public bool Valid { get; internal set; } - - [JsonProperty(PropertyName = "error")] + + [JsonProperty("error")] public string Error { get; internal set; } - - [JsonProperty(PropertyName = "explanation")] + + [JsonProperty("explanation")] public string Explanation { get; internal set; } } } diff --git a/src/Nest/XPack/DeprecationInfo/DeprecationInfoRequest.cs b/src/Nest/XPack/DeprecationInfo/DeprecationInfoRequest.cs new file mode 100644 index 00000000000..c06d0dd4609 --- /dev/null +++ b/src/Nest/XPack/DeprecationInfo/DeprecationInfoRequest.cs @@ -0,0 +1,9 @@ +namespace Nest +{ + public partial interface IDeprecationInfoRequest { } + + public partial class DeprecationInfoRequest { } + + [DescriptorFor("XpackDeprecationInfo")] + public partial class DeprecationInfoDescriptor : IDeprecationInfoRequest { } +} diff --git a/src/Nest/XPack/DeprecationInfo/DeprecationInfoResponse.cs b/src/Nest/XPack/DeprecationInfo/DeprecationInfoResponse.cs new file mode 100644 index 00000000000..3d3b8ba99af --- /dev/null +++ b/src/Nest/XPack/DeprecationInfo/DeprecationInfoResponse.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Nest +{ + [JsonConverter(typeof(StringEnumConverter))] + public enum DeprecationWarningLevel + { + [EnumMember(Value = "none")] + None, + [EnumMember(Value = "info")] + Information, + [EnumMember(Value = "warning")] + Warning, + [EnumMember(Value = "critical")] + Critical + } + + public class DeprecationInfo + { + [JsonProperty("level")] + public DeprecationWarningLevel Level { get; internal set; } + + [JsonProperty("message")] + public string Message { get; internal set; } + + [JsonProperty("url")] + public string Url { get; internal set; } + + [JsonProperty("details")] + public string Details { get; internal set; } + } + + public interface IDeprecationInfoResponse : IResponse + { + [JsonProperty("cluster_settings")] + IReadOnlyCollection ClusterSettings { get; } + + [JsonProperty("node_settings")] + IReadOnlyCollection NodeSettings { get; } + + [JsonProperty("index_settings")] + IReadOnlyDictionary> IndexSettings { get; } + } + + public class DeprecationInfoResponse : ResponseBase, IDeprecationInfoResponse + { + public IReadOnlyCollection ClusterSettings { get; internal set; } = EmptyReadOnly.Collection; + public IReadOnlyCollection NodeSettings { get; internal set; } = EmptyReadOnly.Collection; + public IReadOnlyDictionary> IndexSettings { get; internal set; } = EmptyReadOnly>.Dictionary; + } +} diff --git a/src/Nest/XPack/DeprecationInfo/ElasticClient-DeprecationInfo.cs b/src/Nest/XPack/DeprecationInfo/ElasticClient-DeprecationInfo.cs new file mode 100644 index 00000000000..48a580d4505 --- /dev/null +++ b/src/Nest/XPack/DeprecationInfo/ElasticClient-DeprecationInfo.cs @@ -0,0 +1,48 @@ +using System; +using System.Threading.Tasks; +using Elasticsearch.Net; +using System.Threading; + +namespace Nest +{ + public partial interface IElasticClient + { + /// + IDeprecationInfoResponse DeprecationInfo(Func selector = null); + + /// + IDeprecationInfoResponse DeprecationInfo(IDeprecationInfoRequest request); + + /// + Task DeprecationInfoAsync(Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + Task DeprecationInfoAsync(IDeprecationInfoRequest request, CancellationToken cancellationToken = default(CancellationToken)); + } + + public partial class ElasticClient + { + /// + public IDeprecationInfoResponse DeprecationInfo(Func selector = null) => + this.DeprecationInfo(selector.InvokeOrDefault(new DeprecationInfoDescriptor())); + + /// + public IDeprecationInfoResponse DeprecationInfo(IDeprecationInfoRequest request) => + this.Dispatcher.Dispatch( + request, + (p, d) =>this.LowLevelDispatch.XpackDeprecationInfoDispatch(p) + ); + + /// + public Task DeprecationInfoAsync(Func selector = null, CancellationToken cancellationToken = default(CancellationToken)) => + this.DeprecationInfoAsync(selector.InvokeOrDefault(new DeprecationInfoDescriptor()), cancellationToken); + + /// + public Task DeprecationInfoAsync(IDeprecationInfoRequest request, CancellationToken cancellationToken = default(CancellationToken)) => + this.Dispatcher.DispatchAsync( + request, + cancellationToken, + (p, d, c) => this.LowLevelDispatch.XpackDeprecationInfoDispatchAsync(p, c) + ); + } +} diff --git a/src/Nest/XPack/MachineLearning/CloseJob/ElasticClient-CloseJob.cs b/src/Nest/XPack/MachineLearning/CloseJob/ElasticClient-CloseJob.cs index 766e9c9061b..ae1c923dda1 100644 --- a/src/Nest/XPack/MachineLearning/CloseJob/ElasticClient-CloseJob.cs +++ b/src/Nest/XPack/MachineLearning/CloseJob/ElasticClient-CloseJob.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Closes a Machine Learning job. + /// Closes a machine learning job. /// A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results. /// ICloseJobResponse CloseJob(Id jobId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/Datafeed/DatafeedConfig.cs b/src/Nest/XPack/MachineLearning/Datafeed/DatafeedConfig.cs index 190210b6496..01ec60c26e9 100644 --- a/src/Nest/XPack/MachineLearning/Datafeed/DatafeedConfig.cs +++ b/src/Nest/XPack/MachineLearning/Datafeed/DatafeedConfig.cs @@ -3,19 +3,19 @@ namespace Nest { /// - /// Configuration of a Machine Learning Datafeed + /// Configuration of a machine learning Datafeed /// [JsonObject] public class DatafeedConfig { /// - /// The datafeed id + /// The datafeed id. /// [JsonProperty("datafeed_id")] public string DatafeedId { get; internal set; } /// - /// the aggregation searches to perform for the datafeed + /// The aggregation searches to perform for the datafeed. /// [JsonProperty("aggregations")] public AggregationDictionary Aggregations { get; internal set; } @@ -34,7 +34,9 @@ public class DatafeedConfig [JsonProperty("frequency")] public Time Frequency { get; internal set; } - ///A list of index names to search within. Wildcards are supported + /// + /// A list of index names to search within, wildcards are supported. + /// [JsonProperty("indices")] [JsonConverter(typeof(IndicesJsonConverter))] public Indices Indices { get; internal set; } @@ -46,33 +48,35 @@ public class DatafeedConfig public string JobId { get; internal set; } /// - /// Describe the query to perform using a query descriptor lambda + /// Describe the query to perform using a query descriptor lambda. /// [JsonProperty("query")] public QueryContainer Query { get; internal set; } /// /// The number of seconds behind real time that data is queried. - /// For example, if data from 10:04 A.M. might not be searchable in Elasticsearch until 10:06 A.M., + /// For example, if data from 10:04 A.M. might not be searchable until 10:06 A.M., /// set this property to 120 seconds. The default value is 60s. /// [JsonProperty("query_delay")] public Time QueryDelay { get; internal set; } /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. T - /// he detector configuration in a job can contain functions that use these script fields. + /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. + /// The detector configuration in a job can contain functions that use these script fields. /// [JsonProperty("script_fields")] public IScriptFields ScriptFields { get; internal set; } /// - /// The size parameter that is used in Elasticsearch searches + /// The size parameter that is used in searches. /// [JsonProperty("scroll_size")] public int? ScrollSize { get; internal set; } - ///A list of types to search for within the specified indices + /// + /// A list of types to search for within the specified indices. + /// [JsonProperty("types")] [JsonConverter(typeof(TypesJsonConverter))] public Types Types { get; internal set; } diff --git a/src/Nest/XPack/MachineLearning/DeleteDatafeed/ElasticClient-DeleteDatafeed.cs b/src/Nest/XPack/MachineLearning/DeleteDatafeed/ElasticClient-DeleteDatafeed.cs index 429a7d072d3..359c613fe7d 100644 --- a/src/Nest/XPack/MachineLearning/DeleteDatafeed/ElasticClient-DeleteDatafeed.cs +++ b/src/Nest/XPack/MachineLearning/DeleteDatafeed/ElasticClient-DeleteDatafeed.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Deletes an existing datafeed for a Machine Learning job. + /// Deletes an existing datafeed for a machine learning job. /// IDeleteDatafeedResponse DeleteDatafeed(Id datafeedId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/DeleteExpiredData/ElasticClient-DeleteExpiredData.cs b/src/Nest/XPack/MachineLearning/DeleteExpiredData/ElasticClient-DeleteExpiredData.cs index c64af9f9539..62007c52cb9 100644 --- a/src/Nest/XPack/MachineLearning/DeleteExpiredData/ElasticClient-DeleteExpiredData.cs +++ b/src/Nest/XPack/MachineLearning/DeleteExpiredData/ElasticClient-DeleteExpiredData.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Deletes expired data for Machine Learning. + /// Deletes expired machine learning data. /// IDeleteExpiredDataResponse DeleteExpiredData(Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/DeleteJob/DeleteJobRequest.cs b/src/Nest/XPack/MachineLearning/DeleteJob/DeleteJobRequest.cs index ff9e7edd84f..b6ac38225d5 100644 --- a/src/Nest/XPack/MachineLearning/DeleteJob/DeleteJobRequest.cs +++ b/src/Nest/XPack/MachineLearning/DeleteJob/DeleteJobRequest.cs @@ -1,5 +1,3 @@ -using Newtonsoft.Json; - namespace Nest { public partial interface IDeleteJobRequest {} diff --git a/src/Nest/XPack/MachineLearning/DeleteJob/ElasticClient-DeleteJob.cs b/src/Nest/XPack/MachineLearning/DeleteJob/ElasticClient-DeleteJob.cs index b0bea31138b..138bd7b7d8e 100644 --- a/src/Nest/XPack/MachineLearning/DeleteJob/ElasticClient-DeleteJob.cs +++ b/src/Nest/XPack/MachineLearning/DeleteJob/ElasticClient-DeleteJob.cs @@ -8,10 +8,13 @@ namespace Nest public partial interface IElasticClient { /// - /// Deletes a Machine Learning job. - /// Before you can delete a job, you must delete the datafeeds that are associated with it, see DeleteDatafeed. Unless the force parameter is used the job must be closed before it can be deleted. - /// It is not currently possible to delete multiple jobs using wildcards or a comma separated list. + /// Deletes a machine learning job. + /// Before you can delete a job, you must delete the datafeeds that are associated with it, see DeleteDatafeed. + /// Unless the force parameter is used, the job must be closed before it can be deleted. /// + /// + /// It is not currently possible to delete multiple jobs, either using wildcards or a comma separated list. + /// IDeleteJobResponse DeleteJob(Id jobId, Func selector = null); /// diff --git a/src/Nest/XPack/MachineLearning/DeleteModelSnapshot/ElasticClient-DeleteModelSnapshot.cs b/src/Nest/XPack/MachineLearning/DeleteModelSnapshot/ElasticClient-DeleteModelSnapshot.cs index f8481b73f88..96d957dafec 100644 --- a/src/Nest/XPack/MachineLearning/DeleteModelSnapshot/ElasticClient-DeleteModelSnapshot.cs +++ b/src/Nest/XPack/MachineLearning/DeleteModelSnapshot/ElasticClient-DeleteModelSnapshot.cs @@ -8,11 +8,10 @@ namespace Nest public partial interface IElasticClient { /// - /// Deletes an existing Machine Learning model snapshot. + /// Deletes an existing machine learning model snapshot. /// /// - /// You cannot delete the active model snapshot. - /// To delete that snapshot, first revert to a different one. + /// You cannot delete the active model snapshot, unless you first revert to a different one. /// IDeleteModelSnapshotResponse DeleteModelSnapshot(Id jobId, Id snapshotId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/FlushJob/ElasticClient-FlushJob.cs b/src/Nest/XPack/MachineLearning/FlushJob/ElasticClient-FlushJob.cs index 06b7beeec1a..c862863024b 100644 --- a/src/Nest/XPack/MachineLearning/FlushJob/ElasticClient-FlushJob.cs +++ b/src/Nest/XPack/MachineLearning/FlushJob/ElasticClient-FlushJob.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Forces any buffered data to be processed by the Machine Learning job. + /// Forces any buffered data to be processed by the machine learning job. /// IFlushJobResponse FlushJob(Id jobId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetAnomalyRecords/ElasticClient-GetAnomalyRecords.cs b/src/Nest/XPack/MachineLearning/GetAnomalyRecords/ElasticClient-GetAnomalyRecords.cs index aa079338452..42981e7cd1b 100644 --- a/src/Nest/XPack/MachineLearning/GetAnomalyRecords/ElasticClient-GetAnomalyRecords.cs +++ b/src/Nest/XPack/MachineLearning/GetAnomalyRecords/ElasticClient-GetAnomalyRecords.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieve anomaly records for a Machine Learning job. + /// Retrieve anomaly records for a machine learning job. /// IGetAnomalyRecordsResponse GetAnomalyRecords(Id jobId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetAnomalyRecords/GetAnomalyRecordsRequest.cs b/src/Nest/XPack/MachineLearning/GetAnomalyRecords/GetAnomalyRecordsRequest.cs index 7b373bcbffe..c0bf3131866 100644 --- a/src/Nest/XPack/MachineLearning/GetAnomalyRecords/GetAnomalyRecordsRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetAnomalyRecords/GetAnomalyRecordsRequest.cs @@ -4,7 +4,7 @@ namespace Nest { /// - /// A request to retrieve retrieve anomaly records for a Machine Learning job. + /// Retrieve anomaly records for a machine learning job. /// public partial interface IGetAnomalyRecordsRequest { @@ -40,7 +40,7 @@ public partial interface IGetAnomalyRecordsRequest double? RecordScore { get; set; } /// - /// Specifies the sort field for the requested records. By default, records are sorted by the record score value. + /// Specifies the sort field for the requested records. By default, records are sorted by the anomaly score value. /// [JsonProperty("sort")] Field Sort { get; set; } diff --git a/src/Nest/XPack/MachineLearning/GetBuckets/ElasticClient-GetBuckets.cs b/src/Nest/XPack/MachineLearning/GetBuckets/ElasticClient-GetBuckets.cs index b1d42d8098f..db00518631b 100644 --- a/src/Nest/XPack/MachineLearning/GetBuckets/ElasticClient-GetBuckets.cs +++ b/src/Nest/XPack/MachineLearning/GetBuckets/ElasticClient-GetBuckets.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves Machine Learning job results for one or more buckets. + /// Retrieves machine learning job results for one or more buckets. /// IGetBucketsResponse GetBuckets(Id jobId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetBuckets/GetBucketsRequest.cs b/src/Nest/XPack/MachineLearning/GetBuckets/GetBucketsRequest.cs index 77397936e51..34a1e517b1b 100644 --- a/src/Nest/XPack/MachineLearning/GetBuckets/GetBucketsRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetBuckets/GetBucketsRequest.cs @@ -5,7 +5,7 @@ namespace Nest { /// - /// A request to retrieve job results for one or more buckets. + /// Retrieve job results for one or more buckets. /// public partial interface IGetBucketsRequest { diff --git a/src/Nest/XPack/MachineLearning/GetCategories/ElasticClient-GetCategories.cs b/src/Nest/XPack/MachineLearning/GetCategories/ElasticClient-GetCategories.cs index c75df0c66c1..c4f23a2424c 100644 --- a/src/Nest/XPack/MachineLearning/GetCategories/ElasticClient-GetCategories.cs +++ b/src/Nest/XPack/MachineLearning/GetCategories/ElasticClient-GetCategories.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves Machine Learning job results for one or more categories. + /// Retrieves machine learning job results for one or more categories. /// IGetCategoriesResponse GetCategories(Id jobId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetCategories/GetCategoriesRequest.cs b/src/Nest/XPack/MachineLearning/GetCategories/GetCategoriesRequest.cs index fc0c81694a5..b53ebfde23c 100644 --- a/src/Nest/XPack/MachineLearning/GetCategories/GetCategoriesRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetCategories/GetCategoriesRequest.cs @@ -4,7 +4,7 @@ namespace Nest { /// - /// A request to retrieve job results for one or more categories. + /// Retrieve job results for one or more categories. /// public partial interface IGetCategoriesRequest { @@ -26,6 +26,7 @@ public partial class GetCategoriesRequest [DescriptorFor("XpackMlGetCategories")] public partial class GetCategoriesDescriptor { + /// IPage IGetCategoriesRequest.Page { get; set; } /// diff --git a/src/Nest/XPack/MachineLearning/GetDatafeedStats/ElasticClient-GetDatafeedStats.cs b/src/Nest/XPack/MachineLearning/GetDatafeedStats/ElasticClient-GetDatafeedStats.cs index 4ca317d1d2b..76ecfe373d9 100644 --- a/src/Nest/XPack/MachineLearning/GetDatafeedStats/ElasticClient-GetDatafeedStats.cs +++ b/src/Nest/XPack/MachineLearning/GetDatafeedStats/ElasticClient-GetDatafeedStats.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves configuration information for Machine Learning datafeeds. + /// Retrieves configuration information for machine learning datafeeds. /// IGetDatafeedStatsResponse GetDatafeedStats(Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetDatafeedStats/GetDatafeedStatsRequest.cs b/src/Nest/XPack/MachineLearning/GetDatafeedStats/GetDatafeedStatsRequest.cs index 8c0427eef5e..e25af8ebe99 100644 --- a/src/Nest/XPack/MachineLearning/GetDatafeedStats/GetDatafeedStatsRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetDatafeedStats/GetDatafeedStatsRequest.cs @@ -1,10 +1,7 @@ -using System; -using Newtonsoft.Json; - namespace Nest { /// - /// A request to retrieve configuration information for Machine Learning datafeeds. + /// Retrieve configuration information for machine learning datafeeds. /// public partial interface IGetDatafeedStatsRequest {} diff --git a/src/Nest/XPack/MachineLearning/GetDatafeeds/ElasticClient-GetDatafeeds.cs b/src/Nest/XPack/MachineLearning/GetDatafeeds/ElasticClient-GetDatafeeds.cs index 89a49086c6a..da31cd64a17 100644 --- a/src/Nest/XPack/MachineLearning/GetDatafeeds/ElasticClient-GetDatafeeds.cs +++ b/src/Nest/XPack/MachineLearning/GetDatafeeds/ElasticClient-GetDatafeeds.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves configuration information for Machine Learning datafeeds. + /// Retrieves configuration information for machine learning datafeeds. /// IGetDatafeedsResponse GetDatafeeds(Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetDatafeeds/GetDatafeedsRequest.cs b/src/Nest/XPack/MachineLearning/GetDatafeeds/GetDatafeedsRequest.cs index 730dd0aa239..0a5651f9616 100644 --- a/src/Nest/XPack/MachineLearning/GetDatafeeds/GetDatafeedsRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetDatafeeds/GetDatafeedsRequest.cs @@ -1,10 +1,7 @@ -using System; -using Newtonsoft.Json; - namespace Nest { /// - /// A request to retrieve configuration information for Machine Learning datafeeds. + /// Retrieve configuration information for machine learning datafeeds. /// public partial interface IGetDatafeedsRequest {} diff --git a/src/Nest/XPack/MachineLearning/GetInfluencers/ElasticClient-GetInfluencers.cs b/src/Nest/XPack/MachineLearning/GetInfluencers/ElasticClient-GetInfluencers.cs index 4a01e563b50..faf09a2efe4 100644 --- a/src/Nest/XPack/MachineLearning/GetInfluencers/ElasticClient-GetInfluencers.cs +++ b/src/Nest/XPack/MachineLearning/GetInfluencers/ElasticClient-GetInfluencers.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves results for Machine Learning job influencers. + /// Retrieves results for machine learning job influencers. /// IGetInfluencersResponse GetInfluencers(Id jobId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersRequest.cs b/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersRequest.cs index 78bfd9c9c6f..3e4f31cfe50 100644 --- a/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersRequest.cs @@ -4,7 +4,7 @@ namespace Nest { /// - /// A request to retrieve results for Machine Learning job influencers. + /// Retrieve results for machine learning job influencers. /// public partial interface IGetInfluencersRequest { @@ -33,7 +33,7 @@ public partial interface IGetInfluencersRequest double? InfluencerScore { get; set; } /// - /// Specifies pagination for the influencers + /// Specifies pagination for the influencers. /// [JsonProperty("page")] IPage Page { get; set; } diff --git a/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersResponse.cs b/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersResponse.cs index 02bd70ef9b7..49a077b25c9 100644 --- a/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersResponse.cs +++ b/src/Nest/XPack/MachineLearning/GetInfluencers/GetInfluencersResponse.cs @@ -1,7 +1,5 @@ using System.Collections.Generic; -using System.Runtime.Serialization; using Newtonsoft.Json; -using Newtonsoft.Json.Converters; namespace Nest { diff --git a/src/Nest/XPack/MachineLearning/GetJobStats/ElasticClient-GetJobStats.cs b/src/Nest/XPack/MachineLearning/GetJobStats/ElasticClient-GetJobStats.cs index 97a6c6d0ace..166c7dd457a 100644 --- a/src/Nest/XPack/MachineLearning/GetJobStats/ElasticClient-GetJobStats.cs +++ b/src/Nest/XPack/MachineLearning/GetJobStats/ElasticClient-GetJobStats.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves results for Machine Learning job influencers. + /// Retrieves results for machine learning job influencers. /// IGetJobStatsResponse GetJobStats(Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetJobStats/GetJobStatsRequest.cs b/src/Nest/XPack/MachineLearning/GetJobStats/GetJobStatsRequest.cs index 70b796e9aec..78a022a0dff 100644 --- a/src/Nest/XPack/MachineLearning/GetJobStats/GetJobStatsRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetJobStats/GetJobStatsRequest.cs @@ -1,10 +1,7 @@ -using System; -using Newtonsoft.Json; - namespace Nest { /// - /// A request to retrieve usage information for Machine Learning jobs. + /// Retrieve usage information for machine learning jobs. /// public partial interface IGetJobStatsRequest {} diff --git a/src/Nest/XPack/MachineLearning/GetJobs/ElasticClient-GetJobs.cs b/src/Nest/XPack/MachineLearning/GetJobs/ElasticClient-GetJobs.cs index 421b594e451..5e27651c1d6 100644 --- a/src/Nest/XPack/MachineLearning/GetJobs/ElasticClient-GetJobs.cs +++ b/src/Nest/XPack/MachineLearning/GetJobs/ElasticClient-GetJobs.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves configuration for Machine Learning jobs. + /// Retrieves configuration for machine learning jobs. /// IGetJobsResponse GetJobs(Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetJobs/GetJobsRequest.cs b/src/Nest/XPack/MachineLearning/GetJobs/GetJobsRequest.cs index 2a1b63916be..ee656dafd68 100644 --- a/src/Nest/XPack/MachineLearning/GetJobs/GetJobsRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetJobs/GetJobsRequest.cs @@ -1,10 +1,7 @@ -using System; -using Newtonsoft.Json; - namespace Nest { /// - /// A request to retrieve usage information for Machine Learning jobs. + /// Retrieve usage information for machine learning jobs. /// public partial interface IGetJobsRequest {} diff --git a/src/Nest/XPack/MachineLearning/GetJobs/GetJobsResponse.cs b/src/Nest/XPack/MachineLearning/GetJobs/GetJobsResponse.cs index 86ceb8e52bc..81cfeb12a0c 100644 --- a/src/Nest/XPack/MachineLearning/GetJobs/GetJobsResponse.cs +++ b/src/Nest/XPack/MachineLearning/GetJobs/GetJobsResponse.cs @@ -4,7 +4,7 @@ namespace Nest { /// - /// A response of the configuration for Machine Learning jobs. + /// A response of the configuration for machine learning jobs. /// public interface IGetJobsResponse : IResponse { @@ -15,7 +15,7 @@ public interface IGetJobsResponse : IResponse long Count { get; } /// - /// The configuration of Machine Learning jobs + /// The configuration of machine learning jobs /// [JsonProperty("jobs")] IReadOnlyCollection Jobs { get; } diff --git a/src/Nest/XPack/MachineLearning/GetModelSnapshots/ElasticClient-GetModelSnapshots.cs b/src/Nest/XPack/MachineLearning/GetModelSnapshots/ElasticClient-GetModelSnapshots.cs index 007c45e7130..8e765fddf88 100644 --- a/src/Nest/XPack/MachineLearning/GetModelSnapshots/ElasticClient-GetModelSnapshots.cs +++ b/src/Nest/XPack/MachineLearning/GetModelSnapshots/ElasticClient-GetModelSnapshots.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Retrieves information about Machine Learning model snapshots. + /// Retrieves information about machine learning model snapshots. /// IGetModelSnapshotsResponse GetModelSnapshots(Id jobId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/GetModelSnapshots/GetModelSnapshotsRequest.cs b/src/Nest/XPack/MachineLearning/GetModelSnapshots/GetModelSnapshotsRequest.cs index 905a73fda99..9c0872877d8 100644 --- a/src/Nest/XPack/MachineLearning/GetModelSnapshots/GetModelSnapshotsRequest.cs +++ b/src/Nest/XPack/MachineLearning/GetModelSnapshots/GetModelSnapshotsRequest.cs @@ -4,7 +4,7 @@ namespace Nest { /// - /// A request to retrieve usage information for Machine Learning jobs. + /// Retrieve usage information for machine learning jobs. /// public partial interface IGetModelSnapshotsRequest { @@ -22,7 +22,7 @@ public partial interface IGetModelSnapshotsRequest DateTimeOffset? End { get; set; } /// - /// Specifies pagination for the snapshots + /// Specifies pagination for the snapshots. /// [JsonProperty("page")] IPage Page { get; set; } diff --git a/src/Nest/XPack/MachineLearning/Job/Config/AnalysisConfig.cs b/src/Nest/XPack/MachineLearning/Job/Config/AnalysisConfig.cs index cad48e8108d..3ce55622ba0 100644 --- a/src/Nest/XPack/MachineLearning/Job/Config/AnalysisConfig.cs +++ b/src/Nest/XPack/MachineLearning/Job/Config/AnalysisConfig.cs @@ -6,7 +6,7 @@ namespace Nest { /// - /// An analysis configuration for a Machine Learning job. + /// An analysis configuration for a machine learning job. /// [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IAnalysisConfig diff --git a/src/Nest/XPack/MachineLearning/Job/Config/AnalysisLimits.cs b/src/Nest/XPack/MachineLearning/Job/Config/AnalysisLimits.cs index a1900eacc2f..782af383efc 100644 --- a/src/Nest/XPack/MachineLearning/Job/Config/AnalysisLimits.cs +++ b/src/Nest/XPack/MachineLearning/Job/Config/AnalysisLimits.cs @@ -21,7 +21,7 @@ public interface IAnalysisLimits long? CategorizationExamplesLimit { get; set; } /// - /// The approximate maximum amount of memory resources that are required for analytical processing, + /// The approximate maximum amount of memory resources that are required for analytical processing, /// in MiB. Once this limit is approached, data pruning becomes more aggressive. /// Upon exceeding this limit, new entities are not modeled. The default value is 4096. /// @@ -60,7 +60,7 @@ public AnalysisLimitsDescriptor ModelMemoryLimit(long modelMemoryLimit) => public interface IAnalysisMemoryLimit { /// - /// The approximate maximum amount of memory resources that are required for analytical processing, + /// The approximate maximum amount of memory resources that are required for analytical processing, /// in MiB. Once this limit is approached, data pruning becomes more aggressive. /// Upon exceeding this limit, new entities are not modeled. The default value is 4096. /// diff --git a/src/Nest/XPack/MachineLearning/Job/Config/DataDescription.cs b/src/Nest/XPack/MachineLearning/Job/Config/DataDescription.cs index aa389ac529c..c8145def253 100644 --- a/src/Nest/XPack/MachineLearning/Job/Config/DataDescription.cs +++ b/src/Nest/XPack/MachineLearning/Job/Config/DataDescription.cs @@ -5,7 +5,7 @@ namespace Nest { /// - /// Defines the format of the input data when you send data to the Machine Learning job. + /// Defines the format of the input data when you send data to the machine learning job. /// Note that when configure a datafeed, these properties are automatically set. /// [JsonConverter(typeof(ReadAsTypeJsonConverter))] diff --git a/src/Nest/XPack/MachineLearning/Job/Config/Job.cs b/src/Nest/XPack/MachineLearning/Job/Config/Job.cs index a21eb5fae75..6236de75681 100644 --- a/src/Nest/XPack/MachineLearning/Job/Config/Job.cs +++ b/src/Nest/XPack/MachineLearning/Job/Config/Job.cs @@ -7,22 +7,22 @@ namespace Nest public class Job { /// - /// The unique identifier for the job + /// The unique identifier for the job. /// [JsonProperty("job_id")] public string JobId { get; set; } /// - /// The job type + /// The job type. /// /// - /// Reserved for future use + /// Reserved for future use. /// [JsonProperty("job_type")] public string JobType { get; set; } /// - /// An optional description of the job + /// An optional description of the job. /// [JsonProperty("description")] public string Description { get; set; } @@ -59,14 +59,13 @@ public class Job /// at exactly the same time. The smallest allowed value is 1 hour. /// /// - /// For very large models (several GB), persistence could take 10-20 minutes, - /// so do not set the background_persist_interval value too low. + /// For very large models (several GB), persistence could take 10-20 minutes, so do not set the value too low. /// [JsonProperty("background_persist_interval")] public Time BackgroundPersistInterval { get; set; } /// - /// Describes the format of the input data. This object is required, but it can be empty + /// Describes the format of the input data. This object is required, but it can be empty. /// [JsonProperty("data_description")] public IDataDescription DataDescription { get; set; } @@ -86,21 +85,21 @@ public class Job /// /// The name of the index in which to store the machine learning results. - /// The default value is shared, which corresponds to the index name .ml-anomalies-shared. + /// The default value is shared (which corresponds to the index name .ml-anomalies-shared). /// [JsonProperty("results_index_name")] public string ResultsIndexName { get; set; } /// /// This advanced configuration option stores model information along with the results. - /// This adds overhead to the performance of the system and is not feasible for jobs with many entities + /// This adds overhead to the performance of the system and is not feasible for jobs with many entities. /// [JsonProperty("model_plot")] public IModelPlotConfig ModelPlotConfig { get; set; } /// /// Advanced configuration option. The period over which adjustments to the score are applied, as new data - /// is seen. The default value is the longer of 30 days or 100 bucket_spans. + /// is seen. The default value is the longer of 30 days or 100 bucket spans. /// [JsonProperty("renormalization_window_days")] public long? RenormalizationWindowDays { get; set; } diff --git a/src/Nest/XPack/MachineLearning/Job/Config/JobState.cs b/src/Nest/XPack/MachineLearning/Job/Config/JobState.cs index ab91be0d569..a1a324676af 100644 --- a/src/Nest/XPack/MachineLearning/Job/Config/JobState.cs +++ b/src/Nest/XPack/MachineLearning/Job/Config/JobState.cs @@ -5,7 +5,7 @@ namespace Nest { /// - /// The state of a Machine Learning job + /// The state of a machine learning job /// [JsonConverter(typeof(StringEnumConverter))] public enum JobState diff --git a/src/Nest/XPack/MachineLearning/Job/Config/JobStats.cs b/src/Nest/XPack/MachineLearning/Job/Config/JobStats.cs index dd9d99a3dc6..708e4ba20a2 100644 --- a/src/Nest/XPack/MachineLearning/Job/Config/JobStats.cs +++ b/src/Nest/XPack/MachineLearning/Job/Config/JobStats.cs @@ -3,7 +3,7 @@ namespace Nest { /// - /// Provides statistics about the operation progress of a Machine Learning job. + /// Provides statistics about the operation progress of a machine learning job. /// [JsonObject] public class JobStats @@ -33,7 +33,7 @@ public class JobStats public ModelSizeStats ModelSizeStats { get; internal set; } /// - /// The status of the job + /// The status of the job. /// [JsonProperty("state")] public JobState State { get; internal set; } diff --git a/src/Nest/XPack/MachineLearning/Job/Detectors/CountDetector.cs b/src/Nest/XPack/MachineLearning/Job/Detectors/CountDetector.cs index 0f0e1943a63..7eb847425aa 100644 --- a/src/Nest/XPack/MachineLearning/Job/Detectors/CountDetector.cs +++ b/src/Nest/XPack/MachineLearning/Job/Detectors/CountDetector.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Linq.Expressions; -using Newtonsoft.Json; namespace Nest { diff --git a/src/Nest/XPack/MachineLearning/Job/Detectors/RareDetector.cs b/src/Nest/XPack/MachineLearning/Job/Detectors/RareDetector.cs index a089a714361..0c31c34115e 100644 --- a/src/Nest/XPack/MachineLearning/Job/Detectors/RareDetector.cs +++ b/src/Nest/XPack/MachineLearning/Job/Detectors/RareDetector.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Linq.Expressions; -using Newtonsoft.Json; namespace Nest { diff --git a/src/Nest/XPack/MachineLearning/Job/Detectors/SumDetector.cs b/src/Nest/XPack/MachineLearning/Job/Detectors/SumDetector.cs index 4496e347e48..db41e1ffb6a 100644 --- a/src/Nest/XPack/MachineLearning/Job/Detectors/SumDetector.cs +++ b/src/Nest/XPack/MachineLearning/Job/Detectors/SumDetector.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Linq.Expressions; -using Newtonsoft.Json; namespace Nest { diff --git a/src/Nest/XPack/MachineLearning/Job/Results/AnomalyRecord.cs b/src/Nest/XPack/MachineLearning/Job/Results/AnomalyRecord.cs index e809550ec6b..8572f2a40ee 100644 --- a/src/Nest/XPack/MachineLearning/Job/Results/AnomalyRecord.cs +++ b/src/Nest/XPack/MachineLearning/Job/Results/AnomalyRecord.cs @@ -5,8 +5,8 @@ namespace Nest { /// - /// Detailed analyticial results of anomalous activity that has been identified in - /// the input data based on the detector configuration. + /// Detailed analyticial results of anomalous activity that has been + /// identified in the input data based on the detector configuration. /// [JsonObject] public class AnomalyRecord @@ -24,10 +24,11 @@ public class AnomalyRecord public string ResultType { get; internal set; } /// - /// The probability of the individual anomaly occurring, in the range 0 to 1. For example, 0.0000772031. + /// The probability of the individual anomaly occurring, in the range 0 to 1. /// This value can be held to a high precision of over 300 decimal places, so the /// is provided as a human-readable and friendly interpretation of this. /// + /// 0.0000772031 [JsonProperty("probability")] public double Probability { get; internal set; } @@ -47,7 +48,7 @@ public class AnomalyRecord public double InitialRecordScore { get; internal set; } /// - /// The length of the bucket. This value matches the bucket_span that is specified in the job. + /// The length of the bucket. This value matches the that is specified in the job. /// [JsonProperty("bucket_span")] public Time BucketSpan { get; internal set; } @@ -89,8 +90,8 @@ public class AnomalyRecord /// /// /// Additional record properties are added, depending on the fields being analyzed. - /// For example, if it’s analyzing hostname as a by field, then a field hostname is added to the result document. - /// This information enables you to filter the anomaly results more easily. + /// For example, if it’s analyzing hostname as a by field, then a field hostname is added to the + /// result document. This information enables you to filter the anomaly results more easily. /// [JsonProperty("typical")] public IReadOnlyCollection Typical { get; internal set; } = EmptyReadOnly.Collection; @@ -124,7 +125,7 @@ public class AnomalyRecord /// For population analysis, an over field must be specified in the detector. /// This property contains an array of anomaly records that are the causes for the anomaly that has been /// identified for the over field. If no over fields exist, this field is not present. - /// Contains the most anomalous records for the over_field_name. For scalability reasons, + /// Contains the most anomalous records for the . For scalability reasons, /// a maximum of the 10 most significant causes of the anomaly are returned. /// As part of the core analytical modeling, these low-level anomaly records are aggregated for their /// parent over field record. @@ -133,7 +134,7 @@ public class AnomalyRecord public IReadOnlyCollection Causes { get; internal set; } = EmptyReadOnly.Collection; /// - /// If influencers was specified in the detector configuration, then this + /// If influencers was specified in the detector configuration, then this /// contains influencers that contributed to or were to blame for an anomaly. /// [JsonProperty("influencers")] diff --git a/src/Nest/XPack/MachineLearning/OpenJob/ElasticClient-OpenJob.cs b/src/Nest/XPack/MachineLearning/OpenJob/ElasticClient-OpenJob.cs index 0486ba61b01..6f01d9d93d4 100644 --- a/src/Nest/XPack/MachineLearning/OpenJob/ElasticClient-OpenJob.cs +++ b/src/Nest/XPack/MachineLearning/OpenJob/ElasticClient-OpenJob.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Opens a Machine Learning job. + /// Opens a machine learning job. /// A job must be opened in order for it to be ready to receive and analyze data. /// A job can be opened and closed multiple times throughout its lifecycle. /// diff --git a/src/Nest/XPack/MachineLearning/OpenJob/OpenJobRequest.cs b/src/Nest/XPack/MachineLearning/OpenJob/OpenJobRequest.cs index ea27c49736f..95ab3caa3ce 100644 --- a/src/Nest/XPack/MachineLearning/OpenJob/OpenJobRequest.cs +++ b/src/Nest/XPack/MachineLearning/OpenJob/OpenJobRequest.cs @@ -3,7 +3,7 @@ namespace Nest { /// - /// A request to open a Machine Learning job. + /// Open a machine learning job. /// public partial interface IOpenJobRequest { diff --git a/src/Nest/XPack/MachineLearning/PostJobData/ElasticClient-PostJobData.cs b/src/Nest/XPack/MachineLearning/PostJobData/ElasticClient-PostJobData.cs index 2bf8f133162..86038568dfe 100644 --- a/src/Nest/XPack/MachineLearning/PostJobData/ElasticClient-PostJobData.cs +++ b/src/Nest/XPack/MachineLearning/PostJobData/ElasticClient-PostJobData.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Sends data to a Machine Learning job for analysis. + /// Sends data to a machine learning job for analysis. /// IPostJobDataResponse PostJobData(Id jobId, Func selector); diff --git a/src/Nest/XPack/MachineLearning/PostJobData/PostJobDataResponse.cs b/src/Nest/XPack/MachineLearning/PostJobData/PostJobDataResponse.cs index 3babc4c81bf..e63eaef5b3d 100644 --- a/src/Nest/XPack/MachineLearning/PostJobData/PostJobDataResponse.cs +++ b/src/Nest/XPack/MachineLearning/PostJobData/PostJobDataResponse.cs @@ -6,7 +6,7 @@ namespace Nest public interface IPostJobDataResponse : IResponse { /// - /// The unique identifier for the job + /// The unique identifier for the job. /// [JsonProperty("job_id")] string JobId { get; } diff --git a/src/Nest/XPack/MachineLearning/PreviewDatafeed/ElasticClient-PreviewDatafeed.cs b/src/Nest/XPack/MachineLearning/PreviewDatafeed/ElasticClient-PreviewDatafeed.cs index 97d68839e95..fa4512644b2 100644 --- a/src/Nest/XPack/MachineLearning/PreviewDatafeed/ElasticClient-PreviewDatafeed.cs +++ b/src/Nest/XPack/MachineLearning/PreviewDatafeed/ElasticClient-PreviewDatafeed.cs @@ -10,7 +10,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Preview a Machine Learning datafeed. + /// Preview a machine learning datafeed. /// This preview shows the structure of the data that will be passed to the anomaly detection engine. /// IPreviewDatafeedResponse PreviewDatafeed(Id datafeedId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/PreviewDatafeed/PreviewDatafeedRequest.cs b/src/Nest/XPack/MachineLearning/PreviewDatafeed/PreviewDatafeedRequest.cs index 1ec2e8c44f7..4005152d8e7 100644 --- a/src/Nest/XPack/MachineLearning/PreviewDatafeed/PreviewDatafeedRequest.cs +++ b/src/Nest/XPack/MachineLearning/PreviewDatafeed/PreviewDatafeedRequest.cs @@ -1,5 +1,3 @@ -using Newtonsoft.Json; - namespace Nest { public partial interface IPreviewDatafeedRequest {} diff --git a/src/Nest/XPack/MachineLearning/PutDatafeed/ElasticClient-PutDatafeed.cs b/src/Nest/XPack/MachineLearning/PutDatafeed/ElasticClient-PutDatafeed.cs index 718bb7dc068..5d7080e7363 100644 --- a/src/Nest/XPack/MachineLearning/PutDatafeed/ElasticClient-PutDatafeed.cs +++ b/src/Nest/XPack/MachineLearning/PutDatafeed/ElasticClient-PutDatafeed.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Creates a Machine Learning datafeed. + /// Creates a machine learning datafeed. /// You must create a job before you create a datafeed. You can associate only one datafeed to each job. /// IPutDatafeedResponse PutDatafeed(Id datafeedId, Func, IPutDatafeedRequest> selector = null) where T : class; diff --git a/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedRequest.cs b/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedRequest.cs index 8fd17ae0c49..f044bd86886 100644 --- a/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedRequest.cs +++ b/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedRequest.cs @@ -4,12 +4,12 @@ namespace Nest { /// - /// Creates a datafeed for a Machine Learning job + /// Creates a datafeed for a machine learning job. /// public partial interface IPutDatafeedRequest { /// - /// If set, the datafeed performs aggregation searches + /// If set, the datafeed performs aggregation searches. /// [JsonProperty("aggregations")] AggregationDictionary Aggregations { get; set; } @@ -28,7 +28,9 @@ public partial interface IPutDatafeedRequest [JsonProperty("frequency")] Time Frequency { get; set; } - ///A list of index names to search within. Wildcards are supported + /// + /// A list of index names to search within, wildcards are supported. + /// [JsonProperty("indices")] [JsonConverter(typeof(IndicesJsonConverter))] Indices Indices { get; set; } @@ -40,33 +42,35 @@ public partial interface IPutDatafeedRequest Id JobId { get; set; } /// - /// Describe the query to perform using a query descriptor lambda + /// Describe the query to perform using a query descriptor lambda. /// [JsonProperty("query")] QueryContainer Query { get; set; } /// /// The number of seconds behind real time that data is queried. - /// For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., + /// For example, if data from 10:04 a.m. might not be searchable until 10:06 a.m., /// set this property to 120 seconds. The default value is 60s. /// [JsonProperty("query_delay")] Time QueryDelay { get; set; } /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. T - /// he detector configuration in a job can contain functions that use these script fields. + /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. + /// The detector configuration in a job can contain functions that use these script fields. /// [JsonProperty("script_fields")] IScriptFields ScriptFields { get; set; } /// - /// The size parameter that is used in Elasticsearch searches + /// The size parameter that is used in Elasticsearch searches. /// [JsonProperty("scroll_size")] int? ScrollSize { get; set; } - ///A list of types to search for within the specified indices + /// + /// A list of types to search for within the specified indices. + /// [JsonProperty("types")] [JsonConverter(typeof(TypesJsonConverter))] Types Types { get; set; } diff --git a/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedResponse.cs b/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedResponse.cs index d285a398030..f4405ea15bb 100644 --- a/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedResponse.cs +++ b/src/Nest/XPack/MachineLearning/PutDatafeed/PutDatafeedResponse.cs @@ -3,18 +3,18 @@ namespace Nest { /// - /// The response from creating a datafeed + /// The response from creating a datafeed. /// public partial interface IPutDatafeedResponse : IResponse { /// - /// The datafeed id + /// The datafeed id. /// [JsonProperty("datafeed_id")] string DatafeedId { get; } /// - /// The aggregation searches to perform for the datafeed + /// The aggregation searches to perform for the datafeed. /// [JsonProperty("aggregations")] AggregationDictionary Aggregations { get; } @@ -33,7 +33,9 @@ public partial interface IPutDatafeedResponse : IResponse [JsonProperty("frequency")] Time Frequency { get; } - ///A list of index names to search within. Wildcards are supported + /// + /// A list of index names to search within, wildcards are supported. + /// [JsonProperty("indices")] [JsonConverter(typeof(IndicesJsonConverter))] Indices Indices { get; } @@ -52,7 +54,7 @@ public partial interface IPutDatafeedResponse : IResponse /// /// The number of seconds behind real time that data is queried. - /// For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., + /// For example, if data from 10:04 a.m. might not be searchable until 10:06 a.m., /// set this property to 120 seconds. The default value is 60s. /// [JsonProperty("query_delay")] @@ -66,7 +68,7 @@ public partial interface IPutDatafeedResponse : IResponse IScriptFields ScriptFields { get; } /// - /// The size parameter that is used in Elasticsearch searches + /// The size parameter that used in searches /// [JsonProperty("scroll_size")] int? ScrollSize { get; } diff --git a/src/Nest/XPack/MachineLearning/PutJob/ElasticClient-PutJob.cs b/src/Nest/XPack/MachineLearning/PutJob/ElasticClient-PutJob.cs index a90dd590431..47cec567632 100644 --- a/src/Nest/XPack/MachineLearning/PutJob/ElasticClient-PutJob.cs +++ b/src/Nest/XPack/MachineLearning/PutJob/ElasticClient-PutJob.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Creates a Machine Learning job. + /// Creates a machine learning job. /// IPutJobResponse PutJob(Id jobId, Func, IPutJobRequest> selector) where T : class; diff --git a/src/Nest/XPack/MachineLearning/PutJob/PutJobRequest.cs b/src/Nest/XPack/MachineLearning/PutJob/PutJobRequest.cs index 5109fa12846..f8ea393ae12 100644 --- a/src/Nest/XPack/MachineLearning/PutJob/PutJobRequest.cs +++ b/src/Nest/XPack/MachineLearning/PutJob/PutJobRequest.cs @@ -8,7 +8,7 @@ namespace Nest { /// - /// Creates a Machine Learning Job + /// Creates a machine learning job /// public partial interface IPutJobRequest { @@ -37,8 +37,8 @@ public partial interface IPutJobRequest string Description { get; set; } /// - /// This advanced configuration option stores model information along with the results. T - /// his adds overhead to the performance of the system and is not feasible for jobs with many entities + /// This advanced configuration option stores model information along with the results. + /// This adds overhead to the performance of the system and is not feasible for jobs with many entities /// [JsonProperty("model_plot")] IModelPlotConfig ModelPlotConfig { get; set; } diff --git a/src/Nest/XPack/MachineLearning/PutJob/PutJobResponse.cs b/src/Nest/XPack/MachineLearning/PutJob/PutJobResponse.cs index 95a50e21be6..a6766a721f5 100644 --- a/src/Nest/XPack/MachineLearning/PutJob/PutJobResponse.cs +++ b/src/Nest/XPack/MachineLearning/PutJob/PutJobResponse.cs @@ -6,22 +6,22 @@ namespace Nest public interface IPutJobResponse : IResponse { /// - /// The unique identifier for the job + /// The unique identifier for the job. /// [JsonProperty("job_id")] string JobId { get; } /// - /// The job type + /// The job type. /// /// - /// Reserved for future use + /// Reserved for future use. /// [JsonProperty("job_type")] string JobType { get; } /// - /// An optional description of the job + /// An optional description of the job. /// [JsonProperty("description")] string Description { get; } @@ -58,7 +58,7 @@ public interface IPutJobResponse : IResponse Time BackgroundPersistInterval { get; } /// - /// Describes the format of the input data. This object is required, but it can be empty + /// Describes the format of the input data. This object is required, but it can be empty. /// [JsonProperty("data_description")] IDataDescription DataDescription { get; } diff --git a/src/Nest/XPack/MachineLearning/RevertModelSnapshot/ElasticClient-RevertModelSnapshot.cs b/src/Nest/XPack/MachineLearning/RevertModelSnapshot/ElasticClient-RevertModelSnapshot.cs index 36d3b2d8d2c..a36dc1d53e4 100644 --- a/src/Nest/XPack/MachineLearning/RevertModelSnapshot/ElasticClient-RevertModelSnapshot.cs +++ b/src/Nest/XPack/MachineLearning/RevertModelSnapshot/ElasticClient-RevertModelSnapshot.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Reverts a specific snapshot for a Machine Learning job + /// Reverts a specific snapshot for a machine learning job /// IRevertModelSnapshotResponse RevertModelSnapshot(Id jobId, Id snapshotId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/RevertModelSnapshot/RevertModelSnapshotRequest.cs b/src/Nest/XPack/MachineLearning/RevertModelSnapshot/RevertModelSnapshotRequest.cs index 43e0fa8f95c..bdd7f296ba6 100644 --- a/src/Nest/XPack/MachineLearning/RevertModelSnapshot/RevertModelSnapshotRequest.cs +++ b/src/Nest/XPack/MachineLearning/RevertModelSnapshot/RevertModelSnapshotRequest.cs @@ -3,14 +3,14 @@ namespace Nest { /// - /// A request to revert a specific snapshot for a Machine Learning job + /// Revert a specific snapshot for a machine learning job /// public partial interface IRevertModelSnapshotRequest { /// /// If true, deletes the results in the time period between the latest results and the time of - /// the reverted snapshot. - /// It also resets the model to accept records for this time period. The default value is false. + /// the reverted snapshot. It also resets the model to accept records for this time period. + /// The default value is false. /// [JsonProperty("delete_intervening_results")] bool? DeleteInterveningResults { get; set; } diff --git a/src/Nest/XPack/MachineLearning/StartDatafeed/ElasticClient-StartDatafeed.cs b/src/Nest/XPack/MachineLearning/StartDatafeed/ElasticClient-StartDatafeed.cs index f03ce9e8ebe..86eec344b0d 100644 --- a/src/Nest/XPack/MachineLearning/StartDatafeed/ElasticClient-StartDatafeed.cs +++ b/src/Nest/XPack/MachineLearning/StartDatafeed/ElasticClient-StartDatafeed.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Start a Machine Learning datafeed. + /// Start a machine learning datafeed. /// A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped multiple times throughout its lifecycle. /// IStartDatafeedResponse StartDatafeed(Id datafeedId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/StopDatafeed/ElasticClient-StopDatafeed.cs b/src/Nest/XPack/MachineLearning/StopDatafeed/ElasticClient-StopDatafeed.cs index b94a58af433..f6ffaf12f51 100644 --- a/src/Nest/XPack/MachineLearning/StopDatafeed/ElasticClient-StopDatafeed.cs +++ b/src/Nest/XPack/MachineLearning/StopDatafeed/ElasticClient-StopDatafeed.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Stop a Machine Learning data feed. + /// Stop a machine learning data feed. /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped multiple times throughout its lifecycle. /// IStopDatafeedResponse StopDatafeed(Id datafeedId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/StopDatafeed/StopDatafeedRequest.cs b/src/Nest/XPack/MachineLearning/StopDatafeed/StopDatafeedRequest.cs index 502af6a2f1f..681e64feea5 100644 --- a/src/Nest/XPack/MachineLearning/StopDatafeed/StopDatafeedRequest.cs +++ b/src/Nest/XPack/MachineLearning/StopDatafeed/StopDatafeedRequest.cs @@ -1,4 +1,3 @@ -using System; using Newtonsoft.Json; namespace Nest @@ -6,7 +5,7 @@ namespace Nest public partial interface IStopDatafeedRequest { /// - /// Controls the amount of time to wait until a datafeed stops. + /// Controls the amount of time to wait until a datafeed stops. /// [JsonProperty("timeout")] Time Timeout { get; set; } diff --git a/src/Nest/XPack/MachineLearning/UpdateDataFeed/ElasticClient-UpdateDatafeed.cs b/src/Nest/XPack/MachineLearning/UpdateDataFeed/ElasticClient-UpdateDatafeed.cs index e296d1e260a..59ff6554568 100644 --- a/src/Nest/XPack/MachineLearning/UpdateDataFeed/ElasticClient-UpdateDatafeed.cs +++ b/src/Nest/XPack/MachineLearning/UpdateDataFeed/ElasticClient-UpdateDatafeed.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Update a Machine Learning datafeed. + /// Update a machine learning datafeed. /// IUpdateDatafeedResponse UpdateDatafeed(Id datafeedId, Func, IUpdateDatafeedRequest> selector = null) where T : class; diff --git a/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedRequest.cs b/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedRequest.cs index 2f3edc68c9b..02a045792fb 100644 --- a/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedRequest.cs +++ b/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedRequest.cs @@ -4,12 +4,12 @@ namespace Nest { /// - /// Updates a datafeed for a Machine Learning job + /// Updates a datafeed for a machine learning job. /// public partial interface IUpdateDatafeedRequest { /// - /// If set, the datafeed performs aggregation searches + /// If set, the datafeed performs aggregation searches. /// [JsonProperty("aggregations")] AggregationDictionary Aggregations { get; set; } @@ -28,7 +28,7 @@ public partial interface IUpdateDatafeedRequest [JsonProperty("frequency")] Time Frequency { get; set; } - ///A list of index names to search within. Wildcards are supported + ///A list of index names to search within, wildcards are supported. [JsonProperty("indices")] [JsonConverter(typeof(IndicesJsonConverter))] Indices Indices { get; set; } @@ -40,33 +40,35 @@ public partial interface IUpdateDatafeedRequest Id JobId { get; set; } /// - /// Describe the query to perform using a query descriptor lambda + /// Describe the query to perform using a query descriptor lambda. /// [JsonProperty("query")] QueryContainer Query { get; set; } /// /// The number of seconds behind real time that data is queried. - /// For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., + /// For example, if data from 10:04 a.m. might not be searchable until 10:06 a.m., /// set this property to 120 seconds. The default value is 60s. /// [JsonProperty("query_delay")] Time QueryDelay { get; set; } /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. T + /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. /// The detector configuration in a job can contain functions that use these script fields. /// [JsonProperty("script_fields")] IScriptFields ScriptFields { get; set; } /// - /// The size parameter that is used in Elasticsearch searches + /// The size parameter used in searches. /// [JsonProperty("scroll_size")] int? ScrollSize { get; set; } - ///A list of types to search for within the specified indices + /// + /// A list of types to search for within the specified indices. + /// [JsonProperty("types")] [JsonConverter(typeof(TypesJsonConverter))] Types Types { get; set; } diff --git a/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedResponse.cs b/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedResponse.cs index bfe679d1483..566f04622ad 100644 --- a/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedResponse.cs +++ b/src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedResponse.cs @@ -8,13 +8,13 @@ namespace Nest public partial interface IUpdateDatafeedResponse : IResponse { /// - /// The datafeed id + /// The datafeed id. /// [JsonProperty("datafeed_id")] string DatafeedId { get; } /// - /// The aggregation searches to perform for the datafeed + /// The aggregation searches to perform for the datafeed. /// [JsonProperty("aggregations")] AggregationDictionary Aggregations { get; } @@ -33,7 +33,7 @@ public partial interface IUpdateDatafeedResponse : IResponse [JsonProperty("frequency")] Time Frequency { get; } - ///A list of index names to search within. Wildcards are supported + ///A list of index names to search within, wildcards are supported. [JsonProperty("indices")] [JsonConverter(typeof(IndicesJsonConverter))] Indices Indices { get; } @@ -52,15 +52,15 @@ public partial interface IUpdateDatafeedResponse : IResponse /// /// The number of seconds behind real time that data is queried. - /// For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., + /// For example, if data from 10:04 a.m. might not be searchable until 10:06 a.m., /// set this property to 120 seconds. The default value is 60s. /// [JsonProperty("query_delay")] Time QueryDelay { get; } /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. T - /// the detector configuration in a job can contain functions that use these script fields. + /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. + /// The detector configuration in a job can contain functions that use these script fields. /// [JsonProperty("script_fields")] IScriptFields ScriptFields { get; } diff --git a/src/Nest/XPack/MachineLearning/UpdateJob/ElasticClient-UpdateJob.cs b/src/Nest/XPack/MachineLearning/UpdateJob/ElasticClient-UpdateJob.cs index 3a264fc49ea..35a65af6e83 100644 --- a/src/Nest/XPack/MachineLearning/UpdateJob/ElasticClient-UpdateJob.cs +++ b/src/Nest/XPack/MachineLearning/UpdateJob/ElasticClient-UpdateJob.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Updates a Machine Learning job. + /// Updates a machine learning job. /// IUpdateJobResponse UpdateJob(Id jobId, Func, IUpdateJobRequest> selector = null) where T : class; diff --git a/src/Nest/XPack/MachineLearning/UpdateJob/UpdateJobRequest.cs b/src/Nest/XPack/MachineLearning/UpdateJob/UpdateJobRequest.cs index f0be271a5a1..def69a5f7b5 100644 --- a/src/Nest/XPack/MachineLearning/UpdateJob/UpdateJobRequest.cs +++ b/src/Nest/XPack/MachineLearning/UpdateJob/UpdateJobRequest.cs @@ -5,7 +5,7 @@ namespace Nest { /// - /// Update a Machine Learning Job + /// Update a machine learning Job /// public partial interface IUpdateJobRequest { diff --git a/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/ElasticClient-UpdateModelSnapshot.cs b/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/ElasticClient-UpdateModelSnapshot.cs index 5ce7a4a83bb..91380635a6e 100644 --- a/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/ElasticClient-UpdateModelSnapshot.cs +++ b/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/ElasticClient-UpdateModelSnapshot.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Updates a Machine Learning model snapshot. + /// Updates a machine learning model snapshot. /// IUpdateModelSnapshotResponse UpdateModelSnapshot(Id jobId, Id snapshotId, Func selector = null); diff --git a/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/UpdateModelSnapshotRequest.cs b/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/UpdateModelSnapshotRequest.cs index 53e476cb3ab..b268da8e7fd 100644 --- a/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/UpdateModelSnapshotRequest.cs +++ b/src/Nest/XPack/MachineLearning/UpdateModelSnapshot/UpdateModelSnapshotRequest.cs @@ -3,7 +3,7 @@ namespace Nest { /// - /// A request to update a Machine Learning model snapshot. + /// Update a machine learning model snapshot. /// public partial interface IUpdateModelSnapshotRequest { diff --git a/src/Nest/XPack/MachineLearning/ValidateDetector/ElasticClient-ValidateDetector.cs b/src/Nest/XPack/MachineLearning/ValidateDetector/ElasticClient-ValidateDetector.cs index c98fa873fe6..0b0c232fa9f 100644 --- a/src/Nest/XPack/MachineLearning/ValidateDetector/ElasticClient-ValidateDetector.cs +++ b/src/Nest/XPack/MachineLearning/ValidateDetector/ElasticClient-ValidateDetector.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Validates a detector for a Machine Learning job + /// Validates a detector for a machine learning job /// IValidateDetectorResponse ValidateDetector(Func, IValidateDetectorRequest> selector) where T : class; diff --git a/src/Nest/XPack/MachineLearning/ValidateJob/ElasticClient-ValidateJob.cs b/src/Nest/XPack/MachineLearning/ValidateJob/ElasticClient-ValidateJob.cs index 7709a18dd6c..94959ec533c 100644 --- a/src/Nest/XPack/MachineLearning/ValidateJob/ElasticClient-ValidateJob.cs +++ b/src/Nest/XPack/MachineLearning/ValidateJob/ElasticClient-ValidateJob.cs @@ -8,7 +8,7 @@ namespace Nest public partial interface IElasticClient { /// - /// Validates a Machine Learning job + /// Validates a machine learning job /// IValidateJobResponse ValidateJob(Func, IValidateJobRequest> selector) where T : class; diff --git a/src/Nest/XPack/MachineLearning/ValidateJob/ValidateJobRequest.cs b/src/Nest/XPack/MachineLearning/ValidateJob/ValidateJobRequest.cs index 71fa95d56f0..308910f2a16 100644 --- a/src/Nest/XPack/MachineLearning/ValidateJob/ValidateJobRequest.cs +++ b/src/Nest/XPack/MachineLearning/ValidateJob/ValidateJobRequest.cs @@ -4,7 +4,7 @@ namespace Nest { /// - /// Validates a Machine Learning Job + /// Validates a machine learning job /// public partial interface IValidateJobRequest { @@ -21,7 +21,7 @@ public partial interface IValidateJobRequest IAnalysisLimits AnalysisLimits { get; set; } /// - /// Describes the format of the input data. This object is required, but it can be empty + /// Describes the format of the input data. This object is required, but it can be empty. /// [JsonProperty("data_description")] IDataDescription DataDescription { get; set; } @@ -33,8 +33,8 @@ public partial interface IValidateJobRequest string Description { get; set; } /// - /// This advanced configuration option stores model information along with the results. T - /// his adds overhead to the performance of the system and is not feasible for jobs with many entities + /// This advanced configuration option stores model information along with the results. + /// This adds overhead to the performance of the system and is not feasible for jobs with many entities /// [JsonProperty("model_plot")] IModelPlotConfig ModelPlotConfig { get; set; } diff --git a/src/Nest/XPack/Watcher/Condition/InlineScriptCondition.cs b/src/Nest/XPack/Watcher/Condition/InlineScriptCondition.cs index c5de146c63c..b93092b843e 100644 --- a/src/Nest/XPack/Watcher/Condition/InlineScriptCondition.cs +++ b/src/Nest/XPack/Watcher/Condition/InlineScriptCondition.cs @@ -1,10 +1,15 @@ -using Newtonsoft.Json; +using System; +using Newtonsoft.Json; namespace Nest { public interface IInlineScriptCondition : IScriptCondition { - [JsonProperty("inline")] + [JsonProperty("source")] + string Source { get; set; } + + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] string Inline { get; set; } } @@ -12,10 +17,11 @@ public class InlineScriptCondition : ScriptConditionBase, IInlineScriptCondition { public InlineScriptCondition(string script) { - this.Inline = script; + this.Source = script; } - public string Inline { get; set; } + public string Source { get; set; } + public string Inline { get => this.Source; set => this.Source = value; } } public class InlineScriptConditionDescriptor : @@ -23,9 +29,10 @@ public class InlineScriptConditionDescriptor : { public InlineScriptConditionDescriptor(string script) { - Self.Inline = script; + Self.Source = script; } - string IInlineScriptCondition.Inline { get; set; } + string IInlineScriptCondition.Inline { get => Self.Source; set => Self.Source = value; } + string IInlineScriptCondition.Source { get; set; } } } diff --git a/src/Nest/XPack/Watcher/Condition/ScriptConditionBase.cs b/src/Nest/XPack/Watcher/Condition/ScriptConditionBase.cs index 5ea18c1c296..ae9169a30fe 100644 --- a/src/Nest/XPack/Watcher/Condition/ScriptConditionBase.cs +++ b/src/Nest/XPack/Watcher/Condition/ScriptConditionBase.cs @@ -72,6 +72,11 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist var inline = dict["inline"].ToString(); scriptCondition = new InlineScriptCondition(inline); } + if (dict.ContainsKey("source")) + { + var inline = dict["source"].ToString(); + scriptCondition = new InlineScriptCondition(inline); + } if (dict.ContainsKey("file")) { var file = dict["file"].ToString(); diff --git a/src/Nest/XPack/Watcher/Transform/InlineScriptTransform.cs b/src/Nest/XPack/Watcher/Transform/InlineScriptTransform.cs index 125e312f364..7139f4392ac 100644 --- a/src/Nest/XPack/Watcher/Transform/InlineScriptTransform.cs +++ b/src/Nest/XPack/Watcher/Transform/InlineScriptTransform.cs @@ -1,11 +1,16 @@ -using Newtonsoft.Json; +using System; +using Newtonsoft.Json; namespace Nest { [JsonObject(MemberSerialization.OptIn)] public interface IInlineScriptTransform : IScriptTransform { - [JsonProperty("inline")] + [JsonProperty("source")] + string Source { get; set; } + + [Obsolete("Inline is being deprecated for Source and will be removed in Elasticsearch 7.0")] + [JsonIgnore] string Inline { get; set; } } @@ -13,10 +18,10 @@ public class InlineScriptTransform : ScriptTransformBase, IInlineScriptTransform { public InlineScriptTransform(string script) { - this.Inline = script; + this.Source = script; } - - public string Inline { get; set; } + public string Source { get; set; } + public string Inline { get => this.Source; set => this.Source = value; } } public class InlineScriptTransformDescriptor @@ -24,11 +29,13 @@ public class InlineScriptTransformDescriptor { public InlineScriptTransformDescriptor(string inline) { - Self.Inline = inline; + Self.Source = inline; } + //TODO is this constructor needed? public InlineScriptTransformDescriptor() {} - string IInlineScriptTransform.Inline { get; set; } + string IInlineScriptTransform.Inline { get => Self.Source; set => Self.Source = value; } + string IInlineScriptTransform.Source { get; set; } } } diff --git a/src/Nest/XPack/Watcher/Transform/ScriptTransformBase.cs b/src/Nest/XPack/Watcher/Transform/ScriptTransformBase.cs index e12bbf026d1..eb922a047bc 100644 --- a/src/Nest/XPack/Watcher/Transform/ScriptTransformBase.cs +++ b/src/Nest/XPack/Watcher/Transform/ScriptTransformBase.cs @@ -72,6 +72,11 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist var inline = dict["inline"].ToString(); scriptTransform = new InlineScriptTransform(inline); } + if (dict.ContainsKey("source")) + { + var inline = dict["source"].ToString(); + scriptTransform = new InlineScriptTransform(inline); + } if (dict.ContainsKey("file")) { var file = dict["file"].ToString(); diff --git a/src/Nest/_Generated/_Descriptors.generated.cs b/src/Nest/_Generated/_Descriptors.generated.cs index d1c378d0646..8daeef9b02f 100644 --- a/src/Nest/_Generated/_Descriptors.generated.cs +++ b/src/Nest/_Generated/_Descriptors.generated.cs @@ -83,7 +83,7 @@ public BulkDescriptor SourceInclude(params Expression>[] fiel public BulkDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public BulkDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public BulkDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public BulkDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -133,7 +133,7 @@ public CatAliasesDescriptor() : base(){} public CatAliasesDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatAliasesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatAliasesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatAliasesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -186,7 +186,7 @@ public CatAllocationDescriptor() : base(){} public CatAllocationDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatAllocationDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatAllocationDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatAllocationDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -242,7 +242,7 @@ public CatCountDescriptor() : base(){} public CatCountDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatCountDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatCountDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatCountDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -298,7 +298,7 @@ public CatFielddataDescriptor() : base(){} public CatFielddataDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatFielddataDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatFielddataDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatFielddataDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -343,7 +343,7 @@ public partial class CatHealthDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatHealthDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatHealthDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatHealthDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -370,7 +370,7 @@ public partial class CatHelpDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatHelpDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatHelpDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatHelpDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -435,7 +435,7 @@ public CatIndicesDescriptor() : base(){} public CatIndicesDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatIndicesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatIndicesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatIndicesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -477,7 +477,7 @@ public partial class CatMasterDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatMasterDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatMasterDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatMasterDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -519,7 +519,7 @@ public partial class CatNodeAttributesDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatNodeAttributesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatNodeAttributesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatNodeAttributesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -564,7 +564,7 @@ public partial class CatNodesDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatNodesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatNodesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatNodesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -606,7 +606,7 @@ public partial class CatPendingTasksDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatPendingTasksDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatPendingTasksDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatPendingTasksDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -648,7 +648,7 @@ public partial class CatPluginsDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatPluginsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatPluginsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatPluginsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -704,7 +704,7 @@ public CatRecoveryDescriptor() : base(){} public CatRecoveryDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatRecoveryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatRecoveryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatRecoveryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -746,7 +746,7 @@ public partial class CatRepositoriesDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatRepositoriesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatRepositoriesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatRepositoriesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -774,6 +774,9 @@ public CatSegmentsDescriptor() : base(){} ///a short version of the Accept header, e.g. json, yaml public CatSegmentsDescriptor Format(string format) => AssignParam(p=>p.Format(format)); + ///The unit in which to display byte values + public CatSegmentsDescriptor Bytes(Bytes bytes) => AssignParam(p=>p.Bytes(bytes)); + ///Comma-separated list of column names to display public CatSegmentsDescriptor H(params string[] h) => AssignParam(p=>p.H(h)); @@ -796,7 +799,7 @@ public CatSegmentsDescriptor() : base(){} public CatSegmentsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatSegmentsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatSegmentsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatSegmentsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -824,6 +827,9 @@ public CatShardsDescriptor() : base(){} ///a short version of the Accept header, e.g. json, yaml public CatShardsDescriptor Format(string format) => AssignParam(p=>p.Format(format)); + ///The unit in which to display byte values + public CatShardsDescriptor Bytes(Bytes bytes) => AssignParam(p=>p.Bytes(bytes)); + ///Return local information, do not retrieve the state from master node (default: false) public CatShardsDescriptor Local(bool local = true) => AssignParam(p=>p.Local(local)); @@ -852,7 +858,7 @@ public CatShardsDescriptor() : base(){} public CatShardsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatShardsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatShardsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatShardsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -867,12 +873,10 @@ public partial class CatSnapshotsDescriptor : RequestDescriptorBase/_cat/snapshots/{repository} -/// this parameter is required - public CatSnapshotsDescriptor(Names repository) : base(r=>r.Required("repository", repository)){} - + ///Name of repository from which to fetch the snapshot information + public CatSnapshotsDescriptor RepositoryName(Names repository) => Assign(a=>a.RouteValues.Optional("repository", repository)); - + ///a short version of the Accept header, e.g. json, yaml public CatSnapshotsDescriptor Format(string format) => AssignParam(p=>p.Format(format)); @@ -904,7 +908,7 @@ public CatSnapshotsDescriptor(Names repository) : base(r=>r.Required("repository public CatSnapshotsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatSnapshotsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatSnapshotsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatSnapshotsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -955,7 +959,7 @@ public partial class CatTasksDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatTasksDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatTasksDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatTasksDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1005,7 +1009,7 @@ public CatTemplatesDescriptor() : base(){} public CatTemplatesDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatTemplatesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatTemplatesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatTemplatesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1058,7 +1062,7 @@ public CatThreadPoolDescriptor() : base(){} public CatThreadPoolDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CatThreadPoolDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CatThreadPoolDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CatThreadPoolDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1083,7 +1087,7 @@ public ClearScrollDescriptor() : base(){} public ClearScrollDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClearScrollDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClearScrollDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClearScrollDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1110,7 +1114,7 @@ public partial class ClusterAllocationExplainDescriptor : RequestDescriptorBase public ClusterAllocationExplainDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterAllocationExplainDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterAllocationExplainDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterAllocationExplainDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1143,7 +1147,7 @@ public partial class ClusterGetSettingsDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterGetSettingsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterGetSettingsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterGetSettingsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1205,7 +1209,7 @@ public ClusterHealthDescriptor() : base(){} public ClusterHealthDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterHealthDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterHealthDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterHealthDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1232,7 +1236,7 @@ public partial class ClusterPendingTasksDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterPendingTasksDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterPendingTasksDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterPendingTasksDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1262,13 +1266,34 @@ public partial class ClusterPutSettingsDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterPutSettingsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterPutSettingsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterPutSettingsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } + ///descriptor for ClusterRemoteInfo
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html
+ public partial class RemoteInfoDescriptor : RequestDescriptorBase, IRemoteInfoRequest + { + + ///Pretty format the returned JSON response. + public RemoteInfoDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); + + ///Return human readable values for statistics. + public RemoteInfoDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); + + ///Include the stack trace of returned errors. + public RemoteInfoDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); + + ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. + public RemoteInfoDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); + + ///A comma-separated list of filters used to reduce the respone. + public RemoteInfoDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); + + } + ///descriptor for ClusterReroute
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html
public partial class ClusterRerouteDescriptor : RequestDescriptorBase, IClusterRerouteRequest { @@ -1301,7 +1326,7 @@ public partial class ClusterRerouteDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterRerouteDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterRerouteDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterRerouteDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1358,7 +1383,7 @@ public ClusterStateDescriptor() : base(){} public ClusterStateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterStateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterStateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterStateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1393,7 +1418,7 @@ public ClusterStatsDescriptor() : base(){} public ClusterStatsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClusterStatsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClusterStatsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClusterStatsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1443,8 +1468,8 @@ public CountDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Requ ///Specify the node or shard the operation should be performed on (default: random) public CountDescriptor Preference(string preference) => AssignParam(p=>p.Preference(preference)); - ///Specific routing value - public CountDescriptor Routing(string routing) => AssignParam(p=>p.Routing(routing)); + ///A comma-separated list of specific routing values + public CountDescriptor Routing(params string[] routing) => AssignParam(p=>p.Routing(routing)); ///Query in the Lucene query string syntax public CountDescriptor QueryOnQueryString(string query_on_query_string) => AssignParam(p=>p.QueryOnQueryString(query_on_query_string)); @@ -1464,6 +1489,9 @@ public CountDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Requ ///Specify whether format-based query failures (such as providing text to a numeric field) should be ignored public CountDescriptor Lenient(bool lenient = true) => AssignParam(p=>p.Lenient(lenient)); + ///The maximum count for each shard, upon reaching which the query execution will terminate early + public CountDescriptor TerminateAfter(long terminate_after) => AssignParam(p=>p.TerminateAfter(terminate_after)); + ///Pretty format the returned JSON response. public CountDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -1474,7 +1502,7 @@ public CountDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Requ public CountDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CountDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CountDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CountDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1487,15 +1515,15 @@ public partial class CreateDescriptor : RequestDescriptorBase.Id => Self.RouteValues.Get("id"); IndexName ICreateRequest.Index => Self.RouteValues.Get("index"); TypeName ICreateRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id}/_create -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id}/_create +/// this parameter is required +/// this parameter is required /// this parameter is required public CreateDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id}/_create - + /// /{index}/{type}/{id}/_create + /// describes an elasticsearch document of type from which the index, type and id can be inferred public CreateDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(TDocument document); @@ -1553,7 +1581,7 @@ public CreateDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Requi public CreateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CreateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CreateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CreateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1566,15 +1594,15 @@ public partial class DeleteDescriptor : RequestDescriptorBase Self.RouteValues.Get("id"); IndexName IDeleteRequest.Index => Self.RouteValues.Get("index"); TypeName IDeleteRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id} -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id} +/// this parameter is required +/// this parameter is required /// this parameter is required public DeleteDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id} - + /// /{index}/{type}/{id} + /// describes an elasticsearch document of type from which the index, type and id can be inferred public DeleteDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(T document); @@ -1623,7 +1651,7 @@ public DeleteDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Requi public DeleteDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1635,7 +1663,7 @@ public partial class DeleteByQueryDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); Types IDeleteByQueryRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/_delete_by_query + /// /{index}/_delete_by_query /// this parameter is required public DeleteByQueryDescriptor(Indices index) : base(r=>r.Required("index", index).Required("type", (Types)typeof(T))){} @@ -1773,7 +1801,7 @@ public DeleteByQueryDescriptor SourceInclude(params Expression ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteByQueryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteByQueryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteByQueryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -1784,19 +1812,18 @@ public DeleteByQueryDescriptor SourceInclude(params Expression, IDeleteScriptRequest { Id IDeleteScriptRequest.Id => Self.RouteValues.Get("id"); - Name IDeleteScriptRequest.Lang => Self.RouteValues.Get("lang"); - /// /_scripts/{lang} -/// this parameter is required - public DeleteScriptDescriptor(Name lang) : base(r=>r.Required("lang", lang)){} - - - /// /_scripts/{lang}/{id} -/// this parameter is required + /// /_scripts/{id} /// this parameter is required - public DeleteScriptDescriptor(Name lang, Id id) : base(r=>r.Required("lang", lang).Required("id", id)){} + public DeleteScriptDescriptor(Id id) : base(r=>r.Required("id", id)){} + ///Explicit operation timeout + public DeleteScriptDescriptor Timeout(Time timeout) => AssignParam(p=>p.Timeout(timeout.ToTimeSpan())); + + ///Specify timeout for connection to master + public DeleteScriptDescriptor MasterTimeout(Time master_timeout) => AssignParam(p=>p.MasterTimeout(master_timeout.ToTimeSpan())); + ///Pretty format the returned JSON response. public DeleteScriptDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -1807,55 +1834,28 @@ public DeleteScriptDescriptor(Name lang, Id id) : base(r=>r.Required("lang", lan public DeleteScriptDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteScriptDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteScriptDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteScriptDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for DeleteTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html
- public partial class DeleteSearchTemplateDescriptor : RequestDescriptorBase, IDeleteSearchTemplateRequest - { - Id IDeleteSearchTemplateRequest.Id => Self.RouteValues.Get("id"); - /// /_search/template/{id} -/// this parameter is required - public DeleteSearchTemplateDescriptor(Id id) : base(r=>r.Required("id", id)){} - - - - ///Pretty format the returned JSON response. - public DeleteSearchTemplateDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); - - ///Return human readable values for statistics. - public DeleteSearchTemplateDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); - - ///Include the stack trace of returned errors. - public DeleteSearchTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteSearchTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); - - ///A comma-separated list of filters used to reduce the respone. - public DeleteSearchTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); - - } - ///descriptor for Exists
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class DocumentExistsDescriptor : RequestDescriptorBase,DocumentExistsRequestParameters, IDocumentExistsRequest>, IDocumentExistsRequest { Id IDocumentExistsRequest.Id => Self.RouteValues.Get("id"); IndexName IDocumentExistsRequest.Index => Self.RouteValues.Get("index"); TypeName IDocumentExistsRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id} -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id} +/// this parameter is required +/// this parameter is required /// this parameter is required public DocumentExistsDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id} - + /// /{index}/{type}/{id} + /// describes an elasticsearch document of type from which the index, type and id can be inferred public DocumentExistsDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(T document); @@ -1928,28 +1928,28 @@ public DocumentExistsDescriptor SourceInclude(params Expression ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DocumentExistsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DocumentExistsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DocumentExistsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for ExistsSource
http://www.elastic.co/guide/en/elasticsearch/reference/5.5/docs-get.html
+ ///descriptor for ExistsSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class SourceExistsDescriptor : RequestDescriptorBase,SourceExistsRequestParameters, ISourceExistsRequest>, ISourceExistsRequest { Id ISourceExistsRequest.Id => Self.RouteValues.Get("id"); IndexName ISourceExistsRequest.Index => Self.RouteValues.Get("index"); TypeName ISourceExistsRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id}/_source -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id}/_source +/// this parameter is required +/// this parameter is required /// this parameter is required public SourceExistsDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id}/_source - + /// /{index}/{type}/{id}/_source + /// describes an elasticsearch document of type from which the index, type and id can be inferred public SourceExistsDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(T document); @@ -2015,7 +2015,7 @@ public SourceExistsDescriptor SourceInclude(params Expression public SourceExistsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SourceExistsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SourceExistsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SourceExistsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2028,15 +2028,15 @@ public partial class ExplainDescriptor : RequestDescriptorBase.Id => Self.RouteValues.Get("id"); IndexName IExplainRequest.Index => Self.RouteValues.Get("index"); TypeName IExplainRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id}/_explain -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id}/_explain +/// this parameter is required +/// this parameter is required /// this parameter is required public ExplainDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id}/_explain - + /// /{index}/{type}/{id}/_explain + /// describes an elasticsearch document of type from which the index, type and id can be inferred public ExplainDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(TDocument document); @@ -2115,14 +2115,14 @@ public ExplainDescriptor SourceInclude(params Expression ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ExplainDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ExplainDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ExplainDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for FieldCaps
http://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-field-caps.html
+ ///descriptor for FieldCaps
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html
public partial class FieldCapabilitiesDescriptor : RequestDescriptorBase, IFieldCapabilitiesRequest { Indices IFieldCapabilitiesRequest.Index => Self.RouteValues.Get("index"); @@ -2166,75 +2166,28 @@ public FieldCapabilitiesDescriptor Fields(params Expression>[ public FieldCapabilitiesDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public FieldCapabilitiesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public FieldCapabilitiesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public FieldCapabilitiesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for FieldStats
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-stats.html
- public partial class FieldStatsDescriptor : RequestDescriptorBase, IFieldStatsRequest - { - Indices IFieldStatsRequest.Index => Self.RouteValues.Get("index"); - /// /_field_stats - public FieldStatsDescriptor() : base(){} - - - ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices - public FieldStatsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); - - ///a shortcut into calling Index(typeof(TOther)) - public FieldStatsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); - - ///A shortcut into calling Index(Indices.All) - public FieldStatsDescriptor AllIndices() => this.Index(Indices.All); - - - ///Defines if field stats should be returned on a per index level or on a cluster wide level - public FieldStatsDescriptor Level(Level level) => AssignParam(p=>p.Level(level)); - - ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public FieldStatsDescriptor IgnoreUnavailable(bool ignore_unavailable = true) => AssignParam(p=>p.IgnoreUnavailable(ignore_unavailable)); - - ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public FieldStatsDescriptor AllowNoIndices(bool allow_no_indices = true) => AssignParam(p=>p.AllowNoIndices(allow_no_indices)); - - ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public FieldStatsDescriptor ExpandWildcards(ExpandWildcards expand_wildcards) => AssignParam(p=>p.ExpandWildcards(expand_wildcards)); - - ///Pretty format the returned JSON response. - public FieldStatsDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); - - ///Return human readable values for statistics. - public FieldStatsDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); - - ///Include the stack trace of returned errors. - public FieldStatsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public FieldStatsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); - - ///A comma-separated list of filters used to reduce the respone. - public FieldStatsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); - - } - ///descriptor for Get
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class GetDescriptor : RequestDescriptorBase,GetRequestParameters, IGetRequest>, IGetRequest { Id IGetRequest.Id => Self.RouteValues.Get("id"); IndexName IGetRequest.Index => Self.RouteValues.Get("index"); TypeName IGetRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id} -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id} +/// this parameter is required +/// this parameter is required /// this parameter is required public GetDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id} - + /// /{index}/{type}/{id} + /// describes an elasticsearch document of type from which the index, type and id can be inferred public GetDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(T document); @@ -2307,7 +2260,7 @@ public GetDescriptor SourceInclude(params Expression>[] field public GetDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2318,16 +2271,9 @@ public GetDescriptor SourceInclude(params Expression>[] field public partial class GetScriptDescriptor : RequestDescriptorBase, IGetScriptRequest { Id IGetScriptRequest.Id => Self.RouteValues.Get("id"); - Name IGetScriptRequest.Lang => Self.RouteValues.Get("lang"); - /// /_scripts/{lang} -/// this parameter is required - public GetScriptDescriptor(Name lang) : base(r=>r.Required("lang", lang)){} - - - /// /_scripts/{lang}/{id} -/// this parameter is required + /// /_scripts/{id} /// this parameter is required - public GetScriptDescriptor(Name lang, Id id) : base(r=>r.Required("lang", lang).Required("id", id)){} + public GetScriptDescriptor(Id id) : base(r=>r.Required("id", id)){} @@ -2341,7 +2287,7 @@ public GetScriptDescriptor(Name lang, Id id) : base(r=>r.Required("lang", lang). public GetScriptDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetScriptDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetScriptDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetScriptDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2354,15 +2300,15 @@ public partial class SourceDescriptor : RequestDescriptorBase Self.RouteValues.Get("id"); IndexName ISourceRequest.Index => Self.RouteValues.Get("index"); TypeName ISourceRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id}/_source -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id}/_source +/// this parameter is required +/// this parameter is required /// this parameter is required public SourceDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id}/_source - + /// /{index}/{type}/{id}/_source + /// describes an elasticsearch document of type from which the index, type and id can be inferred public SourceDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(T document); @@ -2428,54 +2374,27 @@ public SourceDescriptor SourceInclude(params Expression>[] fi public SourceDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SourceDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SourceDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SourceDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for GetTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html
- public partial class GetSearchTemplateDescriptor : RequestDescriptorBase, IGetSearchTemplateRequest - { - Id IGetSearchTemplateRequest.Id => Self.RouteValues.Get("id"); - /// /_search/template/{id} -/// this parameter is required - public GetSearchTemplateDescriptor(Id id) : base(r=>r.Required("id", id)){} - - - - ///Pretty format the returned JSON response. - public GetSearchTemplateDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); - - ///Return human readable values for statistics. - public GetSearchTemplateDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); - - ///Include the stack trace of returned errors. - public GetSearchTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetSearchTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); - - ///A comma-separated list of filters used to reduce the respone. - public GetSearchTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); - - } - ///descriptor for Index
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html
public partial class IndexDescriptor : RequestDescriptorBase,IndexRequestParameters, IIndexRequest>, IIndexRequest { Id IIndexRequest.Id => Self.RouteValues.Get("id"); IndexName IIndexRequest.Index => Self.RouteValues.Get("index"); TypeName IIndexRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type} -/// this parameter is required + /// /{index}/{type} +/// this parameter is required /// this parameter is required public IndexDescriptor(IndexName index, TypeName type) : base(r=>r.Required("index", index).Required("type", type)){} - /// /{index}/{type} - + /// /{index}/{type} + /// describes an elasticsearch document of type from which the index, type and id can be inferred public IndexDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(TDocument document); @@ -2539,7 +2458,7 @@ public IndexDescriptor(IndexName index, TypeName type) : base(r=>r.Required("ind public IndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public IndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public IndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public IndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2577,7 +2496,7 @@ public AnalyzeDescriptor() : base(){} public AnalyzeDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public AnalyzeDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public AnalyzeDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public AnalyzeDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2643,7 +2562,7 @@ public ClearCacheDescriptor Fields(params Expression>[] field public ClearCacheDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClearCacheDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClearCacheDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClearCacheDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2654,7 +2573,7 @@ public ClearCacheDescriptor Fields(params Expression>[] field public partial class CloseIndexDescriptor : RequestDescriptorBase, ICloseIndexRequest { Indices ICloseIndexRequest.Index => Self.RouteValues.Get("index"); - /// /{index}/_close + /// /{index}/_close /// this parameter is required public CloseIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} @@ -2694,7 +2613,7 @@ public CloseIndexDescriptor(Indices index) : base(r=>r.Required("index", index)) public CloseIndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CloseIndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CloseIndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CloseIndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2705,7 +2624,7 @@ public CloseIndexDescriptor(Indices index) : base(r=>r.Required("index", index)) public partial class CreateIndexDescriptor : RequestDescriptorBase, ICreateIndexRequest { IndexName ICreateIndexRequest.Index => Self.RouteValues.Get("index"); - /// /{index} + /// /{index} /// this parameter is required public CreateIndexDescriptor(IndexName index) : base(r=>r.Required("index", index)){} @@ -2739,7 +2658,7 @@ public CreateIndexDescriptor(IndexName index) : base(r=>r.Required("index", inde public CreateIndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CreateIndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CreateIndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CreateIndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2750,7 +2669,7 @@ public CreateIndexDescriptor(IndexName index) : base(r=>r.Required("index", inde public partial class DeleteIndexDescriptor : RequestDescriptorBase, IDeleteIndexRequest { Indices IDeleteIndexRequest.Index => Self.RouteValues.Get("index"); - /// /{index} + /// /{index} /// this parameter is required public DeleteIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} @@ -2771,6 +2690,15 @@ public DeleteIndexDescriptor(Indices index) : base(r=>r.Required("index", index) ///Specify timeout for connection to master public DeleteIndexDescriptor MasterTimeout(Time master_timeout) => AssignParam(p=>p.MasterTimeout(master_timeout.ToTimeSpan())); + ///Ignore unavailable indexes (default: false) + public DeleteIndexDescriptor IgnoreUnavailable(bool ignore_unavailable = true) => AssignParam(p=>p.IgnoreUnavailable(ignore_unavailable)); + + ///Ignore if a wildcard expression resolves to no concrete indices (default: false) + public DeleteIndexDescriptor AllowNoIndices(bool allow_no_indices = true) => AssignParam(p=>p.AllowNoIndices(allow_no_indices)); + + ///Whether wildcard expressions should get expanded to open or closed indices (default: open) + public DeleteIndexDescriptor ExpandWildcards(ExpandWildcards expand_wildcards) => AssignParam(p=>p.ExpandWildcards(expand_wildcards)); + ///Pretty format the returned JSON response. public DeleteIndexDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -2781,7 +2709,7 @@ public DeleteIndexDescriptor(Indices index) : base(r=>r.Required("index", index) public DeleteIndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteIndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteIndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteIndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2793,8 +2721,8 @@ public partial class DeleteAliasDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); Names IDeleteAliasRequest.Name => Self.RouteValues.Get("name"); - /// /{index}/_alias/{name} -/// this parameter is required + /// /{index}/_alias/{name} +/// this parameter is required /// this parameter is required public DeleteAliasDescriptor(Indices index, Names name) : base(r=>r.Required("index", index).Required("name", name)){} @@ -2825,7 +2753,7 @@ public DeleteAliasDescriptor(Indices index, Names name) : base(r=>r.Required("in public DeleteAliasDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteAliasDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteAliasDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteAliasDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2836,7 +2764,7 @@ public DeleteAliasDescriptor(Indices index, Names name) : base(r=>r.Required("in public partial class DeleteIndexTemplateDescriptor : RequestDescriptorBase, IDeleteIndexTemplateRequest { Name IDeleteIndexTemplateRequest.Name => Self.RouteValues.Get("name"); - /// /_template/{name} + /// /_template/{name} /// this parameter is required public DeleteIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", name)){} @@ -2858,7 +2786,7 @@ public DeleteIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", nam public DeleteIndexTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteIndexTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteIndexTemplateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteIndexTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2869,7 +2797,7 @@ public DeleteIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", nam public partial class IndexExistsDescriptor : RequestDescriptorBase, IIndexExistsRequest { Indices IIndexExistsRequest.Index => Self.RouteValues.Get("index"); - /// /{index} + /// /{index} /// this parameter is required public IndexExistsDescriptor(Indices index) : base(r=>r.Required("index", index)){} @@ -2912,7 +2840,7 @@ public IndexExistsDescriptor(Indices index) : base(r=>r.Required("index", index) public IndexExistsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public IndexExistsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public IndexExistsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public IndexExistsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2963,7 +2891,7 @@ public AliasExistsDescriptor() : base(){} public AliasExistsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public AliasExistsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public AliasExistsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public AliasExistsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -2974,7 +2902,7 @@ public AliasExistsDescriptor() : base(){} public partial class IndexTemplateExistsDescriptor : RequestDescriptorBase, IIndexTemplateExistsRequest { Names IIndexTemplateExistsRequest.Name => Self.RouteValues.Get("name"); - /// /_template/{name} + /// /_template/{name} /// this parameter is required public IndexTemplateExistsDescriptor(Names name) : base(r=>r.Required("name", name)){} @@ -2999,7 +2927,7 @@ public IndexTemplateExistsDescriptor(Names name) : base(r=>r.Required("name", na public IndexTemplateExistsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public IndexTemplateExistsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public IndexTemplateExistsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public IndexTemplateExistsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3011,8 +2939,8 @@ public partial class TypeExistsDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); Types ITypeExistsRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/_mapping/{type} -/// this parameter is required + /// /{index}/_mapping/{type} +/// this parameter is required /// this parameter is required public TypeExistsDescriptor(Indices index, Types type) : base(r=>r.Required("index", index).Required("type", type)){} @@ -3058,7 +2986,7 @@ public TypeExistsDescriptor(Indices index, Types type) : base(r=>r.Required("ind public TypeExistsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public TypeExistsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public TypeExistsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public TypeExistsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3108,7 +3036,7 @@ public FlushDescriptor() : base(){} public FlushDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public FlushDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public FlushDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public FlushDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3152,7 +3080,7 @@ public SyncedFlushDescriptor() : base(){} public SyncedFlushDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SyncedFlushDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SyncedFlushDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SyncedFlushDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3211,7 +3139,7 @@ public ForceMergeDescriptor() : base(){} public ForceMergeDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ForceMergeDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ForceMergeDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ForceMergeDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3222,8 +3150,7 @@ public ForceMergeDescriptor() : base(){} public partial class GetIndexDescriptor : RequestDescriptorBase, IGetIndexRequest { Indices IGetIndexRequest.Index => Self.RouteValues.Get("index"); - Features IGetIndexRequest.Feature => Self.RouteValues.Get("feature"); - /// /{index} + /// /{index} /// this parameter is required public GetIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} @@ -3237,9 +3164,6 @@ public GetIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} ///A shortcut into calling Index(Indices.All) public GetIndexDescriptor AllIndices() => this.Index(Indices.All); - ///A comma-separated list of features - public GetIndexDescriptor Feature(Features feature) => Assign(a=>a.RouteValues.Optional("feature", feature)); - ///Return local information, do not retrieve the state from master node (default: false) public GetIndexDescriptor Local(bool local = true) => AssignParam(p=>p.Local(local)); @@ -3269,7 +3193,7 @@ public GetIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} public GetIndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetIndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetIndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetIndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3320,7 +3244,7 @@ public GetAliasDescriptor() : base(){} public GetAliasDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetAliasDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetAliasDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetAliasDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3333,7 +3257,7 @@ public partial class GetFieldMappingDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); Types IGetFieldMappingRequest.Type => Self.RouteValues.Get("type"); Fields IGetFieldMappingRequest.Fields => Self.RouteValues.Get("fields"); - /// /_mapping/field/{fields} + /// /_mapping/field/{fields} /// this parameter is required public GetFieldMappingDescriptor(Fields fields) : base(r=>r.Required("fields", fields)){} @@ -3382,7 +3306,7 @@ public GetFieldMappingDescriptor(Fields fields) : base(r=>r.Required("fields", f public GetFieldMappingDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetFieldMappingDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetFieldMappingDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetFieldMappingDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3439,7 +3363,7 @@ public GetMappingDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)) public GetMappingDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetMappingDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetMappingDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetMappingDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3496,7 +3420,7 @@ public GetIndexSettingsDescriptor() : base(){} public GetIndexSettingsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetIndexSettingsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetIndexSettingsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetIndexSettingsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3534,7 +3458,7 @@ public GetIndexTemplateDescriptor() : base(){} public GetIndexTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetIndexTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetIndexTemplateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetIndexTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3578,7 +3502,7 @@ public UpgradeStatusDescriptor() : base(){} public UpgradeStatusDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpgradeStatusDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpgradeStatusDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpgradeStatusDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3589,7 +3513,7 @@ public UpgradeStatusDescriptor() : base(){} public partial class OpenIndexDescriptor : RequestDescriptorBase, IOpenIndexRequest { Indices IOpenIndexRequest.Index => Self.RouteValues.Get("index"); - /// /{index}/_open + /// /{index}/_open /// this parameter is required public OpenIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} @@ -3629,7 +3553,7 @@ public OpenIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){ public OpenIndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public OpenIndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public OpenIndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public OpenIndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3641,8 +3565,8 @@ public partial class PutAliasDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); Name IPutAliasRequest.Name => Self.RouteValues.Get("name"); - /// /{index}/_alias/{name} -/// this parameter is required + /// /{index}/_alias/{name} +/// this parameter is required /// this parameter is required public PutAliasDescriptor(Indices index, Name name) : base(r=>r.Required("index", index).Required("name", name)){} @@ -3673,7 +3597,7 @@ public PutAliasDescriptor(Indices index, Name name) : base(r=>r.Required("index" public PutAliasDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutAliasDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutAliasDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutAliasDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3685,7 +3609,7 @@ public partial class PutMappingDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); TypeName IPutMappingRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/_mapping + /// /{index}/{type}/_mapping /// this parameter is required public PutMappingDescriptor(TypeName type) : base(r=>r.Required("type", type)){} @@ -3734,7 +3658,7 @@ public PutMappingDescriptor(TypeName type) : base(r=>r.Required("type", type)){} public PutMappingDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutMappingDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutMappingDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutMappingDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3787,7 +3711,7 @@ public UpdateIndexSettingsDescriptor() : base(){} public UpdateIndexSettingsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpdateIndexSettingsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpdateIndexSettingsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpdateIndexSettingsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3798,7 +3722,7 @@ public UpdateIndexSettingsDescriptor() : base(){} public partial class PutIndexTemplateDescriptor : RequestDescriptorBase, IPutIndexTemplateRequest { Name IPutIndexTemplateRequest.Name => Self.RouteValues.Get("name"); - /// /_template/{name} + /// /_template/{name} /// this parameter is required public PutIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", name)){} @@ -3826,7 +3750,7 @@ public PutIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", name)) public PutIndexTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutIndexTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutIndexTemplateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutIndexTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3867,7 +3791,7 @@ public RecoveryStatusDescriptor() : base(){} public RecoveryStatusDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RecoveryStatusDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RecoveryStatusDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RecoveryStatusDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3911,7 +3835,7 @@ public RefreshDescriptor() : base(){} public RefreshDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RefreshDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RefreshDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RefreshDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -3923,7 +3847,7 @@ public partial class RolloverIndexDescriptor : RequestDescriptorBase Self.RouteValues.Get("alias"); IndexName IRolloverIndexRequest.NewIndex => Self.RouteValues.Get("new_index"); - /// /{alias}/_rollover + /// /{alias}/_rollover /// this parameter is required public RolloverIndexDescriptor(Name alias) : base(r=>r.Required("alias", alias)){} @@ -3954,7 +3878,7 @@ public RolloverIndexDescriptor(Name alias) : base(r=>r.Required("alias", alias)) public RolloverIndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RolloverIndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RolloverIndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RolloverIndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4004,7 +3928,7 @@ public SegmentsDescriptor() : base(){} public SegmentsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SegmentsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SegmentsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SegmentsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4054,7 +3978,7 @@ public IndicesShardStoresDescriptor() : base(){} public IndicesShardStoresDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public IndicesShardStoresDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public IndicesShardStoresDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public IndicesShardStoresDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4066,8 +3990,8 @@ public partial class ShrinkIndexDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); IndexName IShrinkIndexRequest.Target => Self.RouteValues.Get("target"); - /// /{index}/_shrink/{target} -/// this parameter is required + /// /{index}/_shrink/{target} +/// this parameter is required /// this parameter is required public ShrinkIndexDescriptor(IndexName index, IndexName target) : base(r=>r.Required("index", index).Required("target", target)){} @@ -4098,7 +4022,7 @@ public ShrinkIndexDescriptor(IndexName index, IndexName target) : base(r=>r.Requ public ShrinkIndexDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ShrinkIndexDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ShrinkIndexDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ShrinkIndexDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4167,7 +4091,7 @@ public IndicesStatsDescriptor Fields(params Expression>[] fie public IndicesStatsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public IndicesStatsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public IndicesStatsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public IndicesStatsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4194,7 +4118,7 @@ public partial class BulkAliasDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public BulkAliasDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public BulkAliasDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public BulkAliasDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4244,7 +4168,7 @@ public UpgradeDescriptor() : base(){} public UpgradeDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpgradeDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpgradeDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpgradeDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4328,7 +4252,7 @@ public ValidateQueryDescriptor() : base(r=> r.Required("index", (Indices)typeof( public ValidateQueryDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ValidateQueryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ValidateQueryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ValidateQueryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4349,7 +4273,7 @@ public partial class RootNodeInfoDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RootNodeInfoDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RootNodeInfoDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RootNodeInfoDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4360,7 +4284,7 @@ public partial class RootNodeInfoDescriptor : RequestDescriptorBase, IDeletePipelineRequest { Id IDeletePipelineRequest.Id => Self.RouteValues.Get("id"); - /// /_ingest/pipeline/{id} + /// /_ingest/pipeline/{id} /// this parameter is required public DeletePipelineDescriptor(Id id) : base(r=>r.Required("id", id)){} @@ -4382,7 +4306,7 @@ public DeletePipelineDescriptor(Id id) : base(r=>r.Required("id", id)){} public DeletePipelineDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeletePipelineDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeletePipelineDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeletePipelineDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4414,18 +4338,39 @@ public GetPipelineDescriptor() : base(){} public GetPipelineDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetPipelineDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetPipelineDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetPipelineDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } + ///descriptor for IngestProcessorGrok
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
+ public partial class GrokProcessorPatternsDescriptor : RequestDescriptorBase, IGrokProcessorPatternsRequest + { + + ///Pretty format the returned JSON response. + public GrokProcessorPatternsDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); + + ///Return human readable values for statistics. + public GrokProcessorPatternsDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); + + ///Include the stack trace of returned errors. + public GrokProcessorPatternsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); + + ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. + public GrokProcessorPatternsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); + + ///A comma-separated list of filters used to reduce the respone. + public GrokProcessorPatternsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); + + } + ///descriptor for IngestPutPipeline
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class PutPipelineDescriptor : RequestDescriptorBase, IPutPipelineRequest { Id IPutPipelineRequest.Id => Self.RouteValues.Get("id"); - /// /_ingest/pipeline/{id} + /// /_ingest/pipeline/{id} /// this parameter is required public PutPipelineDescriptor(Id id) : base(r=>r.Required("id", id)){} @@ -4447,7 +4392,7 @@ public PutPipelineDescriptor(Id id) : base(r=>r.Required("id", id)){} public PutPipelineDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutPipelineDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutPipelineDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutPipelineDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4479,7 +4424,7 @@ public SimulatePipelineDescriptor() : base(){} public SimulatePipelineDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SimulatePipelineDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SimulatePipelineDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SimulatePipelineDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4554,7 +4499,7 @@ public MultiGetDescriptor SourceInclude(params Expression>[] public MultiGetDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public MultiGetDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public MultiGetDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public MultiGetDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4598,6 +4543,9 @@ public MultiSearchDescriptor() {} ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public MultiSearchDescriptor TypedKeys(bool typed_keys = true) => AssignParam(p=>p.TypedKeys(typed_keys)); + ///A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint. + public MultiSearchDescriptor PreFilterShardSize(long pre_filter_shard_size) => AssignParam(p=>p.PreFilterShardSize(pre_filter_shard_size)); + ///Pretty format the returned JSON response. public MultiSearchDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -4608,7 +4556,7 @@ public MultiSearchDescriptor() {} public MultiSearchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public MultiSearchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public MultiSearchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public MultiSearchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4662,7 +4610,7 @@ public MultiSearchTemplateDescriptor() {} public MultiSearchTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public MultiSearchTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public MultiSearchTemplateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public MultiSearchTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4741,7 +4689,7 @@ public MultiTermVectorsDescriptor Fields(params Expression>[] public MultiTermVectorsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public MultiTermVectorsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public MultiTermVectorsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public MultiTermVectorsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4788,7 +4736,7 @@ public NodesHotThreadsDescriptor() : base(){} public NodesHotThreadsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public NodesHotThreadsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public NodesHotThreadsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public NodesHotThreadsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4827,7 +4775,7 @@ public NodesInfoDescriptor() : base(){} public NodesInfoDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public NodesInfoDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public NodesInfoDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public NodesInfoDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4900,13 +4848,49 @@ public NodesStatsDescriptor Fields(params Expression>[] field public NodesStatsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public NodesStatsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public NodesStatsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public NodesStatsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } + ///descriptor for NodesUsageForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html
+ public partial class NodesUsageDescriptor : RequestDescriptorBase, INodesUsageRequest + { + Metrics INodesUsageRequest.Metric => Self.RouteValues.Get("metric"); + NodeIds INodesUsageRequest.NodeId => Self.RouteValues.Get("node_id"); + /// /_nodes/usage + public NodesUsageDescriptor() : base(){} + + + ///Limit the information returned to the specified metrics + public NodesUsageDescriptor Metric(NodesUsageMetric metric) => Assign(a=>a.RouteValues.Optional("metric", (Metrics)metric)); + + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + public NodesUsageDescriptor NodeId(NodeIds nodeId) => Assign(a=>a.RouteValues.Optional("node_id", nodeId)); + + + ///Whether to return time and byte values in human-readable format. + public NodesUsageDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); + + ///Explicit operation timeout + public NodesUsageDescriptor Timeout(Time timeout) => AssignParam(p=>p.Timeout(timeout.ToTimeSpan())); + + ///Pretty format the returned JSON response. + public NodesUsageDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); + + ///Include the stack trace of returned errors. + public NodesUsageDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); + + ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. + public NodesUsageDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); + + ///A comma-separated list of filters used to reduce the respone. + public NodesUsageDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); + + } + ///descriptor for Ping
http://www.elastic.co/guide/
public partial class PingDescriptor : RequestDescriptorBase, IPingRequest { @@ -4921,7 +4905,7 @@ public partial class PingDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PingDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PingDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PingDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -4932,19 +4916,22 @@ public partial class PingDescriptor : RequestDescriptorBase, IPutScriptRequest { Id IPutScriptRequest.Id => Self.RouteValues.Get("id"); - Name IPutScriptRequest.Lang => Self.RouteValues.Get("lang"); - /// /_scripts/{lang} -/// this parameter is required - public PutScriptDescriptor(Name lang) : base(r=>r.Required("lang", lang)){} - - - /// /_scripts/{lang}/{id} -/// this parameter is required + Name IPutScriptRequest.Context => Self.RouteValues.Get("context"); + /// /_scripts/{id} /// this parameter is required - public PutScriptDescriptor(Name lang, Id id) : base(r=>r.Required("lang", lang).Required("id", id)){} + public PutScriptDescriptor(Id id) : base(r=>r.Required("id", id)){} - + ///Script context + public PutScriptDescriptor Context(Name context) => Assign(a=>a.RouteValues.Optional("context", context)); + + + ///Explicit operation timeout + public PutScriptDescriptor Timeout(Time timeout) => AssignParam(p=>p.Timeout(timeout.ToTimeSpan())); + + ///Specify timeout for connection to master + public PutScriptDescriptor MasterTimeout(Time master_timeout) => AssignParam(p=>p.MasterTimeout(master_timeout.ToTimeSpan())); + ///Pretty format the returned JSON response. public PutScriptDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -4955,40 +4942,13 @@ public PutScriptDescriptor(Name lang, Id id) : base(r=>r.Required("lang", lang). public PutScriptDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutScriptDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutScriptDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutScriptDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for PutTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html
- public partial class PutSearchTemplateDescriptor : RequestDescriptorBase, IPutSearchTemplateRequest - { - Id IPutSearchTemplateRequest.Id => Self.RouteValues.Get("id"); - /// /_search/template/{id} -/// this parameter is required - public PutSearchTemplateDescriptor(Id id) : base(r=>r.Required("id", id)){} - - - - ///Pretty format the returned JSON response. - public PutSearchTemplateDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); - - ///Return human readable values for statistics. - public PutSearchTemplateDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); - - ///Include the stack trace of returned errors. - public PutSearchTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutSearchTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); - - ///A comma-separated list of filters used to reduce the respone. - public PutSearchTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); - - } - ///descriptor for Reindex
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html
public partial class ReindexOnServerDescriptor : RequestDescriptorBase, IReindexOnServerRequest { @@ -5050,34 +5010,13 @@ public ReindexRethrottleDescriptor() : base(){} public ReindexRethrottleDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ReindexRethrottleDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ReindexRethrottleDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ReindexRethrottleDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for RemoteInfo
http://www.elastic.co/guide/en/elasticsearch/reference/5.5/cluster-remote-info.html
- public partial class RemoteInfoDescriptor : RequestDescriptorBase, IRemoteInfoRequest - { - - ///Pretty format the returned JSON response. - public RemoteInfoDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); - - ///Return human readable values for statistics. - public RemoteInfoDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); - - ///Include the stack trace of returned errors. - public RemoteInfoDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); - - ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RemoteInfoDescriptor Source(string source) => AssignParam(p=>p.Source(source)); - - ///A comma-separated list of filters used to reduce the respone. - public RemoteInfoDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); - - } - ///descriptor for RenderSearchTemplate
http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html
public partial class RenderSearchTemplateDescriptor : RequestDescriptorBase, IRenderSearchTemplateRequest { @@ -5100,7 +5039,7 @@ public RenderSearchTemplateDescriptor() : base(){} public RenderSearchTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RenderSearchTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RenderSearchTemplateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RenderSearchTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5125,7 +5064,7 @@ public ScrollDescriptor() : base(){} public ScrollDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ScrollDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ScrollDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ScrollDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5222,6 +5161,9 @@ public SearchDescriptor SuggestField(Expression> field) => ///The source text for which the suggestions should be returned public SearchDescriptor SuggestText(string suggest_text) => AssignParam(p=>p.SuggestText(suggest_text)); + ///Indicate if the number of documents that match the query should be tracked + public SearchDescriptor TrackTotalHits(bool track_total_hits = true) => AssignParam(p=>p.TrackTotalHits(track_total_hits)); + ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public SearchDescriptor TypedKeys(bool typed_keys = true) => AssignParam(p=>p.TypedKeys(typed_keys)); @@ -5231,6 +5173,12 @@ public SearchDescriptor SuggestField(Expression> field) => ///The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. public SearchDescriptor BatchedReduceSize(long batched_reduce_size) => AssignParam(p=>p.BatchedReduceSize(batched_reduce_size)); + ///The number of concurrent shard requests this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests + public SearchDescriptor MaxConcurrentShardRequests(long max_concurrent_shard_requests) => AssignParam(p=>p.MaxConcurrentShardRequests(max_concurrent_shard_requests)); + + ///A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it's rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint. + public SearchDescriptor PreFilterShardSize(long pre_filter_shard_size) => AssignParam(p=>p.PreFilterShardSize(pre_filter_shard_size)); + ///Pretty format the returned JSON response. public SearchDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -5291,7 +5239,7 @@ public SearchShardsDescriptor() : base(){} public SearchShardsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SearchShardsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SearchShardsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SearchShardsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5366,7 +5314,7 @@ public SearchTemplateDescriptor() : base(r=> r.Required("index", (Indices)typeof public SearchTemplateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SearchTemplateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SearchTemplateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SearchTemplateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5378,8 +5326,8 @@ public partial class SnapshotDescriptor : RequestDescriptorBase Self.RouteValues.Get("repository"); Name ISnapshotRequest.Snapshot => Self.RouteValues.Get("snapshot"); - /// /_snapshot/{repository}/{snapshot} -/// this parameter is required + /// /_snapshot/{repository}/{snapshot} +/// this parameter is required /// this parameter is required public SnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} @@ -5401,7 +5349,7 @@ public SnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Required(" public SnapshotDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SnapshotDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SnapshotDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SnapshotDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5412,7 +5360,7 @@ public SnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Required(" public partial class CreateRepositoryDescriptor : RequestDescriptorBase, ICreateRepositoryRequest { Name ICreateRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); - /// /_snapshot/{repository} + /// /_snapshot/{repository} /// this parameter is required public CreateRepositoryDescriptor(Name repository) : base(r=>r.Required("repository", repository)){} @@ -5437,7 +5385,7 @@ public CreateRepositoryDescriptor(Name repository) : base(r=>r.Required("reposit public CreateRepositoryDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CreateRepositoryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CreateRepositoryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CreateRepositoryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5449,8 +5397,8 @@ public partial class DeleteSnapshotDescriptor : RequestDescriptorBase Self.RouteValues.Get("repository"); Name IDeleteSnapshotRequest.Snapshot => Self.RouteValues.Get("snapshot"); - /// /_snapshot/{repository}/{snapshot} -/// this parameter is required + /// /_snapshot/{repository}/{snapshot} +/// this parameter is required /// this parameter is required public DeleteSnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} @@ -5469,7 +5417,7 @@ public DeleteSnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Requ public DeleteSnapshotDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteSnapshotDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteSnapshotDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteSnapshotDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5480,7 +5428,7 @@ public DeleteSnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Requ public partial class DeleteRepositoryDescriptor : RequestDescriptorBase, IDeleteRepositoryRequest { Names IDeleteRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); - /// /_snapshot/{repository} + /// /_snapshot/{repository} /// this parameter is required public DeleteRepositoryDescriptor(Names repository) : base(r=>r.Required("repository", repository)){} @@ -5502,7 +5450,7 @@ public DeleteRepositoryDescriptor(Names repository) : base(r=>r.Required("reposi public DeleteRepositoryDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteRepositoryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteRepositoryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteRepositoryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5514,8 +5462,8 @@ public partial class GetSnapshotDescriptor : RequestDescriptorBase Self.RouteValues.Get("repository"); Names IGetSnapshotRequest.Snapshot => Self.RouteValues.Get("snapshot"); - /// /_snapshot/{repository}/{snapshot} -/// this parameter is required + /// /_snapshot/{repository}/{snapshot} +/// this parameter is required /// this parameter is required public GetSnapshotDescriptor(Name repository, Names snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} @@ -5540,7 +5488,7 @@ public GetSnapshotDescriptor(Name repository, Names snapshot) : base(r=>r.Requir public GetSnapshotDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetSnapshotDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetSnapshotDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetSnapshotDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5575,7 +5523,7 @@ public GetRepositoryDescriptor() : base(){} public GetRepositoryDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetRepositoryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetRepositoryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetRepositoryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5587,8 +5535,8 @@ public partial class RestoreDescriptor : RequestDescriptorBase Self.RouteValues.Get("repository"); Name IRestoreRequest.Snapshot => Self.RouteValues.Get("snapshot"); - /// /_snapshot/{repository}/{snapshot}/_restore -/// this parameter is required + /// /_snapshot/{repository}/{snapshot}/_restore +/// this parameter is required /// this parameter is required public RestoreDescriptor(Name repository, Name snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} @@ -5610,7 +5558,7 @@ public RestoreDescriptor(Name repository, Name snapshot) : base(r=>r.Required("r public RestoreDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RestoreDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RestoreDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RestoreDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5649,7 +5597,7 @@ public SnapshotStatusDescriptor() : base(){} public SnapshotStatusDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public SnapshotStatusDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public SnapshotStatusDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public SnapshotStatusDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5660,7 +5608,7 @@ public SnapshotStatusDescriptor() : base(){} public partial class VerifyRepositoryDescriptor : RequestDescriptorBase, IVerifyRepositoryRequest { Name IVerifyRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); - /// /_snapshot/{repository}/_verify + /// /_snapshot/{repository}/_verify /// this parameter is required public VerifyRepositoryDescriptor(Name repository) : base(r=>r.Required("repository", repository)){} @@ -5682,7 +5630,7 @@ public VerifyRepositoryDescriptor(Name repository) : base(r=>r.Required("reposit public VerifyRepositoryDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public VerifyRepositoryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public VerifyRepositoryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public VerifyRepositoryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5702,7 +5650,7 @@ public CancelTasksDescriptor() : base(){} ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public CancelTasksDescriptor NodeId(params string[] node_id) => AssignParam(p=>p.NodeId(node_id)); + public CancelTasksDescriptor Nodes(params string[] nodes) => AssignParam(p=>p.Nodes(nodes)); ///A comma-separated list of actions that should be cancelled. Leave empty to cancel all. public CancelTasksDescriptor Actions(params string[] actions) => AssignParam(p=>p.Actions(actions)); @@ -5711,7 +5659,7 @@ public CancelTasksDescriptor() : base(){} public CancelTasksDescriptor ParentNode(string parent_node) => AssignParam(p=>p.ParentNode(parent_node)); ///Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. - public CancelTasksDescriptor ParentTask(string parent_task) => AssignParam(p=>p.ParentTask(parent_task)); + public CancelTasksDescriptor ParentTaskId(string parent_task_id) => AssignParam(p=>p.ParentTaskId(parent_task_id)); ///Pretty format the returned JSON response. public CancelTasksDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -5723,7 +5671,7 @@ public CancelTasksDescriptor() : base(){} public CancelTasksDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CancelTasksDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CancelTasksDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CancelTasksDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5755,7 +5703,7 @@ public GetTaskDescriptor() : base(){} public GetTaskDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetTaskDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetTaskDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetTaskDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5767,7 +5715,7 @@ public partial class ListTasksDescriptor : RequestDescriptorBaseA comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
- public ListTasksDescriptor NodeId(params string[] node_id) => AssignParam(p=>p.NodeId(node_id)); + public ListTasksDescriptor Nodes(params string[] nodes) => AssignParam(p=>p.Nodes(nodes)); ///A comma-separated list of actions that should be returned. Leave empty to return all. public ListTasksDescriptor Actions(params string[] actions) => AssignParam(p=>p.Actions(actions)); @@ -5779,7 +5727,7 @@ public partial class ListTasksDescriptor : RequestDescriptorBase AssignParam(p=>p.ParentNode(parent_node)); ///Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. - public ListTasksDescriptor ParentTask(string parent_task) => AssignParam(p=>p.ParentTask(parent_task)); + public ListTasksDescriptor ParentTaskId(string parent_task_id) => AssignParam(p=>p.ParentTaskId(parent_task_id)); ///Wait for the matching tasks to complete (default: false) public ListTasksDescriptor WaitForCompletion(bool wait_for_completion = true) => AssignParam(p=>p.WaitForCompletion(wait_for_completion)); @@ -5797,7 +5745,7 @@ public partial class ListTasksDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ListTasksDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ListTasksDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ListTasksDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5810,14 +5758,14 @@ public partial class TermVectorsDescriptor : RequestDescriptorBase.Index => Self.RouteValues.Get("index"); TypeName ITermVectorsRequest.Type => Self.RouteValues.Get("type"); Id ITermVectorsRequest.Id => Self.RouteValues.Get("id"); - /// /{index}/{type}/_termvectors -/// this parameter is required + /// /{index}/{type}/_termvectors +/// this parameter is required /// this parameter is required public TermVectorsDescriptor(IndexName index, TypeName type) : base(r=>r.Required("index", index).Required("type", type)){} - /// /{index}/{type}/_termvectors - + /// /{index}/{type}/_termvectors + /// describes an elasticsearch document of type from which the index, type and id can be inferred public TermVectorsDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(TDocument document); @@ -5888,7 +5836,7 @@ public TermVectorsDescriptor Fields(params Expression ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public TermVectorsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public TermVectorsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public TermVectorsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5901,15 +5849,15 @@ public partial class UpdateDescriptor : RequestDes Id IUpdateRequest.Id => Self.RouteValues.Get("id"); IndexName IUpdateRequest.Index => Self.RouteValues.Get("index"); TypeName IUpdateRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id}/_update -/// this parameter is required -/// this parameter is required + /// /{index}/{type}/{id}/_update +/// this parameter is required +/// this parameter is required /// this parameter is required public UpdateDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id}/_update - + /// /{index}/{type}/{id}/_update + /// describes an elasticsearch document of type from which the index, type and id can be inferred public UpdateDescriptor(DocumentPath document) : base(r=>r.Required("index", document.Self.Index).Required("type", document.Self.Type).Required("id", document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(TDocument document); @@ -5973,7 +5921,7 @@ public UpdateDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Requi public UpdateDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpdateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpdateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpdateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -5985,7 +5933,7 @@ public partial class UpdateByQueryDescriptor : RequestDescriptorBase Self.RouteValues.Get("index"); Types IUpdateByQueryRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/_update_by_query + /// /{index}/_update_by_query /// this parameter is required public UpdateByQueryDescriptor(Indices index) : base(r=>r.Required("index", index).Required("type", (Types)typeof(T))){} @@ -6129,19 +6077,19 @@ public UpdateByQueryDescriptor SourceInclude(params Expression ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpdateByQueryDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpdateByQueryDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpdateByQueryDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackGraphExplore
https://www.elastic.co/guide/en/graph/current/explore.html
+ ///descriptor for XpackGraphExplore
https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html
public partial class GraphExploreDescriptor : RequestDescriptorBase,GraphExploreRequestParameters, IGraphExploreRequest>, IGraphExploreRequest { Indices IGraphExploreRequest.Index => Self.RouteValues.Get("index"); Types IGraphExploreRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/_xpack/_graph/_explore + /// /{index}/_xpack/graph/_explore /// this parameter is required public GraphExploreDescriptor(Indices index) : base(r=>r.Required("index", index)){} @@ -6181,13 +6129,45 @@ public GraphExploreDescriptor(Indices index) : base(r=>r.Required("index", index public GraphExploreDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GraphExploreDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GraphExploreDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GraphExploreDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } + ///descriptor for XpackDeprecationInfo
http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html
+ public partial class DeprecationInfoDescriptor : RequestDescriptorBase, IDeprecationInfoRequest + { + IndexName IDeprecationInfoRequest.Index => Self.RouteValues.Get("index"); + /// /_xpack/migration/deprecations + public DeprecationInfoDescriptor() : base(){} + + + ///Index pattern + public DeprecationInfoDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Optional("index", index)); + + ///a shortcut into calling Index(typeof(TOther)) + public DeprecationInfoDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (IndexName)typeof(TOther))); + + + ///Pretty format the returned JSON response. + public DeprecationInfoDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); + + ///Return human readable values for statistics. + public DeprecationInfoDescriptor Human(bool human = true) => AssignParam(p=>p.Human(human)); + + ///Include the stack trace of returned errors. + public DeprecationInfoDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); + + ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. + public DeprecationInfoDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); + + ///A comma-separated list of filters used to reduce the respone. + public DeprecationInfoDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); + + } + ///descriptor for XpackInfo
https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html
public partial class XPackInfoDescriptor : RequestDescriptorBase, IXPackInfoRequest { @@ -6205,7 +6185,7 @@ public partial class XPackInfoDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public XPackInfoDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public XPackInfoDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public XPackInfoDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6229,14 +6209,14 @@ public partial class XPackUsageDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public XPackUsageDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public XPackUsageDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public XPackUsageDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackLicenseDelete
https://www.elastic.co/guide/en/shield/current/license-management.html
+ ///descriptor for XpackLicenseDelete
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class DeleteLicenseDescriptor : RequestDescriptorBase, IDeleteLicenseRequest { @@ -6250,14 +6230,14 @@ public partial class DeleteLicenseDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteLicenseDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteLicenseDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteLicenseDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackLicenseGet
https://www.elastic.co/guide/en/shield/current/license-management.html
+ ///descriptor for XpackLicenseGet
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class GetLicenseDescriptor : RequestDescriptorBase, IGetLicenseRequest { @@ -6274,14 +6254,14 @@ public partial class GetLicenseDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetLicenseDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetLicenseDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetLicenseDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackLicensePost
https://www.elastic.co/guide/en/shield/current/license-management.html
+ ///descriptor for XpackLicensePost
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class PostLicenseDescriptor : RequestDescriptorBase, IPostLicenseRequest { @@ -6298,7 +6278,7 @@ public partial class PostLicenseDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PostLicenseDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PostLicenseDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PostLicenseDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6309,7 +6289,7 @@ public partial class PostLicenseDescriptor : RequestDescriptorBase, ICloseJobRequest { Id ICloseJobRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/_close + /// /_xpack/ml/anomaly_detectors/{job_id}/_close /// this parameter is required public CloseJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6331,7 +6311,7 @@ public CloseJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public CloseJobDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public CloseJobDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public CloseJobDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public CloseJobDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6342,7 +6322,7 @@ public CloseJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public partial class DeleteDatafeedDescriptor : RequestDescriptorBase, IDeleteDatafeedRequest { Id IDeleteDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); - /// /_xpack/ml/datafeeds/{datafeed_id} + /// /_xpack/ml/datafeeds/{datafeed_id} /// this parameter is required public DeleteDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} @@ -6361,7 +6341,7 @@ public DeleteDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_i public DeleteDatafeedDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteDatafeedDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteDatafeedDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteDatafeedDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6382,7 +6362,7 @@ public partial class DeleteExpiredDataDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteExpiredDataDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteExpiredDataDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteExpiredDataDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6393,7 +6373,7 @@ public partial class DeleteExpiredDataDescriptor : RequestDescriptorBase, IDeleteJobRequest { Id IDeleteJobRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id} + /// /_xpack/ml/anomaly_detectors/{job_id} /// this parameter is required public DeleteJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6412,7 +6392,7 @@ public DeleteJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public DeleteJobDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteJobDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteJobDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteJobDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6424,8 +6404,8 @@ public partial class DeleteModelSnapshotDescriptor : RequestDescriptorBase Self.RouteValues.Get("job_id"); Id IDeleteModelSnapshotRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} -/// this parameter is required + /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} +/// this parameter is required /// this parameter is required public DeleteModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)){} @@ -6441,7 +6421,7 @@ public DeleteModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Requ public DeleteModelSnapshotDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteModelSnapshotDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteModelSnapshotDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteModelSnapshotDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6452,12 +6432,15 @@ public DeleteModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Requ public partial class FlushJobDescriptor : RequestDescriptorBase, IFlushJobRequest { Id IFlushJobRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/_flush + /// /_xpack/ml/anomaly_detectors/{job_id}/_flush /// this parameter is required public FlushJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} + ///Skips time to the given value without generating results or updating the model for the skipped interval + public FlushJobDescriptor SkipTime(string skip_time) => AssignParam(p=>p.SkipTime(skip_time)); + ///Pretty format the returned JSON response. public FlushJobDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -6468,7 +6451,7 @@ public FlushJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public FlushJobDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public FlushJobDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public FlushJobDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public FlushJobDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6479,7 +6462,7 @@ public FlushJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public partial class GetBucketsDescriptor : RequestDescriptorBase, IGetBucketsRequest { Id IGetBucketsRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/results/buckets + /// /_xpack/ml/anomaly_detectors/{job_id}/results/buckets /// this parameter is required public GetBucketsDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6495,7 +6478,7 @@ public GetBucketsDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public GetBucketsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetBucketsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetBucketsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetBucketsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6507,7 +6490,7 @@ public partial class GetCategoriesDescriptor : RequestDescriptorBase Self.RouteValues.Get("job_id"); CategoryId IGetCategoriesRequest.CategoryId => Self.RouteValues.Get("category_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} + /// /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} /// this parameter is required public GetCategoriesDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6526,7 +6509,7 @@ public GetCategoriesDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id) public GetCategoriesDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetCategoriesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetCategoriesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetCategoriesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6555,7 +6538,7 @@ public GetDatafeedsDescriptor() : base(){} public GetDatafeedsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetDatafeedsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetDatafeedsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetDatafeedsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6584,7 +6567,7 @@ public GetDatafeedStatsDescriptor() : base(){} public GetDatafeedStatsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetDatafeedStatsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetDatafeedStatsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetDatafeedStatsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6595,7 +6578,7 @@ public GetDatafeedStatsDescriptor() : base(){} public partial class GetInfluencersDescriptor : RequestDescriptorBase, IGetInfluencersRequest { Id IGetInfluencersRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/results/influencers + /// /_xpack/ml/anomaly_detectors/{job_id}/results/influencers /// this parameter is required public GetInfluencersDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6611,7 +6594,7 @@ public GetInfluencersDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id public GetInfluencersDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetInfluencersDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetInfluencersDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetInfluencersDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6640,7 +6623,7 @@ public GetJobsDescriptor() : base(){} public GetJobsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetJobsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetJobsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetJobsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6669,7 +6652,7 @@ public GetJobStatsDescriptor() : base(){} public GetJobStatsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetJobStatsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetJobStatsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetJobStatsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6681,7 +6664,7 @@ public partial class GetModelSnapshotsDescriptor : RequestDescriptorBase Self.RouteValues.Get("job_id"); Id IGetModelSnapshotsRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} + /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} /// this parameter is required public GetModelSnapshotsDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6700,7 +6683,7 @@ public GetModelSnapshotsDescriptor(Id job_id) : base(r=>r.Required("job_id", job public GetModelSnapshotsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetModelSnapshotsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetModelSnapshotsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetModelSnapshotsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6711,7 +6694,7 @@ public GetModelSnapshotsDescriptor(Id job_id) : base(r=>r.Required("job_id", job public partial class GetAnomalyRecordsDescriptor : RequestDescriptorBase, IGetAnomalyRecordsRequest { Id IGetAnomalyRecordsRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/results/records + /// /_xpack/ml/anomaly_detectors/{job_id}/results/records /// this parameter is required public GetAnomalyRecordsDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6727,7 +6710,7 @@ public GetAnomalyRecordsDescriptor(Id job_id) : base(r=>r.Required("job_id", job public GetAnomalyRecordsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetAnomalyRecordsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetAnomalyRecordsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetAnomalyRecordsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6738,7 +6721,7 @@ public GetAnomalyRecordsDescriptor(Id job_id) : base(r=>r.Required("job_id", job public partial class OpenJobDescriptor : RequestDescriptorBase, IOpenJobRequest { Id IOpenJobRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/_open + /// /_xpack/ml/anomaly_detectors/{job_id}/_open /// this parameter is required public OpenJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6754,7 +6737,7 @@ public OpenJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public OpenJobDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public OpenJobDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public OpenJobDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public OpenJobDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6765,7 +6748,7 @@ public OpenJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public partial class PostJobDataDescriptor : RequestDescriptorBase, IPostJobDataRequest { Id IPostJobDataRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/_data + /// /_xpack/ml/anomaly_detectors/{job_id}/_data /// this parameter is required public PostJobDataDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6787,7 +6770,7 @@ public PostJobDataDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){ public PostJobDataDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PostJobDataDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PostJobDataDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PostJobDataDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6798,7 +6781,7 @@ public PostJobDataDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){ public partial class PreviewDatafeedDescriptor : RequestDescriptorBase, IPreviewDatafeedRequest { Id IPreviewDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); - /// /_xpack/ml/datafeeds/{datafeed_id}/_preview + /// /_xpack/ml/datafeeds/{datafeed_id}/_preview /// this parameter is required public PreviewDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} @@ -6814,7 +6797,7 @@ public PreviewDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_ public PreviewDatafeedDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PreviewDatafeedDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PreviewDatafeedDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PreviewDatafeedDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6825,7 +6808,7 @@ public PreviewDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_ public partial class PutDatafeedDescriptor : RequestDescriptorBase,PutDatafeedRequestParameters, IPutDatafeedRequest>, IPutDatafeedRequest { Id IPutDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); - /// /_xpack/ml/datafeeds/{datafeed_id}. Will infer the index and type from the generic type + /// /_xpack/ml/datafeeds/{datafeed_id}. Will infer the index and type from the generic type /// this parameter is required public PutDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){ Self.Indices = typeof(T); Self.Types = typeof(T); } @@ -6841,7 +6824,7 @@ public partial class PutDatafeedDescriptor : RequestDescriptorBase ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutDatafeedDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutDatafeedDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutDatafeedDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6852,7 +6835,7 @@ public partial class PutDatafeedDescriptor : RequestDescriptorBase : RequestDescriptorBase,PutJobRequestParameters, IPutJobRequest>, IPutJobRequest { Id IPutJobRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id} + /// /_xpack/ml/anomaly_detectors/{job_id} /// this parameter is required public PutJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -6868,7 +6851,7 @@ public PutJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public PutJobDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutJobDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutJobDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutJobDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6880,8 +6863,8 @@ public partial class RevertModelSnapshotDescriptor : RequestDescriptorBase Self.RouteValues.Get("job_id"); Id IRevertModelSnapshotRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert -/// this parameter is required + /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert +/// this parameter is required /// this parameter is required public RevertModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)){} @@ -6897,7 +6880,7 @@ public RevertModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Requ public RevertModelSnapshotDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RevertModelSnapshotDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RevertModelSnapshotDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RevertModelSnapshotDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6908,7 +6891,7 @@ public RevertModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Requ public partial class StartDatafeedDescriptor : RequestDescriptorBase, IStartDatafeedRequest { Id IStartDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); - /// /_xpack/ml/datafeeds/{datafeed_id}/_start + /// /_xpack/ml/datafeeds/{datafeed_id}/_start /// this parameter is required public StartDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} @@ -6924,7 +6907,7 @@ public StartDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id public StartDatafeedDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public StartDatafeedDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public StartDatafeedDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public StartDatafeedDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6935,7 +6918,7 @@ public StartDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id public partial class StopDatafeedDescriptor : RequestDescriptorBase, IStopDatafeedRequest { Id IStopDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); - /// /_xpack/ml/datafeeds/{datafeed_id}/_stop + /// /_xpack/ml/datafeeds/{datafeed_id}/_stop /// this parameter is required public StopDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} @@ -6951,7 +6934,7 @@ public StopDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id" public StopDatafeedDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public StopDatafeedDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public StopDatafeedDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public StopDatafeedDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6962,7 +6945,7 @@ public StopDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id" public partial class UpdateDatafeedDescriptor : RequestDescriptorBase,UpdateDatafeedRequestParameters, IUpdateDatafeedRequest>, IUpdateDatafeedRequest { Id IUpdateDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); - /// /_xpack/ml/datafeeds/{datafeed_id}/_update. Will infer the index and type from the generic type + /// /_xpack/ml/datafeeds/{datafeed_id}/_update. Will infer the index and type from the generic type /// this parameter is required public UpdateDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){ Self.Indices = typeof(T); Self.Types = typeof(T); } @@ -6978,7 +6961,7 @@ public partial class UpdateDatafeedDescriptor : RequestDescriptorBase ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpdateDatafeedDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpdateDatafeedDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpdateDatafeedDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -6989,7 +6972,7 @@ public partial class UpdateDatafeedDescriptor : RequestDescriptorBase : RequestDescriptorBase,UpdateJobRequestParameters, IUpdateJobRequest>, IUpdateJobRequest { Id IUpdateJobRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/_update + /// /_xpack/ml/anomaly_detectors/{job_id}/_update /// this parameter is required public UpdateJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -7005,7 +6988,7 @@ public UpdateJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} public UpdateJobDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpdateJobDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpdateJobDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpdateJobDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7017,8 +7000,8 @@ public partial class UpdateModelSnapshotDescriptor : RequestDescriptorBase Self.RouteValues.Get("job_id"); Id IUpdateModelSnapshotRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update -/// this parameter is required + /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update +/// this parameter is required /// this parameter is required public UpdateModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Required("job_id", job_id).Required("snapshot_id", snapshot_id)){} @@ -7034,7 +7017,7 @@ public UpdateModelSnapshotDescriptor(Id job_id, Id snapshot_id) : base(r=>r.Requ public UpdateModelSnapshotDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public UpdateModelSnapshotDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public UpdateModelSnapshotDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public UpdateModelSnapshotDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7055,7 +7038,7 @@ public partial class ValidateJobDescriptor : RequestDescriptorBase ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ValidateJobDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ValidateJobDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ValidateJobDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7076,14 +7059,14 @@ public partial class ValidateDetectorDescriptor : RequestDescriptorBase ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ValidateDetectorDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ValidateDetectorDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ValidateDetectorDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityAuthenticate
https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html
+ ///descriptor for XpackSecurityAuthenticate
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html
public partial class AuthenticateDescriptor : RequestDescriptorBase, IAuthenticateRequest { @@ -7097,14 +7080,14 @@ public partial class AuthenticateDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public AuthenticateDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public AuthenticateDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public AuthenticateDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityChangePassword
https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html
+ ///descriptor for XpackSecurityChangePassword
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html
public partial class ChangePasswordDescriptor : RequestDescriptorBase, IChangePasswordRequest { Name IChangePasswordRequest.Username => Self.RouteValues.Get("username"); @@ -7129,18 +7112,18 @@ public ChangePasswordDescriptor() : base(){} public ChangePasswordDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ChangePasswordDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ChangePasswordDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ChangePasswordDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityClearCachedRealms
https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html
+ ///descriptor for XpackSecurityClearCachedRealms
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html
public partial class ClearCachedRealmsDescriptor : RequestDescriptorBase, IClearCachedRealmsRequest { Names IClearCachedRealmsRequest.Realms => Self.RouteValues.Get("realms"); - /// /_xpack/security/realm/{realms}/_clear_cache + /// /_xpack/security/realm/{realms}/_clear_cache /// this parameter is required public ClearCachedRealmsDescriptor(Names realms) : base(r=>r.Required("realms", realms)){} @@ -7159,18 +7142,18 @@ public ClearCachedRealmsDescriptor(Names realms) : base(r=>r.Required("realms", public ClearCachedRealmsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClearCachedRealmsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClearCachedRealmsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClearCachedRealmsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache
+ ///descriptor for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache
public partial class ClearCachedRolesDescriptor : RequestDescriptorBase, IClearCachedRolesRequest { Names IClearCachedRolesRequest.Name => Self.RouteValues.Get("name"); - /// /_xpack/security/role/{name}/_clear_cache + /// /_xpack/security/role/{name}/_clear_cache /// this parameter is required public ClearCachedRolesDescriptor(Names name) : base(r=>r.Required("name", name)){} @@ -7186,18 +7169,18 @@ public ClearCachedRolesDescriptor(Names name) : base(r=>r.Required("name", name) public ClearCachedRolesDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ClearCachedRolesDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ClearCachedRolesDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ClearCachedRolesDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-delete-role
+ ///descriptor for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role
public partial class DeleteRoleDescriptor : RequestDescriptorBase, IDeleteRoleRequest { Name IDeleteRoleRequest.Name => Self.RouteValues.Get("name"); - /// /_xpack/security/role/{name} + /// /_xpack/security/role/{name} /// this parameter is required public DeleteRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} @@ -7216,18 +7199,18 @@ public DeleteRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} public DeleteRoleDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteRoleDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteRoleDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteRoleDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-delete-role-mapping
+ ///descriptor for XpackSecurityDeleteRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping
public partial class DeleteRoleMappingDescriptor : RequestDescriptorBase, IDeleteRoleMappingRequest { Name IDeleteRoleMappingRequest.Name => Self.RouteValues.Get("name"); - /// /_xpack/security/role_mapping/{name} + /// /_xpack/security/role_mapping/{name} /// this parameter is required public DeleteRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)){} @@ -7246,18 +7229,18 @@ public DeleteRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name) public DeleteRoleMappingDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteRoleMappingDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteRoleMappingDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteRoleMappingDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-delete-user
+ ///descriptor for XpackSecurityDeleteUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user
public partial class DeleteUserDescriptor : RequestDescriptorBase, IDeleteUserRequest { Name IDeleteUserRequest.Username => Self.RouteValues.Get("username"); - /// /_xpack/security/user/{username} + /// /_xpack/security/user/{username} /// this parameter is required public DeleteUserDescriptor(Name username) : base(r=>r.Required("username", username)){} @@ -7276,14 +7259,14 @@ public DeleteUserDescriptor(Name username) : base(r=>r.Required("username", user public DeleteUserDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteUserDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteUserDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteUserDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityDisableUser
https://www.elastic.co/guide/en/x-pack/master/security-api-disable-user.html
+ ///descriptor for XpackSecurityDisableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user
public partial class DisableUserDescriptor : RequestDescriptorBase, IDisableUserRequest { Name IDisableUserRequest.Username => Self.RouteValues.Get("username"); @@ -7308,14 +7291,14 @@ public DisableUserDescriptor() : base(){} public DisableUserDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DisableUserDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DisableUserDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DisableUserDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityEnableUser
https://www.elastic.co/guide/en/x-pack/master/security-api-enable-user.html
+ ///descriptor for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user
public partial class EnableUserDescriptor : RequestDescriptorBase, IEnableUserRequest { Name IEnableUserRequest.Username => Self.RouteValues.Get("username"); @@ -7340,14 +7323,14 @@ public EnableUserDescriptor() : base(){} public EnableUserDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public EnableUserDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public EnableUserDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public EnableUserDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityGetRole
https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-get-role
+ ///descriptor for XpackSecurityGetRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role
public partial class GetRoleDescriptor : RequestDescriptorBase, IGetRoleRequest { Name IGetRoleRequest.Name => Self.RouteValues.Get("name"); @@ -7369,14 +7352,14 @@ public GetRoleDescriptor() : base(){} public GetRoleDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetRoleDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetRoleDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetRoleDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-get-role-mapping
+ ///descriptor for XpackSecurityGetRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping
public partial class GetRoleMappingDescriptor : RequestDescriptorBase, IGetRoleMappingRequest { Name IGetRoleMappingRequest.Name => Self.RouteValues.Get("name"); @@ -7398,14 +7381,14 @@ public GetRoleMappingDescriptor() : base(){} public GetRoleMappingDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetRoleMappingDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetRoleMappingDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetRoleMappingDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityGetToken
https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-get-token
+ ///descriptor for XpackSecurityGetToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token
public partial class GetUserAccessTokenDescriptor : RequestDescriptorBase, IGetUserAccessTokenRequest { @@ -7419,14 +7402,14 @@ public partial class GetUserAccessTokenDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetUserAccessTokenDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetUserAccessTokenDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetUserAccessTokenDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityGetUser
https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-get-user
+ ///descriptor for XpackSecurityGetUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user
public partial class GetUserDescriptor : RequestDescriptorBase, IGetUserRequest { Names IGetUserRequest.Username => Self.RouteValues.Get("username"); @@ -7448,14 +7431,14 @@ public GetUserDescriptor() : base(){} public GetUserDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetUserDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetUserDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetUserDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/x-pack/master/security-api-tokens.html#security-api-invalidate-token
+ ///descriptor for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token
public partial class InvalidateUserAccessTokenDescriptor : RequestDescriptorBase, IInvalidateUserAccessTokenRequest { @@ -7469,18 +7452,18 @@ public partial class InvalidateUserAccessTokenDescriptor : RequestDescriptorBas public InvalidateUserAccessTokenDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public InvalidateUserAccessTokenDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public InvalidateUserAccessTokenDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public InvalidateUserAccessTokenDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityPutRole
https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-put-role
+ ///descriptor for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role
public partial class PutRoleDescriptor : RequestDescriptorBase, IPutRoleRequest { Name IPutRoleRequest.Name => Self.RouteValues.Get("name"); - /// /_xpack/security/role/{name} + /// /_xpack/security/role/{name} /// this parameter is required public PutRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} @@ -7499,18 +7482,18 @@ public PutRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} public PutRoleDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutRoleDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutRoleDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutRoleDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/x-pack/master/security-api-role-mapping.html#security-api-put-role-mapping
+ ///descriptor for XpackSecurityPutRoleMapping
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping
public partial class PutRoleMappingDescriptor : RequestDescriptorBase, IPutRoleMappingRequest { Name IPutRoleMappingRequest.Name => Self.RouteValues.Get("name"); - /// /_xpack/security/role_mapping/{name} + /// /_xpack/security/role_mapping/{name} /// this parameter is required public PutRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)){} @@ -7529,18 +7512,18 @@ public PutRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)){} public PutRoleMappingDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutRoleMappingDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutRoleMappingDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutRoleMappingDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); } - ///descriptor for XpackSecurityPutUser
https://www.elastic.co/guide/en/x-pack/master/security-api-users.html#security-api-put-user
+ ///descriptor for XpackSecurityPutUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user
public partial class PutUserDescriptor : RequestDescriptorBase, IPutUserRequest { Name IPutUserRequest.Username => Self.RouteValues.Get("username"); - /// /_xpack/security/user/{username} + /// /_xpack/security/user/{username} /// this parameter is required public PutUserDescriptor(Name username) : base(r=>r.Required("username", username)){} @@ -7559,7 +7542,7 @@ public PutUserDescriptor(Name username) : base(r=>r.Required("username", usernam public PutUserDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutUserDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutUserDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutUserDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7571,7 +7554,7 @@ public partial class AcknowledgeWatchDescriptor : RequestDescriptorBase Self.RouteValues.Get("watch_id"); ActionIds IAcknowledgeWatchRequest.ActionId => Self.RouteValues.Get("action_id"); - /// /_xpack/watcher/watch/{watch_id}/_ack + /// /_xpack/watcher/watch/{watch_id}/_ack /// this parameter is required public AcknowledgeWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} @@ -7593,7 +7576,7 @@ public AcknowledgeWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", public AcknowledgeWatchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public AcknowledgeWatchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public AcknowledgeWatchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public AcknowledgeWatchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7604,7 +7587,7 @@ public AcknowledgeWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", public partial class ActivateWatchDescriptor : RequestDescriptorBase, IActivateWatchRequest { Id IActivateWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); - /// /_xpack/watcher/watch/{watch_id}/_activate + /// /_xpack/watcher/watch/{watch_id}/_activate /// this parameter is required public ActivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} @@ -7623,7 +7606,7 @@ public ActivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", wat public ActivateWatchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ActivateWatchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ActivateWatchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ActivateWatchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7634,7 +7617,7 @@ public ActivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", wat public partial class DeactivateWatchDescriptor : RequestDescriptorBase, IDeactivateWatchRequest { Id IDeactivateWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); - /// /_xpack/watcher/watch/{watch_id}/_deactivate + /// /_xpack/watcher/watch/{watch_id}/_deactivate /// this parameter is required public DeactivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} @@ -7653,7 +7636,7 @@ public DeactivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", w public DeactivateWatchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeactivateWatchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeactivateWatchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeactivateWatchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7664,7 +7647,7 @@ public DeactivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", w public partial class DeleteWatchDescriptor : RequestDescriptorBase, IDeleteWatchRequest { Id IDeleteWatchRequest.Id => Self.RouteValues.Get("id"); - /// /_xpack/watcher/watch/{id} + /// /_xpack/watcher/watch/{id} /// this parameter is required public DeleteWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} @@ -7683,7 +7666,7 @@ public DeleteWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} public DeleteWatchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public DeleteWatchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public DeleteWatchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public DeleteWatchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7715,7 +7698,7 @@ public ExecuteWatchDescriptor() : base(){} public ExecuteWatchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public ExecuteWatchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public ExecuteWatchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public ExecuteWatchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7726,7 +7709,7 @@ public ExecuteWatchDescriptor() : base(){} public partial class GetWatchDescriptor : RequestDescriptorBase, IGetWatchRequest { Id IGetWatchRequest.Id => Self.RouteValues.Get("id"); - /// /_xpack/watcher/watch/{id} + /// /_xpack/watcher/watch/{id} /// this parameter is required public GetWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} @@ -7742,7 +7725,7 @@ public GetWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} public GetWatchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public GetWatchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public GetWatchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public GetWatchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7753,7 +7736,7 @@ public GetWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} public partial class PutWatchDescriptor : RequestDescriptorBase, IPutWatchRequest { Id IPutWatchRequest.Id => Self.RouteValues.Get("id"); - /// /_xpack/watcher/watch/{id} + /// /_xpack/watcher/watch/{id} /// this parameter is required public PutWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} @@ -7775,7 +7758,7 @@ public PutWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} public PutWatchDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public PutWatchDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public PutWatchDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public PutWatchDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7796,7 +7779,7 @@ public partial class RestartWatcherDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public RestartWatcherDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public RestartWatcherDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public RestartWatcherDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7817,7 +7800,7 @@ public partial class StartWatcherDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public StartWatcherDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public StartWatcherDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public StartWatcherDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7836,6 +7819,9 @@ public WatcherStatsDescriptor() : base(){} public WatcherStatsDescriptor WatcherStatsMetric(WatcherStatsMetric watcherStatsMetric) => Assign(a=>a.RouteValues.Optional("watcher_stats_metric", (Metrics)watcherStatsMetric)); + ///Emits stack traces of currently running watches + public WatcherStatsDescriptor EmitStacktraces(bool emit_stacktraces = true) => AssignParam(p=>p.EmitStacktraces(emit_stacktraces)); + ///Pretty format the returned JSON response. public WatcherStatsDescriptor Pretty(bool pretty = true) => AssignParam(p=>p.Pretty(pretty)); @@ -7846,7 +7832,7 @@ public WatcherStatsDescriptor() : base(){} public WatcherStatsDescriptor ErrorTrace(bool error_trace = true) => AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public WatcherStatsDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public WatcherStatsDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public WatcherStatsDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); @@ -7867,7 +7853,7 @@ public partial class StopWatcherDescriptor : RequestDescriptorBase AssignParam(p=>p.ErrorTrace(error_trace)); ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public StopWatcherDescriptor Source(string source) => AssignParam(p=>p.Source(source)); + public StopWatcherDescriptor SourceQueryString(string source) => AssignParam(p=>p.Source(source)); ///A comma-separated list of filters used to reduce the respone. public StopWatcherDescriptor FilterPath(params string[] filter_path) => AssignParam(p=>p.FilterPath(filter_path)); diff --git a/src/Nest/_Generated/_LowLevelDispatch.generated.cs b/src/Nest/_Generated/_LowLevelDispatch.generated.cs index 450044c29cf..728b6c658c2 100644 --- a/src/Nest/_Generated/_LowLevelDispatch.generated.cs +++ b/src/Nest/_Generated/_LowLevelDispatch.generated.cs @@ -427,7 +427,7 @@ internal ElasticsearchResponse CatSnapshotsDispatch(IRequest(p.RouteValues.Repository,u => p.RequestParameters); + if (AllSet(p.RouteValues.Repository)) return _lowLevel.CatSnapshots(p.RouteValues.Repository,u => p.RequestParameters); return _lowLevel.CatSnapshots(u => p.RequestParameters); } @@ -439,7 +439,7 @@ internal Task> CatSnapshotsDispatchAsync(IRequest(p.RouteValues.Repository,u => p.RequestParameters,cancellationToken); + if (AllSet(p.RouteValues.Repository)) return _lowLevel.CatSnapshotsAsync(p.RouteValues.Repository,u => p.RequestParameters,cancellationToken); return _lowLevel.CatSnapshotsAsync(u => p.RequestParameters,cancellationToken); } @@ -656,6 +656,28 @@ internal Task> ClusterPutSettingsDispatchAsync(IRequ throw InvalidDispatch("ClusterPutSettings", p, new [] { PUT }, "/_cluster/settings"); } + internal ElasticsearchResponse ClusterRemoteInfoDispatch(IRequest p ) where T : class + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.ClusterRemoteInfo(u => p.RequestParameters); + + } + throw InvalidDispatch("ClusterRemoteInfo", p, new [] { GET }, "/_remote/info"); + } + + internal Task> ClusterRemoteInfoDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.ClusterRemoteInfoAsync(u => p.RequestParameters,cancellationToken); + + } + throw InvalidDispatch("ClusterRemoteInfo", p, new [] { GET }, "/_remote/info"); + } + internal ElasticsearchResponse ClusterRerouteDispatch(IRequest p , PostData body) where T : class { switch(p.HttpMethod) @@ -851,12 +873,11 @@ internal ElasticsearchResponse DeleteScriptDispatch(IRequest(p.RouteValues.Lang,p.RouteValues.Id,u => p.RequestParameters); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.DeleteScript(p.RouteValues.Lang,u => p.RequestParameters); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.DeleteScript(p.RouteValues.Id,u => p.RequestParameters); break; } - throw InvalidDispatch("DeleteScript", p, new [] { DELETE }, "/_scripts/{lang}", "/_scripts/{lang}/{id}"); + throw InvalidDispatch("DeleteScript", p, new [] { DELETE }, "/_scripts/{id}"); } internal Task> DeleteScriptDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class @@ -864,36 +885,11 @@ internal Task> DeleteScriptDispatchAsync(IRequest(p.RouteValues.Lang,p.RouteValues.Id,u => p.RequestParameters,cancellationToken); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.DeleteScriptAsync(p.RouteValues.Lang,u => p.RequestParameters,cancellationToken); - break; - - } - throw InvalidDispatch("DeleteScript", p, new [] { DELETE }, "/_scripts/{lang}", "/_scripts/{lang}/{id}"); - } - - internal ElasticsearchResponse DeleteTemplateDispatch(IRequest p ) where T : class - { - switch(p.HttpMethod) - { - case DELETE: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.DeleteTemplate(p.RouteValues.Id,u => p.RequestParameters); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.DeleteScriptAsync(p.RouteValues.Id,u => p.RequestParameters,cancellationToken); break; } - throw InvalidDispatch("DeleteTemplate", p, new [] { DELETE }, "/_search/template/{id}"); - } - - internal Task> DeleteTemplateDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class - { - switch(p.HttpMethod) - { - case DELETE: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.DeleteTemplateAsync(p.RouteValues.Id,u => p.RequestParameters,cancellationToken); - break; - - } - throw InvalidDispatch("DeleteTemplate", p, new [] { DELETE }, "/_search/template/{id}"); + throw InvalidDispatch("DeleteScript", p, new [] { DELETE }, "/_scripts/{id}"); } internal ElasticsearchResponse ExistsDispatch(IRequest p ) where T : class @@ -1008,38 +1004,6 @@ internal Task> FieldCapsDispatchAsync(IRequest FieldStatsDispatch(IRequest p , PostData body) where T : class - { - switch(p.HttpMethod) - { - case GET: - if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldStatsGet(p.RouteValues.Index,u => p.RequestParameters); - return _lowLevel.FieldStatsGet(u => p.RequestParameters); - - case POST: - if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldStats(p.RouteValues.Index,body,u => p.RequestParameters); - return _lowLevel.FieldStats(body,u => p.RequestParameters); - - } - throw InvalidDispatch("FieldStats", p, new [] { GET, POST }, "/_field_stats", "/{index}/_field_stats"); - } - - internal Task> FieldStatsDispatchAsync(IRequest p , PostData body, CancellationToken cancellationToken) where T : class - { - switch(p.HttpMethod) - { - case GET: - if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldStatsGetAsync(p.RouteValues.Index,u => p.RequestParameters,cancellationToken); - return _lowLevel.FieldStatsGetAsync(u => p.RequestParameters,cancellationToken); - - case POST: - if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldStatsAsync(p.RouteValues.Index,body,u => p.RequestParameters,cancellationToken); - return _lowLevel.FieldStatsAsync(body,u => p.RequestParameters,cancellationToken); - - } - throw InvalidDispatch("FieldStats", p, new [] { GET, POST }, "/_field_stats", "/{index}/_field_stats"); - } - internal ElasticsearchResponse GetDispatch(IRequest p ) where T : class { switch(p.HttpMethod) @@ -1069,12 +1033,11 @@ internal ElasticsearchResponse GetScriptDispatch(IRequest(p.RouteValues.Lang,p.RouteValues.Id,u => p.RequestParameters); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.GetScript(p.RouteValues.Lang,u => p.RequestParameters); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.GetScript(p.RouteValues.Id,u => p.RequestParameters); break; } - throw InvalidDispatch("GetScript", p, new [] { GET }, "/_scripts/{lang}", "/_scripts/{lang}/{id}"); + throw InvalidDispatch("GetScript", p, new [] { GET }, "/_scripts/{id}"); } internal Task> GetScriptDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class @@ -1082,12 +1045,11 @@ internal Task> GetScriptDispatchAsync(IRequest(p.RouteValues.Lang,p.RouteValues.Id,u => p.RequestParameters,cancellationToken); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.GetScriptAsync(p.RouteValues.Lang,u => p.RequestParameters,cancellationToken); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.GetScriptAsync(p.RouteValues.Id,u => p.RequestParameters,cancellationToken); break; } - throw InvalidDispatch("GetScript", p, new [] { GET }, "/_scripts/{lang}", "/_scripts/{lang}/{id}"); + throw InvalidDispatch("GetScript", p, new [] { GET }, "/_scripts/{id}"); } internal ElasticsearchResponse GetSourceDispatch(IRequest p ) where T : class @@ -1114,30 +1076,6 @@ internal Task> GetSourceDispatchAsync(IRequest GetTemplateDispatch(IRequest p ) where T : class - { - switch(p.HttpMethod) - { - case GET: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.GetTemplate(p.RouteValues.Id,u => p.RequestParameters); - break; - - } - throw InvalidDispatch("GetTemplate", p, new [] { GET }, "/_search/template/{id}"); - } - - internal Task> GetTemplateDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class - { - switch(p.HttpMethod) - { - case GET: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.GetTemplateAsync(p.RouteValues.Id,u => p.RequestParameters,cancellationToken); - break; - - } - throw InvalidDispatch("GetTemplate", p, new [] { GET }, "/_search/template/{id}"); - } - internal ElasticsearchResponse IndexDispatch(IRequest p , PostData body) where T : class { switch(p.HttpMethod) @@ -1549,12 +1487,11 @@ internal ElasticsearchResponse IndicesGetDispatch(IRequest(p.RouteValues.Index,p.RouteValues.Feature,u => p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesGet(p.RouteValues.Index,u => p.RequestParameters); break; } - throw InvalidDispatch("IndicesGet", p, new [] { GET }, "/{index}", "/{index}/{feature}"); + throw InvalidDispatch("IndicesGet", p, new [] { GET }, "/{index}"); } internal Task> IndicesGetDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class @@ -1562,12 +1499,11 @@ internal Task> IndicesGetDispatchAsync(IRequest(p.RouteValues.Index,p.RouteValues.Feature,u => p.RequestParameters,cancellationToken); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesGetAsync(p.RouteValues.Index,u => p.RequestParameters,cancellationToken); break; } - throw InvalidDispatch("IndicesGet", p, new [] { GET }, "/{index}", "/{index}/{feature}"); + throw InvalidDispatch("IndicesGet", p, new [] { GET }, "/{index}"); } internal ElasticsearchResponse IndicesGetAliasDispatch(IRequest p ) where T : class @@ -2222,6 +2158,28 @@ internal Task> IngestGetPipelineDispatchAsync(IReque throw InvalidDispatch("IngestGetPipeline", p, new [] { GET }, "/_ingest/pipeline", "/_ingest/pipeline/{id}"); } + internal ElasticsearchResponse IngestProcessorGrokDispatch(IRequest p ) where T : class + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.IngestProcessorGrok(u => p.RequestParameters); + + } + throw InvalidDispatch("IngestProcessorGrok", p, new [] { GET }, "/_ingest/processor/grok"); + } + + internal Task> IngestProcessorGrokDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.IngestProcessorGrokAsync(u => p.RequestParameters,cancellationToken); + + } + throw InvalidDispatch("IngestProcessorGrok", p, new [] { GET }, "/_ingest/processor/grok"); + } + internal ElasticsearchResponse IngestPutPipelineDispatch(IRequest p , PostData body) where T : class { switch(p.HttpMethod) @@ -2506,94 +2464,90 @@ internal Task> NodesStatsDispatchAsync(IRequest PingDispatch(IRequest p ) where T : class + internal ElasticsearchResponse NodesUsageDispatch(IRequest p ) where T : class { switch(p.HttpMethod) { - case HEAD: - return _lowLevel.Ping(u => p.RequestParameters); + case GET: + if (AllSet(p.RouteValues.NodeId, p.RouteValues.Metric)) return _lowLevel.NodesUsage(p.RouteValues.NodeId,p.RouteValues.Metric,u => p.RequestParameters); + if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesUsage(p.RouteValues.NodeId,u => p.RequestParameters); + if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesUsageForAll(p.RouteValues.Metric,u => p.RequestParameters); + return _lowLevel.NodesUsageForAll(u => p.RequestParameters); } - throw InvalidDispatch("Ping", p, new [] { HEAD }, "/"); + throw InvalidDispatch("NodesUsage", p, new [] { GET }, "/_nodes/usage", "/_nodes/{node_id}/usage", "/_nodes/usage/{metric}", "/_nodes/{node_id}/usage/{metric}"); } - internal Task> PingDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class + internal Task> NodesUsageDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class { switch(p.HttpMethod) { - case HEAD: - return _lowLevel.PingAsync(u => p.RequestParameters,cancellationToken); + case GET: + if (AllSet(p.RouteValues.NodeId, p.RouteValues.Metric)) return _lowLevel.NodesUsageAsync(p.RouteValues.NodeId,p.RouteValues.Metric,u => p.RequestParameters,cancellationToken); + if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesUsageAsync(p.RouteValues.NodeId,u => p.RequestParameters,cancellationToken); + if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesUsageForAllAsync(p.RouteValues.Metric,u => p.RequestParameters,cancellationToken); + return _lowLevel.NodesUsageForAllAsync(u => p.RequestParameters,cancellationToken); } - throw InvalidDispatch("Ping", p, new [] { HEAD }, "/"); + throw InvalidDispatch("NodesUsage", p, new [] { GET }, "/_nodes/usage", "/_nodes/{node_id}/usage", "/_nodes/usage/{metric}", "/_nodes/{node_id}/usage/{metric}"); } - internal ElasticsearchResponse PutScriptDispatch(IRequest p , PostData body) where T : class + internal ElasticsearchResponse PingDispatch(IRequest p ) where T : class { switch(p.HttpMethod) { - case PUT: - if (AllSetNoFallback(p.RouteValues.Lang, p.RouteValues.Id)) return _lowLevel.PutScript(p.RouteValues.Lang,p.RouteValues.Id,body,u => p.RequestParameters); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.PutScript(p.RouteValues.Lang,body,u => p.RequestParameters); - break; - - case POST: - if (AllSetNoFallback(p.RouteValues.Lang, p.RouteValues.Id)) return _lowLevel.PutScriptPost(p.RouteValues.Lang,p.RouteValues.Id,body,u => p.RequestParameters); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.PutScriptPost(p.RouteValues.Lang,body,u => p.RequestParameters); - break; + case HEAD: + return _lowLevel.Ping(u => p.RequestParameters); } - throw InvalidDispatch("PutScript", p, new [] { PUT, POST }, "/_scripts/{lang}", "/_scripts/{lang}/{id}"); + throw InvalidDispatch("Ping", p, new [] { HEAD }, "/"); } - internal Task> PutScriptDispatchAsync(IRequest p , PostData body, CancellationToken cancellationToken) where T : class + internal Task> PingDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class { switch(p.HttpMethod) { - case PUT: - if (AllSetNoFallback(p.RouteValues.Lang, p.RouteValues.Id)) return _lowLevel.PutScriptAsync(p.RouteValues.Lang,p.RouteValues.Id,body,u => p.RequestParameters,cancellationToken); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.PutScriptAsync(p.RouteValues.Lang,body,u => p.RequestParameters,cancellationToken); - break; - - case POST: - if (AllSetNoFallback(p.RouteValues.Lang, p.RouteValues.Id)) return _lowLevel.PutScriptPostAsync(p.RouteValues.Lang,p.RouteValues.Id,body,u => p.RequestParameters,cancellationToken); - if (AllSetNoFallback(p.RouteValues.Lang)) return _lowLevel.PutScriptPostAsync(p.RouteValues.Lang,body,u => p.RequestParameters,cancellationToken); - break; + case HEAD: + return _lowLevel.PingAsync(u => p.RequestParameters,cancellationToken); } - throw InvalidDispatch("PutScript", p, new [] { PUT, POST }, "/_scripts/{lang}", "/_scripts/{lang}/{id}"); + throw InvalidDispatch("Ping", p, new [] { HEAD }, "/"); } - internal ElasticsearchResponse PutTemplateDispatch(IRequest p , PostData body) where T : class + internal ElasticsearchResponse PutScriptDispatch(IRequest p , PostData body) where T : class { switch(p.HttpMethod) { case PUT: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutTemplate(p.RouteValues.Id,body,u => p.RequestParameters); + if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScript(p.RouteValues.Id,p.RouteValues.Context,body,u => p.RequestParameters); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScript(p.RouteValues.Id,body,u => p.RequestParameters); break; case POST: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutTemplatePost(p.RouteValues.Id,body,u => p.RequestParameters); + if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScriptPost(p.RouteValues.Id,p.RouteValues.Context,body,u => p.RequestParameters); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScriptPost(p.RouteValues.Id,body,u => p.RequestParameters); break; } - throw InvalidDispatch("PutTemplate", p, new [] { PUT, POST }, "/_search/template/{id}"); + throw InvalidDispatch("PutScript", p, new [] { PUT, POST }, "/_scripts/{id}", "/_scripts/{id}/{context}"); } - internal Task> PutTemplateDispatchAsync(IRequest p , PostData body, CancellationToken cancellationToken) where T : class + internal Task> PutScriptDispatchAsync(IRequest p , PostData body, CancellationToken cancellationToken) where T : class { switch(p.HttpMethod) { case PUT: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutTemplateAsync(p.RouteValues.Id,body,u => p.RequestParameters,cancellationToken); + if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScriptAsync(p.RouteValues.Id,p.RouteValues.Context,body,u => p.RequestParameters,cancellationToken); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScriptAsync(p.RouteValues.Id,body,u => p.RequestParameters,cancellationToken); break; case POST: - if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutTemplatePostAsync(p.RouteValues.Id,body,u => p.RequestParameters,cancellationToken); + if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScriptPostAsync(p.RouteValues.Id,p.RouteValues.Context,body,u => p.RequestParameters,cancellationToken); + if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScriptPostAsync(p.RouteValues.Id,body,u => p.RequestParameters,cancellationToken); break; } - throw InvalidDispatch("PutTemplate", p, new [] { PUT, POST }, "/_search/template/{id}"); + throw InvalidDispatch("PutScript", p, new [] { PUT, POST }, "/_scripts/{id}", "/_scripts/{id}/{context}"); } internal ElasticsearchResponse ReindexDispatch(IRequest p , PostData body) where T : class @@ -2642,28 +2596,6 @@ internal Task> ReindexRethrottleDispatchAsync(IReque throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle"); } - internal ElasticsearchResponse RemoteInfoDispatch(IRequest p ) where T : class - { - switch(p.HttpMethod) - { - case GET: - return _lowLevel.RemoteInfo(u => p.RequestParameters); - - } - throw InvalidDispatch("RemoteInfo", p, new [] { GET }, "/_remote/info"); - } - - internal Task> RemoteInfoDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class - { - switch(p.HttpMethod) - { - case GET: - return _lowLevel.RemoteInfoAsync(u => p.RequestParameters,cancellationToken); - - } - throw InvalidDispatch("RemoteInfo", p, new [] { GET }, "/_remote/info"); - } - internal ElasticsearchResponse RenderSearchTemplateDispatch(IRequest p , PostData body) where T : class { switch(p.HttpMethod) @@ -3233,7 +3165,7 @@ internal ElasticsearchResponse XpackGraphExploreDispatch(IRequest> XpackGraphExploreDispatchAsync(IRequest p , PostData body, CancellationToken cancellationToken) where T : class @@ -3251,7 +3183,31 @@ internal Task> XpackGraphExploreDispatchAsync(IReque break; } - throw InvalidDispatch("XpackGraphExplore", p, new [] { GET, POST }, "/{index}/_xpack/_graph/_explore", "/{index}/{type}/_xpack/_graph/_explore"); + throw InvalidDispatch("XpackGraphExplore", p, new [] { GET, POST }, "/{index}/_xpack/graph/_explore", "/{index}/{type}/_xpack/graph/_explore"); + } + + internal ElasticsearchResponse XpackDeprecationInfoDispatch(IRequest p ) where T : class + { + switch(p.HttpMethod) + { + case GET: + if (AllSet(p.RouteValues.Index)) return _lowLevel.XpackDeprecationInfo(p.RouteValues.Index,u => p.RequestParameters); + return _lowLevel.XpackDeprecationInfo(u => p.RequestParameters); + + } + throw InvalidDispatch("XpackDeprecationInfo", p, new [] { GET }, "/_xpack/migration/deprecations", "/{index}/_xpack/migration/deprecations"); + } + + internal Task> XpackDeprecationInfoDispatchAsync(IRequest p , CancellationToken cancellationToken) where T : class + { + switch(p.HttpMethod) + { + case GET: + if (AllSet(p.RouteValues.Index)) return _lowLevel.XpackDeprecationInfoAsync(p.RouteValues.Index,u => p.RequestParameters,cancellationToken); + return _lowLevel.XpackDeprecationInfoAsync(u => p.RequestParameters,cancellationToken); + + } + throw InvalidDispatch("XpackDeprecationInfo", p, new [] { GET }, "/_xpack/migration/deprecations", "/{index}/_xpack/migration/deprecations"); } internal ElasticsearchResponse XpackInfoDispatch(IRequest p ) where T : class diff --git a/src/Nest/_Generated/_Requests.generated.cs b/src/Nest/_Generated/_Requests.generated.cs index 4ab876cc4fc..3ea79e795ff 100644 --- a/src/Nest/_Generated/_Requests.generated.cs +++ b/src/Nest/_Generated/_Requests.generated.cs @@ -27,13 +27,13 @@ public partial class AcknowledgeWatchRequest : PlainRequestBase this; Id IAcknowledgeWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); ActionIds IAcknowledgeWatchRequest.ActionId => Self.RouteValues.Get("action_id"); - /// /_xpack/watcher/watch/{watch_id}/_ack + /// /_xpack/watcher/watch/{watch_id}/_ack ///this parameter is required public AcknowledgeWatchRequest(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} - /// /_xpack/watcher/watch/{watch_id}/_ack/{action_id} -///this parameter is required + /// /_xpack/watcher/watch/{watch_id}/_ack/{action_id} +///this parameter is required ///Optional, accepts null public AcknowledgeWatchRequest(Id watch_id, ActionIds action_id) : base(r=>r.Required("watch_id", watch_id).Optional("action_id", action_id)){} @@ -51,7 +51,7 @@ public AcknowledgeWatchRequest(Id watch_id, ActionIds action_id) : base(r=>r.Req public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -68,7 +68,7 @@ public partial class ActivateWatchRequest : PlainRequestBase this; Id IActivateWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); - /// /_xpack/watcher/watch/{watch_id}/_activate + /// /_xpack/watcher/watch/{watch_id}/_activate ///this parameter is required public ActivateWatchRequest(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} @@ -86,7 +86,7 @@ public ActivateWatchRequest(Id watch_id) : base(r=>r.Required("watch_id", watch_ public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -105,13 +105,13 @@ public partial class AliasExistsRequest : PlainRequestBase this; Indices IAliasExistsRequest.Index => Self.RouteValues.Get("index"); Names IAliasExistsRequest.Name => Self.RouteValues.Get("name"); - /// /_alias/{name} + /// /_alias/{name} ///Optional, accepts null public AliasExistsRequest(Names name) : base(r=>r.Optional("name", name)){} - /// /{index}/_alias/{name} -///Optional, accepts null + /// /{index}/_alias/{name} +///Optional, accepts null ///Optional, accepts null public AliasExistsRequest(Indices index, Names name) : base(r=>r.Optional("index", index).Optional("name", name)){} @@ -138,7 +138,7 @@ public AliasExistsRequest(Indices index, Names name) : base(r=>r.Optional("index public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -159,7 +159,7 @@ public partial class AnalyzeRequest : PlainRequestBase/{index}/_analyze + /// /{index}/_analyze ///Optional, accepts null public AnalyzeRequest(IndexName index) : base(r=>r.Optional("index", index)){} @@ -180,7 +180,7 @@ public AnalyzeRequest(IndexName index) : base(r=>r.Optional("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -191,7 +191,7 @@ public AnalyzeRequest(IndexName index) : base(r=>r.Optional("index", index)){} public partial interface IAuthenticateRequest : IRequest { } - ///Request parameters for XpackSecurityAuthenticate
https://www.elastic.co/guide/en/x-pack/master/security-api-authenticate.html
+ ///Request parameters for XpackSecurityAuthenticate
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html
public partial class AuthenticateRequest : PlainRequestBase, IAuthenticateRequest { protected IAuthenticateRequest Self => this; @@ -205,7 +205,7 @@ public partial class AuthenticateRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -236,7 +236,7 @@ public partial class BulkAliasRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -259,13 +259,13 @@ public partial class BulkRequest : PlainRequestBase, IBu public BulkRequest() : base(){} - /// /{index}/_bulk + /// /{index}/_bulk ///Optional, accepts null public BulkRequest(IndexName index) : base(r=>r.Optional("index", index)){} - /// /{index}/{type}/_bulk -///Optional, accepts null + /// /{index}/{type}/_bulk +///Optional, accepts null ///Optional, accepts null public BulkRequest(IndexName index, TypeName type) : base(r=>r.Optional("index", index).Optional("type", type)){} @@ -307,7 +307,7 @@ public BulkRequest(IndexName index, TypeName type) : base(r=>r.Optional("index", public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -328,13 +328,13 @@ public partial class CancelTasksRequest : PlainRequestBase/_tasks/{task_id}/_cancel + /// /_tasks/{task_id}/_cancel ///Optional, accepts null public CancelTasksRequest(TaskId task_id) : base(r=>r.Optional("task_id", task_id)){} ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public string[] NodeId { get { return Q< string[]>("node_id"); } set { Q("node_id", value); } } + public string[] Nodes { get { return Q< string[]>("nodes"); } set { Q("nodes", value); } } ///A comma-separated list of actions that should be cancelled. Leave empty to cancel all. public string[] Actions { get { return Q< string[]>("actions"); } set { Q("actions", value); } } @@ -343,7 +343,7 @@ public CancelTasksRequest(TaskId task_id) : base(r=>r.Optional("task_id", task_i public string ParentNode { get { return Q("parent_node"); } set { Q("parent_node", value); } } ///Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. - public string ParentTask { get { return Q("parent_task"); } set { Q("parent_task", value); } } + public string ParentTaskId { get { return Q("parent_task_id"); } set { Q("parent_task_id", value); } } ///Pretty format the returned JSON response. public bool Pretty { get { return Q("pretty"); } set { Q("pretty", value); } } @@ -355,7 +355,7 @@ public CancelTasksRequest(TaskId task_id) : base(r=>r.Optional("task_id", task_i public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -376,7 +376,7 @@ public partial class CatAliasesRequest : PlainRequestBase/_cat/aliases/{name} + /// /_cat/aliases/{name} ///Optional, accepts null public CatAliasesRequest(Names name) : base(r=>r.Optional("name", name)){} @@ -412,7 +412,7 @@ public CatAliasesRequest(Names name) : base(r=>r.Optional("name", name)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -433,7 +433,7 @@ public partial class CatAllocationRequest : PlainRequestBase/_cat/allocation/{node_id} + /// /_cat/allocation/{node_id} ///Optional, accepts null public CatAllocationRequest(NodeIds node_id) : base(r=>r.Optional("node_id", node_id)){} @@ -472,7 +472,7 @@ public CatAllocationRequest(NodeIds node_id) : base(r=>r.Optional("node_id", nod public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -493,7 +493,7 @@ public partial class CatCountRequest : PlainRequestBase/_cat/count/{index} + /// /_cat/count/{index} ///Optional, accepts null public CatCountRequest(Indices index) : base(r=>r.Optional("index", index)){} @@ -529,7 +529,7 @@ public CatCountRequest(Indices index) : base(r=>r.Optional("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -550,7 +550,7 @@ public partial class CatFielddataRequest : PlainRequestBase/_cat/fielddata/{fields} + /// /_cat/fielddata/{fields} ///Optional, accepts null public CatFielddataRequest(Fields fields) : base(r=>r.Optional("fields", fields)){} @@ -589,7 +589,7 @@ public CatFielddataRequest(Fields fields) : base(r=>r.Optional("fields", fields) public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -638,7 +638,7 @@ public partial class CatHealthRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -669,7 +669,7 @@ public partial class CatHelpRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -690,7 +690,7 @@ public partial class CatIndicesRequest : PlainRequestBase/_cat/indices/{index} + /// /_cat/indices/{index} ///Optional, accepts null public CatIndicesRequest(Indices index) : base(r=>r.Optional("index", index)){} @@ -735,7 +735,7 @@ public CatIndicesRequest(Indices index) : base(r=>r.Optional("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -781,7 +781,7 @@ public partial class CatMasterRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -827,7 +827,7 @@ public partial class CatNodeAttributesRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -876,7 +876,7 @@ public partial class CatNodesRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -922,7 +922,7 @@ public partial class CatPendingTasksRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -968,7 +968,7 @@ public partial class CatPluginsRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -989,7 +989,7 @@ public partial class CatRecoveryRequest : PlainRequestBase/_cat/recovery/{index} + /// /_cat/recovery/{index} ///Optional, accepts null public CatRecoveryRequest(Indices index) : base(r=>r.Optional("index", index)){} @@ -1025,7 +1025,7 @@ public CatRecoveryRequest(Indices index) : base(r=>r.Optional("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1071,7 +1071,7 @@ public partial class CatRepositoriesRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1092,7 +1092,7 @@ public partial class CatSegmentsRequest : PlainRequestBase/_cat/segments/{index} + /// /_cat/segments/{index} ///Optional, accepts null public CatSegmentsRequest(Indices index) : base(r=>r.Optional("index", index)){} @@ -1100,6 +1100,9 @@ public CatSegmentsRequest(Indices index) : base(r=>r.Optional("index", index)){} ///a short version of the Accept header, e.g. json, yaml public string Format { get { return Q("format"); } set { Q("format", value); } } + ///The unit in which to display byte values + public Bytes Bytes { get { return Q("bytes"); } set { Q("bytes", value); } } + ///Comma-separated list of column names to display public string[] H { get { return Q< string[]>("h"); } set { Q("h", value); } } @@ -1122,7 +1125,7 @@ public CatSegmentsRequest(Indices index) : base(r=>r.Optional("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1143,7 +1146,7 @@ public partial class CatShardsRequest : PlainRequestBase/_cat/shards/{index} + /// /_cat/shards/{index} ///Optional, accepts null public CatShardsRequest(Indices index) : base(r=>r.Optional("index", index)){} @@ -1151,6 +1154,9 @@ public CatShardsRequest(Indices index) : base(r=>r.Optional("index", index)){} ///a short version of the Accept header, e.g. json, yaml public string Format { get { return Q("format"); } set { Q("format", value); } } + ///The unit in which to display byte values + public Bytes Bytes { get { return Q("bytes"); } set { Q("bytes", value); } } + ///Return local information, do not retrieve the state from master node (default: false) public bool Local { get { return Q("local"); } set { Q("local", value); } } @@ -1179,7 +1185,7 @@ public CatShardsRequest(Indices index) : base(r=>r.Optional("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1200,9 +1206,9 @@ public partial class CatSnapshotsRequest : PlainRequestBase/_cat/snapshots/{repository} -///this parameter is required - public CatSnapshotsRequest(Names repository) : base(r=>r.Required("repository", repository)){} + /// /_cat/snapshots/{repository} +///Optional, accepts null + public CatSnapshotsRequest(Names repository) : base(r=>r.Optional("repository", repository)){} ///a short version of the Accept header, e.g. json, yaml @@ -1236,7 +1242,7 @@ public CatSnapshotsRequest(Names repository) : base(r=>r.Required("repository", public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1291,7 +1297,7 @@ public partial class CatTasksRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1312,7 +1318,7 @@ public partial class CatTemplatesRequest : PlainRequestBase/_cat/templates/{name} + /// /_cat/templates/{name} ///Optional, accepts null public CatTemplatesRequest(Name name) : base(r=>r.Optional("name", name)){} @@ -1348,7 +1354,7 @@ public CatTemplatesRequest(Name name) : base(r=>r.Optional("name", name)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1369,7 +1375,7 @@ public partial class CatThreadPoolRequest : PlainRequestBase/_cat/thread_pool/{thread_pool_patterns} + /// /_cat/thread_pool/{thread_pool_patterns} ///Optional, accepts null public CatThreadPoolRequest(Names thread_pool_patterns) : base(r=>r.Optional("thread_pool_patterns", thread_pool_patterns)){} @@ -1408,7 +1414,7 @@ public CatThreadPoolRequest(Names thread_pool_patterns) : base(r=>r.Optional("th public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1420,12 +1426,12 @@ public partial interface IChangePasswordRequest : IRequestRequest parameters for XpackSecurityChangePassword
https://www.elastic.co/guide/en/x-pack/master/security-api-change-password.html
+ ///Request parameters for XpackSecurityChangePassword
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html
public partial class ChangePasswordRequest : PlainRequestBase, IChangePasswordRequest { protected IChangePasswordRequest Self => this; Name IChangePasswordRequest.Username => Self.RouteValues.Get("username"); - /// /_xpack/security/user/{username}/_password + /// /_xpack/security/user/{username}/_password ///Optional, accepts null public ChangePasswordRequest(Name username) : base(r=>r.Optional("username", username)){} @@ -1447,7 +1453,7 @@ public ChangePasswordRequest() : base(){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1459,12 +1465,12 @@ public partial interface IClearCachedRealmsRequest : IRequestRequest parameters for XpackSecurityClearCachedRealms
https://www.elastic.co/guide/en/x-pack/current/security-api-clear-cache.html
+ ///Request parameters for XpackSecurityClearCachedRealms
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html
public partial class ClearCachedRealmsRequest : PlainRequestBase, IClearCachedRealmsRequest { protected IClearCachedRealmsRequest Self => this; Names IClearCachedRealmsRequest.Realms => Self.RouteValues.Get("realms"); - /// /_xpack/security/realm/{realms}/_clear_cache + /// /_xpack/security/realm/{realms}/_clear_cache ///this parameter is required public ClearCachedRealmsRequest(Names realms) : base(r=>r.Required("realms", realms)){} @@ -1482,7 +1488,7 @@ public ClearCachedRealmsRequest(Names realms) : base(r=>r.Required("realms", rea public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1494,12 +1500,12 @@ public partial interface IClearCachedRolesRequest : IRequestRequest parameters for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/x-pack/master/security-api-roles.html#security-api-clear-role-cache
+ ///Request parameters for XpackSecurityClearCachedRoles
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache
public partial class ClearCachedRolesRequest : PlainRequestBase, IClearCachedRolesRequest { protected IClearCachedRolesRequest Self => this; Names IClearCachedRolesRequest.Name => Self.RouteValues.Get("name"); - /// /_xpack/security/role/{name}/_clear_cache + /// /_xpack/security/role/{name}/_clear_cache ///this parameter is required public ClearCachedRolesRequest(Names name) : base(r=>r.Required("name", name)){} @@ -1514,7 +1520,7 @@ public ClearCachedRolesRequest(Names name) : base(r=>r.Required("name", name)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1535,7 +1541,7 @@ public partial class ClearCacheRequest : PlainRequestBase/{index}/_cache/clear + /// /{index}/_cache/clear ///Optional, accepts null public ClearCacheRequest(Indices index) : base(r=>r.Optional("index", index)){} @@ -1577,7 +1583,7 @@ public ClearCacheRequest(Indices index) : base(r=>r.Optional("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1602,7 +1608,7 @@ public partial class ClearScrollRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1619,7 +1625,7 @@ public partial class CloseIndexRequest : PlainRequestBase this; Indices ICloseIndexRequest.Index => Self.RouteValues.Get("index"); - /// /{index}/_close + /// /{index}/_close ///this parameter is required public CloseIndexRequest(Indices index) : base(r=>r.Required("index", index)){} @@ -1649,7 +1655,7 @@ public CloseIndexRequest(Indices index) : base(r=>r.Required("index", index)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1666,7 +1672,7 @@ public partial class CloseJobRequest : PlainRequestBase this; Id ICloseJobRequest.JobId => Self.RouteValues.Get("job_id"); - /// /_xpack/ml/anomaly_detectors/{job_id}/_close + /// /_xpack/ml/anomaly_detectors/{job_id}/_close ///this parameter is required public CloseJobRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} @@ -1687,7 +1693,7 @@ public CloseJobRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1718,7 +1724,7 @@ public partial class ClusterAllocationExplainRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1755,7 +1761,7 @@ public partial class ClusterGetSettingsRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1776,7 +1782,7 @@ public partial class ClusterHealthRequest : PlainRequestBase/_cluster/health/{index} + /// /_cluster/health/{index} ///Optional, accepts null public ClusterHealthRequest(Indices index) : base(r=>r.Optional("index", index)){} @@ -1818,7 +1824,7 @@ public ClusterHealthRequest(Indices index) : base(r=>r.Optional("index", index)) public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1849,7 +1855,7 @@ public partial class ClusterPendingTasksRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1883,7 +1889,7 @@ public partial class ClusterPutSettingsRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1926,7 +1932,7 @@ public partial class ClusterRerouteRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -1949,13 +1955,13 @@ public partial class ClusterStateRequest : PlainRequestBase/_cluster/state/{metric} + /// /_cluster/state/{metric} ///Optional, accepts null public ClusterStateRequest(ClusterStateMetric metric) : base(r=>r.Optional("metric", (Metrics)metric)){} - /// /_cluster/state/{metric}/{index} -///Optional, accepts null + /// /_cluster/state/{metric}/{index} +///Optional, accepts null ///Optional, accepts null public ClusterStateRequest(ClusterStateMetric metric, Indices index) : base(r=>r.Optional("metric", (Metrics)metric).Optional("index", index)){} @@ -1988,7 +1994,7 @@ public ClusterStateRequest(ClusterStateMetric metric, Indices index) : base(r=>r public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2009,7 +2015,7 @@ public partial class ClusterStatsRequest : PlainRequestBase/_cluster/stats/nodes/{node_id} + /// /_cluster/stats/nodes/{node_id} ///Optional, accepts null public ClusterStatsRequest(NodeIds node_id) : base(r=>r.Optional("node_id", node_id)){} @@ -2030,7 +2036,7 @@ public ClusterStatsRequest(NodeIds node_id) : base(r=>r.Optional("node_id", node public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2053,13 +2059,13 @@ public partial class CountRequest : PlainRequestBase public CountRequest() : this(typeof(T), typeof(T)) {} - /// /{index}/_count + /// /{index}/_count ///Optional, accepts null public CountRequest(Indices index) : base(r=>r.Optional("index", index)){} - /// /{index}/{type}/_count -///Optional, accepts null + /// /{index}/{type}/_count +///Optional, accepts null ///Optional, accepts null public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", index).Optional("type", type)){} @@ -2079,8 +2085,8 @@ public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", ind ///Specify the node or shard the operation should be performed on (default: random) public string Preference { get { return Q("preference"); } set { Q("preference", value); } } - ///Specific routing value - public string Routing { get { return Q("routing"); } set { Q("routing", value); } } + ///A comma-separated list of specific routing values + public string[] Routing { get { return Q< string[]>("routing"); } set { Q("routing", value); } } ///Query in the Lucene query string syntax public string QueryOnQueryString { get { return Q("q"); } set { Q("q", value); } } @@ -2100,6 +2106,9 @@ public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", ind ///Specify whether format-based query failures (such as providing text to a numeric field) should be ignored public bool Lenient { get { return Q("lenient"); } set { Q("lenient", value); } } + ///The maximum count for each shard, upon reaching which the query execution will terminate early + public long TerminateAfter { get { return Q("terminate_after"); } set { Q("terminate_after", value); } } + ///Pretty format the returned JSON response. public bool Pretty { get { return Q("pretty"); } set { Q("pretty", value); } } @@ -2110,7 +2119,7 @@ public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", ind public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2126,13 +2135,13 @@ public partial class CountRequest : PlainRequestBase, I public CountRequest() {} - /// /{index}/_count + /// /{index}/_count ///Optional, accepts null public CountRequest(Indices index) : base(r=>r.Optional("index", index)){} - /// /{index}/{type}/_count -///Optional, accepts null + /// /{index}/{type}/_count +///Optional, accepts null ///Optional, accepts null public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", index).Optional("type", type)){} @@ -2152,8 +2161,8 @@ public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", ind ///Specify the node or shard the operation should be performed on (default: random) public string Preference { get { return Q("preference"); } set { Q("preference", value); } } - ///Specific routing value - public string Routing { get { return Q("routing"); } set { Q("routing", value); } } + ///A comma-separated list of specific routing values + public string[] Routing { get { return Q< string[]>("routing"); } set { Q("routing", value); } } ///Query in the Lucene query string syntax public string QueryOnQueryString { get { return Q("q"); } set { Q("q", value); } } @@ -2173,6 +2182,9 @@ public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", ind ///Specify whether format-based query failures (such as providing text to a numeric field) should be ignored public bool Lenient { get { return Q("lenient"); } set { Q("lenient", value); } } + ///The maximum count for each shard, upon reaching which the query execution will terminate early + public long TerminateAfter { get { return Q("terminate_after"); } set { Q("terminate_after", value); } } + ///Pretty format the returned JSON response. public bool Pretty { get { return Q("pretty"); } set { Q("pretty", value); } } @@ -2183,7 +2195,7 @@ public CountRequest(Indices index, Types type) : base(r=>r.Optional("index", ind public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2200,7 +2212,7 @@ public partial class CreateIndexRequest : PlainRequestBase this; IndexName ICreateIndexRequest.Index => Self.RouteValues.Get("index"); - /// /{index} + /// /{index} ///this parameter is required public CreateIndexRequest(IndexName index) : base(r=>r.Required("index", index)){} @@ -2227,7 +2239,7 @@ public CreateIndexRequest(IndexName index) : base(r=>r.Required("index", index)) public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2244,7 +2256,7 @@ public partial class CreateRepositoryRequest : PlainRequestBase this; Name ICreateRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); - /// /_snapshot/{repository} + /// /_snapshot/{repository} ///this parameter is required public CreateRepositoryRequest(Name repository) : base(r=>r.Required("repository", repository)){} @@ -2268,7 +2280,7 @@ public CreateRepositoryRequest(Name repository) : base(r=>r.Required("repository public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2289,15 +2301,15 @@ public partial class CreateRequest : PlainRequestBase.Id => Self.RouteValues.Get("id"); IndexName ICreateRequest.Index => Self.RouteValues.Get("index"); TypeName ICreateRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/{type}/{id}/_create -///this parameter is required -///this parameter is required + /// /{index}/{type}/{id}/_create +///this parameter is required +///this parameter is required ///this parameter is required public CreateRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)){} - /// /{index}/{type}/{id}/_create - + /// /{index}/{type}/{id}/_create + /// describes an elasticsearch document of type from which the index, type and id can be inferred public CreateRequest(DocumentPath document, IndexName index = null, TypeName type = null, Id id = null) : base(r=>r.Required("index", index ?? document.Self.Index).Required("type", type ?? document.Self.Type).Required("id", id ?? document.Self.Id)){ this.DocumentFromPath(document.Document); } partial void DocumentFromPath(TDocument document); @@ -2342,7 +2354,7 @@ public CreateRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2359,7 +2371,7 @@ public partial class DeactivateWatchRequest : PlainRequestBase this; Id IDeactivateWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); - /// /_xpack/watcher/watch/{watch_id}/_deactivate + /// /_xpack/watcher/watch/{watch_id}/_deactivate ///this parameter is required public DeactivateWatchRequest(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} @@ -2377,7 +2389,7 @@ public DeactivateWatchRequest(Id watch_id) : base(r=>r.Required("watch_id", watc public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2396,8 +2408,8 @@ public partial class DeleteAliasRequest : PlainRequestBase this; Indices IDeleteAliasRequest.Index => Self.RouteValues.Get("index"); Names IDeleteAliasRequest.Name => Self.RouteValues.Get("name"); - /// /{index}/_alias/{name} -///this parameter is required + /// /{index}/_alias/{name} +///this parameter is required ///this parameter is required public DeleteAliasRequest(Indices index, Names name) : base(r=>r.Required("index", index).Required("name", name)){} @@ -2418,7 +2430,7 @@ public DeleteAliasRequest(Indices index, Names name) : base(r=>r.Required("index public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2437,13 +2449,13 @@ public partial class DeleteByQueryRequest : PlainRequestBase this; Indices IDeleteByQueryRequest.Index => Self.RouteValues.Get("index"); Types IDeleteByQueryRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/_delete_by_query + /// /{index}/_delete_by_query ///this parameter is required public DeleteByQueryRequest(Indices index) : base(r=>r.Required("index", index)){} - /// /{index}/{type}/_delete_by_query -///this parameter is required + /// /{index}/{type}/_delete_by_query +///this parameter is required ///Optional, accepts null public DeleteByQueryRequest(Indices index, Types type) : base(r=>r.Required("index", index).Optional("type", type)){} @@ -2554,7 +2566,7 @@ public DeleteByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2566,13 +2578,13 @@ public partial class DeleteByQueryRequest : PlainRequestBase this; Indices IDeleteByQueryRequest.Index => Self.RouteValues.Get("index"); Types IDeleteByQueryRequest.Type => Self.RouteValues.Get("type"); - /// /{index}/_delete_by_query + /// /{index}/_delete_by_query ///this parameter is required public DeleteByQueryRequest(Indices index) : base(r=>r.Required("index", index)){} - /// /{index}/{type}/_delete_by_query -///this parameter is required + /// /{index}/{type}/_delete_by_query +///this parameter is required ///Optional, accepts null public DeleteByQueryRequest(Indices index, Types type) : base(r=>r.Required("index", index).Optional("type", type)){} @@ -2683,7 +2695,7 @@ public DeleteByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2700,7 +2712,7 @@ public partial class DeleteDatafeedRequest : PlainRequestBase this; Id IDeleteDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); - /// /_xpack/ml/datafeeds/{datafeed_id} + /// /_xpack/ml/datafeeds/{datafeed_id} ///this parameter is required public DeleteDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} @@ -2718,7 +2730,7 @@ public DeleteDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", public bool ErrorTrace { get { return Q("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2743,7 +2755,7 @@ public partial class DeleteExpiredDataRequest : PlainRequestBase("error_trace"); } set { Q("error_trace", value); } } ///The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. - public string Source { get { return Q("source"); } set { Q("source", value); } } + public string SourceQueryString { get { return Q("source"); } set { Q("source", value); } } ///A comma-separated list of filters used to reduce the respone. public string[] FilterPath { get { return Q< string[]>("filter_path"); } set { Q("filter_path", value); } } @@ -2760,7 +2772,7 @@ public partial class DeleteIndexRequest : PlainRequestBase this; Indices IDeleteIndexRequest.Index => Self.RouteValues.Get("index"); - /// /{index} + /// /{index} ///this parameter is required public DeleteIndexRequest(Indices index) : base(r=>r.Required("index", index)){} @@ -2771,6 +2783,15 @@ public DeleteIndexRequest(Indices index) : base(r=>r.Required("index", index)){} ///Specify timeout for connection to master public Time MasterTimeout { get { return Q