diff --git a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs index 86dc5c91195..0a2ff7d1349 100644 --- a/src/CodeGeneration/ApiGenerator/ApiGenerator.cs +++ b/src/CodeGeneration/ApiGenerator/ApiGenerator.cs @@ -54,10 +54,36 @@ public static void Generate(string downloadBranch, params string[] folders) private static string[] IgnoredApis { get; } = { + // these API's are not ready for primetime yet "xpack.ml.delete_filter.json", "xpack.ml.get_filters.json", "xpack.ml.put_filter.json", - "rank_eval.json" + "rank_eval.json", + // these API's are new and need to be mapped + "xpack.license.get_basic_status.json", + "xpack.license.post_start_basic.json", + "xpack.ml.delete_calendar.json", + "xpack.ml.delete_calendar_event.json", + "xpack.ml.delete_calendar_job.json", + "xpack.ml.get_calendar_events.json", + "xpack.ml.get_calendars.json", + "xpack.ml.info.json", + "xpack.ml.post_calendar_events.json", + "xpack.ml.put_calendar.json", + "xpack.ml.put_calendar_job.json", + "xpack.ml.get_calendar_job.json", + + "xpack.rollup.delete_job.json", + "xpack.rollup.get_jobs.json", + "xpack.rollup.get_rollup_caps.json", + "xpack.rollup.put_job.json", + "xpack.rollup.rollup_search.json", + "xpack.rollup.start_job.json", + "xpack.rollup.stop_job.json", + "xpack.sql.clear_cursor.json", + "xpack.sql.query.json", + "xpack.sql.translate.json", + "xpack.ssl.certificates.json", }; private static RestApiSpec CreateRestApiSpecModel(string downloadBranch, string[] folders) diff --git a/src/CodeGeneration/ApiGenerator/Domain/ApiQueryParameters.cs b/src/CodeGeneration/ApiGenerator/Domain/ApiQueryParameters.cs index 3ca2a77f0fc..ad45d5e6ca9 100644 --- a/src/CodeGeneration/ApiGenerator/Domain/ApiQueryParameters.cs +++ b/src/CodeGeneration/ApiGenerator/Domain/ApiQueryParameters.cs @@ -101,6 +101,12 @@ public IEnumerable DescriptionHighLevel case "_source": yield return "Whether the _source should be included in the response."; yield break; + case "filter_path": + yield return this.Description; + yield return "Use of response filtering can result in a response from Elasticsearch "; + yield return "that cannot be correctly deserialized to the respective response type for the request. "; + yield return "In such situations, use the low level client to issue the request and handle response deserialization"; + yield break; default: yield return this.Description; yield break; diff --git a/src/CodeGeneration/ApiGenerator/Overrides/EndpointOverridesBase.cs b/src/CodeGeneration/ApiGenerator/Overrides/EndpointOverridesBase.cs index 61c44a6fa26..cd79fa14a11 100644 --- a/src/CodeGeneration/ApiGenerator/Overrides/EndpointOverridesBase.cs +++ b/src/CodeGeneration/ApiGenerator/Overrides/EndpointOverridesBase.cs @@ -15,6 +15,7 @@ public abstract class EndpointOverridesBase: IEndpointOverrides public virtual IDictionary ObsoleteQueryStringParams { get; set; } = new Dictionary(); + public virtual CsharpMethod PatchMethod(CsharpMethod method) => method; } } diff --git a/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs b/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs index 84dfd4ebc11..b9c8dc65733 100644 --- a/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs +++ b/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using ApiGenerator.Overrides.Descriptors; @@ -11,6 +12,11 @@ public class GlobalOverrides : EndpointOverridesBase "script_fields", "docvalue_fields" }; + public IDictionary> ObsoleteEnumMembers { get; set; } = new Dictionary> + { + { "NodesStatsIndexMetric", new Dictionary{{"suggest", "As of 5.0 this option always returned an empty object in the response"}}}, + { "IndicesStatsMetric", new Dictionary{{"suggest", "Suggest stats have folded under the search stats, this alias will be removed"}}} + }; public override IDictionary RenameQueryStringParams { get; } = new Dictionary { @@ -28,7 +34,8 @@ public class GlobalOverrides : EndpointOverridesBase public override IDictionary ObsoleteQueryStringParams { get; set; } = new Dictionary { - { "parent", "the parent parameter has been deprecated from elasticsearch, please use routing instead directly."} + { "parent", "the parent parameter has been deprecated from elasticsearch, please use routing instead directly."}, + { "update_all_types", "Elasticsearch 6.x only allows a single type per index so this parameter is now useless"} }; public override IEnumerable SkipQueryStringParams { get; } = new[] diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/_common.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/_common.json index 6edd6d80320..69a1f8fb8ce 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/_common.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/_common.json @@ -23,7 +23,7 @@ }, "filter_path": { "type": "list", - "description": "A comma-separated list of filters used to reduce the respone." + "description": "A comma-separated list of filters used to reduce the response." } } } diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json index d7b7acd5a4f..1958843e601 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json @@ -24,10 +24,6 @@ "type": "boolean", "description": "Return detailed task information (default: false)" }, - "parent_node": { - "type": "string", - "description": "Return tasks with specified parent node." - }, "parent_task": { "type" : "number", "description" : "Return tasks with specified parent task id. Set to -1 to return all." diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.patch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.patch.json new file mode 100644 index 00000000000..660dfba7d0f --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.patch.json @@ -0,0 +1,13 @@ +{ + "cat.tasks": { + "url": { + "params": { + "parent_node": { + "type" : "string", + "description" : "Return tasks with the specified parent node", + "obsolete" : "Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json index 8ed3202e9af..4c7c3240dc2 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json @@ -53,7 +53,7 @@ "type" : "enum", "options": ["abort", "proceed"], "default": "abort", - "description" : "What to do when the delete-by-query hits version conflicts?" + "description" : "What to do when the delete by query hits version conflicts?" }, "expand_wildcards": { "type" : "enum", @@ -142,12 +142,12 @@ "scroll_size": { "type": "number", "defaut_value": 100, - "description": "Size on the scroll request powering the update_by_query" + "description": "Size on the scroll request powering the delete by query" }, "wait_for_completion": { "type" : "boolean", "default": true, - "description" : "Should the request should block until the delete-by-query is complete." + "description" : "Should the request should block until the delete by query is complete." }, "requests_per_second": { "type": "number", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json index 1f24199fad4..1501ba082d1 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json @@ -14,7 +14,7 @@ "params": { "field_data": { "type" : "boolean", - "description" : "Clear field data" + "description" : "Clear field data. This is deprecated. Prefer `fielddata`." }, "fielddata": { "type" : "boolean", @@ -22,7 +22,7 @@ }, "fields": { "type" : "list", - "description" : "A comma-separated list of fields to clear when using the `field_data` parameter (default: all)" + "description" : "A comma-separated list of fields to clear when using the `fielddata` parameter (default: all)" }, "query": { "type" : "boolean", @@ -46,10 +46,6 @@ "type" : "list", "description" : "A comma-separated list of index name to limit the operation" }, - "recycler": { - "type" : "boolean", - "description" : "Clear the recycler cache" - }, "request_cache": { "type" : "boolean", "description" : "Clear request cache" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.patch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.patch.json new file mode 100644 index 00000000000..39e23902d8b --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.patch.json @@ -0,0 +1,14 @@ +{ + "indices.clear_cache": { + "url": { + "params": { + "recycler": { + "type" : "boolean", + "description" : "Clear the recycle cache", + "obsolete" : "Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28866" + + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json index 7c9cf627530..3055cb8e32e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json @@ -16,6 +16,10 @@ "type": "time", "description": "Specify timeout for connection to master" }, + "timeout": { + "type" : "time", + "description" : "Explicit operation timeout" + }, "preserve_existing": { "type": "boolean", "description": "Whether to update existing settings. If set to `true` existing settings on an index remain unchanged, the default is `false`" @@ -34,10 +38,10 @@ "default": "open", "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both." }, - "flat_settings": { - "type": "boolean", - "description": "Return settings in flat format (default: false)" - } + "flat_settings": { + "type": "boolean", + "description": "Return settings in flat format (default: false)" + } } }, "body": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json index b066a010553..97c3f201f6c 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json @@ -22,11 +22,6 @@ } }, "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" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json index 51798c92bab..5c9cebf7411 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json @@ -1,26 +1,36 @@ -{ - "rank_eval": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html", - "methods": ["POST"], - "url": { - "path": "/_rank_eval", - "paths": ["/_rank_eval", "/{index}/_rank_eval", "/{index}/{type}/_rank_eval"], +{ + "rank_eval": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html", + "methods": ["GET", "POST"], + "url": { + "path": "/_rank_eval", + "paths": ["/_rank_eval", "/{index}/_rank_eval"], "parts": { "index": { "type": "list", "description" : "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices" - }, - "type": { - "type" : "list", - "description" : "A comma-separated list of document types to search; leave empty to perform the operation on all types" } }, - "params": {} + "params": { + "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)" + }, + "expand_wildcards": { + "type" : "enum", + "options" : ["open","closed","none","all"], + "default" : "open", + "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." + } + } }, - "body": { - "description": "The search definition using the Query DSL and the prototype for the eval request.", - "required": true - } - } + "body": { + "description": "The ranking evaluation search definition, including search requests, document ratings and ranking metric definition.", + "required": true + } + } } - diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/scripts_painless_execute.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/scripts_painless_execute.json new file mode 100644 index 00000000000..c02627cfd87 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/scripts_painless_execute.json @@ -0,0 +1,17 @@ +{ + "scripts_painless_execute": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html", + "methods": ["GET", "POST"], + "url": { + "path": "/_scripts/painless/_execute", + "paths": ["/_scripts/painless/_execute"], + "parts": { + }, + "params": { + } + }, + "body": { + "description": "The script to execute" + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json index 0f2beffa457..3802747ed1b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/search.json @@ -147,6 +147,11 @@ "type" : "boolean", "description": "Indicate if the number of documents that match the query should be tracked" }, + "allow_partial_search_results": { + "type" : "boolean", + "default" : true, + "description": "Indicate if an error should be returned if there is a partial search failure or timeout" + }, "typed_keys": { "type" : "boolean", "description" : "Specify whether aggregation and suggester names should be prefixed by their respective types in the response" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json index cffa74934bc..244ca986f9b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.cancel.json @@ -20,10 +20,6 @@ "type": "list", "description": "A comma-separated list of actions that should be cancelled. Leave empty to cancel all." }, - "parent_node": { - "type": "string", - "description": "Cancel tasks with specified parent node." - }, "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.get.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.get.json index e17acb0512c..3fefdb8f965 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.get.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.get.json @@ -16,6 +16,10 @@ "wait_for_completion": { "type": "boolean", "description": "Wait for the matching tasks to complete (default: false)" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json index 1110c3c111b..f16967eafeb 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.json @@ -19,10 +19,6 @@ "type": "boolean", "description": "Return detailed task information (default: false)" }, - "parent_node": { - "type": "string", - "description": "Return tasks with specified parent node." - }, "parent_task_id": { "type" : "string", "description" : "Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all." @@ -36,6 +32,10 @@ "description": "Group tasks by nodes or parent/child relationships", "options" : ["nodes", "parents", "none"], "default" : "nodes" + }, + "timeout": { + "type": "time", + "description": "Explicit operation timeout" } } diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.patch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.patch.json new file mode 100644 index 00000000000..b13e44b077c --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/tasks.list.patch.json @@ -0,0 +1,13 @@ +{ + "tasks.list": { + "url": { + "params": { + "parent_node": { + "type": "string", + "description": "Return tasks with the specified parent node", + "obsolete": "Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query.json index 072e950686a..3e77f7cd145 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/update_by_query.json @@ -150,7 +150,7 @@ "scroll_size": { "type": "number", "defaut_value": 100, - "description": "Size on the scroll request powering the update_by_query" + "description": "Size on the scroll request powering the update by query" }, "wait_for_completion": { "type" : "boolean", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.info.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.info.json index dc982553178..9913bc3fba6 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.info.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Info/xpack.info.json @@ -7,10 +7,6 @@ "paths": [ "/_xpack" ], "parts": {}, "params": { - "human" : { - "type" : "boolean", - "description" : "Presents additional info for humans (feature descriptions and X-Pack tagline)" - }, "categories": { "type": "list", "description" : "Comma-separated list of info categories. Can be any of: build, license, features" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get_basic_status.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get_basic_status.json new file mode 100644 index 00000000000..80e9cfe9ab4 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.get_basic_status.json @@ -0,0 +1,15 @@ +{ + "xpack.license.get_basic_status": { + "documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html", + "methods": ["GET"], + "url": { + "path": "/_xpack/license/basic_status", + "paths": ["/_xpack/license/basic_status"], + "parts" : { + }, + "params": { + } + }, + "body": null + } +} \ No newline at end of file diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post_start_basic.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post_start_basic.json new file mode 100644 index 00000000000..77c7a10878f --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post_start_basic.json @@ -0,0 +1,19 @@ +{ + "xpack.license.post_start_basic": { + "documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html", + "methods": ["POST"], + "url": { + "path": "/_xpack/license/start_basic", + "paths": ["/_xpack/license/start_basic"], + "parts" : { + }, + "params": { + "acknowledge": { + "type" : "boolean", + "description" : "whether the user has acknowledged acknowledge messages (default: false)" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post_start_trial.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post_start_trial.json index ea0d294b1d3..a1e5d27da1e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post_start_trial.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/License/xpack.license.post_start_trial.json @@ -8,6 +8,14 @@ "parts" : { }, "params": { + "type": { + "type" : "string", + "description" : "The type of trial license to generate (default: \"trial\")" + }, + "acknowledge": { + "type" : "boolean", + "description" : "whether the user has acknowledged acknowledge messages (default: false)" + } } }, "body": null diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar.json new file mode 100644 index 00000000000..3fcfa8582e5 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar.json @@ -0,0 +1,17 @@ +{ + "xpack.ml.delete_calendar": { + "methods": [ "DELETE" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}", + "paths": [ "/_xpack/ml/calendars/{calendar_id}" ], + "parts": { + "calendar_id": { + "type" : "string", + "required" : true, + "description" : "The ID of the calendar to delete" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar_event.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar_event.json new file mode 100644 index 00000000000..d3199064507 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar_event.json @@ -0,0 +1,22 @@ +{ + "xpack.ml.delete_calendar_event": { + "methods": [ "DELETE" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}/events/{event_id}", + "paths": [ "/_xpack/ml/calendars/{calendar_id}/events/{event_id}" ], + "parts": { + "calendar_id": { + "type" : "string", + "required" : true, + "description" : "The ID of the calendar to modify" + }, + "event_id": { + "type": "string", + "required": true, + "description": "The ID of the event to remove from the calendar" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar_job.json new file mode 100644 index 00000000000..43dc1b94789 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.delete_calendar_job.json @@ -0,0 +1,22 @@ +{ + "xpack.ml.delete_calendar_job": { + "methods": [ "DELETE" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}/jobs/{job_id}", + "paths": [ "/_xpack/ml/calendars/{calendar_id}/jobs/{job_id}" ], + "parts": { + "calendar_id": { + "type" : "string", + "required" : true, + "description" : "The ID of the calendar to modify" + }, + "job_id": { + "type": "string", + "required": true, + "description": "The ID of the job to remove from the calendar" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_calendar_events.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_calendar_events.json new file mode 100644 index 00000000000..48b1bd07fd6 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_calendar_events.json @@ -0,0 +1,41 @@ +{ + "xpack.ml.get_calendar_events": { + "methods": [ "GET" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}/events", + "paths": [ + "/_xpack/ml/calendars/{calendar_id}/events" + ], + "parts": { + "calendar_id": { + "type": "string", + "description": "The ID of the calendar containing the events", + "required": true + } + }, + "params": { + "job_id": { + "type": "string", + "description": "Get events for the job. When this option is used calendar_id must be '_all'" + }, + "start": { + "type": "string", + "description": "Get events after this time" + }, + "end": { + "type": "date", + "description": "Get events before this time" + }, + "from": { + "type": "int", + "description": "Skips a number of events" + }, + "size": { + "type": "int", + "description": "Specifies a max number of events to get" + } + } + }, + "body": null + } +} \ No newline at end of file diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_calendars.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_calendars.json new file mode 100644 index 00000000000..5b252a0e89c --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.get_calendars.json @@ -0,0 +1,29 @@ +{ + "xpack.ml.get_calendars": { + "methods": [ "GET", "POST" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}", + "paths": [ + "/_xpack/ml/calendars", + "/_xpack/ml/calendars/{calendar_id}" + ], + "parts": { + "calendar_id": { + "type": "string", + "description": "The ID of the calendar to fetch" + } + }, + "params": { + "from": { + "type": "int", + "description": "skips a number of calendars" + }, + "size": { + "type": "int", + "description": "specifies a max number of calendars to get" + } + } + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.info.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.info.json new file mode 100644 index 00000000000..770438251f6 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.info.json @@ -0,0 +1,11 @@ +{ + "xpack.ml.info": { + "methods": [ "GET" ], + "url": { + "path": "/_xpack/ml/info", + "paths": [ "/_xpack/ml/info" ], + "parts": {}, + "body": null + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.post_calendar_events.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.post_calendar_events.json new file mode 100644 index 00000000000..71ed167a736 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.post_calendar_events.json @@ -0,0 +1,20 @@ +{ + "xpack.ml.post_calendar_events": { + "methods": [ "POST" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}/events", + "paths": [ "/_xpack/ml/calendars/{calendar_id}/events" ], + "parts": { + "calendar_id": { + "type": "string", + "required": true, + "description": "The ID of the calendar to modify" + } + } + }, + "body": { + "description" : "A list of events", + "required" : true + } + } +} \ No newline at end of file diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_calendar.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_calendar.json new file mode 100644 index 00000000000..d762ad29315 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_calendar.json @@ -0,0 +1,20 @@ +{ + "xpack.ml.put_calendar": { + "methods": [ "PUT" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}", + "paths": [ "/_xpack/ml/calendars/{calendar_id}" ], + "parts": { + "calendar_id": { + "type": "string", + "required": true, + "description": "The ID of the calendar to create" + } + } + }, + "body": { + "description" : "The calendar details", + "required" : false + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_calendar_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_calendar_job.json new file mode 100644 index 00000000000..2abf870058c --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/MachineLearning/xpack.ml.put_calendar_job.json @@ -0,0 +1,22 @@ +{ + "xpack.ml.put_calendar_job": { + "methods": [ "PUT" ], + "url": { + "path": "/_xpack/ml/calendars/{calendar_id}/jobs/{job_id}", + "paths": [ "/_xpack/ml/calendars/{calendar_id}/jobs/{job_id}" ], + "parts": { + "calendar_id": { + "type": "string", + "required": true, + "description": "The ID of the calendar to modify" + }, + "job_id": { + "type": "string", + "required": true, + "description": "The ID of the job to add to the calendar" + } + } + }, + "body": null + } +} \ No newline at end of file diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.delete_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.delete_job.json new file mode 100644 index 00000000000..21bdb5087a7 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.delete_job.json @@ -0,0 +1,17 @@ +{ + "xpack.rollup.delete_job": { + "documentation": "", + "methods": [ "DELETE" ], + "url": { + "path": "/_xpack/rollup/job/{id}", + "paths": [ "/_xpack/rollup/job/{id}" ], + "parts": { + "id": { + "type": "string", + "required": true, + "description": "The ID of the job to delete" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_jobs.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_jobs.json new file mode 100644 index 00000000000..7ea3c1e1606 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_jobs.json @@ -0,0 +1,17 @@ +{ + "xpack.rollup.get_jobs": { + "documentation": "", + "methods": [ "GET" ], + "url": { + "path": "/_xpack/rollup/job/{id}", + "paths": [ "/_xpack/rollup/job/{id}", "/_xpack/rollup/job/" ], + "parts": { + "id": { + "type": "string", + "required": false, + "description": "The ID of the job(s) to fetch. Accepts glob patterns, or left blank for all jobs" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_rollup_caps.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_rollup_caps.json new file mode 100644 index 00000000000..28edd044c3c --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.get_rollup_caps.json @@ -0,0 +1,17 @@ +{ + "xpack.rollup.get_rollup_caps": { + "documentation": "", + "methods": [ "GET" ], + "url": { + "path": "/_xpack/rollup/data/{id}", + "paths": [ "/_xpack/rollup/data/{id}", "/_xpack/rollup/data/" ], + "parts": { + "id": { + "type": "string", + "required": false, + "description": "The ID of the index to check rollup capabilities on, or left blank for all jobs" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.put_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.put_job.json new file mode 100644 index 00000000000..57b2a062c0a --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.put_job.json @@ -0,0 +1,21 @@ +{ + "xpack.rollup.put_job": { + "documentation": "", + "methods": [ "PUT" ], + "url": { + "path": "/_xpack/rollup/job/{id}", + "paths": [ "/_xpack/rollup/job/{id}" ], + "parts": { + "id": { + "type": "string", + "required": true, + "description": "The ID of the job to create" + } + } + }, + "body": { + "description" : "The job configuration", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.rollup_search.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.rollup_search.json new file mode 100644 index 00000000000..bc535784fc4 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.rollup_search.json @@ -0,0 +1,26 @@ +{ + "xpack.rollup.rollup_search": { + "documentation": "", + "methods": [ "GET", "POST" ], + "url": { + "path": "/{index}/_rollup_search", + "paths": [ "{index}/_rollup_search", "{index}/{type}/_rollup_search" ], + "parts": { + "index": { + "type": "string", + "required": true, + "description": "The index or index-pattern (containing rollup or regular data) that should be searched" + }, + "type": { + "type": "string", + "required": false, + "description": "The doc type inside the index" + } + } + }, + "body": { + "description" : "The search request body", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.start_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.start_job.json new file mode 100644 index 00000000000..db5feed680b --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.start_job.json @@ -0,0 +1,17 @@ +{ + "xpack.rollup.start_job": { + "documentation": "", + "methods": [ "POST" ], + "url": { + "path": "/_xpack/rollup/job/{id}/_start", + "paths": [ "/_xpack/rollup/job/{id}/_start" ], + "parts": { + "id": { + "type": "string", + "required": true, + "description": "The ID of the job to start" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.stop_job.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.stop_job.json new file mode 100644 index 00000000000..39c3fd4a113 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Rollup/xpack.rollup.stop_job.json @@ -0,0 +1,17 @@ +{ + "xpack.rollup.stop_job": { + "documentation": "", + "methods": [ "POST" ], + "url": { + "path": "/_xpack/rollup/job/{id}/_stop", + "paths": [ "/_xpack/rollup/job/{id}/_stop" ], + "parts": { + "id": { + "type": "string", + "required": true, + "description": "The ID of the job to stop" + } + } + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.clear_cursor.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.clear_cursor.json new file mode 100644 index 00000000000..d82e499c701 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.clear_cursor.json @@ -0,0 +1,15 @@ +{ + "xpack.sql.clear_cursor": { + "documentation": "Clear SQL cursor", + "methods": [ "POST"], + "url": { + "path": "/_xpack/sql/close", + "paths": [ "/_xpack/sql/close" ], + "parts": {} + }, + "body": { + "description" : "Specify the cursor value in the `cursor` element to clean the cursor.", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.query.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.query.json new file mode 100644 index 00000000000..60bbcda8cad --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.query.json @@ -0,0 +1,21 @@ +{ + "xpack.sql.query": { + "documentation": "Execute SQL", + "methods": [ "POST", "GET" ], + "url": { + "path": "/_xpack/sql", + "paths": [ "/_xpack/sql" ], + "parts": {}, + "params": { + "format": { + "type" : "string", + "description" : "a short version of the Accept header, e.g. json, yaml" + } + } + }, + "body": { + "description" : "Use the `query` element to start a query. Use the `cursor` element to continue a query.", + "required" : true + } + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.translate.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.translate.json new file mode 100644 index 00000000000..9b854665a71 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Sql/xpack.sql.translate.json @@ -0,0 +1,16 @@ +{ + "xpack.sql.translate": { + "documentation": "Translate SQL into Elasticsearch queries", + "methods": [ "POST", "GET" ], + "url": { + "path": "/_xpack/sql/translate", + "paths": [ "/_xpack/sql/translate" ], + "parts": {}, + "params": {} + }, + "body": { + "description" : "Specify the query in the `query` element.", + "required" : true + } + } + } diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ssl/xpack.ssl.certificates.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ssl/xpack.ssl.certificates.json new file mode 100644 index 00000000000..b9ad98b172b --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Ssl/xpack.ssl.certificates.json @@ -0,0 +1,13 @@ +{ + "xpack.ssl.certificates": { + "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html", + "methods": [ "GET" ], + "url": { + "path": "/_xpack/ssl/certificates", + "paths": [ "/_xpack/ssl/certificates" ], + "parts": {}, + "params": {} + }, + "body": null + } +} diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.put_watch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.put_watch.json index 46a73efe5cb..d41f8ea221e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.put_watch.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/XPack/Watcher/xpack.watcher.put_watch.json @@ -20,6 +20,10 @@ "active": { "type": "boolean", "description": "Specify whether the watch is in/active by default" + }, + "version" : { + "type" : "number", + "description" : "Explicit version number for concurrency control" } } }, diff --git a/src/CodeGeneration/ApiGenerator/Views/Enums.Generated.cshtml b/src/CodeGeneration/ApiGenerator/Views/Enums.Generated.cshtml index 52641cb61da..1957e45619a 100644 --- a/src/CodeGeneration/ApiGenerator/Views/Enums.Generated.cshtml +++ b/src/CodeGeneration/ApiGenerator/Views/Enums.Generated.cshtml @@ -5,14 +5,21 @@ @using System.Linq @using ApiGenerator.Domain @using ApiGenerator +@using ApiGenerator.Overrides @functions { private const string RawSize = "Raw"; private const string SizeEnum = "Size"; + private static GlobalOverrides GlobalOverrides = new GlobalOverrides(); private string CreateEnum(string enumName, string value, int? i) { var enumValue = (enumName == SizeEnum && value == string.Empty) ? RawSize : value.ToPascalCase(true); - return string.Format("[EnumMember(Value = \"{0}\")] {1}{2}", value, enumValue, i.HasValue ? " = 1 << " + i.Value : null); + var enumCsharp = string.Format("[EnumMember(Value = \"{0}\")] {1}{2}", value, enumValue, i.HasValue ? " = 1 << " + i.Value : null); + if (GlobalOverrides.ObsoleteEnumMembers.TryGetValue(enumName, out var d) && d.TryGetValue(value, out var obsolete)) + { + return string.Format("[Obsolete(\"{0}\")]\r\n\t\t{1}", obsolete, enumCsharp); + } + return enumCsharp; } private string CreateCase(string e, string o) { diff --git a/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml b/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml index b111ac668a2..64d22bf6d2a 100644 --- a/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml +++ b/src/CodeGeneration/ApiGenerator/Views/_Descriptors.Generated.cshtml @@ -24,7 +24,9 @@ namespace Nest var original = common.QueryStringKey; var t = @common.TypeHighLevel; var tSuffix = (t == "bool" || t == "bool?") ? " = true" : ""; - public TDescriptor @(common.ClsName)(@common.TypeHighLevel @common.ClsArgumentName@tSuffix) => Qs("@original", @(common.ClsArgumentName)); + ///@(Raw(string.Join("", common.DescriptionHighLevel))) + public TDescriptor @(common.ClsName)(@common.TypeHighLevel @common.ClsArgumentName@tSuffix) => Qs("@original", @(common.ClsArgumentName)); + } } @foreach (CsharpMethod method in Model.CsharpMethodsWithQueryStringInfo) diff --git a/src/Directory.build.props b/src/Directory.build.props index 4f9111c2f3b..d6f4976f0b4 100644 --- a/src/Directory.build.props +++ b/src/Directory.build.props @@ -13,6 +13,8 @@ $(CurrentAssemblyFileVersion) $(DefineConstants);DOTNETCORE + $(DefineConstants);DOTNETCORE + $(DefineConstants);DOTNETCORE https://raw.githubusercontent.com/elastic/elasticsearch-net Elasticsearch BV diff --git a/src/Elasticsearch.Net/Domain/Enums.Generated.cs b/src/Elasticsearch.Net/Domain/Enums.Generated.cs index 36f9528968d..d5205982c70 100644 --- a/src/Elasticsearch.Net/Domain/Enums.Generated.cs +++ b/src/Elasticsearch.Net/Domain/Enums.Generated.cs @@ -11,381 +11,259 @@ namespace Elasticsearch.Net { - + public enum Refresh { - [EnumMember(Value = "true")] - True, - [EnumMember(Value = "false")] - False, - [EnumMember(Value = "wait_for")] - WaitFor + [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")] - 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")] - 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")] - 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")] - 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")] - 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")] - 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")] - 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")] - 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")] - 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")] - Proceed + [EnumMember(Value = "abort")] Abort, + [EnumMember(Value = "proceed")] Proceed } - public enum SearchType { - [EnumMember(Value = "query_then_fetch")] - QueryThenFetch, - [EnumMember(Value = "dfs_query_then_fetch")] - DfsQueryThenFetch + [EnumMember(Value = "query_then_fetch")] QueryThenFetch, + [EnumMember(Value = "dfs_query_then_fetch")] DfsQueryThenFetch } - public enum OpType { - [EnumMember(Value = "index")] - Index, - [EnumMember(Value = "create")] - Create + [EnumMember(Value = "index")] Index, + [EnumMember(Value = "create")] Create } - public enum Format { - [EnumMember(Value = "detailed")] - Detailed, - [EnumMember(Value = "text")] - Text + [EnumMember(Value = "detailed")] Detailed, + [EnumMember(Value = "text")] Text } - public enum ThreadType { - [EnumMember(Value = "cpu")] - Cpu, - [EnumMember(Value = "wait")] - Wait, - [EnumMember(Value = "block")] - 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")] - Always + [EnumMember(Value = "missing")] Missing, + [EnumMember(Value = "popular")] Popular, + [EnumMember(Value = "always")] Always } - public enum GroupBy { - [EnumMember(Value = "nodes")] - Nodes, - [EnumMember(Value = "parents")] - Parents, - [EnumMember(Value = "none")] - None + [EnumMember(Value = "nodes")] Nodes, + [EnumMember(Value = "parents")] Parents, + [EnumMember(Value = "none")] None } - [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")] - All = 1 << 7 + [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 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")] - All = 1 << 15 + [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, + [Obsolete("Suggest stats have folded under the search stats, this alias will be removed")] + [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")] - Ingest = 1 << 8 + [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")] - All = 1 << 10 + [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")] - All = 1 << 15 + [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, + [Obsolete("As of 5.0 this option always returned an empty object in the response")] + [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 + [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")] - All = 1 << 2 + [EnumMember(Value = "queued_watches")] QueuedWatches = 1 << 0, + [EnumMember(Value = "pending_watches")] PendingWatches = 1 << 1, + [EnumMember(Value = "_all")] All = 1 << 2 } - public static class KnownEnums - { - private class EnumDictionary : Dictionary + { + private static readonly ConcurrentDictionary> EnumStringResolvers = new ConcurrentDictionary>(); + + static KnownEnums() + { + EnumStringResolvers.TryAdd(typeof(Refresh), (e) => GetStringValue((Refresh)e)); + EnumStringResolvers.TryAdd(typeof(Bytes), (e) => GetStringValue((Bytes)e)); + EnumStringResolvers.TryAdd(typeof(Health), (e) => GetStringValue((Health)e)); + EnumStringResolvers.TryAdd(typeof(Size), (e) => GetStringValue((Size)e)); + EnumStringResolvers.TryAdd(typeof(Level), (e) => GetStringValue((Level)e)); + EnumStringResolvers.TryAdd(typeof(WaitForEvents), (e) => GetStringValue((WaitForEvents)e)); + EnumStringResolvers.TryAdd(typeof(WaitForStatus), (e) => GetStringValue((WaitForStatus)e)); + EnumStringResolvers.TryAdd(typeof(ExpandWildcards), (e) => GetStringValue((ExpandWildcards)e)); + EnumStringResolvers.TryAdd(typeof(DefaultOperator), (e) => GetStringValue((DefaultOperator)e)); + EnumStringResolvers.TryAdd(typeof(VersionType), (e) => GetStringValue((VersionType)e)); + EnumStringResolvers.TryAdd(typeof(Conflicts), (e) => GetStringValue((Conflicts)e)); + EnumStringResolvers.TryAdd(typeof(SearchType), (e) => GetStringValue((SearchType)e)); + EnumStringResolvers.TryAdd(typeof(OpType), (e) => GetStringValue((OpType)e)); + EnumStringResolvers.TryAdd(typeof(Format), (e) => GetStringValue((Format)e)); + EnumStringResolvers.TryAdd(typeof(ThreadType), (e) => GetStringValue((ThreadType)e)); + 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(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)); + } + + private class EnumDictionary : Dictionary { public EnumDictionary(int capacity) : base(capacity) {} public Func Resolver { get; set; } } - + public static string GetStringValue(this Refresh enumValue) { - switch (enumValue) { 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'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Refresh'"); } - public static string GetStringValue(this Bytes enumValue) { - switch (enumValue) { case Bytes.B: return "b"; @@ -400,24 +278,20 @@ public static string GetStringValue(this Bytes enumValue) case Bytes.P: return "p"; case Bytes.Pb: return "pb"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Bytes'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Bytes'"); } - public static string GetStringValue(this Health enumValue) { - switch (enumValue) { 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'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Health'"); } - public static string GetStringValue(this Size enumValue) { - switch (enumValue) { case Size.Raw: return ""; @@ -427,24 +301,20 @@ public static string GetStringValue(this Size enumValue) case Size.T: return "t"; case Size.P: return "p"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Size'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Size'"); } - public static string GetStringValue(this Level enumValue) { - switch (enumValue) { 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'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Level'"); } - public static string GetStringValue(this WaitForEvents enumValue) { - switch (enumValue) { case WaitForEvents.Immediate: return "immediate"; @@ -454,24 +324,20 @@ public static string GetStringValue(this WaitForEvents enumValue) case WaitForEvents.Low: return "low"; case WaitForEvents.Languid: return "languid"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'WaitForEvents'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'WaitForEvents'"); } - public static string GetStringValue(this WaitForStatus enumValue) { - switch (enumValue) { 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'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'WaitForStatus'"); } - public static string GetStringValue(this ExpandWildcards enumValue) { - switch (enumValue) { case ExpandWildcards.Open: return "open"; @@ -479,23 +345,19 @@ public static string GetStringValue(this ExpandWildcards enumValue) case ExpandWildcards.None: return "none"; case ExpandWildcards.All: return "all"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'ExpandWildcards'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'ExpandWildcards'"); } - public static string GetStringValue(this DefaultOperator enumValue) { - switch (enumValue) { case DefaultOperator.And: return "AND"; case DefaultOperator.Or: return "OR"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'DefaultOperator'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'DefaultOperator'"); } - public static string GetStringValue(this VersionType enumValue) { - switch (enumValue) { case VersionType.Internal: return "internal"; @@ -503,93 +365,77 @@ public static string GetStringValue(this VersionType enumValue) case VersionType.ExternalGte: return "external_gte"; case VersionType.Force: return "force"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'VersionType'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'VersionType'"); } - public static string GetStringValue(this Conflicts enumValue) { - switch (enumValue) { case Conflicts.Abort: return "abort"; case Conflicts.Proceed: return "proceed"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Conflicts'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Conflicts'"); } - public static string GetStringValue(this SearchType enumValue) { - switch (enumValue) { 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'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'SearchType'"); } - public static string GetStringValue(this OpType enumValue) { - switch (enumValue) { case OpType.Index: return "index"; case OpType.Create: return "create"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'OpType'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'OpType'"); } - public static string GetStringValue(this Format enumValue) { - switch (enumValue) { case Format.Detailed: return "detailed"; case Format.Text: return "text"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Format'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Format'"); } - public static string GetStringValue(this ThreadType enumValue) { - switch (enumValue) { 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'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'ThreadType'"); } - public static string GetStringValue(this SuggestMode enumValue) { - switch (enumValue) { 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'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'SuggestMode'"); } - public static string GetStringValue(this GroupBy enumValue) { - switch (enumValue) { case GroupBy.Nodes: return "nodes"; case GroupBy.Parents: return "parents"; case GroupBy.None: return "none"; } - throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'GroupBy'"); + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'GroupBy'"); } - public static string GetStringValue(this ClusterStateMetric enumValue) { - - if ((enumValue & ClusterStateMetric.All) != 0) return "_all"; + if ((enumValue & ClusterStateMetric.All) != 0) return "_all"; var list = new List(); if ((enumValue & ClusterStateMetric.Blocks) != 0) list.Add("blocks"); if ((enumValue & ClusterStateMetric.Metadata) != 0) list.Add("metadata"); @@ -600,11 +446,9 @@ public static string GetStringValue(this ClusterStateMetric enumValue) if ((enumValue & ClusterStateMetric.Version) != 0) list.Add("version"); return string.Join(",", list); } - public static string GetStringValue(this IndicesStatsMetric enumValue) { - - if ((enumValue & IndicesStatsMetric.All) != 0) return "_all"; + if ((enumValue & IndicesStatsMetric.All) != 0) return "_all"; var list = new List(); if ((enumValue & IndicesStatsMetric.Completion) != 0) list.Add("completion"); if ((enumValue & IndicesStatsMetric.Docs) != 0) list.Add("docs"); @@ -623,11 +467,9 @@ public static string GetStringValue(this IndicesStatsMetric enumValue) if ((enumValue & IndicesStatsMetric.Suggest) != 0) list.Add("suggest"); return string.Join(",", list); } - public static string GetStringValue(this NodesInfoMetric enumValue) { - - var list = new List(); + var list = new List(); if ((enumValue & NodesInfoMetric.Settings) != 0) list.Add("settings"); if ((enumValue & NodesInfoMetric.Os) != 0) list.Add("os"); if ((enumValue & NodesInfoMetric.Process) != 0) list.Add("process"); @@ -639,11 +481,9 @@ public static string GetStringValue(this NodesInfoMetric enumValue) if ((enumValue & NodesInfoMetric.Ingest) != 0) list.Add("ingest"); return string.Join(",", list); } - public static string GetStringValue(this NodesStatsMetric enumValue) { - - if ((enumValue & NodesStatsMetric.All) != 0) return "_all"; + if ((enumValue & NodesStatsMetric.All) != 0) return "_all"; var list = new List(); if ((enumValue & NodesStatsMetric.Breaker) != 0) list.Add("breaker"); if ((enumValue & NodesStatsMetric.Fs) != 0) list.Add("fs"); @@ -657,11 +497,9 @@ public static string GetStringValue(this NodesStatsMetric enumValue) if ((enumValue & NodesStatsMetric.Discovery) != 0) list.Add("discovery"); return string.Join(",", list); } - public static string GetStringValue(this NodesStatsIndexMetric enumValue) { - - if ((enumValue & NodesStatsIndexMetric.All) != 0) return "_all"; + if ((enumValue & NodesStatsIndexMetric.All) != 0) return "_all"; var list = new List(); if ((enumValue & NodesStatsIndexMetric.Completion) != 0) list.Add("completion"); if ((enumValue & NodesStatsIndexMetric.Docs) != 0) list.Add("docs"); @@ -680,57 +518,21 @@ public static string GetStringValue(this NodesStatsIndexMetric enumValue) if ((enumValue & NodesStatsIndexMetric.Suggest) != 0) list.Add("suggest"); return string.Join(",", list); } - public static string GetStringValue(this NodesUsageMetric enumValue) { - - if ((enumValue & NodesUsageMetric.All) != 0) return "_all"; + 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) { - - if ((enumValue & WatcherStatsMetric.All) != 0) return "_all"; + if ((enumValue & WatcherStatsMetric.All) != 0) return "_all"; var list = new List(); if ((enumValue & WatcherStatsMetric.QueuedWatches) != 0) list.Add("queued_watches"); if ((enumValue & WatcherStatsMetric.PendingWatches) != 0) list.Add("pending_watches"); return string.Join(",", list); } - - private static readonly ConcurrentDictionary> EnumStringResolvers = - new ConcurrentDictionary>(); - - static KnownEnums() - { - EnumStringResolvers.TryAdd(typeof(Refresh), (e) => GetStringValue((Refresh)e)); - EnumStringResolvers.TryAdd(typeof(Bytes), (e) => GetStringValue((Bytes)e)); - EnumStringResolvers.TryAdd(typeof(Health), (e) => GetStringValue((Health)e)); - EnumStringResolvers.TryAdd(typeof(Size), (e) => GetStringValue((Size)e)); - EnumStringResolvers.TryAdd(typeof(Level), (e) => GetStringValue((Level)e)); - EnumStringResolvers.TryAdd(typeof(WaitForEvents), (e) => GetStringValue((WaitForEvents)e)); - EnumStringResolvers.TryAdd(typeof(WaitForStatus), (e) => GetStringValue((WaitForStatus)e)); - EnumStringResolvers.TryAdd(typeof(ExpandWildcards), (e) => GetStringValue((ExpandWildcards)e)); - EnumStringResolvers.TryAdd(typeof(DefaultOperator), (e) => GetStringValue((DefaultOperator)e)); - EnumStringResolvers.TryAdd(typeof(VersionType), (e) => GetStringValue((VersionType)e)); - EnumStringResolvers.TryAdd(typeof(Conflicts), (e) => GetStringValue((Conflicts)e)); - EnumStringResolvers.TryAdd(typeof(SearchType), (e) => GetStringValue((SearchType)e)); - EnumStringResolvers.TryAdd(typeof(OpType), (e) => GetStringValue((OpType)e)); - EnumStringResolvers.TryAdd(typeof(Format), (e) => GetStringValue((Format)e)); - EnumStringResolvers.TryAdd(typeof(ThreadType), (e) => GetStringValue((ThreadType)e)); - 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(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)); - } - public static string GetStringValue(this Enum e) { var type = e.GetType(); diff --git a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs index ad218df2d4c..090409e2135 100644 --- a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs @@ -387,8 +387,6 @@ public partial class CatTasksRequestParameters : RequestParameters Q("actions"); set => Q("actions", value); } ///Return detailed task information (default: false) public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } - ///Return tasks with specified parent node. - public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } ///Return tasks with specified parent task id. Set to -1 to return all. public long? ParentTask { get => Q("parent_task"); set => Q("parent_task", value); } ///Comma-separated list of column names to display @@ -399,6 +397,9 @@ public partial class CatTasksRequestParameters : RequestParameters Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } + ///Return tasks with the specified parent node + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } } ///Request options for CatTemplates
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html
public partial class CatTemplatesRequestParameters : RequestParameters @@ -674,7 +675,7 @@ public partial class DeleteByQueryRequestParameters : RequestParameters public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - ///What to do when the delete-by-query hits version conflicts? + ///What to do when the delete by query hits version conflicts? public Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -720,9 +721,9 @@ public partial class DeleteByQueryRequestParameters : RequestParameters public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the delete by query public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } - ///Should the request should block until the delete-by-query is complete. + ///Should the request should block until the delete by query is complete. public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } ///The throttle for this request in sub-requests per second. -1 means no throttle. public long? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } @@ -947,7 +948,7 @@ public partial class ClearCacheRequestParameters : RequestParameters HttpMethod.POST; ///Clear field data public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } - ///A comma-separated list of fields to clear when using the `field_data` parameter (default: all) + ///A comma-separated list of fields to clear when using the `fielddata` parameter (default: all) public string[] Fields { get => Q("fields"); set => Q("fields", value); } ///Clear query caches public bool? Query { get => Q("query"); set => Q("query", value); } @@ -962,12 +963,13 @@ public partial class ClearCacheRequestParameters : RequestParameters Q("expand_wildcards"); set => Q("expand_wildcards", value); } ///A comma-separated list of index name to limit the operation public string[] IndexQueryString { get => Q("index"); set => Q("index", value); } - ///Clear the recycler cache - public bool? Recycler { get => Q("recycler"); set => Q("recycler", value); } ///Clear request cache public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } ///Clear request cache public bool? Request { get => Q("request"); set => Q("request", value); } + ///Clear the recycle cache + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28866")] + public bool? Recycler { get => Q("recycler"); set => Q("recycler", value); } } ///Request options for IndicesClose
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html
public partial class CloseIndexRequestParameters : RequestParameters @@ -998,6 +1000,7 @@ public partial class CreateIndexRequestParameters : RequestParametersSpecify timeout for connection to master public TimeSpan MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public bool? UpdateAllTypes { get => Q("update_all_types"); set => Q("update_all_types", value); } } ///Request options for IndicesDelete
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html
@@ -1310,6 +1313,7 @@ public partial class PutMappingRequestParameters : RequestParametersWhether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public bool? UpdateAllTypes { get => Q("update_all_types"); set => Q("update_all_types", value); } } ///Request options for IndicesPutSettingsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html
@@ -1318,6 +1322,8 @@ public partial class UpdateIndexSettingsRequestParameters : RequestParameters HttpMethod.PUT; ///Specify timeout for connection to master public TimeSpan MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + ///Explicit operation timeout + public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } ///Whether to update existing settings. If set to `true` existing settings on an index remain unchanged, the default is `false` public bool? PreserveExisting { get => Q("preserve_existing"); set => Q("preserve_existing", value); } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -1747,6 +1753,11 @@ public partial class RenderSearchTemplateRequestParameters : RequestParameters HttpMethod.POST; } + ///Request options for ScriptsPainlessExecute
https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html
+ public partial class ExecutePainlessScriptRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.POST; + } ///Request options for Scroll
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html
public partial class ScrollRequestParameters : RequestParameters { @@ -1799,6 +1810,8 @@ public partial class SearchRequestParameters : RequestParameters Q("suggest_text"); set => Q("suggest_text", value); } ///Indicate if the number of documents that match the query should be tracked public bool? TrackTotalHits { get => Q("track_total_hits"); set => Q("track_total_hits", value); } + ///Indicate if an error should be returned if there is a partial search failure or timeout + public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } ///Specify if request cache should be used for this request or not, defaults to index level setting @@ -1963,8 +1976,6 @@ public partial class CancelTasksRequestParameters : RequestParameters Q("nodes"); set => Q("nodes", value); } ///A comma-separated list of actions that should be cancelled. Leave empty to cancel all. public string[] Actions { get => Q("actions"); set => Q("actions", value); } - ///Cancel tasks with specified parent node. - public string ParentNode { get => 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 ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } } @@ -1974,6 +1985,8 @@ public partial class GetTaskRequestParameters : RequestParameters HttpMethod.GET; ///Wait for the matching tasks to complete (default: false) public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + ///Explicit operation timeout + public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } ///Request options for TasksList
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class ListTasksRequestParameters : RequestParameters @@ -1988,14 +2001,17 @@ public partial class ListTasksRequestParameters : RequestParameters Q("actions"); set => Q("actions", value); } ///Return detailed task information (default: false) public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } - ///Return tasks with specified parent node. - public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } ///Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. public string ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } ///Wait for the matching tasks to complete (default: false) public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } ///Group tasks by nodes or parent/child relationships public GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } + ///Explicit operation timeout + public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } + ///Return tasks with the specified parent node + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } } ///Request options for Termvectors
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html
public partial class TermVectorsRequestParameters : RequestParameters @@ -2131,7 +2147,7 @@ public partial class UpdateByQueryRequestParameters : RequestParameters public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the update by query public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } ///Should the request should block until the update by query operation is complete. public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } @@ -2191,6 +2207,10 @@ public partial class PostLicenseRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; + ///The type of trial license to generate (default: "trial") + public string TypeQueryString { get => Q("type"); set => Q("type", value); } + ///whether the user has acknowledged acknowledge messages (default: false) + public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } } ///Request options for XpackMlCloseJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html
public partial class CloseJobRequestParameters : RequestParameters @@ -2574,6 +2594,8 @@ public partial class PutWatchRequestParameters : RequestParameters Q("master_timeout"); set => Q("master_timeout", value); } ///Specify whether the watch is in/active by default public bool? Active { get => Q("active"); set => Q("active", value); } + ///Explicit version number for concurrency control + public long? Version { get => Q("version"); set => Q("version", value); } } ///Request options for XpackWatcherRestart
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html
public partial class RestartWatcherRequestParameters : RequestParameters diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs index a0a7ab948fe..a7cbbdc61d2 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Generated.cs @@ -10,7 +10,7 @@ //This file is automatically generated from https://github.com/elastic/elasticsearch/tree/master/rest-api-spec - + namespace Elasticsearch.Net { /// @@ -18,617 +18,508 @@ namespace Elasticsearch.Net /// public partial class ElasticLowLevelClient : IElasticLowLevelClient { - ///POST on /_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Bulk(PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_bulk"), body, _params(requestParameters)); - ///POST on /_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task BulkAsync(PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_bulk"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Bulk(string index, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_bulk"), body, _params(requestParameters)); - ///POST on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task BulkAsync(string index, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_bulk"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Bulk(string index, string type, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task BulkAsync(string index, string type, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), ctx, body, _params(requestParameters)); - ///PUT on /_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse BulkPut(PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_bulk"), body, _params(requestParameters)); - ///PUT on /_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task BulkPutAsync(PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_bulk"), ctx, body, _params(requestParameters)); - ///PUT on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse BulkPut(string index, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_bulk"), body, _params(requestParameters)); - ///PUT on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task BulkPutAsync(string index, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_bulk"), ctx, body, _params(requestParameters)); - ///PUT on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse BulkPut(string index, string type, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), body, _params(requestParameters)); - ///PUT on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task BulkPutAsync(string index, string type, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_bulk"), ctx, body, _params(requestParameters)); - ///GET on /_cat/aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatAliases(CatAliasesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/aliases"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatAliasesAsync(CatAliasesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/aliases"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/aliases/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatAliases(string name, CatAliasesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/aliases/{name.NotNull("name")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/aliases/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatAliasesAsync(string name, CatAliasesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/aliases/{name.NotNull("name")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/allocation http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatAllocation(CatAllocationRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/allocation"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/allocation http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatAllocationAsync(CatAllocationRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/allocation"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/allocation/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A comma-separated list of node IDs or names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatAllocation(string node_id, CatAllocationRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/allocation/{node_id.NotNull("node_id")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/allocation/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A comma-separated list of node IDs or names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatAllocationAsync(string node_id, CatAllocationRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/allocation/{node_id.NotNull("node_id")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/count http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatCount(CatCountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/count"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/count http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatCountAsync(CatCountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/count"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/count/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatCount(string index, CatCountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/count/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/count/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatCountAsync(string index, CatCountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/count/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/fielddata http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatFielddata(CatFielddataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/fielddata"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/fielddata http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatFielddataAsync(CatFielddataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/fielddata"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/fielddata/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A comma-separated list of fields to return the fielddata size ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatFielddata(string fields, CatFielddataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/fielddata/{fields.NotNull("fields")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/fielddata/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A comma-separated list of fields to return the fielddata size ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatFielddataAsync(string fields, CatFielddataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/fielddata/{fields.NotNull("fields")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatHealth(CatHealthRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/health"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatHealthAsync(CatHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/health"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatHelp(CatHelpRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatHelpAsync(CatHelpRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/indices http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatIndices(CatIndicesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/indices"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/indices http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatIndicesAsync(CatIndicesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/indices"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/indices/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatIndices(string index, CatIndicesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/indices/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/indices/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatIndicesAsync(string index, CatIndicesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/indices/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/master http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatMaster(CatMasterRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/master"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/master http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatMasterAsync(CatMasterRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/master"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/nodeattrs http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatNodeattrs(CatNodeAttributesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/nodeattrs"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/nodeattrs http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatNodeattrsAsync(CatNodeAttributesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/nodeattrs"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatNodes(CatNodesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/nodes"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatNodesAsync(CatNodesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/nodes"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatPendingTasks(CatPendingTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/pending_tasks"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatPendingTasksAsync(CatPendingTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/pending_tasks"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/plugins http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatPlugins(CatPluginsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/plugins"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/plugins http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatPluginsAsync(CatPluginsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/plugins"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatRecovery(CatRecoveryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/recovery"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatRecoveryAsync(CatRecoveryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/recovery"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/recovery/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatRecovery(string index, CatRecoveryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/recovery/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/recovery/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatRecoveryAsync(string index, CatRecoveryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/recovery/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/repositories http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatRepositories(CatRepositoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/repositories"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/repositories http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatRepositoriesAsync(CatRepositoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/repositories"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/segments http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatSegments(CatSegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/segments"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/segments http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatSegmentsAsync(CatSegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/segments"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/segments/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatSegments(string index, CatSegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/segments/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/segments/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatSegmentsAsync(string index, CatSegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/segments/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/shards http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatShards(CatShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/shards"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/shards http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatShardsAsync(CatShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/shards"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/shards/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatShards(string index, CatShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/shards/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/shards/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatShardsAsync(string index, CatShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/shards/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/snapshots http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatSnapshots(CatSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/snapshots"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/snapshots http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatSnapshotsAsync(CatSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/snapshots"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/snapshots/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///Name of repository from which to fetch the snapshot information ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatSnapshots(string repository, CatSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/snapshots/{repository.NotNull("repository")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/snapshots/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///Name of repository from which to fetch the snapshot information ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatSnapshotsAsync(string repository, CatSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/snapshots/{repository.NotNull("repository")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatTasks(CatTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/tasks"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatTasksAsync(CatTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/tasks"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/templates http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatTemplates(CatTemplatesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/templates"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/templates http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatTemplatesAsync(CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/templates"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/templates/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A pattern that returned template names must match ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatTemplates(string name, CatTemplatesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/templates/{name.NotNull("name")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/templates/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A pattern that returned template names must match ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatTemplatesAsync(string name, CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/templates/{name.NotNull("name")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/thread_pool http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatThreadPool(CatThreadPoolRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/thread_pool"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/thread_pool http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatThreadPoolAsync(CatThreadPoolRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/thread_pool"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/thread_pool/{thread_pool_patterns} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A comma-separated list of regular-expressions to filter the thread pools in the output ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CatThreadPool(string thread_pool_patterns, CatThreadPoolRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cat/thread_pool/{thread_pool_patterns.NotNull("thread_pool_patterns")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///GET on /_cat/thread_pool/{thread_pool_patterns} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A comma-separated list of regular-expressions to filter the thread pools in the output ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CatThreadPoolAsync(string thread_pool_patterns, CatThreadPoolRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cat/thread_pool/{thread_pool_patterns.NotNull("thread_pool_patterns")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain")); - ///DELETE on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClearScroll(PostData body, ClearScrollRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_search/scroll"), body, _params(requestParameters)); - ///DELETE on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClearScrollAsync(PostData body, ClearScrollRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_search/scroll"), ctx, body, _params(requestParameters)); - ///GET on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterAllocationExplainGet(ClusterAllocationExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/allocation/explain"), null, _params(requestParameters)); - ///GET on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterAllocationExplainGetAsync(ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/allocation/explain"), ctx, null, _params(requestParameters)); - ///POST on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html - ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' + ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterAllocationExplain(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_cluster/allocation/explain"), body, _params(requestParameters)); - ///POST on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html - ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' + ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterAllocationExplainAsync(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_cluster/allocation/explain"), ctx, body, _params(requestParameters)); - ///GET on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterGetSettings(ClusterGetSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/settings"), null, _params(requestParameters)); - ///GET on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterGetSettingsAsync(ClusterGetSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/settings"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterHealth(ClusterHealthRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/health"), null, _params(requestParameters)); - ///GET on /_cluster/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterHealthAsync(ClusterHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/health"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/health/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///Limit the information returned to a specific index ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterHealth(string index, ClusterHealthRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/health/{index.NotNull("index")}"), null, _params(requestParameters)); - ///GET on /_cluster/health/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///Limit the information returned to a specific index ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterHealthAsync(string index, ClusterHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/health/{index.NotNull("index")}"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterPendingTasks(ClusterPendingTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/pending_tasks"), null, _params(requestParameters)); - ///GET on /_cluster/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterPendingTasksAsync(ClusterPendingTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/pending_tasks"), ctx, null, _params(requestParameters)); - ///PUT on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterPutSettings(PostData body, ClusterPutSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_cluster/settings"), body, _params(requestParameters)); - ///PUT on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterPutSettingsAsync(PostData body, ClusterPutSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_cluster/settings"), ctx, body, _params(requestParameters)); - ///GET on /_remote/info 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 TResponse ClusterRemoteInfo(RemoteInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_remote/info"), null, _params(requestParameters)); - ///GET on /_remote/info 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(RemoteInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_remote/info"), ctx, null, _params(requestParameters)); - ///POST on /_cluster/reroute http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterReroute(PostData body, ClusterRerouteRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_cluster/reroute"), body, _params(requestParameters)); - ///POST on /_cluster/reroute http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterRerouteAsync(PostData body, ClusterRerouteRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_cluster/reroute"), ctx, body, _params(requestParameters)); - ///GET on /_cluster/state http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterState(ClusterStateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/state"), null, _params(requestParameters)); - ///GET on /_cluster/state http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterStateAsync(ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/state"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/state/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterState(string metric, ClusterStateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/state/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_cluster/state/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.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 ClusterStateAsync(string metric, ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/state/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/state/{metric}/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///Limit the information returned to the specified metrics ///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 TResponse ClusterState(string metric, string index, ClusterStateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/state/{metric.NotNull("metric")}/{index.NotNull("index")}"), null, _params(requestParameters)); - ///GET on /_cluster/state/{metric}/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///Limit the information returned to the specified metrics ///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 ClusterStateAsync(string metric, string index, ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/state/{metric.NotNull("metric")}/{index.NotNull("index")}"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ClusterStats(ClusterStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/stats"), null, _params(requestParameters)); - ///GET on /_cluster/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ClusterStatsAsync(ClusterStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/stats"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/stats/nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.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 + ///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 TResponse ClusterStats(string node_id, ClusterStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/stats/nodes/{node_id.NotNull("node_id")}"), null, _params(requestParameters)); - ///GET on /_cluster/stats/nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.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 + ///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 ClusterStatsAsync(string node_id, ClusterStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/stats/nodes/{node_id.NotNull("node_id")}"), ctx, null, _params(requestParameters)); - ///POST on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Count(PostData body, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_count"), body, _params(requestParameters)); - ///POST on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CountAsync(PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_count"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Count(string index, PostData body, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_count"), body, _params(requestParameters)); - ///POST on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CountAsync(string index, PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_count"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results @@ -636,7 +527,6 @@ public TResponse Count(string index, PostData body, CountRequestParam ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Count(string index, string type, PostData body, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results @@ -644,43 +534,36 @@ public TResponse Count(string index, string type, PostData body, Coun ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CountAsync(string index, string type, PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), ctx, body, _params(requestParameters)); - ///GET on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CountGet(CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_count"), null, _params(requestParameters)); - ///GET on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CountGetAsync(CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_count"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CountGet(string index, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_count"), null, _params(requestParameters)); - ///GET on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CountGetAsync(string index, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_count"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CountGet(string index, string type, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CountGetAsync(string index, string type, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_count"), ctx, null, _params(requestParameters)); - ///PUT on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -689,7 +572,6 @@ public TResponse CountGet(string index, string type, CountRequestPara ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Create(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), body, _params(requestParameters)); - ///PUT on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -698,7 +580,6 @@ public TResponse Create(string index, string type, string id, PostDat ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CreateAsync(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -707,7 +588,6 @@ public TResponse Create(string index, string type, string id, PostDat ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse CreatePost(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), body, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -716,7 +596,6 @@ public TResponse CreatePost(string index, string type, string id, Pos ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task CreatePostAsync(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_create"), ctx, body, _params(requestParameters)); - ///DELETE on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html ///The name of the index ///The type of the document @@ -724,7 +603,6 @@ public TResponse CreatePost(string index, string type, string id, Pos ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Delete(string index, string type, string id, DeleteRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters)); - ///DELETE on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html ///The name of the index ///The type of the document @@ -732,21 +610,18 @@ public TResponse Delete(string index, string type, string id, DeleteR ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task DeleteAsync(string index, string type, string id, DeleteRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse DeleteByQuery(string index, PostData body, DeleteByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_delete_by_query"), body, _params(requestParameters)); - ///POST on /{index}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task DeleteByQueryAsync(string index, PostData body, DeleteByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_delete_by_query"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 @@ -754,7 +629,6 @@ public TResponse DeleteByQuery(string index, PostData body, DeleteByQ ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse DeleteByQuery(string index, string type, PostData body, DeleteByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_delete_by_query"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 @@ -762,19 +636,16 @@ public TResponse DeleteByQuery(string index, string type, PostData bo ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task DeleteByQueryAsync(string index, string type, PostData body, DeleteByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_delete_by_query"), ctx, body, _params(requestParameters)); - ///DELETE on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse DeleteScript(string id, DeleteScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_scripts/{id.NotNull("id")}"), null, _params(requestParameters)); - ///DELETE on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task DeleteScriptAsync(string id, DeleteScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_scripts/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///HEAD on /{index}/{type}/{id} 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) @@ -782,7 +653,6 @@ public TResponse DeleteScript(string id, DeleteScriptRequestParameter ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Exists(string index, string type, string id, DocumentExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters)); - ///HEAD on /{index}/{type}/{id} 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) @@ -790,7 +660,6 @@ public TResponse Exists(string index, string type, string id, Documen ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ExistsAsync(string index, string type, string id, DocumentExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///HEAD on /{index}/{type}/{id}/_source 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 @@ -798,7 +667,6 @@ public TResponse Exists(string index, string type, string id, Documen ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ExistsSource(string index, string type, string id, SourceExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), null, _params(requestParameters)); - ///HEAD on /{index}/{type}/{id}/_source 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 @@ -806,7 +674,6 @@ public TResponse ExistsSource(string index, string type, string id, S ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ExistsSourceAsync(string index, string type, string id, SourceExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document @@ -814,7 +681,6 @@ public TResponse ExistsSource(string index, string type, string id, S ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ExplainGet(string index, string type, string id, ExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), null, _params(requestParameters)); - ///GET on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document @@ -822,7 +688,6 @@ public TResponse ExplainGet(string index, string type, string id, Exp ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ExplainGetAsync(string index, string type, string id, ExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), ctx, null, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document @@ -831,7 +696,6 @@ public TResponse ExplainGet(string index, string type, string id, Exp ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Explain(string index, string type, string id, PostData body, ExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), body, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document @@ -840,55 +704,46 @@ public TResponse Explain(string index, string type, string id, PostDa ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ExplainAsync(string index, string type, string id, PostData body, ExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_explain"), ctx, body, _params(requestParameters)); - ///GET on /_field_caps 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 TResponse FieldCapsGet(FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_field_caps"), null, _params(requestParameters)); - ///GET on /_field_caps 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(FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_field_caps"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_field_caps 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. public TResponse FieldCapsGet(string index, FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_field_caps"), null, _params(requestParameters)); - ///GET on /{index}/_field_caps 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. public Task FieldCapsGetAsync(string index, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_field_caps"), ctx, null, _params(requestParameters)); - ///POST on /_field_caps 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. public TResponse FieldCaps(PostData body, FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_field_caps"), body, _params(requestParameters)); - ///POST on /_field_caps 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. public Task FieldCapsAsync(PostData body, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_field_caps"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_field_caps 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. public TResponse FieldCaps(string index, PostData body, FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_field_caps"), body, _params(requestParameters)); - ///POST on /{index}/_field_caps 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. public Task FieldCapsAsync(string index, PostData body, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_field_caps"), ctx, body, _params(requestParameters)); - ///GET on /{index}/{type}/{id} 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) @@ -896,7 +751,6 @@ public TResponse FieldCaps(string index, PostData body, FieldCapabili ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Get(string index, string type, string id, GetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), null, _params(requestParameters)); - ///GET on /{index}/{type}/{id} 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) @@ -904,19 +758,16 @@ public TResponse Get(string index, string type, string id, GetRequest ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task GetAsync(string index, string type, string id, GetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///GET on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse GetScript(string id, GetScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_scripts/{id.NotNull("id")}"), null, _params(requestParameters)); - ///GET on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task GetScriptAsync(string id, GetScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_scripts/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/{id}/_source 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 @@ -924,7 +775,6 @@ public TResponse GetScript(string id, GetScriptRequestParameters requ ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse GetSource(string index, string type, string id, SourceRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), null, _params(requestParameters)); - ///GET on /{index}/{type}/{id}/_source 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 @@ -932,7 +782,6 @@ public TResponse GetSource(string index, string type, string id, Sour ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task GetSourceAsync(string index, string type, string id, SourceRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_source"), ctx, null, _params(requestParameters)); - ///POST on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -940,7 +789,6 @@ public TResponse GetSource(string index, string type, string id, Sour ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Index(string index, string type, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), body, _params(requestParameters)); - ///POST on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -948,7 +796,6 @@ public TResponse Index(string index, string type, PostData body, Inde ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndexAsync(string index, string type, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -957,7 +804,6 @@ public TResponse Index(string index, string type, PostData body, Inde ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Index(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), body, _params(requestParameters)); - ///POST on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -966,7 +812,6 @@ public TResponse Index(string index, string type, string id, PostData ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndexAsync(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - ///PUT on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -974,7 +819,6 @@ public TResponse Index(string index, string type, string id, PostData ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndexPut(string index, string type, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), body, _params(requestParameters)); - ///PUT on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -982,7 +826,6 @@ public TResponse IndexPut(string index, string type, PostData body, I ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndexPutAsync(string index, string type, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}"), ctx, body, _params(requestParameters)); - ///PUT on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -991,7 +834,6 @@ public TResponse IndexPut(string index, string type, PostData body, I ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndexPut(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), body, _params(requestParameters)); - ///PUT on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -1000,437 +842,364 @@ public TResponse IndexPut(string index, string type, string id, PostD ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndexPutAsync(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - ///GET on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesAnalyzeGetForAll(AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_analyze"), null, _params(requestParameters)); - ///GET on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesAnalyzeGetForAllAsync(AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_analyze"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesAnalyzeGet(string index, AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_analyze"), null, _params(requestParameters)); - ///GET on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesAnalyzeGetAsync(string index, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_analyze"), ctx, null, _params(requestParameters)); - ///POST on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesAnalyzeForAll(PostData body, AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_analyze"), body, _params(requestParameters)); - ///POST on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesAnalyzeForAllAsync(PostData body, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_analyze"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesAnalyze(string index, PostData body, AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_analyze"), body, _params(requestParameters)); - ///POST on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesAnalyzeAsync(string index, PostData body, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_analyze"), ctx, body, _params(requestParameters)); - ///POST on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesClearCacheForAll(ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_cache/clear"), null, _params(requestParameters)); - ///POST on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesClearCacheForAllAsync(ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_cache/clear"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesClearCache(string index, ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_cache/clear"), null, _params(requestParameters)); - ///POST on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesClearCacheAsync(string index, ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_cache/clear"), ctx, null, _params(requestParameters)); - ///GET on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesClearCacheGetForAll(ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cache/clear"), null, _params(requestParameters)); - ///GET on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesClearCacheGetForAllAsync(ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cache/clear"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesClearCacheGet(string index, ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_cache/clear"), null, _params(requestParameters)); - ///GET on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesClearCacheGetAsync(string index, ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_cache/clear"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_close http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to close ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesClose(string index, CloseIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_close"), null, _params(requestParameters)); - ///POST on /{index}/_close http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to close ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesCloseAsync(string index, CloseIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_close"), ctx, null, _params(requestParameters)); - ///PUT on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html ///The name of the index ///The configuration for the index (`settings` and `mappings`) ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesCreate(string index, PostData body, CreateIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}"), body, _params(requestParameters)); - ///PUT on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html ///The name of the index ///The configuration for the index (`settings` and `mappings`) ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesCreateAsync(string index, PostData body, CreateIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}"), ctx, body, _params(requestParameters)); - ///DELETE on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesDelete(string index, DeleteIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"{index.NotNull("index")}"), null, _params(requestParameters)); - ///DELETE on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesDeleteAsync(string index, DeleteIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"{index.NotNull("index")}"), ctx, null, _params(requestParameters)); - ///DELETE on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesDeleteAlias(string index, string name, DeleteAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters)); - ///DELETE on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesDeleteAliasAsync(string index, string name, DeleteAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesDeleteTemplateForAll(string name, DeleteIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters)); - ///DELETE on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesDeleteTemplateForAllAsync(string name, DeleteIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_template/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///HEAD on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesExists(string index, IndexExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($"{index.NotNull("index")}"), null, _params(requestParameters)); - ///HEAD on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesExistsAsync(string index, IndexExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}"), ctx, null, _params(requestParameters)); - ///HEAD on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesExistsAliasForAll(string name, AliasExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($"_alias/{name.NotNull("name")}"), null, _params(requestParameters)); - ///HEAD on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesExistsAliasForAllAsync(string name, AliasExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($"_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///HEAD on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesExistsAlias(string index, string name, AliasExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters)); - ///HEAD on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesExistsAliasAsync(string index, string name, AliasExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///HEAD on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesExistsTemplateForAll(string name, IndexTemplateExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters)); - ///HEAD on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesExistsTemplateForAllAsync(string name, IndexTemplateExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($"_template/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///HEAD on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html ///A comma-separated list of index names; use `_all` to check the types across all indices ///A comma-separated list of document types to check ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesExistsType(string index, string type, TypeExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), null, _params(requestParameters)); - ///HEAD on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html ///A comma-separated list of index names; use `_all` to check the types across all indices ///A comma-separated list of document types to check ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesExistsTypeAsync(string index, string type, TypeExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), ctx, null, _params(requestParameters)); - ///POST on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlushForAll(FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_flush"), null, _params(requestParameters)); - ///POST on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushForAllAsync(FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_flush"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlush(string index, FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_flush"), null, _params(requestParameters)); - ///POST on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushAsync(string index, FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_flush"), ctx, null, _params(requestParameters)); - ///GET on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlushGetForAll(FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_flush"), null, _params(requestParameters)); - ///GET on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushGetForAllAsync(FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_flush"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlushGet(string index, FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_flush"), null, _params(requestParameters)); - ///GET on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushGetAsync(string index, FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_flush"), ctx, null, _params(requestParameters)); - ///POST on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlushSyncedForAll(SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_flush/synced"), null, _params(requestParameters)); - ///POST on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushSyncedForAllAsync(SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_flush/synced"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlushSynced(string index, SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_flush/synced"), null, _params(requestParameters)); - ///POST on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushSyncedAsync(string index, SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_flush/synced"), ctx, null, _params(requestParameters)); - ///GET on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlushSyncedGetForAll(SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_flush/synced"), null, _params(requestParameters)); - ///GET on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushSyncedGetForAllAsync(SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_flush/synced"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesFlushSyncedGet(string index, SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_flush/synced"), null, _params(requestParameters)); - ///GET on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesFlushSyncedGetAsync(string index, SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_flush/synced"), ctx, null, _params(requestParameters)); - ///POST on /_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesForcemergeForAll(ForceMergeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_forcemerge"), null, _params(requestParameters)); - ///POST on /_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesForcemergeForAllAsync(ForceMergeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_forcemerge"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.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 TResponse IndicesForcemerge(string index, ForceMergeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_forcemerge"), null, _params(requestParameters)); - ///POST on /{index}/_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.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 IndicesForcemergeAsync(string index, ForceMergeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_forcemerge"), ctx, null, _params(requestParameters)); - ///GET on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGet(string index, GetIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}"), null, _params(requestParameters)); - ///GET on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetAsync(string index, GetIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}"), ctx, null, _params(requestParameters)); - ///GET on /_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetAliasForAll(GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_alias"), null, _params(requestParameters)); - ///GET on /_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetAliasForAllAsync(GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_alias"), ctx, null, _params(requestParameters)); - ///GET on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetAliasForAll(string name, GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_alias/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetAliasForAllAsync(string name, GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetAlias(string index, string name, GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetAliasAsync(string index, string name, GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetAlias(string index, GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_alias"), null, _params(requestParameters)); - ///GET on /{index}/_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetAliasAsync(string index, GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_alias"), ctx, null, _params(requestParameters)); - ///GET on /_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetFieldMappingForAll(string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_mapping/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); - ///GET on /_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetFieldMappingForAllAsync(string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_mapping/field/{fields.NotNull("fields")}"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetFieldMapping(string index, string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); - ///GET on /{index}/_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetFieldMappingAsync(string index, string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping/field/{fields.NotNull("fields")}"), ctx, null, _params(requestParameters)); - ///GET on /_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of document types ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetFieldMappingForAll(string type, string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); - ///GET on /_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of document types ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetFieldMappingForAllAsync(string type, string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types @@ -1438,7 +1207,6 @@ public TResponse IndicesGetFieldMappingForAll(string type, string fie ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetFieldMapping(string index, string type, string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), null, _params(requestParameters)); - ///GET on /{index}/_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types @@ -1446,159 +1214,132 @@ public TResponse IndicesGetFieldMapping(string index, string type, st ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetFieldMappingAsync(string index, string type, string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}/field/{fields.NotNull("fields")}"), ctx, null, _params(requestParameters)); - ///GET on /_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetMappingForAll(GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_mapping"), null, _params(requestParameters)); - ///GET on /_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetMappingForAllAsync(GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_mapping"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetMapping(string index, GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping"), null, _params(requestParameters)); - ///GET on /{index}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetMappingAsync(string index, GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping"), ctx, null, _params(requestParameters)); - ///GET on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetMappingForAll(string type, GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_mapping/{type.NotNull("type")}"), null, _params(requestParameters)); - ///GET on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetMappingForAllAsync(string type, GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_mapping/{type.NotNull("type")}"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetMapping(string index, string type, GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), null, _params(requestParameters)); - ///GET on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetMappingAsync(string index, string type, GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), ctx, null, _params(requestParameters)); - ///GET on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetSettingsForAll(GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_settings"), null, _params(requestParameters)); - ///GET on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetSettingsForAllAsync(GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_settings"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.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 TResponse IndicesGetSettings(string index, GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_settings"), null, _params(requestParameters)); - ///GET on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.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 IndicesGetSettingsAsync(string index, GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_settings"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetSettings(string index, string name, GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_settings/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /{index}/_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetSettingsAsync(string index, string name, GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_settings/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetSettingsForAll(string name, GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_settings/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetSettingsForAllAsync(string name, GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_settings/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /_template http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetTemplateForAll(GetIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_template"), null, _params(requestParameters)); - ///GET on /_template http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetTemplateForAllAsync(GetIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_template"), ctx, null, _params(requestParameters)); - ///GET on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetTemplateForAll(string name, GetIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetTemplateForAllAsync(string name, GetIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_template/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesGetUpgradeForAll(UpgradeStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_upgrade"), null, _params(requestParameters)); - ///GET on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesGetUpgradeForAllAsync(UpgradeStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_upgrade"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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 TResponse IndicesGetUpgrade(string index, UpgradeStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_upgrade"), null, _params(requestParameters)); - ///GET on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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 IndicesGetUpgradeAsync(string index, UpgradeStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_upgrade"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_open http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to open ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesOpen(string index, OpenIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_open"), null, _params(requestParameters)); - ///POST on /{index}/_open http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to open ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesOpenAsync(string index, OpenIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_open"), ctx, null, _params(requestParameters)); - ///PUT on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated @@ -1606,7 +1347,6 @@ public TResponse IndicesOpen(string index, OpenIndexRequestParameters ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutAlias(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), body, _params(requestParameters)); - ///PUT on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated @@ -1614,7 +1354,6 @@ public TResponse IndicesPutAlias(string index, string name, PostData ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutAliasAsync(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated @@ -1622,7 +1361,6 @@ public TResponse IndicesPutAlias(string index, string name, PostData ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutAliasPost(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), body, _params(requestParameters)); - ///POST on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated @@ -1630,7 +1368,6 @@ public TResponse IndicesPutAliasPost(string index, string name, PostD ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutAliasPostAsync(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///PUT on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type @@ -1638,7 +1375,6 @@ public TResponse IndicesPutAliasPost(string index, string name, PostD ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutMapping(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), body, _params(requestParameters)); - ///PUT on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type @@ -1646,21 +1382,18 @@ public TResponse IndicesPutMapping(string index, string type, PostDat ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutMappingAsync(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), ctx, body, _params(requestParameters)); - ///PUT on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutMappingForAll(string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_mapping/{type.NotNull("type")}"), body, _params(requestParameters)); - ///PUT on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutMappingForAllAsync(string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_mapping/{type.NotNull("type")}"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type @@ -1668,7 +1401,6 @@ public TResponse IndicesPutMappingForAll(string type, PostData body, ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutMappingPost(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type @@ -1676,155 +1408,130 @@ public TResponse IndicesPutMappingPost(string index, string type, Pos ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutMappingPostAsync(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mapping"), ctx, body, _params(requestParameters)); - ///POST on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutMappingPostForAll(string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_mapping/{type.NotNull("type")}"), body, _params(requestParameters)); - ///POST on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutMappingPostForAllAsync(string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_mapping/{type.NotNull("type")}"), ctx, body, _params(requestParameters)); - ///PUT on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutSettingsForAll(PostData body, UpdateIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_settings"), body, _params(requestParameters)); - ///PUT on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutSettingsForAllAsync(PostData body, UpdateIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_settings"), ctx, body, _params(requestParameters)); - ///PUT on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutSettings(string index, PostData body, UpdateIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_settings"), body, _params(requestParameters)); - ///PUT on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutSettingsAsync(string index, PostData body, UpdateIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_settings"), ctx, body, _params(requestParameters)); - ///PUT on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutTemplateForAll(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_template/{name.NotNull("name")}"), body, _params(requestParameters)); - ///PUT on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutTemplateForAllAsync(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_template/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///POST on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesPutTemplatePostForAll(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_template/{name.NotNull("name")}"), body, _params(requestParameters)); - ///POST on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesPutTemplatePostForAllAsync(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_template/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///GET on /_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesRecoveryForAll(RecoveryStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_recovery"), null, _params(requestParameters)); - ///GET on /_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesRecoveryForAllAsync(RecoveryStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_recovery"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.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 TResponse IndicesRecovery(string index, RecoveryStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_recovery"), null, _params(requestParameters)); - ///GET on /{index}/_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.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 IndicesRecoveryAsync(string index, RecoveryStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_recovery"), ctx, null, _params(requestParameters)); - ///POST on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesRefreshForAll(RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_refresh"), null, _params(requestParameters)); - ///POST on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesRefreshForAllAsync(RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_refresh"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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 TResponse IndicesRefresh(string index, RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_refresh"), null, _params(requestParameters)); - ///POST on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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 IndicesRefreshAsync(string index, RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_refresh"), ctx, null, _params(requestParameters)); - ///GET on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesRefreshGetForAll(RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_refresh"), null, _params(requestParameters)); - ///GET on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesRefreshGetForAllAsync(RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_refresh"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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 TResponse IndicesRefreshGet(string index, RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_refresh"), null, _params(requestParameters)); - ///GET on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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 IndicesRefreshGetAsync(string index, RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_refresh"), ctx, null, _params(requestParameters)); - ///POST on /{alias}/_rollover http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The conditions that needs to be met for executing rollover ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesRolloverForAll(string alias, PostData body, RolloverIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{alias.NotNull("alias")}/_rollover"), body, _params(requestParameters)); - ///POST on /{alias}/_rollover http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The conditions that needs to be met for executing rollover ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesRolloverForAllAsync(string alias, PostData body, RolloverIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{alias.NotNull("alias")}/_rollover"), ctx, body, _params(requestParameters)); - ///POST on /{alias}/_rollover/{new_index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The name of the rollover index @@ -1832,7 +1539,6 @@ public TResponse IndicesRolloverForAll(string alias, PostData body, R ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesRolloverForAll(string alias, string new_index, PostData body, RolloverIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{alias.NotNull("alias")}/_rollover/{new_index.NotNull("new_index")}"), body, _params(requestParameters)); - ///POST on /{alias}/_rollover/{new_index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The name of the rollover index @@ -1840,51 +1546,42 @@ public TResponse IndicesRolloverForAll(string alias, string new_index ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesRolloverForAllAsync(string alias, string new_index, PostData body, RolloverIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{alias.NotNull("alias")}/_rollover/{new_index.NotNull("new_index")}"), ctx, body, _params(requestParameters)); - ///GET on /_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesSegmentsForAll(SegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_segments"), null, _params(requestParameters)); - ///GET on /_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesSegmentsForAllAsync(SegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_segments"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.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 TResponse IndicesSegments(string index, SegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_segments"), null, _params(requestParameters)); - ///GET on /{index}/_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.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 IndicesSegmentsAsync(string index, SegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_segments"), ctx, null, _params(requestParameters)); - ///GET on /_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesShardStoresForAll(IndicesShardStoresRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_shard_stores"), null, _params(requestParameters)); - ///GET on /_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesShardStoresForAllAsync(IndicesShardStoresRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_shard_stores"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.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 TResponse IndicesShardStores(string index, IndicesShardStoresRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_shard_stores"), null, _params(requestParameters)); - ///GET on /{index}/_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.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 IndicesShardStoresAsync(string index, IndicesShardStoresRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_shard_stores"), ctx, null, _params(requestParameters)); - ///PUT on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into @@ -1892,7 +1589,6 @@ public TResponse IndicesShardStores(string index, IndicesShardStoresR ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesShrink(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), body, _params(requestParameters)); - ///PUT on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into @@ -1900,7 +1596,6 @@ public TResponse IndicesShrink(string index, string target, PostData ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesShrinkAsync(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into @@ -1908,7 +1603,6 @@ public TResponse IndicesShrink(string index, string target, PostData ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesShrinkPost(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), body, _params(requestParameters)); - ///POST on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into @@ -1916,7 +1610,6 @@ public TResponse IndicesShrinkPost(string index, string target, PostD ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesShrinkPostAsync(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_shrink/{target.NotNull("target")}"), ctx, body, _params(requestParameters)); - ///PUT on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into @@ -1924,7 +1617,6 @@ public TResponse IndicesShrinkPost(string index, string target, PostD ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesSplit(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"{index.NotNull("index")}/_split/{target.NotNull("target")}"), body, _params(requestParameters)); - ///PUT on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into @@ -1932,7 +1624,6 @@ public TResponse IndicesSplit(string index, string target, PostData b ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesSplitAsync(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"{index.NotNull("index")}/_split/{target.NotNull("target")}"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into @@ -1940,7 +1631,6 @@ public TResponse IndicesSplit(string index, string target, PostData b ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesSplitPost(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_split/{target.NotNull("target")}"), body, _params(requestParameters)); - ///POST on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into @@ -1948,151 +1638,126 @@ public TResponse IndicesSplitPost(string index, string target, PostDa ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesSplitPostAsync(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_split/{target.NotNull("target")}"), ctx, body, _params(requestParameters)); - ///GET on /_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesStatsForAll(IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_stats"), null, _params(requestParameters)); - ///GET on /_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesStatsForAllAsync(IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_stats"), ctx, null, _params(requestParameters)); - ///GET on /_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesStatsForAll(string metric, IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesStatsForAllAsync(string metric, IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_stats/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-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 TResponse IndicesStats(string index, IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_stats"), null, _params(requestParameters)); - ///GET on /{index}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-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 IndicesStatsAsync(string index, IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_stats"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesStats(string index, string metric, IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /{index}/_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesStatsAsync(string index, string metric, IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_stats/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///POST on /_aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///The definition of `actions` to perform ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesUpdateAliasesForAll(PostData body, BulkAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_aliases"), body, _params(requestParameters)); - ///POST on /_aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///The definition of `actions` to perform ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesUpdateAliasesForAllAsync(PostData body, BulkAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_aliases"), ctx, body, _params(requestParameters)); - ///POST on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesUpgradeForAll(UpgradeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_upgrade"), null, _params(requestParameters)); - ///POST on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesUpgradeForAllAsync(UpgradeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_upgrade"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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 TResponse IndicesUpgrade(string index, UpgradeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_upgrade"), null, _params(requestParameters)); - ///POST on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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 IndicesUpgradeAsync(string index, UpgradeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_upgrade"), ctx, null, _params(requestParameters)); - ///GET on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesValidateQueryGetForAll(ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_validate/query"), null, _params(requestParameters)); - ///GET on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesValidateQueryGetForAllAsync(ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_validate/query"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; 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 TResponse IndicesValidateQueryGet(string index, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_validate/query"), null, _params(requestParameters)); - ///GET on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; 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 IndicesValidateQueryGetAsync(string index, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_validate/query"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesValidateQueryGet(string index, string type, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; 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 IndicesValidateQueryGetAsync(string index, string type, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), ctx, null, _params(requestParameters)); - ///POST on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesValidateQueryForAll(PostData body, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_validate/query"), body, _params(requestParameters)); - ///POST on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesValidateQueryForAllAsync(PostData body, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_validate/query"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesValidateQuery(string index, PostData body, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_validate/query"), body, _params(requestParameters)); - ///POST on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesValidateQueryAsync(string index, PostData body, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_validate/query"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types @@ -2100,7 +1765,6 @@ public TResponse IndicesValidateQuery(string index, PostData body, Va ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IndicesValidateQuery(string index, string type, PostData body, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types @@ -2108,185 +1772,154 @@ public TResponse IndicesValidateQuery(string index, string type, Post ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IndicesValidateQueryAsync(string index, string type, PostData body, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_validate/query"), ctx, body, _params(requestParameters)); - ///GET on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Info(RootNodeInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($""), null, _params(requestParameters)); - ///GET on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task InfoAsync(RootNodeInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($""), ctx, null, _params(requestParameters)); - ///DELETE on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IngestDeletePipeline(string id, DeletePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_ingest/pipeline/{id.NotNull("id")}"), null, _params(requestParameters)); - ///DELETE on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IngestDeletePipelineAsync(string id, DeletePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_ingest/pipeline/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///GET on /_ingest/pipeline 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 TResponse IngestGetPipeline(GetPipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_ingest/pipeline"), null, _params(requestParameters)); - ///GET on /_ingest/pipeline 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 IngestGetPipelineAsync(GetPipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_ingest/pipeline"), ctx, null, _params(requestParameters)); - ///GET on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Comma separated list of pipeline ids. Wildcards supported ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IngestGetPipeline(string id, GetPipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_ingest/pipeline/{id.NotNull("id")}"), null, _params(requestParameters)); - ///GET on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Comma separated list of pipeline ids. Wildcards supported ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IngestGetPipelineAsync(string id, GetPipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_ingest/pipeline/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///GET on /_ingest/processor/grok 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 TResponse IngestProcessorGrok(GrokProcessorPatternsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_ingest/processor/grok"), null, _params(requestParameters)); - ///GET on /_ingest/processor/grok 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(GrokProcessorPatternsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_ingest/processor/grok"), ctx, null, _params(requestParameters)); - ///PUT on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The ingest definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IngestPutPipeline(string id, PostData body, PutPipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_ingest/pipeline/{id.NotNull("id")}"), body, _params(requestParameters)); - ///PUT on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The ingest definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IngestPutPipelineAsync(string id, PostData body, PutPipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_ingest/pipeline/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - ///GET on /_ingest/pipeline/_simulate 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 TResponse IngestSimulateGet(SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_ingest/pipeline/_simulate"), null, _params(requestParameters)); - ///GET on /_ingest/pipeline/_simulate 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 IngestSimulateGetAsync(SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_ingest/pipeline/_simulate"), ctx, null, _params(requestParameters)); - ///GET on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IngestSimulateGet(string id, SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), null, _params(requestParameters)); - ///GET on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IngestSimulateGetAsync(string id, SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), ctx, null, _params(requestParameters)); - ///POST on /_ingest/pipeline/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IngestSimulate(PostData body, SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_ingest/pipeline/_simulate"), body, _params(requestParameters)); - ///POST on /_ingest/pipeline/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IngestSimulateAsync(PostData body, SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_ingest/pipeline/_simulate"), ctx, body, _params(requestParameters)); - ///POST on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse IngestSimulate(string id, PostData body, SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), body, _params(requestParameters)); - ///POST on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task IngestSimulateAsync(string id, PostData body, SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_ingest/pipeline/{id.NotNull("id")}/_simulate"), ctx, body, _params(requestParameters)); - ///GET on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MgetGet(MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_mget"), null, _params(requestParameters)); - ///GET on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MgetGetAsync(MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_mget"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MgetGet(string index, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mget"), null, _params(requestParameters)); - ///GET on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MgetGetAsync(string index, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mget"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MgetGet(string index, string type, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MgetGetAsync(string index, string type, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), ctx, null, _params(requestParameters)); - ///POST on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Mget(PostData body, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_mget"), body, _params(requestParameters)); - ///POST on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MgetAsync(PostData body, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_mget"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Mget(string index, PostData body, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_mget"), body, _params(requestParameters)); - ///POST on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MgetAsync(string index, PostData body, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_mget"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document @@ -2294,7 +1927,6 @@ public TResponse Mget(string index, PostData body, MultiGetRequestPar ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Mget(string index, string type, PostData body, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document @@ -2302,69 +1934,58 @@ public TResponse Mget(string index, string type, PostData body, Multi ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MgetAsync(string index, string type, PostData body, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mget"), ctx, body, _params(requestParameters)); - ///GET on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchGet(MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_msearch"), null, _params(requestParameters)); - ///GET on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchGetAsync(MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_msearch"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchGet(string index, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_msearch"), null, _params(requestParameters)); - ///GET on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchGetAsync(string index, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_msearch"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchGet(string index, string type, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchGetAsync(string index, string type, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), ctx, null, _params(requestParameters)); - ///POST on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Msearch(PostData body, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_msearch"), body, _params(requestParameters)); - ///POST on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchAsync(PostData body, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_msearch"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Msearch(string index, PostData body, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_msearch"), body, _params(requestParameters)); - ///POST on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchAsync(string index, PostData body, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_msearch"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default @@ -2372,7 +1993,6 @@ public TResponse Msearch(string index, PostData body, MultiSearchRequ ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Msearch(string index, string type, PostData body, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default @@ -2380,69 +2000,58 @@ public TResponse Msearch(string index, string type, PostData body, Mu ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchAsync(string index, string type, PostData body, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch"), ctx, body, _params(requestParameters)); - ///GET on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchTemplateGet(MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_msearch/template"), null, _params(requestParameters)); - ///GET on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchTemplateGetAsync(MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_msearch/template"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchTemplateGet(string index, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_msearch/template"), null, _params(requestParameters)); - ///GET on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchTemplateGetAsync(string index, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_msearch/template"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchTemplateGet(string index, string type, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchTemplateGetAsync(string index, string type, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), ctx, null, _params(requestParameters)); - ///POST on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchTemplate(PostData body, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_msearch/template"), body, _params(requestParameters)); - ///POST on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchTemplateAsync(PostData body, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_msearch/template"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchTemplate(string index, PostData body, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_msearch/template"), body, _params(requestParameters)); - ///POST on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchTemplateAsync(string index, PostData body, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_msearch/template"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default @@ -2450,7 +2059,6 @@ public TResponse MsearchTemplate(string index, PostData body, MultiSe ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MsearchTemplate(string index, string type, PostData body, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default @@ -2458,69 +2066,58 @@ public TResponse MsearchTemplate(string index, string type, PostData ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MsearchTemplateAsync(string index, string type, PostData body, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_msearch/template"), ctx, body, _params(requestParameters)); - ///GET on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MtermvectorsGet(MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_mtermvectors"), null, _params(requestParameters)); - ///GET on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MtermvectorsGetAsync(MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_mtermvectors"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MtermvectorsGet(string index, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_mtermvectors"), null, _params(requestParameters)); - ///GET on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MtermvectorsGetAsync(string index, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_mtermvectors"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse MtermvectorsGet(string index, string type, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MtermvectorsGetAsync(string index, string type, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), ctx, null, _params(requestParameters)); - ///POST on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Mtermvectors(PostData body, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_mtermvectors"), body, _params(requestParameters)); - ///POST on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MtermvectorsAsync(PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_mtermvectors"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Mtermvectors(string index, PostData body, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_mtermvectors"), body, _params(requestParameters)); - ///POST on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MtermvectorsAsync(string index, PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_mtermvectors"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -2528,7 +2125,6 @@ public TResponse Mtermvectors(string index, PostData body, MultiTermV ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Mtermvectors(string index, string type, PostData body, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -2536,227 +2132,190 @@ public TResponse Mtermvectors(string index, string type, PostData bod ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task MtermvectorsAsync(string index, string type, PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_mtermvectors"), ctx, body, _params(requestParameters)); - ///GET on /_cluster/nodes/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesHotThreadsForAll(NodesHotThreadsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/nodes/hotthreads"), null, _params(requestParameters)); - ///GET on /_cluster/nodes/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task NodesHotThreadsForAllAsync(NodesHotThreadsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/nodes/hotthreads"), ctx, null, _params(requestParameters)); - ///GET on /_cluster/nodes/{node_id}/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.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 + ///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 TResponse NodesHotThreads(string node_id, NodesHotThreadsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_cluster/nodes/{node_id.NotNull("node_id")}/hotthreads"), null, _params(requestParameters)); - ///GET on /_cluster/nodes/{node_id}/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.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 + ///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 NodesHotThreadsAsync(string node_id, NodesHotThreadsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_cluster/nodes/{node_id.NotNull("node_id")}/hotthreads"), ctx, null, _params(requestParameters)); - ///GET on /_nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesInfoForAll(NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes"), null, _params(requestParameters)); - ///GET on /_nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task NodesInfoForAllAsync(NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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 TResponse NodesInfo(string node_id, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}"), null, _params(requestParameters)); - ///GET on /_nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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 NodesInfoAsync(string node_id, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesInfoForAll(string metric, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task NodesInfoForAllAsync(string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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 comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesInfo(string node_id, string metric, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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 comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task NodesInfoAsync(string node_id, string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesStatsForAll(NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/stats"), null, _params(requestParameters)); - ///GET on /_nodes/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task NodesStatsForAllAsync(NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/stats"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 TResponse NodesStats(string node_id, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats"), null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 NodesStatsAsync(string node_id, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesStatsForAll(string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 NodesStatsForAllAsync(string metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/stats/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 TResponse NodesStats(string node_id, string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 NodesStatsAsync(string node_id, string metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesStatsForAll(string metric, string index_metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task NodesStatsForAllAsync(string metric, string index_metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse NodesStats(string node_id, string metric, string index_metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task NodesStatsAsync(string node_id, string metric, string index_metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/stats/{metric.NotNull("metric")}/{index_metric.NotNull("index_metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/usage 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 TResponse NodesUsageForAll(NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/usage"), null, _params(requestParameters)); - ///GET on /_nodes/usage 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 NodesUsageForAllAsync(NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/usage"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/usage 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 + ///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 TResponse NodesUsage(string node_id, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage"), null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/usage 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 + ///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 NodesUsageAsync(string node_id, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/usage/{metric} 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 TResponse NodesUsageForAll(string metric, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/usage/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/usage/{metric} 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, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/usage/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/usage/{metric} 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 + ///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 TResponse NodesUsage(string node_id, string metric, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage/{metric.NotNull("metric")}"), null, _params(requestParameters)); - ///GET on /_nodes/{node_id}/usage/{metric} 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 + ///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, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_nodes/{node_id.NotNull("node_id")}/usage/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters)); - ///HEAD on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Ping(PingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(HEAD, Url($""), null, _params(requestParameters)); - ///HEAD on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task PingAsync(PingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(HEAD, Url($""), ctx, null, _params(requestParameters)); - ///PUT on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse PutScript(string id, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_scripts/{id.NotNull("id")}"), body, _params(requestParameters)); - ///PUT on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task PutScriptAsync(string id, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_scripts/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - ///PUT on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context @@ -2764,7 +2323,6 @@ public TResponse PutScript(string id, PostData body, PutScriptRequest ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse PutScript(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), body, _params(requestParameters)); - ///PUT on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context @@ -2772,21 +2330,18 @@ public TResponse PutScript(string id, string context, PostData body, ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task PutScriptAsync(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), ctx, body, _params(requestParameters)); - ///POST on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse PutScriptPost(string id, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_scripts/{id.NotNull("id")}"), body, _params(requestParameters)); - ///POST on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task PutScriptPostAsync(string id, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_scripts/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - ///POST on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context @@ -2794,7 +2349,6 @@ public TResponse PutScriptPost(string id, PostData body, PutScriptReq ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse PutScriptPost(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), body, _params(requestParameters)); - ///POST on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context @@ -2802,163 +2356,154 @@ public TResponse PutScriptPost(string id, string context, PostData bo ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task PutScriptPostAsync(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_scripts/{id.NotNull("id")}/{context.NotNull("context")}"), ctx, body, _params(requestParameters)); - ///POST on /_reindex https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The search definition using the Query DSL and the prototype for the index request. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Reindex(PostData body, ReindexOnServerRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_reindex"), body, _params(requestParameters)); - ///POST on /_reindex https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The search definition using the Query DSL and the prototype for the index request. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ReindexAsync(PostData body, ReindexOnServerRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_reindex"), ctx, body, _params(requestParameters)); - ///POST on /_reindex/{task_id}/_rethrottle https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The task id to rethrottle ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ReindexRethrottle(string task_id, ReindexRethrottleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_reindex/{task_id.NotNull("task_id")}/_rethrottle"), null, _params(requestParameters)); - ///POST on /_reindex/{task_id}/_rethrottle https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The task id to rethrottle ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ReindexRethrottleAsync(string task_id, ReindexRethrottleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_reindex/{task_id.NotNull("task_id")}/_rethrottle"), ctx, null, _params(requestParameters)); - ///GET on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse RenderSearchTemplateGet(RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_render/template"), null, _params(requestParameters)); - ///GET on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task RenderSearchTemplateGetAsync(RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_render/template"), ctx, null, _params(requestParameters)); - ///GET on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse RenderSearchTemplateGet(string id, RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_render/template/{id.NotNull("id")}"), null, _params(requestParameters)); - ///GET on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task RenderSearchTemplateGetAsync(string id, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_render/template/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///POST on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse RenderSearchTemplate(PostData body, RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_render/template"), body, _params(requestParameters)); - ///POST on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task RenderSearchTemplateAsync(PostData body, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_render/template"), ctx, body, _params(requestParameters)); - ///POST on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse RenderSearchTemplate(string id, PostData body, RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_render/template/{id.NotNull("id")}"), body, _params(requestParameters)); - ///POST on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task RenderSearchTemplateAsync(string id, PostData body, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_render/template/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - + ///GET on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse ScriptsPainlessExecuteGet(ExecutePainlessScriptRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_scripts/painless/_execute"), null, _params(requestParameters)); + ///GET on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task ScriptsPainlessExecuteGetAsync(ExecutePainlessScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_scripts/painless/_execute"), ctx, null, _params(requestParameters)); + ///POST on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///The script to execute + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public TResponse ScriptsPainlessExecute(PostData body, ExecutePainlessScriptRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_scripts/painless/_execute"), body, _params(requestParameters)); + ///POST on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///The script to execute + ///A func that allows you to describe the querystring parameters & request specific connection settings. + public Task ScriptsPainlessExecuteAsync(PostData body, ExecutePainlessScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_scripts/painless/_execute"), ctx, body, _params(requestParameters)); ///GET on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse ScrollGet(ScrollRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_search/scroll"), null, _params(requestParameters)); - ///GET on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ScrollGetAsync(ScrollRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_search/scroll"), ctx, null, _params(requestParameters)); - ///POST on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///The scroll ID if not passed by URL or query parameter. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Scroll(PostData body, ScrollRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_search/scroll"), body, _params(requestParameters)); - ///POST on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///The scroll ID if not passed by URL or query parameter. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task ScrollAsync(PostData body, ScrollRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_search/scroll"), ctx, body, _params(requestParameters)); - ///GET on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SearchGet(SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_search"), null, _params(requestParameters)); - ///GET on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchGetAsync(SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_search"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 TResponse SearchGet(string index, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_search"), null, _params(requestParameters)); - ///GET on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 SearchGetAsync(string index, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_search"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 TResponse SearchGet(string index, string type, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 SearchGetAsync(string index, string type, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), ctx, null, _params(requestParameters)); - ///POST on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Search(PostData body, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_search"), body, _params(requestParameters)); - ///POST on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchAsync(PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_search"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Search(string index, PostData body, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_search"), body, _params(requestParameters)); - ///POST on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchAsync(string index, PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_search"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 @@ -2966,7 +2511,6 @@ public TResponse Search(string index, PostData body, SearchRequestPar ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Search(string index, string type, PostData body, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 @@ -2974,113 +2518,94 @@ public TResponse Search(string index, string type, PostData body, Sea ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchAsync(string index, string type, PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search"), ctx, body, _params(requestParameters)); - ///GET on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SearchShardsGet(SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_search_shards"), null, _params(requestParameters)); - ///GET on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchShardsGetAsync(SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_search_shards"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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 TResponse SearchShardsGet(string index, SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_search_shards"), null, _params(requestParameters)); - ///GET on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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 SearchShardsGetAsync(string index, SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_search_shards"), ctx, null, _params(requestParameters)); - ///POST on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SearchShards(SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_search_shards"), null, _params(requestParameters)); - ///POST on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchShardsAsync(SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_search_shards"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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 TResponse SearchShards(string index, SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_search_shards"), null, _params(requestParameters)); - ///POST on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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 SearchShardsAsync(string index, SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_search_shards"), ctx, null, _params(requestParameters)); - ///GET on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SearchTemplateGet(SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_search/template"), null, _params(requestParameters)); - ///GET on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchTemplateGetAsync(SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_search/template"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 TResponse SearchTemplateGet(string index, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_search/template"), null, _params(requestParameters)); - ///GET on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 SearchTemplateGetAsync(string index, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_search/template"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 TResponse SearchTemplateGet(string index, string type, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 SearchTemplateGetAsync(string index, string type, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), ctx, null, _params(requestParameters)); - ///POST on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SearchTemplate(PostData body, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_search/template"), body, _params(requestParameters)); - ///POST on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchTemplateAsync(PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_search/template"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SearchTemplate(string index, PostData body, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_search/template"), body, _params(requestParameters)); - ///POST on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchTemplateAsync(string index, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_search/template"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 @@ -3088,7 +2613,6 @@ public TResponse SearchTemplate(string index, PostData body, SearchTe ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SearchTemplate(string index, string type, PostData body, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 @@ -3096,7 +2620,6 @@ public TResponse SearchTemplate(string index, string type, PostData b ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SearchTemplateAsync(string index, string type, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_search/template"), ctx, body, _params(requestParameters)); - ///PUT on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name @@ -3104,7 +2627,6 @@ public TResponse SearchTemplate(string index, string type, PostData b ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotCreate(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), body, _params(requestParameters)); - ///PUT on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name @@ -3112,7 +2634,6 @@ public TResponse SnapshotCreate(string repository, string snapshot, P ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotCreateAsync(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), ctx, body, _params(requestParameters)); - ///POST on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name @@ -3120,7 +2641,6 @@ public TResponse SnapshotCreate(string repository, string snapshot, P ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotCreatePost(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), body, _params(requestParameters)); - ///POST on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name @@ -3128,97 +2648,82 @@ public TResponse SnapshotCreatePost(string repository, string snapsho ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotCreatePostAsync(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), ctx, body, _params(requestParameters)); - ///PUT on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotCreateRepository(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_snapshot/{repository.NotNull("repository")}"), body, _params(requestParameters)); - ///PUT on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotCreateRepositoryAsync(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_snapshot/{repository.NotNull("repository")}"), ctx, body, _params(requestParameters)); - ///POST on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotCreateRepositoryPost(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}"), body, _params(requestParameters)); - ///POST on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotCreateRepositoryPostAsync(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}"), ctx, body, _params(requestParameters)); - ///DELETE on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotDelete(string repository, string snapshot, DeleteSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), null, _params(requestParameters)); - ///DELETE on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotDeleteAsync(string repository, string snapshot, DeleteSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotDeleteRepository(string repository, DeleteRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_snapshot/{repository.NotNull("repository")}"), null, _params(requestParameters)); - ///DELETE on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotDeleteRepositoryAsync(string repository, DeleteRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_snapshot/{repository.NotNull("repository")}"), ctx, null, _params(requestParameters)); - ///GET on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotGet(string repository, string snapshot, GetSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), null, _params(requestParameters)); - ///GET on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotGetAsync(string repository, string snapshot, GetSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}"), ctx, null, _params(requestParameters)); - ///GET on /_snapshot http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotGetRepository(GetRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_snapshot"), null, _params(requestParameters)); - ///GET on /_snapshot http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotGetRepositoryAsync(GetRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_snapshot"), ctx, null, _params(requestParameters)); - ///GET on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotGetRepository(string repository, GetRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}"), null, _params(requestParameters)); - ///GET on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotGetRepositoryAsync(string repository, GetRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}"), ctx, null, _params(requestParameters)); - ///POST on /_snapshot/{repository}/{snapshot}/_restore http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name @@ -3226,7 +2731,6 @@ public TResponse SnapshotGetRepository(string repository, GetReposito ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotRestore(string repository, string snapshot, PostData body, RestoreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_restore"), body, _params(requestParameters)); - ///POST on /_snapshot/{repository}/{snapshot}/_restore http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name @@ -3234,113 +2738,94 @@ public TResponse SnapshotRestore(string repository, string snapshot, ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotRestoreAsync(string repository, string snapshot, PostData body, RestoreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_restore"), ctx, body, _params(requestParameters)); - ///GET on /_snapshot/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotStatus(SnapshotStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_snapshot/_status"), null, _params(requestParameters)); - ///GET on /_snapshot/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotStatusAsync(SnapshotStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_snapshot/_status"), ctx, null, _params(requestParameters)); - ///GET on /_snapshot/{repository}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotStatus(string repository, SnapshotStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}/_status"), null, _params(requestParameters)); - ///GET on /_snapshot/{repository}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotStatusAsync(string repository, SnapshotStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}/_status"), ctx, null, _params(requestParameters)); - ///GET on /_snapshot/{repository}/{snapshot}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotStatus(string repository, string snapshot, SnapshotStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_status"), null, _params(requestParameters)); - ///GET on /_snapshot/{repository}/{snapshot}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotStatusAsync(string repository, string snapshot, SnapshotStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_snapshot/{repository.NotNull("repository")}/{snapshot.NotNull("snapshot")}/_status"), ctx, null, _params(requestParameters)); - ///POST on /_snapshot/{repository}/_verify http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse SnapshotVerifyRepository(string repository, VerifyRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_snapshot/{repository.NotNull("repository")}/_verify"), null, _params(requestParameters)); - ///POST on /_snapshot/{repository}/_verify http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task SnapshotVerifyRepositoryAsync(string repository, VerifyRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_snapshot/{repository.NotNull("repository")}/_verify"), ctx, null, _params(requestParameters)); - ///POST on /_tasks/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse TasksCancel(CancelTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_tasks/_cancel"), null, _params(requestParameters)); - ///POST on /_tasks/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TasksCancelAsync(CancelTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_tasks/_cancel"), ctx, null, _params(requestParameters)); - ///POST on /_tasks/{task_id}/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Cancel the task with specified task id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse TasksCancel(string task_id, CancelTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_tasks/{task_id.NotNull("task_id")}/_cancel"), null, _params(requestParameters)); - ///POST on /_tasks/{task_id}/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Cancel the task with specified task id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TasksCancelAsync(string task_id, CancelTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_tasks/{task_id.NotNull("task_id")}/_cancel"), ctx, null, _params(requestParameters)); - ///GET on /_tasks/{task_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Return the task with specified id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse TasksGet(string task_id, GetTaskRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_tasks/{task_id.NotNull("task_id")}"), null, _params(requestParameters)); - ///GET on /_tasks/{task_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Return the task with specified id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TasksGetAsync(string task_id, GetTaskRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_tasks/{task_id.NotNull("task_id")}"), ctx, null, _params(requestParameters)); - ///GET on /_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse TasksList(ListTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_tasks"), null, _params(requestParameters)); - ///GET on /_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TasksListAsync(ListTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_tasks"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse TermvectorsGet(string index, string type, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TermvectorsGetAsync(string index, string type, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -3348,7 +2833,6 @@ public TResponse TermvectorsGet(string index, string type, TermVector ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse TermvectorsGet(string index, string type, string id, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), null, _params(requestParameters)); - ///GET on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -3356,7 +2840,6 @@ public TResponse TermvectorsGet(string index, string type, string id, ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TermvectorsGetAsync(string index, string type, string id, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), ctx, null, _params(requestParameters)); - ///POST on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -3364,7 +2847,6 @@ public TResponse TermvectorsGet(string index, string type, string id, ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Termvectors(string index, string type, PostData body, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -3372,7 +2854,6 @@ public TResponse Termvectors(string index, string type, PostData body ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TermvectorsAsync(string index, string type, PostData body, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_termvectors"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -3381,7 +2862,6 @@ public TResponse Termvectors(string index, string type, PostData body ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Termvectors(string index, string type, string id, PostData body, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), body, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -3390,7 +2870,6 @@ public TResponse Termvectors(string index, string type, string id, Po ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task TermvectorsAsync(string index, string type, string id, PostData body, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_termvectors"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html ///The name of the index ///The type of the document @@ -3399,7 +2878,6 @@ public TResponse Termvectors(string index, string type, string id, Po ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse Update(string index, string type, string id, PostData body, UpdateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_update"), body, _params(requestParameters)); - ///POST on /{index}/{type}/{id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html ///The name of the index ///The type of the document @@ -3408,21 +2886,18 @@ public TResponse Update(string index, string type, string id, PostDat ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task UpdateAsync(string index, string type, string id, PostData body, UpdateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/{id.NotNull("id")}/_update"), ctx, body, _params(requestParameters)); - ///POST on /{index}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse UpdateByQuery(string index, PostData body, UpdateByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_update_by_query"), body, _params(requestParameters)); - ///POST on /{index}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task UpdateByQueryAsync(string index, PostData body, UpdateByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_update_by_query"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 @@ -3430,7 +2905,6 @@ public TResponse UpdateByQuery(string index, PostData body, UpdateByQ ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse UpdateByQuery(string index, string type, PostData body, UpdateByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_update_by_query"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 @@ -3438,47 +2912,40 @@ public TResponse UpdateByQuery(string index, string type, PostData bo ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task UpdateByQueryAsync(string index, string type, PostData body, UpdateByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_update_by_query"), ctx, body, _params(requestParameters)); - ///GET on /{index}/_xpack/graph/_explore 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 TResponse XpackGraphExploreGet(string index, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), null, _params(requestParameters)); - ///GET on /{index}/_xpack/graph/_explore 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, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), ctx, null, _params(requestParameters)); - ///GET on /{index}/{type}/_xpack/graph/_explore 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 TResponse XpackGraphExploreGet(string index, string type, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), null, _params(requestParameters)); - ///GET on /{index}/{type}/_xpack/graph/_explore 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, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), ctx, null, _params(requestParameters)); - ///POST on /{index}/_xpack/graph/_explore 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 TResponse XpackGraphExplore(string index, PostData body, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), body, _params(requestParameters)); - ///POST on /{index}/_xpack/graph/_explore 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, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/_xpack/graph/_explore"), ctx, body, _params(requestParameters)); - ///POST on /{index}/{type}/_xpack/graph/_explore 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 @@ -3486,7 +2953,6 @@ public TResponse XpackGraphExplore(string index, PostData body, Graph ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackGraphExplore(string index, string type, PostData body, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), body, _params(requestParameters)); - ///POST on /{index}/{type}/_xpack/graph/_explore 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 @@ -3494,217 +2960,180 @@ public TResponse XpackGraphExplore(string index, string type, PostDat ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackGraphExploreAsync(string index, string type, PostData body, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_xpack/graph/_explore"), ctx, body, _params(requestParameters)); - ///GET on /_xpack https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackInfo(XPackInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack"), null, _params(requestParameters)); - ///GET on /_xpack https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackInfoAsync(XPackInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/usage Retrieve information about xpack features usage ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackUsage(XPackUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/usage"), null, _params(requestParameters)); - ///GET on /_xpack/usage Retrieve information about xpack features usage ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackUsageAsync(XPackUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/usage"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/license 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 TResponse XpackLicenseDelete(DeleteLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/license"), null, _params(requestParameters)); - ///DELETE on /_xpack/license 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(DeleteLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/license"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/license 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 TResponse XpackLicenseGet(GetLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/license"), null, _params(requestParameters)); - ///GET on /_xpack/license 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(GetLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/license"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/license/trial_status 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 TResponse XpackLicenseGetTrialStatus(GetTrialLicenseStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/license/trial_status"), null, _params(requestParameters)); - ///GET on /_xpack/license/trial_status 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 XpackLicenseGetTrialStatusAsync(GetTrialLicenseStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/license/trial_status"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/license 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. public TResponse XpackLicensePost(PostData body, PostLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/license"), body, _params(requestParameters)); - ///PUT on /_xpack/license 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. public Task XpackLicensePostAsync(PostData body, PostLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/license"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/license/start_trial 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 TResponse XpackLicensePostStartTrial(StartTrialLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/license/start_trial"), null, _params(requestParameters)); - ///POST on /_xpack/license/start_trial 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 XpackLicensePostStartTrialAsync(StartTrialLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/license/start_trial"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_close http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html ///The name of the job to close ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlCloseJob(string job_id, CloseJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_close"), null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_close http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html ///The name of the job to close ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlCloseJobAsync(string job_id, CloseJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_close"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html ///The ID of the datafeed to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlDeleteDatafeed(string datafeed_id, DeleteDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html ///The ID of the datafeed to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlDeleteDatafeedAsync(string datafeed_id, DeleteDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/ml/_delete_expired_data ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlDeleteExpiredData(DeleteExpiredDataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/ml/_delete_expired_data"), null, _params(requestParameters)); - ///DELETE on /_xpack/ml/_delete_expired_data ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlDeleteExpiredDataAsync(DeleteExpiredDataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/ml/_delete_expired_data"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html ///The ID of the job to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlDeleteJob(string job_id, DeleteJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html ///The ID of the job to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlDeleteJobAsync(string job_id, DeleteJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlDeleteModelSnapshot(string job_id, string snapshot_id, DeleteModelSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlDeleteModelSnapshotAsync(string job_id, string snapshot_id, DeleteModelSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html ///The name of the job to flush ///Flush parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlFlushJob(string job_id, PostData body, FlushJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_flush"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html ///The name of the job to flush ///Flush parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlFlushJobAsync(string job_id, PostData body, FlushJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_flush"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_forecast ///The ID of the job to forecast for ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlForecast(string job_id, ForecastJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_forecast"), null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_forecast ///The ID of the job to forecast for ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlForecastAsync(string job_id, ForecastJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_forecast"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetBuckets(string job_id, GetBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetBucketsAsync(string job_id, GetBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///Bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetBuckets(string job_id, PostData body, GetBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///Bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetBucketsAsync(string job_id, PostData body, GetBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/buckets"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetCategories(string job_id, long category_id, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetCategoriesAsync(string job_id, long category_id, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetCategories(string job_id, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetCategoriesAsync(string job_id, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest @@ -3712,7 +3141,6 @@ public TResponse XpackMlGetCategories(string job_id, GetCategoriesReq ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetCategories(string job_id, long category_id, PostData body, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest @@ -3720,161 +3148,134 @@ public TResponse XpackMlGetCategories(string job_id, long category_id ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetCategoriesAsync(string job_id, long category_id, PostData body, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/{category_id}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///Category selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetCategories(string job_id, PostData body, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///Category selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetCategoriesAsync(string job_id, PostData body, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/categories/"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///The ID of the datafeeds to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetDatafeeds(string datafeed_id, GetDatafeedsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///The ID of the datafeeds to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetDatafeedsAsync(string datafeed_id, GetDatafeedsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetDatafeeds(GetDatafeedsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/datafeeds"), null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetDatafeedsAsync(GetDatafeedsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///The ID of the datafeeds stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetDatafeedStats(string datafeed_id, GetDatafeedStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stats"), null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///The ID of the datafeeds stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetDatafeedStatsAsync(string datafeed_id, GetDatafeedStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stats"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetDatafeedStats(GetDatafeedStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/datafeeds/_stats"), null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetDatafeedStatsAsync(GetDatafeedStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/_stats"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetInfluencers(string job_id, GetInfluencersRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetInfluencersAsync(string job_id, GetInfluencersRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///Influencer selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetInfluencers(string job_id, PostData body, GetInfluencersRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///Influencer selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetInfluencersAsync(string job_id, PostData body, GetInfluencersRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/influencers"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///The ID of the jobs to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetJobs(string job_id, GetJobsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///The ID of the jobs to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetJobsAsync(string job_id, GetJobsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetJobs(GetJobsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetJobsAsync(GetJobsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetJobStats(GetJobStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/_stats"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetJobStatsAsync(GetJobStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/_stats"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///The ID of the jobs stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetJobStats(string job_id, GetJobStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_stats"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///The ID of the jobs stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetJobStatsAsync(string job_id, GetJobStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_stats"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetModelSnapshots(string job_id, string snapshot_id, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetModelSnapshotsAsync(string job_id, string snapshot_id, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetModelSnapshots(string job_id, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetModelSnapshotsAsync(string job_id, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch @@ -3882,7 +3283,6 @@ public TResponse XpackMlGetModelSnapshots(string job_id, GetModelSnap ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetModelSnapshots(string job_id, string snapshot_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch @@ -3890,139 +3290,118 @@ public TResponse XpackMlGetModelSnapshots(string job_id, string snaps ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetModelSnapshotsAsync(string job_id, string snapshot_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///Model snapshot selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetModelSnapshots(string job_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///Model snapshot selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetModelSnapshotsAsync(string job_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetOverallBuckets(string job_id, GetOverallBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/overall_buckets"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetOverallBucketsAsync(string job_id, GetOverallBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/overall_buckets"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///Overall bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetOverallBuckets(string job_id, PostData body, GetOverallBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/overall_buckets"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///Overall bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetOverallBucketsAsync(string job_id, PostData body, GetOverallBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/overall_buckets"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetRecords(string job_id, GetAnomalyRecordsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), null, _params(requestParameters)); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetRecordsAsync(string job_id, GetAnomalyRecordsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///Record selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlGetRecords(string job_id, PostData body, GetAnomalyRecordsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///Record selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlGetRecordsAsync(string job_id, PostData body, GetAnomalyRecordsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/results/records"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_open http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html ///The ID of the job to open ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlOpenJob(string job_id, OpenJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_open"), null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_open http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html ///The ID of the job to open ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlOpenJobAsync(string job_id, OpenJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_open"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_data http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html ///The name of the job receiving the data ///The data to process ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlPostData(string job_id, PostData body, PostJobDataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_data"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_data http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html ///The name of the job receiving the data ///The data to process ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlPostDataAsync(string job_id, PostData body, PostJobDataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_data"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html ///The ID of the datafeed to preview ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlPreviewDatafeed(string datafeed_id, PreviewDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_preview"), null, _params(requestParameters)); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html ///The ID of the datafeed to preview ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlPreviewDatafeedAsync(string datafeed_id, PreviewDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_preview"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html ///The ID of the datafeed to create ///The datafeed config ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlPutDatafeed(string datafeed_id, PostData body, PutDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), body, _params(requestParameters)); - ///PUT on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html ///The ID of the datafeed to create ///The datafeed config ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlPutDatafeedAsync(string datafeed_id, PostData body, PutDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html ///The ID of the job to create ///The job ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlPutJob(string job_id, PostData body, PutJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), body, _params(requestParameters)); - ///PUT on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html ///The ID of the job to create ///The job ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlPutJobAsync(string job_id, PostData body, PutJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to revert to @@ -4030,7 +3409,6 @@ public TResponse XpackMlPutJob(string job_id, PostData body, PutJobRe ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlRevertModelSnapshot(string job_id, string snapshot_id, PostData body, RevertModelSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_revert"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to revert to @@ -4038,61 +3416,52 @@ public TResponse XpackMlRevertModelSnapshot(string job_id, string sna ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlRevertModelSnapshotAsync(string job_id, string snapshot_id, PostData body, RevertModelSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_revert"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html ///The ID of the datafeed to start ///The start datafeed parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlStartDatafeed(string datafeed_id, PostData body, StartDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_start"), body, _params(requestParameters)); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html ///The ID of the datafeed to start ///The start datafeed parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlStartDatafeedAsync(string datafeed_id, PostData body, StartDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_start"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html ///The ID of the datafeed to stop ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlStopDatafeed(string datafeed_id, StopDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stop"), null, _params(requestParameters)); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html ///The ID of the datafeed to stop ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlStopDatafeedAsync(string datafeed_id, StopDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_stop"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html ///The ID of the datafeed to update ///The datafeed update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlUpdateDatafeed(string datafeed_id, PostData body, UpdateDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_update"), body, _params(requestParameters)); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html ///The ID of the datafeed to update ///The datafeed update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlUpdateDatafeedAsync(string datafeed_id, PostData body, UpdateDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/datafeeds/{datafeed_id.NotNull("datafeed_id")}/_update"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html ///The ID of the job to create ///The job update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlUpdateJob(string job_id, PostData body, UpdateJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_update"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html ///The ID of the job to create ///The job update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlUpdateJobAsync(string job_id, PostData body, UpdateJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/_update"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to update @@ -4100,7 +3469,6 @@ public TResponse XpackMlUpdateJob(string job_id, PostData body, Updat ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlUpdateModelSnapshot(string job_id, string snapshot_id, PostData body, UpdateModelSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_update"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to update @@ -4108,689 +3476,575 @@ public TResponse XpackMlUpdateModelSnapshot(string job_id, string sna ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlUpdateModelSnapshotAsync(string job_id, string snapshot_id, PostData body, UpdateModelSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/{job_id.NotNull("job_id")}/model_snapshots/{snapshot_id.NotNull("snapshot_id")}/_update"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/_validate ///The job config ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlValidate(PostData body, ValidateJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/_validate"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/_validate ///The job config ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlValidateAsync(PostData body, ValidateJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/_validate"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/_validate/detector ///The detector ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMlValidateDetector(PostData body, ValidateDetectorRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/ml/anomaly_detectors/_validate/detector"), body, _params(requestParameters)); - ///POST on /_xpack/ml/anomaly_detectors/_validate/detector ///The detector ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMlValidateDetectorAsync(PostData body, ValidateDetectorRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/ml/anomaly_detectors/_validate/detector"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/migration/deprecations 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 TResponse XpackMigrationDeprecations(DeprecationInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/migration/deprecations"), null, _params(requestParameters)); - ///GET on /_xpack/migration/deprecations 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 XpackMigrationDeprecationsAsync(DeprecationInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/migration/deprecations"), ctx, null, _params(requestParameters)); - ///GET on /{index}/_xpack/migration/deprecations 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 TResponse XpackMigrationDeprecations(string index, DeprecationInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"{index.NotNull("index")}/_xpack/migration/deprecations"), null, _params(requestParameters)); - ///GET on /{index}/_xpack/migration/deprecations 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 XpackMigrationDeprecationsAsync(string index, DeprecationInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"{index.NotNull("index")}/_xpack/migration/deprecations"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/migration/assistance https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMigrationGetAssistance(MigrationAssistanceRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/migration/assistance"), null, _params(requestParameters)); - ///GET on /_xpack/migration/assistance https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMigrationGetAssistanceAsync(MigrationAssistanceRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/migration/assistance"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/migration/assistance/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.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 TResponse XpackMigrationGetAssistance(string index, MigrationAssistanceRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/migration/assistance/{index.NotNull("index")}"), null, _params(requestParameters)); - ///GET on /_xpack/migration/assistance/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.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 XpackMigrationGetAssistanceAsync(string index, MigrationAssistanceRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/migration/assistance/{index.NotNull("index")}"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/migration/upgrade/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackMigrationUpgrade(string index, MigrationUpgradeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/migration/upgrade/{index.NotNull("index")}"), null, _params(requestParameters)); - ///POST on /_xpack/migration/upgrade/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackMigrationUpgradeAsync(string index, MigrationUpgradeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/migration/upgrade/{index.NotNull("index")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/_authenticate 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 TResponse XpackSecurityAuthenticate(AuthenticateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/_authenticate"), null, _params(requestParameters)); - ///GET on /_xpack/security/_authenticate 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(AuthenticateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/_authenticate"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityChangePassword(string username, PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), body, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityChangePasswordAsync(string username, PostData body, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/security/user/_password 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. public TResponse XpackSecurityChangePassword(PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/_password"), body, _params(requestParameters)); - ///PUT on /_xpack/security/user/_password 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. public Task XpackSecurityChangePasswordAsync(PostData body, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/_password"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityChangePasswordPost(string username, PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), body, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityChangePasswordPostAsync(string username, PostData body, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_password"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/user/_password 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. public TResponse XpackSecurityChangePasswordPost(PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/_password"), body, _params(requestParameters)); - ///POST on /_xpack/security/user/_password 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. public Task XpackSecurityChangePasswordPostAsync(PostData body, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/_password"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/realm/{realms}/_clear_cache 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. public TResponse XpackSecurityClearCachedRealms(string realms, ClearCachedRealmsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/realm/{realms.NotNull("realms")}/_clear_cache"), null, _params(requestParameters)); - ///POST on /_xpack/security/realm/{realms}/_clear_cache 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. public Task XpackSecurityClearCachedRealmsAsync(string realms, ClearCachedRealmsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/realm/{realms.NotNull("realms")}/_clear_cache"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/role/{name}/_clear_cache 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. public TResponse XpackSecurityClearCachedRoles(string name, ClearCachedRolesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/role/{name.NotNull("name")}/_clear_cache"), null, _params(requestParameters)); - ///POST on /_xpack/security/role/{name}/_clear_cache 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. public Task XpackSecurityClearCachedRolesAsync(string name, ClearCachedRolesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/role/{name.NotNull("name")}/_clear_cache"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/role/{name} 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. public TResponse XpackSecurityDeleteRole(string name, DeleteRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/role/{name.NotNull("name")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/security/role/{name} 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. public Task XpackSecurityDeleteRoleAsync(string name, DeleteRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/role_mapping/{name} 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. public TResponse XpackSecurityDeleteRoleMapping(string name, DeleteRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/security/role_mapping/{name} 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. public Task XpackSecurityDeleteRoleMappingAsync(string name, DeleteRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/user/{username} 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. public TResponse XpackSecurityDeleteUser(string username, DeleteUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/user/{username.NotNull("username")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/security/user/{username} 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. public Task XpackSecurityDeleteUserAsync(string username, DeleteUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/user/{username.NotNull("username")}"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_disable 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. public TResponse XpackSecurityDisableUser(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_disable 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. public Task XpackSecurityDisableUserAsync(string username, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_disable 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. public TResponse XpackSecurityDisableUserPost(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_disable 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. public Task XpackSecurityDisableUserPostAsync(string username, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_disable"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_enable 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. public TResponse XpackSecurityEnableUser(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), null, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username}/_enable 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. public Task XpackSecurityEnableUserAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_enable 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. public TResponse XpackSecurityEnableUserPost(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), null, _params(requestParameters)); - ///POST on /_xpack/security/user/{username}/_enable 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. public Task XpackSecurityEnableUserPostAsync(string username, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}/_enable"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role/{name} 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. public TResponse XpackSecurityGetRole(string name, GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /_xpack/security/role/{name} 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. public Task XpackSecurityGetRoleAsync(string name, GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role 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 TResponse XpackSecurityGetRole(GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role"), null, _params(requestParameters)); - ///GET on /_xpack/security/role 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(GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping/{name} 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. public TResponse XpackSecurityGetRoleMapping(string name, GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping/{name} 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. public Task XpackSecurityGetRoleMappingAsync(string name, GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping 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 TResponse XpackSecurityGetRoleMapping(GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/role_mapping"), null, _params(requestParameters)); - ///GET on /_xpack/security/role_mapping 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(GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/role_mapping"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/security/oauth2/token 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. public TResponse XpackSecurityGetToken(PostData body, GetUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/oauth2/token"), body, _params(requestParameters)); - ///POST on /_xpack/security/oauth2/token 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. public Task XpackSecurityGetTokenAsync(PostData body, GetUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/oauth2/token"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/security/user/{username} 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. public TResponse XpackSecurityGetUser(string username, GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/user/{username.NotNull("username")}"), null, _params(requestParameters)); - ///GET on /_xpack/security/user/{username} 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. public Task XpackSecurityGetUserAsync(string username, GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user/{username.NotNull("username")}"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/security/user 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 TResponse XpackSecurityGetUser(GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/security/user"), null, _params(requestParameters)); - ///GET on /_xpack/security/user 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(GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/security/user"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/security/oauth2/token 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. public TResponse XpackSecurityInvalidateToken(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/security/oauth2/token"), body, _params(requestParameters)); - ///DELETE on /_xpack/security/oauth2/token 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. public Task XpackSecurityInvalidateTokenAsync(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/security/oauth2/token"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRole(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/role/{name.NotNull("name")}"), body, _params(requestParameters)); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRoleAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRolePost(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/role/{name.NotNull("name")}"), body, _params(requestParameters)); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRolePostAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/role/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRoleMapping(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), body, _params(requestParameters)); - ///PUT on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRoleMappingAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutRoleMappingPost(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), body, _params(requestParameters)); - ///POST on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutRoleMappingPostAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/role_mapping/{name.NotNull("name")}"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutUser(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/security/user/{username.NotNull("username")}"), body, _params(requestParameters)); - ///PUT on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutUserAsync(string username, PostData body, PutUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/security/user/{username.NotNull("username")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackSecurityPutUserPost(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/security/user/{username.NotNull("username")}"), body, _params(requestParameters)); - ///POST on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackSecurityPutUserPostAsync(string username, PostData body, PutUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/security/user/{username.NotNull("username")}"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherAckWatch(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherAckWatchAsync(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherAckWatch(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherAckWatchAsync(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherAckWatchPost(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherAckWatchPostAsync(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherAckWatchPost(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherAckWatchPostAsync(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_ack/{action_id.NotNull("action_id")}"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherActivateWatch(string watch_id, ActivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherActivateWatchAsync(string watch_id, ActivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherActivateWatchPost(string watch_id, ActivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherActivateWatchPostAsync(string watch_id, ActivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_activate"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherDeactivateWatch(string watch_id, DeactivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherDeactivateWatchAsync(string watch_id, DeactivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherDeactivateWatchPost(string watch_id, DeactivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), null, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherDeactivateWatchPostAsync(string watch_id, DeactivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{watch_id.NotNull("watch_id")}/_deactivate"), ctx, null, _params(requestParameters)); - ///DELETE on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherDeleteWatch(string id, DeleteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(DELETE, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), null, _params(requestParameters)); - ///DELETE on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherDeleteWatchAsync(string id, DeleteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(DELETE, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherExecuteWatch(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), body, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherExecuteWatchAsync(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), ctx, body, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherExecuteWatch(PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/watcher/watch/_execute"), body, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherExecuteWatchAsync(PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/_execute"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherExecuteWatchPost(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), body, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherExecuteWatchPostAsync(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}/_execute"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherExecuteWatchPost(PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/watch/_execute"), body, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherExecuteWatchPostAsync(PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/_execute"), ctx, body, _params(requestParameters)); - ///GET on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherGetWatch(string id, GetWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), null, _params(requestParameters)); - ///GET on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherGetWatchAsync(string id, GetWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), ctx, null, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherPutWatch(string id, PostData body, PutWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), body, _params(requestParameters)); - ///PUT on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherPutWatchAsync(string id, PostData body, PutWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(PUT, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherPutWatchPost(string id, PostData body, PutWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), body, _params(requestParameters)); - ///POST on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherPutWatchPostAsync(string id, PostData body, PutWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/watch/{id.NotNull("id")}"), ctx, body, _params(requestParameters)); - ///POST on /_xpack/watcher/_restart http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherRestart(RestartWatcherRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/_restart"), null, _params(requestParameters)); - ///POST on /_xpack/watcher/_restart http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherRestartAsync(RestartWatcherRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/_restart"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/watcher/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherStart(StartWatcherRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/_start"), null, _params(requestParameters)); - ///POST on /_xpack/watcher/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherStartAsync(StartWatcherRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/_start"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/watcher/stats http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherStats(WatcherStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/watcher/stats"), null, _params(requestParameters)); - ///GET on /_xpack/watcher/stats http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherStatsAsync(WatcherStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/watcher/stats"), ctx, null, _params(requestParameters)); - ///GET on /_xpack/watcher/stats/{watcher_stats_metric} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///Controls what additional stat metrics should be include in the response ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherStats(WatcherStatsMetric watcher_stats_metric, WatcherStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(GET, Url($"_xpack/watcher/stats/{watcher_stats_metric.NotNull("watcher_stats_metric")}"), null, _params(requestParameters)); - ///GET on /_xpack/watcher/stats/{watcher_stats_metric} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///Controls what additional stat metrics should be include in the response ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherStatsAsync(WatcherStatsMetric watcher_stats_metric, WatcherStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(GET, Url($"_xpack/watcher/stats/{watcher_stats_metric.NotNull("watcher_stats_metric")}"), ctx, null, _params(requestParameters)); - ///POST on /_xpack/watcher/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public TResponse XpackWatcherStop(StopWatcherRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => this.DoRequest(POST, Url($"_xpack/watcher/_stop"), null, _params(requestParameters)); - ///POST on /_xpack/watcher/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html ///A func that allows you to describe the querystring parameters & request specific connection settings. public Task XpackWatcherStopAsync(StopWatcherRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync(POST, Url($"_xpack/watcher/_stop"), ctx, null, _params(requestParameters)); - - - } - } - + } + } + \ No newline at end of file diff --git a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs index 8f6cc054562..577288ec335 100644 --- a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs @@ -20,548 +20,432 @@ public partial interface IElasticLowLevelClient ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Bulk(PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task BulkAsync(PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Bulk(string index, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task BulkAsync(string index, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Bulk(string index, string type, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task BulkAsync(string index, string type, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse BulkPut(PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task BulkPutAsync(PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse BulkPut(string index, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task BulkPutAsync(string index, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse BulkPut(string index, string type, PostData body, BulkRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/_bulk http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html - ///Default index for items which don't provide one - ///Default document type for items which don't provide one + ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task BulkPutAsync(string index, string type, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatAliases(CatAliasesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatAliasesAsync(CatAliasesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/aliases/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatAliases(string name, CatAliasesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/aliases/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatAliasesAsync(string name, CatAliasesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/allocation http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatAllocation(CatAllocationRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/allocation http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatAllocationAsync(CatAllocationRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/allocation/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A comma-separated list of node IDs or names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatAllocation(string node_id, CatAllocationRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/allocation/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html ///A comma-separated list of node IDs or names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatAllocationAsync(string node_id, CatAllocationRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/count http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatCount(CatCountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/count http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatCountAsync(CatCountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/count/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatCount(string index, CatCountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/count/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatCountAsync(string index, CatCountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/fielddata http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatFielddata(CatFielddataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/fielddata http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatFielddataAsync(CatFielddataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/fielddata/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A comma-separated list of fields to return the fielddata size ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatFielddata(string fields, CatFielddataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/fielddata/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html ///A comma-separated list of fields to return the fielddata size ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatFielddataAsync(string fields, CatFielddataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatHealth(CatHealthRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatHealthAsync(CatHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatHelp(CatHelpRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatHelpAsync(CatHelpRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/indices http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatIndices(CatIndicesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/indices http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatIndicesAsync(CatIndicesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/indices/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatIndices(string index, CatIndicesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/indices/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatIndicesAsync(string index, CatIndicesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/master http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatMaster(CatMasterRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/master http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatMasterAsync(CatMasterRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/nodeattrs http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatNodeattrs(CatNodeAttributesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/nodeattrs http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatNodeattrsAsync(CatNodeAttributesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatNodes(CatNodesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatNodesAsync(CatNodesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatPendingTasks(CatPendingTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatPendingTasksAsync(CatPendingTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/plugins http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatPlugins(CatPluginsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/plugins http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatPluginsAsync(CatPluginsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatRecovery(CatRecoveryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatRecoveryAsync(CatRecoveryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/recovery/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatRecovery(string index, CatRecoveryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/recovery/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatRecoveryAsync(string index, CatRecoveryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/repositories http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatRepositories(CatRepositoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/repositories http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatRepositoriesAsync(CatRepositoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/segments http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatSegments(CatSegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/segments http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatSegmentsAsync(CatSegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/segments/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatSegments(string index, CatSegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/segments/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatSegmentsAsync(string index, CatSegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/shards http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatShards(CatShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/shards http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatShardsAsync(CatShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/shards/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatShards(string index, CatShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/shards/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html ///A comma-separated list of index names to limit the returned information ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatShardsAsync(string index, CatShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/snapshots http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatSnapshots(CatSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/snapshots http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatSnapshotsAsync(CatSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/snapshots/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///Name of repository from which to fetch the snapshot information ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatSnapshots(string repository, CatSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/snapshots/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html ///Name of repository from which to fetch the snapshot information ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatSnapshotsAsync(string repository, CatSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatTasks(CatTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatTasksAsync(CatTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/templates http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatTemplates(CatTemplatesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/templates http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatTemplatesAsync(CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/templates/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A pattern that returned template names must match ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatTemplates(string name, CatTemplatesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/templates/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html ///A pattern that returned template names must match ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatTemplatesAsync(string name, CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/thread_pool http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatThreadPool(CatThreadPoolRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/thread_pool http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatThreadPoolAsync(CatThreadPoolRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/thread_pool/{thread_pool_patterns} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A comma-separated list of regular-expressions to filter the thread pools in the output ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CatThreadPool(string thread_pool_patterns, CatThreadPoolRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cat/thread_pool/{thread_pool_patterns} http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html ///A comma-separated list of regular-expressions to filter the thread pools in the output ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CatThreadPoolAsync(string thread_pool_patterns, CatThreadPoolRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClearScroll(PostData body, ClearScrollRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClearScrollAsync(PostData body, ClearScrollRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterAllocationExplainGet(ClusterAllocationExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterAllocationExplainGetAsync(ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html - ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' + ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterAllocationExplain(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_cluster/allocation/explain http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html - ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' + ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterAllocationExplainAsync(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterGetSettings(ClusterGetSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterGetSettingsAsync(ClusterGetSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterHealth(ClusterHealthRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/health http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterHealthAsync(ClusterHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/health/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///Limit the information returned to a specific index ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterHealth(string index, ClusterHealthRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/health/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html ///Limit the information returned to a specific index ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterHealthAsync(string index, ClusterHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterPendingTasks(ClusterPendingTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/pending_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterPendingTasksAsync(ClusterPendingTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterPutSettings(PostData body, ClusterPutSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_cluster/settings http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterPutSettingsAsync(PostData body, ClusterPutSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_remote/info 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. TResponse ClusterRemoteInfo(RemoteInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_remote/info 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(RemoteInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_cluster/reroute http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterReroute(PostData body, ClusterRerouteRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_cluster/reroute http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterRerouteAsync(PostData body, ClusterRerouteRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/state http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterState(ClusterStateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/state http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterStateAsync(ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/state/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterState(string metric, ClusterStateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/state/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterStateAsync(string metric, ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/state/{metric}/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///Limit the information returned to the specified metrics ///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. TResponse ClusterState(string metric, string index, ClusterStateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/state/{metric}/{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html ///Limit the information returned to the specified metrics ///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 ClusterStateAsync(string metric, string index, ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ClusterStats(ClusterStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ClusterStatsAsync(ClusterStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/stats/nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.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 + ///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. TResponse ClusterStats(string node_id, ClusterStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/stats/nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.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 + ///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 ClusterStatsAsync(string node_id, ClusterStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Count(PostData body, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CountAsync(PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Count(string index, PostData body, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CountAsync(string index, PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Count(string index, string type, PostData body, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A query to restrict the results specified with the Query DSL (optional) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CountAsync(string index, string type, PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CountGet(CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CountGetAsync(CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CountGet(string index, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CountGetAsync(string index, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CountGet(string index, string type, CountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_count http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CountGetAsync(string index, string type, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -569,7 +453,6 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Create(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -577,7 +460,6 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CreateAsync(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -585,7 +467,6 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse CreatePost(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_create http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -593,99 +474,84 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task CreatePostAsync(string index, string type, string id, PostData body, CreateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html ///The name of the index ///The type of the document ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Delete(string index, string type, string id, DeleteRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html ///The name of the index ///The type of the document ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task DeleteAsync(string index, string type, string id, DeleteRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse DeleteByQuery(string index, PostData body, DeleteByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task DeleteByQueryAsync(string index, PostData body, DeleteByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse DeleteByQuery(string index, string type, PostData body, DeleteByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_delete_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task DeleteByQueryAsync(string index, string type, PostData body, DeleteByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse DeleteScript(string id, DeleteScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task DeleteScriptAsync(string id, DeleteScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/{type}/{id} 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) ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Exists(string index, string type, string id, DocumentExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/{type}/{id} 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) ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ExistsAsync(string index, string type, string id, DocumentExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/{type}/{id}/_source 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 ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ExistsSource(string index, string type, string id, SourceExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/{type}/{id}/_source 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 ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ExistsSourceAsync(string index, string type, string id, SourceExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ExplainGet(string index, string type, string id, ExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ExplainGetAsync(string index, string type, string id, ExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document @@ -693,7 +559,6 @@ public partial interface IElasticLowLevelClient ///The query definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Explain(string index, string type, string id, PostData body, ExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_explain http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html ///The name of the index ///The type of the document @@ -701,99 +566,82 @@ public partial interface IElasticLowLevelClient ///The query definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ExplainAsync(string index, string type, string id, PostData body, ExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_field_caps 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. TResponse FieldCapsGet(FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_field_caps 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(FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_field_caps 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. TResponse FieldCapsGet(string index, FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_field_caps 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, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_field_caps 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. TResponse FieldCaps(PostData body, FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_field_caps 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, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_field_caps 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. TResponse FieldCaps(string index, PostData body, FieldCapabilitiesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_field_caps 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, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id} 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) ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Get(string index, string type, string id, GetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id} 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) ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task GetAsync(string index, string type, string id, GetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse GetScript(string id, GetScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task GetScriptAsync(string id, GetScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id}/_source 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 ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse GetSource(string index, string type, string id, SourceRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id}/_source 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 ///The document ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task GetSourceAsync(string index, string type, string id, SourceRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Index(string index, string type, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndexAsync(string index, string type, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -801,7 +649,6 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Index(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -809,21 +656,18 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndexAsync(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndexPut(string index, string type, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndexPutAsync(string index, string type, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -831,7 +675,6 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndexPut(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html ///The name of the index ///The type of the document @@ -839,2001 +682,1636 @@ public partial interface IElasticLowLevelClient ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndexPutAsync(string index, string type, string id, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesAnalyzeGetForAll(AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesAnalyzeGetForAllAsync(AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesAnalyzeGet(string index, AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesAnalyzeGetAsync(string index, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesAnalyzeForAll(PostData body, AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesAnalyzeForAllAsync(PostData body, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesAnalyze(string index, PostData body, AnalyzeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_analyze http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html ///The name of the index to scope the operation ///Define analyzer/tokenizer parameters and the text on which the analysis should be performed ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesAnalyzeAsync(string index, PostData body, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesClearCacheForAll(ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesClearCacheForAllAsync(ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesClearCache(string index, ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesClearCacheAsync(string index, ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesClearCacheGetForAll(ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesClearCacheGetForAllAsync(ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesClearCacheGet(string index, ClearCacheRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_cache/clear http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html ///A comma-separated list of index name to limit the operation ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesClearCacheGetAsync(string index, ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_close http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to close ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesClose(string index, CloseIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_close http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to close ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesCloseAsync(string index, CloseIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html ///The name of the index ///The configuration for the index (`settings` and `mappings`) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesCreate(string index, PostData body, CreateIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html ///The name of the index ///The configuration for the index (`settings` and `mappings`) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesCreateAsync(string index, PostData body, CreateIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesDelete(string index, DeleteIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesDeleteAsync(string index, DeleteIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesDeleteAlias(string index, string name, DeleteAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesDeleteAliasAsync(string index, string name, DeleteAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesDeleteTemplateForAll(string name, DeleteIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesDeleteTemplateForAllAsync(string name, DeleteIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesExists(string index, IndexExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesExistsAsync(string index, IndexExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesExistsAliasForAll(string name, AliasExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesExistsAliasForAllAsync(string name, AliasExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesExistsAlias(string index, string name, AliasExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesExistsAliasAsync(string index, string name, AliasExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesExistsTemplateForAll(string name, IndexTemplateExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesExistsTemplateForAllAsync(string name, IndexTemplateExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html ///A comma-separated list of index names; use `_all` to check the types across all indices ///A comma-separated list of document types to check ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesExistsType(string index, string type, TypeExistsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html ///A comma-separated list of index names; use `_all` to check the types across all indices ///A comma-separated list of document types to check ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesExistsTypeAsync(string index, string type, TypeExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlushForAll(FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushForAllAsync(FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlush(string index, FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushAsync(string index, FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlushGetForAll(FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushGetForAllAsync(FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlushGet(string index, FlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushGetAsync(string index, FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlushSyncedForAll(SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushSyncedForAllAsync(SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlushSynced(string index, SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushSyncedAsync(string index, SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlushSyncedGetForAll(SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushSyncedGetForAllAsync(SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesFlushSyncedGet(string index, SyncedFlushRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_flush/synced http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesFlushSyncedGetAsync(string index, SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesForcemergeForAll(ForceMergeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesForcemergeForAllAsync(ForceMergeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.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. TResponse IndicesForcemerge(string index, ForceMergeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_forcemerge http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.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 IndicesForcemergeAsync(string index, ForceMergeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGet(string index, GetIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetAsync(string index, GetIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetAliasForAll(GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetAliasForAllAsync(GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetAliasForAll(string name, GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetAliasForAllAsync(string name, GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetAlias(string index, string name, GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetAliasAsync(string index, string name, GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetAlias(string index, GetAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_alias http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names to filter aliases ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetAliasAsync(string index, GetAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetFieldMappingForAll(string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetFieldMappingForAllAsync(string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetFieldMapping(string index, string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetFieldMappingAsync(string index, string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of document types ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetFieldMappingForAll(string type, string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of document types ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetFieldMappingForAllAsync(string type, string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetFieldMapping(string index, string type, string fields, GetFieldMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping/{type}/field/{fields} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types ///A comma-separated list of fields ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetFieldMappingAsync(string index, string type, string fields, GetFieldMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetMappingForAll(GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetMappingForAllAsync(GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetMapping(string index, GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetMappingAsync(string index, GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetMappingForAll(string type, GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetMappingForAllAsync(string type, GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetMapping(string index, string type, GetMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html ///A comma-separated list of index names ///A comma-separated list of document types ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetMappingAsync(string index, string type, GetMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetSettingsForAll(GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetSettingsForAllAsync(GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.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. TResponse IndicesGetSettings(string index, GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.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 IndicesGetSettingsAsync(string index, GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetSettings(string index, string name, GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetSettingsAsync(string index, string name, GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetSettingsForAll(string name, GetIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_settings/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html ///The name of the settings that should be included ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetSettingsForAllAsync(string name, GetIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_template http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetTemplateForAll(GetIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_template http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetTemplateForAllAsync(GetIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetTemplateForAll(string name, GetIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The comma separated names of the index templates ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetTemplateForAllAsync(string name, GetIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesGetUpgradeForAll(UpgradeStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesGetUpgradeForAllAsync(UpgradeStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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. TResponse IndicesGetUpgrade(string index, UpgradeStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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 IndicesGetUpgradeAsync(string index, UpgradeStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_open http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to open ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesOpen(string index, OpenIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_open http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html ///A comma separated list of indices to open ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesOpenAsync(string index, OpenIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutAlias(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutAliasAsync(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutAliasPost(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_alias/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutAliasPostAsync(string index, string name, PostData body, PutAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutMapping(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutMappingAsync(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutMappingForAll(string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutMappingForAllAsync(string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutMappingPost(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_mapping http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutMappingPostAsync(string index, string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutMappingPostForAll(string type, PostData body, PutMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_mapping/{type} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html ///The name of the document type ///The mapping definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutMappingPostForAllAsync(string type, PostData body, PutMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutSettingsForAll(PostData body, UpdateIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutSettingsForAllAsync(PostData body, UpdateIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutSettings(string index, PostData body, UpdateIndexSettingsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_settings http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///The index settings to be updated ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutSettingsAsync(string index, PostData body, UpdateIndexSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutTemplateForAll(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutTemplateForAllAsync(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesPutTemplatePostForAll(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_template/{name} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html ///The name of the template ///The template definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesPutTemplatePostForAllAsync(string name, PostData body, PutIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesRecoveryForAll(RecoveryStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesRecoveryForAllAsync(RecoveryStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.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. TResponse IndicesRecovery(string index, RecoveryStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_recovery http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.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 IndicesRecoveryAsync(string index, RecoveryStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesRefreshForAll(RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesRefreshForAllAsync(RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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. TResponse IndicesRefresh(string index, RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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 IndicesRefreshAsync(string index, RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesRefreshGetForAll(RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesRefreshGetForAllAsync(RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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. TResponse IndicesRefreshGet(string index, RefreshRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_refresh http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.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 IndicesRefreshGetAsync(string index, RefreshRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{alias}/_rollover http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The conditions that needs to be met for executing rollover ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesRolloverForAll(string alias, PostData body, RolloverIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{alias}/_rollover http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The conditions that needs to be met for executing rollover ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesRolloverForAllAsync(string alias, PostData body, RolloverIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{alias}/_rollover/{new_index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The name of the rollover index ///The conditions that needs to be met for executing rollover ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesRolloverForAll(string alias, string new_index, PostData body, RolloverIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{alias}/_rollover/{new_index} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html ///The name of the alias to rollover ///The name of the rollover index ///The conditions that needs to be met for executing rollover ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesRolloverForAllAsync(string alias, string new_index, PostData body, RolloverIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesSegmentsForAll(SegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesSegmentsForAllAsync(SegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.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. TResponse IndicesSegments(string index, SegmentsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_segments http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.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 IndicesSegmentsAsync(string index, SegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesShardStoresForAll(IndicesShardStoresRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesShardStoresForAllAsync(IndicesShardStoresRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.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. TResponse IndicesShardStores(string index, IndicesShardStoresRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_shard_stores http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.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 IndicesShardStoresAsync(string index, IndicesShardStoresRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesShrink(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesShrinkAsync(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesShrinkPost(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_shrink/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html ///The name of the source index to shrink ///The name of the target index to shrink into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesShrinkPostAsync(string index, string target, PostData body, ShrinkIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesSplit(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesSplitAsync(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesSplitPost(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_split/{target} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html ///The name of the source index to split ///The name of the target index to split into ///The configuration for the target index (`settings` and `aliases`) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesSplitPostAsync(string index, string target, PostData body, SplitIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesStatsForAll(IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesStatsForAllAsync(IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesStatsForAll(string metric, IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesStatsForAllAsync(string metric, IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-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. TResponse IndicesStats(string index, IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-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 IndicesStatsAsync(string index, IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesStats(string index, string metric, IndicesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices ///Limit the information returned the specific metrics. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesStatsAsync(string index, string metric, IndicesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///The definition of `actions` to perform ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesUpdateAliasesForAll(PostData body, BulkAliasRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_aliases http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html ///The definition of `actions` to perform ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesUpdateAliasesForAllAsync(PostData body, BulkAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesUpgradeForAll(UpgradeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesUpgradeForAllAsync(UpgradeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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. TResponse IndicesUpgrade(string index, UpgradeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_upgrade http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.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 IndicesUpgradeAsync(string index, UpgradeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesValidateQueryGetForAll(ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesValidateQueryGetForAllAsync(ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; 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. TResponse IndicesValidateQueryGet(string index, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; 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 IndicesValidateQueryGetAsync(string index, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesValidateQueryGet(string index, string type, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesValidateQueryGetAsync(string index, string type, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesValidateQueryForAll(PostData body, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesValidateQueryForAllAsync(PostData body, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesValidateQuery(string index, PostData body, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesValidateQueryAsync(string index, PostData body, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IndicesValidateQuery(string index, string type, PostData body, ValidateQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_validate/query http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///The query definition specified with the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IndicesValidateQueryAsync(string index, string type, PostData body, ValidateQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Info(RootNodeInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. Task InfoAsync(RootNodeInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IngestDeletePipeline(string id, DeletePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IngestDeletePipelineAsync(string id, DeletePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline 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. TResponse IngestGetPipeline(GetPipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline 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 IngestGetPipelineAsync(GetPipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Comma separated list of pipeline ids. Wildcards supported ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IngestGetPipeline(string id, GetPipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Comma separated list of pipeline ids. Wildcards supported ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IngestGetPipelineAsync(string id, GetPipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/processor/grok 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. TResponse IngestProcessorGrok(GrokProcessorPatternsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/processor/grok 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(GrokProcessorPatternsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The ingest definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IngestPutPipeline(string id, PostData body, PutPipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_ingest/pipeline/{id} https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The ingest definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IngestPutPipelineAsync(string id, PostData body, PutPipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline/_simulate 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. TResponse IngestSimulateGet(SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline/_simulate 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 IngestSimulateGetAsync(SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IngestSimulateGet(string id, SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IngestSimulateGetAsync(string id, SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_ingest/pipeline/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IngestSimulate(PostData body, SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_ingest/pipeline/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IngestSimulateAsync(PostData body, SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse IngestSimulate(string id, PostData body, SimulatePipelineRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_ingest/pipeline/{id}/_simulate https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html ///Pipeline ID ///The simulate definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task IngestSimulateAsync(string id, PostData body, SimulatePipelineRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MgetGet(MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MgetGetAsync(MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MgetGet(string index, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MgetGetAsync(string index, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MgetGet(string index, string type, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MgetGetAsync(string index, string type, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Mget(PostData body, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MgetAsync(PostData body, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Mget(string index, PostData body, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MgetAsync(string index, PostData body, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Mget(string index, string type, PostData body, MultiGetRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_mget http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html ///The name of the index ///The type of the document ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MgetAsync(string index, string type, PostData body, MultiGetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchGet(MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchGetAsync(MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchGet(string index, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchGetAsync(string index, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchGet(string index, string type, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchGetAsync(string index, string type, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Msearch(PostData body, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchAsync(PostData body, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Msearch(string index, PostData body, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchAsync(string index, PostData body, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Msearch(string index, string type, PostData body, MultiSearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_msearch http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchAsync(string index, string type, PostData body, MultiSearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchTemplateGet(MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchTemplateGetAsync(MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchTemplateGet(string index, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchTemplateGetAsync(string index, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchTemplateGet(string index, string type, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchTemplateGetAsync(string index, string type, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchTemplate(PostData body, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchTemplateAsync(PostData body, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchTemplate(string index, PostData body, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchTemplateAsync(string index, PostData body, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MsearchTemplate(string index, string type, PostData body, MultiSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_msearch/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MsearchTemplateAsync(string index, string type, PostData body, MultiSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MtermvectorsGet(MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MtermvectorsGetAsync(MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MtermvectorsGet(string index, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MtermvectorsGetAsync(string index, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse MtermvectorsGet(string index, string type, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MtermvectorsGetAsync(string index, string type, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Mtermvectors(PostData body, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MtermvectorsAsync(PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Mtermvectors(string index, PostData body, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MtermvectorsAsync(string index, PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Mtermvectors(string index, string type, PostData body, MultiTermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_mtermvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html ///The index in which the document resides. ///The type of the document. ///Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task MtermvectorsAsync(string index, string type, PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/nodes/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesHotThreadsForAll(NodesHotThreadsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/nodes/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesHotThreadsForAllAsync(NodesHotThreadsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/nodes/{node_id}/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.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 + ///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. TResponse NodesHotThreads(string node_id, NodesHotThreadsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_cluster/nodes/{node_id}/hotthreads http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.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 + ///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 NodesHotThreadsAsync(string node_id, NodesHotThreadsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesInfoForAll(NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesInfoForAllAsync(NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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. TResponse NodesInfo(string node_id, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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 NodesInfoAsync(string node_id, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesInfoForAll(string metric, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesInfoForAllAsync(string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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 comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesInfo(string node_id, string metric, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.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 + ///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 comma-separated list of metrics you wish returned. Leave empty to return all. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesInfoAsync(string node_id, string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesStatsForAll(NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesStatsForAllAsync(NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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. TResponse NodesStats(string node_id, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/stats http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 NodesStatsAsync(string node_id, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesStatsForAll(string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///Limit the information returned to the specified metrics ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesStatsForAllAsync(string metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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. TResponse NodesStats(string node_id, string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/stats/{metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 NodesStatsAsync(string node_id, string metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesStatsForAll(string metric, string index_metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesStatsForAllAsync(string metric, string index_metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse NodesStats(string node_id, string metric, string index_metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/stats/{metric}/{index_metric} http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.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 + ///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 - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task NodesStatsAsync(string node_id, string metric, string index_metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/usage 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. TResponse NodesUsageForAll(NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/usage 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 NodesUsageForAllAsync(NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/usage 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 + ///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. TResponse NodesUsage(string node_id, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/usage 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 + ///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 NodesUsageAsync(string node_id, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/usage/{metric} 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. TResponse NodesUsageForAll(string metric, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/usage/{metric} 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, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/usage/{metric} 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 + ///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. TResponse NodesUsage(string node_id, string metric, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_nodes/{node_id}/usage/{metric} 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 + ///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, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Ping(PingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///HEAD on / http://www.elastic.co/guide/ ///A func that allows you to describe the querystring parameters & request specific connection settings. Task PingAsync(PingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse PutScript(string id, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task PutScriptAsync(string id, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse PutScript(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task PutScriptAsync(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse PutScriptPost(string id, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_scripts/{id} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task PutScriptPostAsync(string id, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse PutScriptPost(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_scripts/{id}/{context} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Script ID ///Script context ///The document ///A func that allows you to describe the querystring parameters & request specific connection settings. Task PutScriptPostAsync(string id, string context, PostData body, PutScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_reindex https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The search definition using the Query DSL and the prototype for the index request. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Reindex(PostData body, ReindexOnServerRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_reindex https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The search definition using the Query DSL and the prototype for the index request. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ReindexAsync(PostData body, ReindexOnServerRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_reindex/{task_id}/_rethrottle https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The task id to rethrottle ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ReindexRethrottle(string task_id, ReindexRethrottleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_reindex/{task_id}/_rethrottle https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html ///The task id to rethrottle ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ReindexRethrottleAsync(string task_id, ReindexRethrottleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse RenderSearchTemplateGet(RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task RenderSearchTemplateGetAsync(RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse RenderSearchTemplateGet(string id, RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///A func that allows you to describe the querystring parameters & request specific connection settings. Task RenderSearchTemplateGetAsync(string id, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse RenderSearchTemplate(PostData body, RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_render/template http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. Task RenderSearchTemplateAsync(PostData body, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse RenderSearchTemplate(string id, PostData body, RenderSearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_render/template/{id} http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html ///The id of the stored search template ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. Task RenderSearchTemplateAsync(string id, PostData body, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - + ///GET on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse ScriptsPainlessExecuteGet(ExecutePainlessScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///GET on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task ScriptsPainlessExecuteGetAsync(ExecutePainlessScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///The script to execute + ///A func that allows you to describe the querystring parameters & request specific connection settings. + TResponse ScriptsPainlessExecute(PostData body, ExecutePainlessScriptRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html + ///The script to execute + ///A func that allows you to describe the querystring parameters & request specific connection settings. + Task ScriptsPainlessExecuteAsync(PostData body, ExecutePainlessScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); ///GET on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse ScrollGet(ScrollRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ScrollGetAsync(ScrollRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///The scroll ID if not passed by URL or query parameter. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Scroll(PostData body, ScrollRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search/scroll http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html ///The scroll ID if not passed by URL or query parameter. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task ScrollAsync(PostData body, ScrollRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SearchGet(SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchGetAsync(SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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. TResponse SearchGet(string index, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 SearchGetAsync(string index, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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. TResponse SearchGet(string index, string type, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 SearchGetAsync(string index, string type, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Search(PostData body, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchAsync(PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Search(string index, PostData body, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchAsync(string index, PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Search(string index, string type, PostData body, SearchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_search http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchAsync(string index, string type, PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SearchShardsGet(SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchShardsGetAsync(SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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. TResponse SearchShardsGet(string index, SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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 SearchShardsGetAsync(string index, SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SearchShards(SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchShardsAsync(SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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. TResponse SearchShards(string index, SearchShardsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_search_shards http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.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 SearchShardsAsync(string index, SearchShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SearchTemplateGet(SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchTemplateGetAsync(SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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. TResponse SearchTemplateGet(string index, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 SearchTemplateGetAsync(string index, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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. TResponse SearchTemplateGet(string index, string type, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 SearchTemplateGetAsync(string index, string type, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SearchTemplate(PostData body, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchTemplateAsync(PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SearchTemplate(string index, PostData body, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchTemplateAsync(string index, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SearchTemplate(string index, string type, PostData body, SearchTemplateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_search/template http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.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 ///The search definition template and its params ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SearchTemplateAsync(string index, string type, PostData body, SearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///The snapshot definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotCreate(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///The snapshot definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotCreateAsync(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///The snapshot definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotCreatePost(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///The snapshot definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotCreatePostAsync(string repository, string snapshot, PostData body, SnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotCreateRepository(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotCreateRepositoryAsync(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotCreateRepositoryPost(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///The repository definition ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotCreateRepositoryPostAsync(string repository, PostData body, CreateRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotDelete(string repository, string snapshot, DeleteSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotDeleteAsync(string repository, string snapshot, DeleteSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotDeleteRepository(string repository, DeleteRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotDeleteRepositoryAsync(string repository, DeleteRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotGet(string repository, string snapshot, GetSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository}/{snapshot} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotGetAsync(string repository, string snapshot, GetSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotGetRepository(GetRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotGetRepositoryAsync(GetRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotGetRepository(string repository, GetRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository} http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A comma-separated list of repository names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotGetRepositoryAsync(string repository, GetRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository}/{snapshot}/_restore http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///Details of what to restore ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotRestore(string repository, string snapshot, PostData body, RestoreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository}/{snapshot}/_restore http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A snapshot name ///Details of what to restore ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotRestoreAsync(string repository, string snapshot, PostData body, RestoreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotStatus(SnapshotStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotStatusAsync(SnapshotStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotStatus(string repository, SnapshotStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotStatusAsync(string repository, SnapshotStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository}/{snapshot}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotStatus(string repository, string snapshot, SnapshotStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_snapshot/{repository}/{snapshot}/_status http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A comma-separated list of snapshot names ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotStatusAsync(string repository, string snapshot, SnapshotStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository}/_verify http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse SnapshotVerifyRepository(string repository, VerifyRepositoryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_snapshot/{repository}/_verify http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html ///A repository name ///A func that allows you to describe the querystring parameters & request specific connection settings. Task SnapshotVerifyRepositoryAsync(string repository, VerifyRepositoryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_tasks/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse TasksCancel(CancelTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_tasks/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TasksCancelAsync(CancelTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_tasks/{task_id}/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Cancel the task with specified task id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse TasksCancel(string task_id, CancelTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_tasks/{task_id}/_cancel http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Cancel the task with specified task id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TasksCancelAsync(string task_id, CancelTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_tasks/{task_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Return the task with specified id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse TasksGet(string task_id, GetTaskRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_tasks/{task_id} http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///Return the task with specified id (node_id:task_number) ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TasksGetAsync(string task_id, GetTaskRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse TasksList(ListTasksRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_tasks http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TasksListAsync(ListTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse TermvectorsGet(string index, string type, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TermvectorsGetAsync(string index, string type, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///The id of the document, when not specified a doc param should be supplied. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse TermvectorsGet(string index, string type, string id, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///The id of the document, when not specified a doc param should be supplied. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TermvectorsGetAsync(string index, string type, string id, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///Define parameters and or supply a document to get termvectors for. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Termvectors(string index, string type, PostData body, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. ///Define parameters and or supply a document to get termvectors for. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TermvectorsAsync(string index, string type, PostData body, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -2841,7 +2319,6 @@ public partial interface IElasticLowLevelClient ///Define parameters and or supply a document to get termvectors for. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Termvectors(string index, string type, string id, PostData body, TermVectorsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_termvectors http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html ///The index in which the document resides. ///The type of the document. @@ -2849,7 +2326,6 @@ public partial interface IElasticLowLevelClient ///Define parameters and or supply a document to get termvectors for. See documentation. ///A func that allows you to describe the querystring parameters & request specific connection settings. Task TermvectorsAsync(string index, string type, string id, PostData body, TermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html ///The name of the index ///The type of the document @@ -2857,7 +2333,6 @@ public partial interface IElasticLowLevelClient ///The request definition requires either `script` or partial `doc` ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse Update(string index, string type, string id, PostData body, UpdateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/{id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html ///The name of the index ///The type of the document @@ -2865,1164 +2340,941 @@ public partial interface IElasticLowLevelClient ///The request definition requires either `script` or partial `doc` ///A func that allows you to describe the querystring parameters & request specific connection settings. Task UpdateAsync(string index, string type, string id, PostData body, UpdateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse UpdateByQuery(string index, PostData body, UpdateByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task UpdateByQueryAsync(string index, PostData body, UpdateByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse UpdateByQuery(string index, string type, PostData body, UpdateByQueryRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_update_by_query https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.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 ///The search definition using the Query DSL ///A func that allows you to describe the querystring parameters & request specific connection settings. Task UpdateByQueryAsync(string index, string type, PostData body, UpdateByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_xpack/graph/_explore 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. TResponse XpackGraphExploreGet(string index, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_xpack/graph/_explore 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, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_xpack/graph/_explore 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. TResponse XpackGraphExploreGet(string index, string type, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/{type}/_xpack/graph/_explore 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, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_xpack/graph/_explore 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. TResponse XpackGraphExplore(string index, PostData body, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/_xpack/graph/_explore 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, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_xpack/graph/_explore 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. TResponse XpackGraphExplore(string index, string type, PostData body, GraphExploreRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /{index}/{type}/_xpack/graph/_explore 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. Task XpackGraphExploreAsync(string index, string type, PostData body, GraphExploreRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackInfo(XPackInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackInfoAsync(XPackInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/usage Retrieve information about xpack features usage ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackUsage(XPackUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/usage Retrieve information about xpack features usage ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackUsageAsync(XPackUsageRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/license 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. TResponse XpackLicenseDelete(DeleteLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/license 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(DeleteLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/license 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. TResponse XpackLicenseGet(GetLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/license 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(GetLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/license/trial_status 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. TResponse XpackLicenseGetTrialStatus(GetTrialLicenseStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/license/trial_status 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 XpackLicenseGetTrialStatusAsync(GetTrialLicenseStatusRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/license 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. TResponse XpackLicensePost(PostData body, PostLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/license 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, PostLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/license/start_trial 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. TResponse XpackLicensePostStartTrial(StartTrialLicenseRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/license/start_trial 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 XpackLicensePostStartTrialAsync(StartTrialLicenseRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_close http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html ///The name of the job to close ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlCloseJob(string job_id, CloseJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_close http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html ///The name of the job to close ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlCloseJobAsync(string job_id, CloseJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html ///The ID of the datafeed to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlDeleteDatafeed(string datafeed_id, DeleteDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html ///The ID of the datafeed to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlDeleteDatafeedAsync(string datafeed_id, DeleteDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/_delete_expired_data ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlDeleteExpiredData(DeleteExpiredDataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/_delete_expired_data ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlDeleteExpiredDataAsync(DeleteExpiredDataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html ///The ID of the job to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlDeleteJob(string job_id, DeleteJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html ///The ID of the job to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlDeleteJobAsync(string job_id, DeleteJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlDeleteModelSnapshot(string job_id, string snapshot_id, DeleteModelSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to delete ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlDeleteModelSnapshotAsync(string job_id, string snapshot_id, DeleteModelSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html ///The name of the job to flush ///Flush parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlFlushJob(string job_id, PostData body, FlushJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_flush http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html ///The name of the job to flush ///Flush parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlFlushJobAsync(string job_id, PostData body, FlushJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_forecast ///The ID of the job to forecast for ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlForecast(string job_id, ForecastJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_forecast ///The ID of the job to forecast for ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlForecastAsync(string job_id, ForecastJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetBuckets(string job_id, GetBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetBucketsAsync(string job_id, GetBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///Bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetBuckets(string job_id, PostData body, GetBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html ///ID of the job to get bucket results from ///Bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetBucketsAsync(string job_id, PostData body, GetBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetCategories(string job_id, long category_id, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetCategoriesAsync(string job_id, long category_id, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetCategories(string job_id, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetCategoriesAsync(string job_id, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest ///Category selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetCategories(string job_id, long category_id, PostData body, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///The identifier of the category definition of interest ///Category selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetCategoriesAsync(string job_id, long category_id, PostData body, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///Category selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetCategories(string job_id, PostData body, GetCategoriesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html ///The name of the job ///Category selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetCategoriesAsync(string job_id, PostData body, GetCategoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///The ID of the datafeeds to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetDatafeeds(string datafeed_id, GetDatafeedsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///The ID of the datafeeds to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetDatafeedsAsync(string datafeed_id, GetDatafeedsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetDatafeeds(GetDatafeedsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetDatafeedsAsync(GetDatafeedsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///The ID of the datafeeds stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetDatafeedStats(string datafeed_id, GetDatafeedStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///The ID of the datafeeds stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetDatafeedStatsAsync(string datafeed_id, GetDatafeedStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetDatafeedStats(GetDatafeedStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetDatafeedStatsAsync(GetDatafeedStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetInfluencers(string job_id, GetInfluencersRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetInfluencersAsync(string job_id, GetInfluencersRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///Influencer selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetInfluencers(string job_id, PostData body, GetInfluencersRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/influencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// ///Influencer selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetInfluencersAsync(string job_id, PostData body, GetInfluencersRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///The ID of the jobs to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetJobs(string job_id, GetJobsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///The ID of the jobs to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetJobsAsync(string job_id, GetJobsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetJobs(GetJobsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetJobsAsync(GetJobsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetJobStats(GetJobStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetJobStatsAsync(GetJobStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///The ID of the jobs stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetJobStats(string job_id, GetJobStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/_stats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html ///The ID of the jobs stats to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetJobStatsAsync(string job_id, GetJobStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetModelSnapshots(string job_id, string snapshot_id, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetModelSnapshotsAsync(string job_id, string snapshot_id, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetModelSnapshots(string job_id, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetModelSnapshotsAsync(string job_id, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch ///Model snapshot selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetModelSnapshots(string job_id, string snapshot_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to fetch ///Model snapshot selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetModelSnapshotsAsync(string job_id, string snapshot_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///Model snapshot selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetModelSnapshots(string job_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html ///The ID of the job to fetch ///Model snapshot selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetModelSnapshotsAsync(string job_id, PostData body, GetModelSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetOverallBuckets(string job_id, GetOverallBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetOverallBucketsAsync(string job_id, GetOverallBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///Overall bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetOverallBuckets(string job_id, PostData body, GetOverallBucketsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html ///The job IDs for which to calculate overall bucket results ///Overall bucket selection details if not provided in URI ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetOverallBucketsAsync(string job_id, PostData body, GetOverallBucketsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetRecords(string job_id, GetAnomalyRecordsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetRecordsAsync(string job_id, GetAnomalyRecordsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///Record selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlGetRecords(string job_id, PostData body, GetAnomalyRecordsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/results/records http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// ///Record selection criteria ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlGetRecordsAsync(string job_id, PostData body, GetAnomalyRecordsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_open http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html ///The ID of the job to open ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlOpenJob(string job_id, OpenJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_open http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html ///The ID of the job to open ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlOpenJobAsync(string job_id, OpenJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_data http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html ///The name of the job receiving the data ///The data to process ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlPostData(string job_id, PostData body, PostJobDataRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_data http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html ///The name of the job receiving the data ///The data to process ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlPostDataAsync(string job_id, PostData body, PostJobDataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html ///The ID of the datafeed to preview ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlPreviewDatafeed(string datafeed_id, PreviewDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/ml/datafeeds/{datafeed_id}/_preview http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html ///The ID of the datafeed to preview ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlPreviewDatafeedAsync(string datafeed_id, PreviewDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html ///The ID of the datafeed to create ///The datafeed config ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlPutDatafeed(string datafeed_id, PostData body, PutDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/ml/datafeeds/{datafeed_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html ///The ID of the datafeed to create ///The datafeed config ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlPutDatafeedAsync(string datafeed_id, PostData body, PutDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html ///The ID of the job to create ///The job ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlPutJob(string job_id, PostData body, PutJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/ml/anomaly_detectors/{job_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html ///The ID of the job to create ///The job ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlPutJobAsync(string job_id, PostData body, PutJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to revert to ///Reversion options ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlRevertModelSnapshot(string job_id, string snapshot_id, PostData body, RevertModelSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to revert to ///Reversion options ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlRevertModelSnapshotAsync(string job_id, string snapshot_id, PostData body, RevertModelSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html ///The ID of the datafeed to start ///The start datafeed parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlStartDatafeed(string datafeed_id, PostData body, StartDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html ///The ID of the datafeed to start ///The start datafeed parameters ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlStartDatafeedAsync(string datafeed_id, PostData body, StartDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html ///The ID of the datafeed to stop ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlStopDatafeed(string datafeed_id, StopDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html ///The ID of the datafeed to stop ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlStopDatafeedAsync(string datafeed_id, StopDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html ///The ID of the datafeed to update ///The datafeed update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlUpdateDatafeed(string datafeed_id, PostData body, UpdateDatafeedRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/datafeeds/{datafeed_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html ///The ID of the datafeed to update ///The datafeed update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlUpdateDatafeedAsync(string datafeed_id, PostData body, UpdateDatafeedRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html ///The ID of the job to create ///The job update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlUpdateJob(string job_id, PostData body, UpdateJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html ///The ID of the job to create ///The job update settings ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlUpdateJobAsync(string job_id, PostData body, UpdateJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to update ///The model snapshot properties to update ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlUpdateModelSnapshot(string job_id, string snapshot_id, PostData body, UpdateModelSnapshotRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html ///The ID of the job to fetch ///The ID of the snapshot to update ///The model snapshot properties to update ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlUpdateModelSnapshotAsync(string job_id, string snapshot_id, PostData body, UpdateModelSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/_validate ///The job config ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlValidate(PostData body, ValidateJobRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/_validate ///The job config ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlValidateAsync(PostData body, ValidateJobRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/_validate/detector ///The detector ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMlValidateDetector(PostData body, ValidateDetectorRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/ml/anomaly_detectors/_validate/detector ///The detector ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMlValidateDetectorAsync(PostData body, ValidateDetectorRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/migration/deprecations 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. TResponse XpackMigrationDeprecations(DeprecationInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/migration/deprecations 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 XpackMigrationDeprecationsAsync(DeprecationInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_xpack/migration/deprecations 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. TResponse XpackMigrationDeprecations(string index, DeprecationInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /{index}/_xpack/migration/deprecations 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 XpackMigrationDeprecationsAsync(string index, DeprecationInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/migration/assistance https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMigrationGetAssistance(MigrationAssistanceRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/migration/assistance https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMigrationGetAssistanceAsync(MigrationAssistanceRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/migration/assistance/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.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. TResponse XpackMigrationGetAssistance(string index, MigrationAssistanceRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/migration/assistance/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.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 XpackMigrationGetAssistanceAsync(string index, MigrationAssistanceRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/migration/upgrade/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackMigrationUpgrade(string index, MigrationUpgradeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/migration/upgrade/{index} https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html ///The name of the index ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackMigrationUpgradeAsync(string index, MigrationUpgradeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/_authenticate 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. TResponse XpackSecurityAuthenticate(AuthenticateRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/_authenticate 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(AuthenticateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityChangePassword(string username, PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityChangePasswordAsync(string username, PostData body, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/_password 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. TResponse XpackSecurityChangePassword(PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/_password 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, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityChangePasswordPost(string username, PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_password 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityChangePasswordPostAsync(string username, PostData body, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/_password 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. TResponse XpackSecurityChangePasswordPost(PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/_password 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, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/realm/{realms}/_clear_cache 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. TResponse XpackSecurityClearCachedRealms(string realms, ClearCachedRealmsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/realm/{realms}/_clear_cache 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, ClearCachedRealmsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name}/_clear_cache 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. TResponse XpackSecurityClearCachedRoles(string name, ClearCachedRolesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name}/_clear_cache 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, ClearCachedRolesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role/{name} 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. TResponse XpackSecurityDeleteRole(string name, DeleteRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role/{name} 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, DeleteRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role_mapping/{name} 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. TResponse XpackSecurityDeleteRoleMapping(string name, DeleteRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/role_mapping/{name} 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, DeleteRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/user/{username} 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. TResponse XpackSecurityDeleteUser(string username, DeleteUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/user/{username} 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, DeleteUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_disable 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. TResponse XpackSecurityDisableUser(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_disable 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, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_disable 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. TResponse XpackSecurityDisableUserPost(string username, DisableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_disable 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, DisableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_enable 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. TResponse XpackSecurityEnableUser(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username}/_enable 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, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_enable 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. TResponse XpackSecurityEnableUserPost(string username, EnableUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username}/_enable 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, EnableUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role/{name} 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. TResponse XpackSecurityGetRole(string name, GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role/{name} 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, GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role 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. TResponse XpackSecurityGetRole(GetRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role 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(GetRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping/{name} 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. TResponse XpackSecurityGetRoleMapping(string name, GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping/{name} 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, GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping 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. TResponse XpackSecurityGetRoleMapping(GetRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/role_mapping 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(GetRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/oauth2/token 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. TResponse XpackSecurityGetToken(PostData body, GetUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/oauth2/token 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, GetUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user/{username} 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. TResponse XpackSecurityGetUser(string username, GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user/{username} 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, GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user 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. TResponse XpackSecurityGetUser(GetUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/security/user 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(GetUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/oauth2/token 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. TResponse XpackSecurityInvalidateToken(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/security/oauth2/token 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, InvalidateUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRole(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRoleAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRolePost(string name, PostData body, PutRoleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role ///Role name ///The role to add ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRolePostAsync(string name, PostData body, PutRoleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRoleMapping(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRoleMappingAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutRoleMappingPost(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/role_mapping/{name} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutRoleMappingPostAsync(string name, PostData body, PutRoleMappingRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutUser(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutUserAsync(string username, PostData body, PutUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackSecurityPutUserPost(string username, PostData body, PutUserRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/security/user/{username} 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 ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackSecurityPutUserPostAsync(string username, PostData body, PutUserRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherAckWatch(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherAckWatchAsync(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherAckWatch(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherAckWatchAsync(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherAckWatchPost(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherAckWatchPostAsync(string watch_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherAckWatchPost(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_ack/{action_id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html ///Watch ID ///A comma-separated list of the action ids to be acked ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherAckWatchPostAsync(string watch_id, string action_id, AcknowledgeWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherActivateWatch(string watch_id, ActivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherActivateWatchAsync(string watch_id, ActivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherActivateWatchPost(string watch_id, ActivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_activate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherActivateWatchPostAsync(string watch_id, ActivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherDeactivateWatch(string watch_id, DeactivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherDeactivateWatchAsync(string watch_id, DeactivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherDeactivateWatchPost(string watch_id, DeactivateWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{watch_id}/_deactivate https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherDeactivateWatchPostAsync(string watch_id, DeactivateWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherDeleteWatch(string id, DeleteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///DELETE on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherDeleteWatchAsync(string id, DeleteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherExecuteWatch(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherExecuteWatchAsync(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherExecuteWatch(PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherExecuteWatchAsync(PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherExecuteWatchPost(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{id}/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Watch ID ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherExecuteWatchPostAsync(string id, PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherExecuteWatchPost(PostData body, ExecuteWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/_execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html ///Execution control ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherExecuteWatchPostAsync(PostData body, ExecuteWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherGetWatch(string id, GetWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html ///Watch ID ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherGetWatchAsync(string id, GetWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherPutWatch(string id, PostData body, PutWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///PUT on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherPutWatchAsync(string id, PostData body, PutWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherPutWatchPost(string id, PostData body, PutWatchRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/watch/{id} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html ///Watch ID ///The watch ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherPutWatchPostAsync(string id, PostData body, PutWatchRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/_restart http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherRestart(RestartWatcherRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/_restart http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherRestartAsync(RestartWatcherRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherStart(StartWatcherRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/_start http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherStartAsync(StartWatcherRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/watcher/stats http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherStats(WatcherStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/watcher/stats http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherStatsAsync(WatcherStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/watcher/stats/{watcher_stats_metric} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///Controls what additional stat metrics should be include in the response ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherStats(WatcherStatsMetric watcher_stats_metric, WatcherStatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_xpack/watcher/stats/{watcher_stats_metric} http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html ///Controls what additional stat metrics should be include in the response ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherStatsAsync(WatcherStatsMetric watcher_stats_metric, WatcherStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html ///A func that allows you to describe the querystring parameters & request specific connection settings. TResponse XpackWatcherStop(StopWatcherRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_xpack/watcher/_stop http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html ///A func that allows you to describe the querystring parameters & request specific connection settings. Task XpackWatcherStopAsync(StopWatcherRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) where TResponse : class, IElasticsearchResponse, new(); - } } diff --git a/src/Nest/Aggregations/Aggregate.cs b/src/Nest/Aggregations/Aggregate.cs index e326f95364f..bc63a1780f6 100644 --- a/src/Nest/Aggregations/Aggregate.cs +++ b/src/Nest/Aggregations/Aggregate.cs @@ -3,12 +3,15 @@ namespace Nest { /// - /// Represents the result of an aggregation on the response + /// Aggregation response for an aggregation request /// [ExactContractJsonConverter(typeof(AggregateJsonConverter))] public interface IAggregate { //TODO this public set is problematic + /// + /// Metadata for the aggregation + /// IReadOnlyDictionary Meta { get; set; } } } diff --git a/src/Nest/Aggregations/AggregateDictionary.cs b/src/Nest/Aggregations/AggregateDictionary.cs index fc5d3b59664..c59b27d8abf 100644 --- a/src/Nest/Aggregations/AggregateDictionary.cs +++ b/src/Nest/Aggregations/AggregateDictionary.cs @@ -175,7 +175,17 @@ public TermsAggregate Terms(string key) public MultiBucketAggregate DateHistogram(string key) => GetMultiBucketAggregate(key); - public MultiBucketAggregate Composite(string key) => GetMultiBucketAggregate(key); + public CompositeBucketAggregate Composite(string key) + { + var bucket = this.TryGet(key); + if (bucket == null) return null; + return new CompositeBucketAggregate + { + Buckets = bucket.Items.OfType().ToList(), + Meta = bucket.Meta, + AfterKey = new CompositeKey(bucket.AfterKey) + }; + } public MatrixStatsAggregate MatrixStats(string key) => this.TryGet(key); diff --git a/src/Nest/Aggregations/AggregateJsonConverter.cs b/src/Nest/Aggregations/AggregateJsonConverter.cs index 408160a09bc..d7b0f86c105 100644 --- a/src/Nest/Aggregations/AggregateJsonConverter.cs +++ b/src/Nest/Aggregations/AggregateJsonConverter.cs @@ -36,6 +36,7 @@ private static class Parser public const string Hits = "hits"; public const string Location = "location"; public const string Fields = "fields"; + public const string AfterKey = "after_key"; public const string Key = "key"; public const string From = "from"; @@ -126,6 +127,16 @@ private IAggregate ReadAggregate(JsonReader reader, JsonSerializer serializer) case Parser.Value: aggregate = GetValueAggregate(reader, serializer); break; + case Parser.AfterKey: + reader.Read(); + var afterKeys = serializer.Deserialize>(reader); + reader.Read(); + var bucketAggregate = reader.Value.ToString() == Parser.Buckets + ? this.GetMultiBucketAggregate(reader, serializer) as BucketAggregate ?? new BucketAggregate() + : new BucketAggregate(); + bucketAggregate.AfterKey = afterKeys; + aggregate = bucketAggregate; + break; case Parser.Buckets: case Parser.DocCountErrorUpperBound: aggregate = GetMultiBucketAggregate(reader, serializer); diff --git a/src/Nest/Aggregations/Bucket/BucketAggregate.cs b/src/Nest/Aggregations/Bucket/BucketAggregate.cs index 88ce0d77c08..0d47b6568c7 100644 --- a/src/Nest/Aggregations/Bucket/BucketAggregate.cs +++ b/src/Nest/Aggregations/Bucket/BucketAggregate.cs @@ -23,17 +23,42 @@ public SingleBucketAggregate(IReadOnlyDictionary aggregation [Obsolete("Use methods on this instance to access sub aggregations. Will be removed in NEST 7.x")] public AggregateDictionary Aggregations { get; protected internal set; } + /// + /// Count of documents in the bucket + /// public long DocCount { get; internal set; } } + /// + /// Aggregation response for a bucket aggregation + /// + /// public class MultiBucketAggregate : IAggregate where TBucket : IBucket { + /// public IReadOnlyDictionary Meta { get; set; } + /// + /// The buckets into which results are grouped + /// public IReadOnlyCollection Buckets { get; set; } = EmptyReadOnly.Collection; } + /// + /// Aggregation response of + /// + public class CompositeBucketAggregate : MultiBucketAggregate + { + /// + /// The composite key of the last bucket returned + /// in the response before any filtering by pipeline aggregations. + /// If all buckets are filtered/removed by pipeline aggregations, + /// will contain the composite key of the last bucket before filtering. + /// + /// Valid for Elasticsearch 6.3.0+ + public CompositeKey AfterKey { get; set; } + } // Intermediate object used for deserialization public class BucketAggregate : IAggregate @@ -44,5 +69,6 @@ public class BucketAggregate : IAggregate public IReadOnlyDictionary Meta { get; set; } = EmptyReadOnly.Dictionary; public long DocCount { get; set; } public long BgCount { get; set; } + public IReadOnlyDictionary AfterKey { get; set; } = EmptyReadOnly.Dictionary; } } diff --git a/src/Nest/Aggregations/Bucket/Composite/DateHistogramCompositeAggregationSource.cs b/src/Nest/Aggregations/Bucket/Composite/DateHistogramCompositeAggregationSource.cs index 77fd4cd5f51..fc700b44987 100644 --- a/src/Nest/Aggregations/Bucket/Composite/DateHistogramCompositeAggregationSource.cs +++ b/src/Nest/Aggregations/Bucket/Composite/DateHistogramCompositeAggregationSource.cs @@ -22,6 +22,13 @@ public interface IDateHistogramCompositeAggregationSource : ICompositeAggregatio /// [JsonProperty("time_zone")] string Timezone { get; set; } + + /// + /// Return a formatted date string as the key instead an epoch long + /// + /// Valid for Elasticsearch 6.3.0+ + [JsonProperty("format")] + string Format { get; set; } } /// @@ -35,6 +42,9 @@ public DateHistogramCompositeAggregationSource(string name) : base(name) {} /// public string Timezone { get; set; } + /// + public string Format { get; set; } + /// protected override string SourceType => "date_histogram"; } @@ -46,6 +56,7 @@ public class DateHistogramCompositeAggregationSourceDescriptor { Union IDateHistogramCompositeAggregationSource.Interval { get; set; } string IDateHistogramCompositeAggregationSource.Timezone { get; set; } + string IDateHistogramCompositeAggregationSource.Format { get; set; } public DateHistogramCompositeAggregationSourceDescriptor(string name) : base(name, "date_histogram") {} @@ -58,7 +69,9 @@ public DateHistogramCompositeAggregationSourceDescriptor Interval(Time interv Assign(a => a.Interval = interval); /// - public DateHistogramCompositeAggregationSourceDescriptor Timezone(string timezone) => - Assign(a => a.Timezone = timezone); + public DateHistogramCompositeAggregationSourceDescriptor Timezone(string timezone) => Assign(a => a.Timezone = timezone); + + /// + public DateHistogramCompositeAggregationSourceDescriptor Format(string format) => Assign(a => a.Format = format); } } diff --git a/src/Nest/Cluster/NodesStats/AdaptiveSelectionStats.cs b/src/Nest/Cluster/NodesStats/AdaptiveSelectionStats.cs new file mode 100644 index 00000000000..20bd34133d4 --- /dev/null +++ b/src/Nest/Cluster/NodesStats/AdaptiveSelectionStats.cs @@ -0,0 +1,52 @@ +using Newtonsoft.Json; + +namespace Nest +{ + [JsonObject] + public class AdaptiveSelectionStats + { + /// + /// The number of outstanding search requests from the node these stats are for to the keyed node. + /// + [JsonProperty("outgoing_searches")] + public long OutgoingSearches { get; internal set; } + + /// + /// The exponentially weighted moving average queue size of search requests on the keyed node. + /// + [JsonProperty("avg_queue_size")] + public long AverageQueueSize { get; internal set; } + + /// + /// The exponentially weighted moving average service time of search requests on the keyed node. + /// + /// only set when requesting human readable response + [JsonProperty("avg_service_time")] + public string AverageServiceTime { get; internal set; } + + /// + /// The exponentially weighted moving average service time of search requests on the keyed node. + /// + [JsonProperty("avg_service_time_ns")] + public long AverageServiceTimeInNanoseconds { get; internal set; } + + /// + /// The exponentially weighted moving average response time of search requests on the keyed node. + /// + /// only set when requesting human readable response + [JsonProperty("avg_response_time")] + public long AverageResponseTime { get; internal set; } + + /// + /// The exponentially weighted moving average response time of search requests on the keyed node. + /// + [JsonProperty("avg_response_time_ns")] + public long AverageResponseTimeInNanoseconds { get; internal set; } + + /// + /// The rank of this node; used for shard selection when routing search requests. + /// + [JsonProperty("rank")] + public string Rank { get; internal set; } + } +} \ No newline at end of file diff --git a/src/Nest/Cluster/NodesStats/NodeStats.cs b/src/Nest/Cluster/NodesStats/NodeStats.cs index 951bb464027..c3155ab06a5 100644 --- a/src/Nest/Cluster/NodesStats/NodeStats.cs +++ b/src/Nest/Cluster/NodesStats/NodeStats.cs @@ -60,8 +60,17 @@ public class NodeStats [JsonProperty("http")] public HttpStats Http { get; internal set; } + + [JsonProperty("ingest")] + public NodeIngestStats Ingest { get; internal set; } + + [JsonProperty("adaptive_selection")] + [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] + public IReadOnlyDictionary AdaptiveSelection { get; internal set; } + = EmptyReadOnly.Dictionary; } + [JsonObject] public class ScriptStats { diff --git a/src/Nest/Cluster/NodesStats/Statistics/IngestStats.cs b/src/Nest/Cluster/NodesStats/Statistics/IngestStats.cs new file mode 100644 index 00000000000..30683ca9ce2 --- /dev/null +++ b/src/Nest/Cluster/NodesStats/Statistics/IngestStats.cs @@ -0,0 +1,32 @@ +using Newtonsoft.Json; + +namespace Nest +{ + [JsonObject] + public class IngestStats + { + /// + /// The total number of document ingested during the lifetime of this node + /// + [JsonProperty("count")] + public long Count { get; set; } + + /// + /// The total time spent on ingest preprocessing documents during the lifetime of this node + /// + [JsonProperty("time_in_millis")] + public long TimeInMilliseconds { get; set; } + + /// + /// The total number of documents currently being ingested. + /// + [JsonProperty("current")] + public long Current { get; set; } + + /// + /// The total number ingest preprocessing operations failed during the lifetime of this node + /// + [JsonProperty("failed")] + public long Failed { get; set; } + } +} diff --git a/src/Nest/Cluster/NodesStats/Statistics/NodeIngestStats.cs b/src/Nest/Cluster/NodesStats/Statistics/NodeIngestStats.cs new file mode 100644 index 00000000000..3fac482f7dd --- /dev/null +++ b/src/Nest/Cluster/NodesStats/Statistics/NodeIngestStats.cs @@ -0,0 +1,18 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Nest +{ + public class NodeIngestStats + { + /// Overal global ingest statistics + [JsonProperty("total")] + public IngestStats Total { get; set; } + + /// Per pipeline ingest statistics + [JsonProperty("pipelines")] + [JsonConverter(typeof(VerbatimDictionaryKeysJsonConverter))] + public IReadOnlyDictionary Pipelines { get; internal set; } + = EmptyReadOnly.Dictionary; + } +} diff --git a/src/Nest/CommonAbstractions/Request/RequestBase.cs b/src/Nest/CommonAbstractions/Request/RequestBase.cs index 7f84a6349f4..182f8d21c2d 100644 --- a/src/Nest/CommonAbstractions/Request/RequestBase.cs +++ b/src/Nest/CommonAbstractions/Request/RequestBase.cs @@ -81,6 +81,9 @@ public IRequestConfiguration RequestConfiguration } } + /// + /// Base class for all Request descriptor types + /// public abstract partial class RequestDescriptorBase : RequestBase, IDescriptor where TDescriptor : RequestDescriptorBase, TInterface where TParameters : RequestParameters, new() diff --git a/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/ReserializeJsonConverter.cs b/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/ReserializeJsonConverter.cs index 499e7c9001d..12f0233a1f6 100644 --- a/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/ReserializeJsonConverter.cs +++ b/src/Nest/CommonAbstractions/SerializationBehavior/GenericJsonConverters/ReserializeJsonConverter.cs @@ -26,7 +26,6 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist protected TReadAs ReadAs(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - return this.Reader.ReadJson(reader, objectType, existingValue, serializer) as TReadAs; } diff --git a/src/Nest/CommonOptions/Stats/FlushStats.cs b/src/Nest/CommonOptions/Stats/FlushStats.cs index 51bb633cb8c..f2527ff5d15 100644 --- a/src/Nest/CommonOptions/Stats/FlushStats.cs +++ b/src/Nest/CommonOptions/Stats/FlushStats.cs @@ -9,8 +9,21 @@ public class FlushStats [JsonProperty("total")] public long Total { get; set; } + /// + /// The number of flushes that were periodically triggered when translog exceeded the flush threshold. + /// + [JsonProperty("periodic")] + public long Periodic { get; set; } + + /// + /// The total time merges have been executed. + /// [JsonProperty("total_time")] public string TotalTime { get; set; } + + /// + /// The total time merges have been executed (in milliseconds). + /// [JsonProperty("total_time_in_millis")] public long TotalTimeInMilliseconds { get; set; } diff --git a/src/Nest/CommonOptions/Stats/TranslogStats.cs b/src/Nest/CommonOptions/Stats/TranslogStats.cs index 9ac28ddcd09..ebb4ee93f37 100644 --- a/src/Nest/CommonOptions/Stats/TranslogStats.cs +++ b/src/Nest/CommonOptions/Stats/TranslogStats.cs @@ -8,11 +8,25 @@ public class TranslogStats [JsonProperty("operations")] public long Operations { get; set; } + [JsonProperty("uncommitted_operations")] + public int UncommittedOperations { get; set; } + [JsonProperty("size")] public string Size { get; set; } [JsonProperty("size_in_bytes")] public long SizeInBytes { get; set; } + [JsonProperty("uncommitted_size")] + public string UncommittedSize { get; set; } + + [JsonProperty("uncommitted_size_in_bytes")] + public long UncommittedSizeInBytes { get; set; } + + /// + /// Valid only for Elasticsearch 6.3.0+ + /// + [JsonProperty("earliest_last_modified_age")] + public long EarliestLastModifiedAge { get; set; } } -} \ No newline at end of file +} diff --git a/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs b/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs index 8c900c68496..78e2d9a1148 100644 --- a/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs +++ b/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkIndexResponseItem.cs @@ -10,7 +10,8 @@ public class BulkIndexResponseItem : BulkResponseItemBase public override string Operation { get; internal set; } /// - /// Null if Percolation was not requested while indexing this doc, otherwise returns the percolator _ids that matched (if any) + /// The _ids that matched (if any) for the Percolate API. + /// Will be null if the operation is not in response to Percolate API. /// [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 fdd1c27560f..a364d87deba 100644 --- a/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkResponseItemBase.cs +++ b/src/Nest/Document/Multiple/Bulk/BulkResponseItem/BulkResponseItemBase.cs @@ -38,6 +38,12 @@ public interface IBulkResponseItem [JsonProperty("_version")] long Version { get; } + /// + /// The result of the bulk operation + /// + [JsonProperty("result")] + string Result { get; } + /// /// The status of the bulk operation /// @@ -86,6 +92,9 @@ public abstract class BulkResponseItemBase : IBulkResponseItem /// public long Version { get; internal set; } + /// + public string Result { get; internal set; } + /// public int Status { get; internal set; } diff --git a/src/Nest/Document/Multiple/MultiTermVectors/ElasticClient-MultiTermVectors.cs b/src/Nest/Document/Multiple/MultiTermVectors/ElasticClient-MultiTermVectors.cs index a592e6acf18..889cda86a14 100644 --- a/src/Nest/Document/Multiple/MultiTermVectors/ElasticClient-MultiTermVectors.cs +++ b/src/Nest/Document/Multiple/MultiTermVectors/ElasticClient-MultiTermVectors.cs @@ -14,13 +14,13 @@ public partial interface IElasticClient /// The descriptor describing the multi termvectors operation IMultiTermVectorsResponse MultiTermVectors(Func selector = null); - /// + /// IMultiTermVectorsResponse MultiTermVectors(IMultiTermVectorsRequest request); - /// + /// Task MultiTermVectorsAsync(Func selector = null, CancellationToken cancellationToken = default(CancellationToken)); - /// + /// Task MultiTermVectorsAsync(IMultiTermVectorsRequest request, CancellationToken cancellationToken = default(CancellationToken)); } diff --git a/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorOperation.cs b/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorOperation.cs index 938f6aee29f..e5ca292d491 100644 --- a/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorOperation.cs +++ b/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorOperation.cs @@ -4,42 +4,121 @@ namespace Nest { + /// + /// An operation to define the calculation of + /// term vectors when using Multi termvectors API + /// public interface IMultiTermVectorOperation { + /// + /// The index in which the document resides + /// [JsonProperty("_index")] IndexName Index { get; set; } + + /// + /// The type of the document + /// [JsonProperty("_type")] TypeName Type { get; set; } + + /// + /// The id of the document + /// [JsonProperty("_id")] Id Id { get; set; } + + /// + /// A document not indexed in Elasticsearch, + /// to generate term vectors for + /// [JsonProperty("doc")] [JsonConverter(typeof(SourceConverter))] object Document { get; set; } + + /// + /// The document field to generate term + /// vectors for + /// [JsonProperty("fields")] + // TODO: Rename to Fields in 7.x Fields StoredFields { get; set; } + + /// + /// Whether to include the start and end offsets. + /// Default is true. + /// [JsonProperty("offsets")] bool? Offsets { get; set; } + + /// + /// Whether to include the term payloads as + /// base64 encoded bytes. Default is true + /// [JsonProperty("payloads")] bool? Payloads { get; set; } + + /// + /// Whether to include the term positions. + /// Default is true + /// [JsonProperty("positions")] bool? Positions { get; set; } + + /// + /// Whether to include term statistics. When set to true, + /// - total term frequency (how often a term occurs in all documents) + /// - document frequency (the number of documents containing the current term) + /// will be returned. Default is false since + /// term statistics can have a large performance impact. + /// [JsonProperty("term_statistics")] bool? TermStatistics { get; set; } + + /// + /// Whether to include field statistics. When set to false, + /// - document count (how many documents contain this field) + /// - sum of document frequencies (the sum of document frequencies for all terms in this field) + /// - sum of total term frequencies (the sum of total term frequencies of each term in this field) + /// will be omitted. Default is true. + /// [JsonProperty("field_statistics")] bool? FieldStatistics { get; set; } + + /// + /// Filter terms based on their tf-idf scores. + /// This can be useful in order find out a good characteristic + /// vector of a document. + /// [JsonProperty("filter")] ITermVectorFilter Filter { get; set; } + + /// + /// The version number + /// [JsonProperty("version")] long? Version { get; set; } + + /// + /// The type of version + /// [JsonProperty("version_type")] VersionType? VersionType { get; set; } + + /// + /// When requesting term vectors for , + /// a shard to get the statistics from is randomly selected. + /// Use only to hit a particular shard. + /// [JsonProperty("routing")] Routing Routing { get; set; } } + /// public class MultiTermVectorOperation : IMultiTermVectorOperation where T : class { + private Routing _routing; public MultiTermVectorOperation(Id id) { @@ -48,21 +127,33 @@ public MultiTermVectorOperation(Id id) this.Type = typeof (T); } + /// public IndexName Index { get; set; } + /// public TypeName Type { get; set; } + /// public Id Id { get; set; } + /// public object Document { get; set; } + /// public Fields StoredFields { get; set; } + /// public bool? Offsets { get; set; } + /// public bool? Payloads { get; set; } + /// public bool? Positions { get; set; } + /// public bool? TermStatistics { get; set; } + /// public bool? FieldStatistics { get; set; } + /// public ITermVectorFilter Filter { get; set; } + /// public long? Version { get; set; } + /// public VersionType? VersionType { get; set; } - - private Routing _routing; + /// public Routing Routing { get => _routing ?? (Document == null ? null : new Routing(Document)); @@ -70,9 +161,12 @@ public Routing Routing } } + /// public class MultiTermVectorOperationDescriptor : DescriptorBase, IMultiTermVectorOperation>, IMultiTermVectorOperation where T : class { + private Routing _routing; + IndexName IMultiTermVectorOperation.Index { get; set; } = typeof (T); TypeName IMultiTermVectorOperation.Type { get; set; } = typeof (T); Id IMultiTermVectorOperation.Id { get; set; } @@ -86,40 +180,59 @@ public class MultiTermVectorOperationDescriptor : DescriptorBase _routing ?? (Self.Document == null ? null : new Routing(Self.Document)); set => _routing = value; } + /// + // TODO: Rename to Fields in 7.x public MultiTermVectorOperationDescriptor StoredFields(Func, IPromise> fields) => Assign(a => a.StoredFields = fields?.Invoke(new FieldsDescriptor())?.Value); + /// + // TODO: Rename to Fields in 7.x public MultiTermVectorOperationDescriptor StoredFields(Fields fields) => Assign(a => a.StoredFields = fields); - public MultiTermVectorOperationDescriptor Id(Id id) => Assign(a=>a.Id = id); + /// + public MultiTermVectorOperationDescriptor Id(Id id) => Assign(a=> a.Id = id); + + /// + public MultiTermVectorOperationDescriptor Index(IndexName index) => Assign(a => a.Index = index); + + /// + public MultiTermVectorOperationDescriptor Type(TypeName type) => Assign(a=> a.Type = type); + /// public MultiTermVectorOperationDescriptor Document(T document) => Assign(a => a.Document = document); + /// public MultiTermVectorOperationDescriptor Offsets(bool? offsets = true) => Assign(a => a.Offsets = offsets); + /// public MultiTermVectorOperationDescriptor Payloads(bool? payloads = true) => Assign(a => a.Payloads = payloads); + /// public MultiTermVectorOperationDescriptor Positions(bool? positions = true) => Assign(a => a.Positions = positions); + /// public MultiTermVectorOperationDescriptor TermStatistics(bool? termStatistics = true) => Assign(a => a.TermStatistics = termStatistics); + /// public MultiTermVectorOperationDescriptor FieldStatistics(bool? fieldStatistics = true) => Assign(a => a.FieldStatistics = fieldStatistics); + /// public MultiTermVectorOperationDescriptor Filter(Func filterSelector) => Assign(a => a.Filter = filterSelector?.Invoke(new TermVectorFilterDescriptor())); + /// public MultiTermVectorOperationDescriptor Version(long? version) => Assign(a => a.Version = version); + /// public MultiTermVectorOperationDescriptor VersionType(VersionType? versionType) => Assign(a => a.VersionType = versionType); + /// public MultiTermVectorOperationDescriptor Routing(Routing routing) => Assign(a => a.Routing = routing); } } diff --git a/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorsRequest.cs b/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorsRequest.cs index 6e4f9274f4b..c385adb4d35 100644 --- a/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorsRequest.cs +++ b/src/Nest/Document/Multiple/MultiTermVectors/MultiTermVectorsRequest.cs @@ -5,43 +5,84 @@ namespace Nest { + /// + /// A Multi termvectors API request + /// public partial interface IMultiTermVectorsRequest { + /// + /// The documents for which to generate term vectors + /// [JsonProperty("docs")] IEnumerable Documents { get; set; } + + /// + /// The ids of documents within the same index and type + /// for which to generate term vectors. Must be used in + /// conjunction with and + /// + [JsonProperty("ids")] + IEnumerable Ids { get; set; } } + /// public partial class MultiTermVectorsRequest { + /// public IEnumerable Documents { get; set; } + + /// + public IEnumerable Ids { get; set; } } + /// [DescriptorFor("Mtermvectors")] public partial class MultiTermVectorsDescriptor { - private List _operations = new List(); + private List _operations; + + private List Operations => + this._operations ?? (this._operations = new List()); + IEnumerable IMultiTermVectorsRequest.Documents { - get { return this._operations; } - set { this._operations = value?.ToList(); } + get => this._operations; + set => this._operations = value?.ToList(); } + IEnumerable IMultiTermVectorsRequest.Ids { get; set; } + + // TODO: Rename to Documents in 7.x + /// + /// A document for which to generate term vectors + /// public MultiTermVectorsDescriptor Get(Func, IMultiTermVectorOperation> getSelector) where T : class => - Assign(a => this._operations.AddIfNotNull(getSelector?.Invoke(new MultiTermVectorOperationDescriptor()))); + Assign(a => this.Operations.AddIfNotNull(getSelector?.Invoke(new MultiTermVectorOperationDescriptor()))); + // TODO: Rename to Documents in 7.x + /// public MultiTermVectorsDescriptor GetMany(IEnumerable ids, Func, long, IMultiTermVectorOperation> getSelector = null) where T : class => - Assign(a => this._operations.AddRange(ids.Select(id => getSelector.InvokeOrDefault(new MultiTermVectorOperationDescriptor().Id(id), id)))); + Assign(a => this.Operations.AddRange(ids.Select(id => getSelector.InvokeOrDefault(new MultiTermVectorOperationDescriptor().Id(id), id)))); + // TODO: Rename to Documents in 7.x + /// public MultiTermVectorsDescriptor GetMany(IEnumerable ids, Func, string, IMultiTermVectorOperation> getSelector = null) where T : class => - Assign(a => this._operations.AddRange(ids.Select(id => getSelector.InvokeOrDefault(new MultiTermVectorOperationDescriptor().Id(id), id)))); + Assign(a => this.Operations.AddRange(ids.Select(id => getSelector.InvokeOrDefault(new MultiTermVectorOperationDescriptor().Id(id), id)))); + // TODO: Rename to Documents in 7.x + /// public MultiTermVectorsDescriptor GetMany(IEnumerable ids, Func, Id, IMultiTermVectorOperation> getSelector = null) where T : class => - Assign(a => this._operations.AddRange(ids.Select(id => getSelector.InvokeOrDefault(new MultiTermVectorOperationDescriptor().Id(id), id)))); + Assign(a => this.Operations.AddRange(ids.Select(id => getSelector.InvokeOrDefault(new MultiTermVectorOperationDescriptor().Id(id), id)))); + + /// + public MultiTermVectorsDescriptor Ids(IEnumerable ids) => Assign(a => a.Ids = ids); + /// + public MultiTermVectorsDescriptor Ids(params Id[] ids) => Assign(a => a.Ids = ids); } } diff --git a/src/Nest/Mapping/DynamicTemplate/DynamicTemplate.cs b/src/Nest/Mapping/DynamicTemplate/DynamicTemplate.cs index 9401beb8365..2b79d097b76 100644 --- a/src/Nest/Mapping/DynamicTemplate/DynamicTemplate.cs +++ b/src/Nest/Mapping/DynamicTemplate/DynamicTemplate.cs @@ -1,66 +1,144 @@ using System; +using System.Runtime.Serialization; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; namespace Nest { + /// + /// A Dynamic template that defines custom mappings to be applied + /// to dynamically added fields based on: + /// - the datatype detected by Elasticsearch, with . + /// - the name of the field, with and or . + /// - the full dotted path to the field, with and . + /// [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [JsonConverter(typeof(ReadAsTypeJsonConverter))] public interface IDynamicTemplate { + /// + /// A pattern to match on the field name + /// [JsonProperty("match")] string Match { get; set; } + /// + /// Adjusts the behavior of such that it supports full + /// Java regular expression matching on the field name instead of simple wildcards + /// + [JsonProperty("match_pattern")] + MatchType? MatchPattern { get; set; } + + /// + /// A pattern to exclude fields matched by + /// [JsonProperty("unmatch")] string Unmatch { get; set; } + /// + /// Matches on the datatype detected by dynamic field mapping, + /// in other words, the datatype that Elasticsearch thinks the field should have. + /// Only the following datatypes can be automatically detected: boolean, date, double, + /// long, object, string. It also accepts * to match all datatypes. + /// [JsonProperty("match_mapping_type")] string MatchMappingType { get; set; } + /// + /// A pattern to match on the field name, which may be the full dotted path + /// to the field name + /// [JsonProperty("path_match")] string PathMatch { get; set; } + /// + /// A pattern to exclude fields matched by + /// [JsonProperty("path_unmatch")] string PathUnmatch { get; set; } + /// + /// The mapping to apply to matching fields + /// [JsonProperty("mapping")] IProperty Mapping { get; set; } } + /// public class DynamicTemplate : IDynamicTemplate { + /// public string Match { get; set; } + /// + public MatchType? MatchPattern { get; set; } + + /// public string Unmatch { get; set; } + /// public string MatchMappingType { get; set; } + /// public string PathMatch { get; set; } + /// public string PathUnmatch { get; set; } + /// public IProperty Mapping { get; set; } } + /// public class DynamicTemplateDescriptor : DescriptorBase, IDynamicTemplate>, IDynamicTemplate where T : class { string IDynamicTemplate.Match { get; set; } + MatchType? IDynamicTemplate.MatchPattern { get; set; } string IDynamicTemplate.Unmatch { get; set; } string IDynamicTemplate.MatchMappingType { get; set; } string IDynamicTemplate.PathMatch { get; set; } string IDynamicTemplate.PathUnmatch { get; set; } IProperty IDynamicTemplate.Mapping { get; set; } + /// public DynamicTemplateDescriptor Match(string match) => Assign(a => a.Match = match); + /// + public DynamicTemplateDescriptor MatchPattern(MatchType? matchPattern) => Assign(a => a.MatchPattern = matchPattern); + + /// public DynamicTemplateDescriptor Unmatch(string unMatch) => Assign(a => a.Unmatch = unMatch); + /// public DynamicTemplateDescriptor MatchMappingType(string matchMappingType) => Assign(a => a.MatchMappingType = matchMappingType); + /// public DynamicTemplateDescriptor PathMatch(string pathMatch) => Assign(a => a.PathMatch = pathMatch); + /// public DynamicTemplateDescriptor PathUnmatch(string pathUnmatch) => Assign(a => a.PathUnmatch = pathUnmatch); + /// public DynamicTemplateDescriptor Mapping(Func, IProperty> mappingSelector) => Assign(a => a.Mapping = mappingSelector?.Invoke(new SingleMappingSelector())); } -} \ No newline at end of file + + /// + /// Dynamic match pattern type + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum MatchType + { + /// + /// Simple matching with wildcards + /// + [EnumMember(Value = "simple")] + Simple, + + /// + /// Regular expression matching + /// + [EnumMember(Value = "regex")] + Regex + } +} diff --git a/src/Nest/Mapping/MetaFields/IFieldMapping.cs b/src/Nest/Mapping/MetaFields/IFieldMapping.cs index c7d38273c8e..01e3abe6910 100644 --- a/src/Nest/Mapping/MetaFields/IFieldMapping.cs +++ b/src/Nest/Mapping/MetaFields/IFieldMapping.cs @@ -1,4 +1,7 @@ namespace Nest { + /// + /// A document field mapping in Elasticsearch + /// public interface IFieldMapping { } } diff --git a/src/Nest/Mapping/Types/Core/Text/TextAttribute.cs b/src/Nest/Mapping/Types/Core/Text/TextAttribute.cs index 6915b2f6870..b61e6b2d913 100644 --- a/src/Nest/Mapping/Types/Core/Text/TextAttribute.cs +++ b/src/Nest/Mapping/Types/Core/Text/TextAttribute.cs @@ -17,6 +17,7 @@ public TextAttribute() : base(FieldType.Text) { } bool? ITextProperty.EagerGlobalOrdinals { get; set; } bool? ITextProperty.Fielddata { get; set; } IFielddataFrequencyFilter ITextProperty.FielddataFrequencyFilter { get; set; } + ITextIndexPrefixes ITextProperty.IndexPrefixes { get; set; } bool? ITextProperty.Index { get; set; } IndexOptions? ITextProperty.IndexOptions { get; set; } bool? ITextProperty.Norms { get; set; } diff --git a/src/Nest/Mapping/Types/Core/Text/TextIndexPrefixes.cs b/src/Nest/Mapping/Types/Core/Text/TextIndexPrefixes.cs new file mode 100644 index 00000000000..713ca5fc3c2 --- /dev/null +++ b/src/Nest/Mapping/Types/Core/Text/TextIndexPrefixes.cs @@ -0,0 +1,32 @@ +using Newtonsoft.Json; + +namespace Nest +{ + [JsonObject(MemberSerialization.OptIn)] + [JsonConverter(typeof(ReadAsTypeJsonConverter))] + public interface ITextIndexPrefixes + { + [JsonProperty("min_chars")] + int? MinCharacters { get; set; } + + [JsonProperty("max_chars")] + int? MaxCharacters { get; set; } + } + + public class TextIndexPrefixes : ITextIndexPrefixes + { + public int? MinCharacters { get; set; } + public int? MaxCharacters { get; set; } + } + + public class TextIndexPrefixesDescriptor + : DescriptorBase, ITextIndexPrefixes + { + int? ITextIndexPrefixes.MinCharacters { get; set; } + int? ITextIndexPrefixes.MaxCharacters { get; set; } + + public TextIndexPrefixesDescriptor MinCharacters(int? min) => Assign(a => a.MinCharacters = min); + + public TextIndexPrefixesDescriptor MaxCharacters(int? max) => Assign(a => a.MaxCharacters = max); + } +} diff --git a/src/Nest/Mapping/Types/Core/Text/TextProperty.cs b/src/Nest/Mapping/Types/Core/Text/TextProperty.cs index 16fe8452eb7..bfd6bca684e 100644 --- a/src/Nest/Mapping/Types/Core/Text/TextProperty.cs +++ b/src/Nest/Mapping/Types/Core/Text/TextProperty.cs @@ -28,6 +28,9 @@ public interface ITextProperty : ICoreProperty [JsonProperty("fielddata_frequency_filter")] IFielddataFrequencyFilter FielddataFrequencyFilter { get; set; } + [JsonProperty("index_prefixes")] + ITextIndexPrefixes IndexPrefixes { get; set; } + [JsonProperty("index")] bool? Index { get; set; } @@ -53,6 +56,7 @@ public TextProperty() : base(FieldType.Text) { } public bool? EagerGlobalOrdinals { get; set; } public bool? Fielddata { get; set; } public IFielddataFrequencyFilter FielddataFrequencyFilter { get; set; } + public ITextIndexPrefixes IndexPrefixes { get; set; } public bool? Index { get; set; } public IndexOptions? IndexOptions { get; set; } public bool? Norms { get; set; } @@ -72,6 +76,7 @@ public class TextPropertyDescriptor bool? ITextProperty.EagerGlobalOrdinals { get; set; } bool? ITextProperty.Fielddata { get; set; } IFielddataFrequencyFilter ITextProperty.FielddataFrequencyFilter { get; set; } + ITextIndexPrefixes ITextProperty.IndexPrefixes { get; set; } bool? ITextProperty.Index { get; set; } IndexOptions? ITextProperty.IndexOptions { get; set; } bool? ITextProperty.Norms { get; set; } @@ -88,6 +93,8 @@ public TextPropertyDescriptor() : base(FieldType.Text) { } public TextPropertyDescriptor Fielddata(bool? fielddata = true) => Assign(a => a.Fielddata = fielddata); public TextPropertyDescriptor FielddataFrequencyFilter(Func selector) => Assign(a => a.FielddataFrequencyFilter = selector?.Invoke(new FielddataFrequencyFilterDescriptor())); + public TextPropertyDescriptor IndexPrefixes(Func selector) => + Assign(a => a.IndexPrefixes = selector?.Invoke(new TextIndexPrefixesDescriptor())); public TextPropertyDescriptor Index(bool? index = true) => Assign(a => a.Index = index); public TextPropertyDescriptor IndexOptions(IndexOptions? indexOptions) => Assign(a => a.IndexOptions = indexOptions); public TextPropertyDescriptor Norms(bool? enabled = true) => Assign(a => a.Norms = enabled); diff --git a/src/Nest/Mapping/Types/CorePropertyBase.cs b/src/Nest/Mapping/Types/CorePropertyBase.cs index 370eef9bedf..d162f8ec30b 100644 --- a/src/Nest/Mapping/Types/CorePropertyBase.cs +++ b/src/Nest/Mapping/Types/CorePropertyBase.cs @@ -4,6 +4,9 @@ namespace Nest { + /// + /// Core properties of a mapping for a property type to a document field in Elasticsearch + /// [JsonObject(MemberSerialization.OptIn)] [ContractJsonConverter(typeof(PropertyJsonConverter))] public interface ICoreProperty : IProperty @@ -20,13 +23,14 @@ public interface ICoreProperty : IProperty /// /// Configures multi-fields for this field. Allows one field to be indexed in different - /// ways to serve different purposes + /// ways to serve different search and analytics purposes /// [JsonProperty("fields", DefaultValueHandling = DefaultValueHandling.Ignore)] IProperties Fields { get; set; } /// - /// Which relevancy scoring algorithm or similarity should be used. Defaults to BM25 + /// Which relevancy scoring algorithm or similarity should be used. + /// Defaults to /// [JsonProperty("similarity")] Union Similarity { get; set; } @@ -40,6 +44,7 @@ public interface ICoreProperty : IProperty Fields CopyTo { get; set; } } + /// [DebuggerDisplay("{DebugDisplay}")] public abstract class CorePropertyBase : PropertyBase, ICoreProperty { diff --git a/src/Nest/Mapping/Types/CorePropertyDescriptorBase.cs b/src/Nest/Mapping/Types/CorePropertyDescriptorBase.cs index 4d540e8d6a2..8b2ab54a778 100644 --- a/src/Nest/Mapping/Types/CorePropertyDescriptorBase.cs +++ b/src/Nest/Mapping/Types/CorePropertyDescriptorBase.cs @@ -3,6 +3,7 @@ namespace Nest { + /// public abstract class CorePropertyDescriptorBase : PropertyDescriptorBase, ICoreProperty where TDescriptor : CorePropertyDescriptorBase, TInterface @@ -16,14 +17,19 @@ public abstract class CorePropertyDescriptorBase protected CorePropertyDescriptorBase(FieldType type) : base(type) {} + /// public TDescriptor Store(bool? store = true) => Assign(a => a.Store = store); + /// public TDescriptor Fields(Func, IPromise> selector) => Assign(a => a.Fields = selector?.Invoke(new PropertiesDescriptor())?.Value); + /// public TDescriptor Similarity(SimilarityOption? similarity) => Assign(a => a.Similarity = similarity); + /// public TDescriptor Similarity(string similarity) => Assign(a => a.Similarity = similarity); + /// public TDescriptor CopyTo(Func, IPromise> fields) => Assign(a => a.CopyTo = fields?.Invoke(new FieldsDescriptor())?.Value); } } diff --git a/src/Nest/Mapping/Types/DocValuesPropertyBase.cs b/src/Nest/Mapping/Types/DocValuesPropertyBase.cs index e6a74a18c1b..d912c6afe4f 100644 --- a/src/Nest/Mapping/Types/DocValuesPropertyBase.cs +++ b/src/Nest/Mapping/Types/DocValuesPropertyBase.cs @@ -4,18 +4,27 @@ namespace Nest { + /// + /// Properties of a mapping for a property type to a document field that has doc_values in Elasticsearch + /// [JsonObject(MemberSerialization.OptIn)] [ContractJsonConverter(typeof(PropertyJsonConverter))] public interface IDocValuesProperty : ICoreProperty { + /// + /// Whether to persist the value at index time in a columnar data structure (referred to as doc_values in Lucene) + /// which makes the value available for efficient sorting and aggregations. Default is true. + /// [JsonProperty("doc_values")] bool? DocValues { get; set; } } + /// public abstract class DocValuesPropertyBase : CorePropertyBase, IDocValuesProperty { protected DocValuesPropertyBase(FieldType type) : base(type) { } + /// public bool? DocValues { get; set; } } } diff --git a/src/Nest/Mapping/Types/DocValuesPropertyDescriptorBase.cs b/src/Nest/Mapping/Types/DocValuesPropertyDescriptorBase.cs index 860f42bedd6..a544cf99e8a 100644 --- a/src/Nest/Mapping/Types/DocValuesPropertyDescriptorBase.cs +++ b/src/Nest/Mapping/Types/DocValuesPropertyDescriptorBase.cs @@ -3,6 +3,7 @@ namespace Nest { + /// public abstract class DocValuesPropertyDescriptorBase : CorePropertyDescriptorBase, IDocValuesProperty where TDescriptor : DocValuesPropertyDescriptorBase, TInterface @@ -13,6 +14,7 @@ public abstract class DocValuesPropertyDescriptorBase public TDescriptor DocValues(bool? docValues = true) => Assign(a => a.DocValues = docValues); } } diff --git a/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointAttribute.cs b/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointAttribute.cs index ec9d0de7e3d..91013098fb0 100644 --- a/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointAttribute.cs +++ b/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointAttribute.cs @@ -7,7 +7,13 @@ public class GeoPointAttribute : ElasticsearchDocValuesPropertyAttributeBase, IG public GeoPointAttribute() : base(FieldType.GeoPoint) { } bool? IGeoPointProperty.IgnoreMalformed { get; set; } + bool? IGeoPointProperty.IgnoreZValue { get; set; } + GeoLocation IGeoPointProperty.NullValue { get; set; } - public bool IgnoreMalformed { get { return Self.IgnoreMalformed.GetValueOrDefault(); } set { Self.IgnoreMalformed = value; } } + /// + public bool IgnoreMalformed { get => Self.IgnoreMalformed.GetValueOrDefault(); set => Self.IgnoreMalformed = value; } + + /// + public bool IgnoreZValue { get => Self.IgnoreZValue.GetValueOrDefault(true); set => Self.IgnoreZValue= value; } } } diff --git a/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointProperty.cs b/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointProperty.cs index af1e05b7820..1cf243faf49 100644 --- a/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointProperty.cs +++ b/src/Nest/Mapping/Types/Geo/GeoPoint/GeoPointProperty.cs @@ -4,11 +4,35 @@ namespace Nest { + /// + /// Data type mapping to map a property as a geopoint + /// [JsonObject(MemberSerialization.OptIn)] public interface IGeoPointProperty : IDocValuesProperty { + /// + /// If true, malformed geo-points are ignored. If false (default), malformed + /// geo-points throw an exception and reject the whole document. + /// [JsonProperty("ignore_malformed")] bool? IgnoreMalformed { get; set; } + + + /// + /// If true (default) three dimension points will be accepted (stored in source) but only + /// latitude and longitude values will be indexed; the third dimension is ignored. If false, geo-points + /// containing any more than latitude and longitude (two dimensions) values + /// throw an exception and reject the whole document. + /// + [JsonProperty("ignore_z_value")] + bool? IgnoreZValue { get; set; } + + /// + /// Accepts a geo_point value which is substituted for any explicit null values. + /// Defaults to null, which means the field is treated as missing. + /// + [JsonProperty("null_value")] + GeoLocation NullValue { get; set; } } [DebuggerDisplay("{DebugDisplay}")] @@ -16,7 +40,14 @@ public class GeoPointProperty : DocValuesPropertyBase, IGeoPointProperty { public GeoPointProperty() : base(FieldType.GeoPoint) { } + /// public bool? IgnoreMalformed { get; set; } + + /// + public bool? IgnoreZValue { get; set; } + + /// + public GeoLocation NullValue { get; set; } } [DebuggerDisplay("{DebugDisplay}")] @@ -25,9 +56,18 @@ public class GeoPointPropertyDescriptor where T : class { bool? IGeoPointProperty.IgnoreMalformed { get; set; } + bool? IGeoPointProperty.IgnoreZValue { get; set; } + GeoLocation IGeoPointProperty.NullValue { get; set; } public GeoPointPropertyDescriptor() : base(FieldType.GeoPoint) { } + /// public GeoPointPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) => Assign(a => a.IgnoreMalformed = ignoreMalformed); + + /// + public GeoPointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) => Assign(a => a.IgnoreZValue = ignoreZValue); + + /// + public GeoPointPropertyDescriptor NullValue(GeoLocation defaultValue) => Assign(a => a.NullValue = defaultValue); } } diff --git a/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeAttribute.cs b/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeAttribute.cs index 15dd1df5bee..ef3cb1ee8f8 100644 --- a/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeAttribute.cs +++ b/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeAttribute.cs @@ -15,6 +15,7 @@ public GeoShapeAttribute() : base(FieldType.GeoShape) { } double? IGeoShapeProperty.DistanceErrorPercentage { get; set; } bool? IGeoShapeProperty.PointsOnly { get; set; } bool? IGeoShapeProperty.IgnoreMalformed { get; set; } + bool? IGeoShapeProperty.IgnoreZValue { get; set; } /// public GeoTree Tree { get => Self.Tree.GetValueOrDefault(GeoTree.Geohash); set => Self.Tree = value; } @@ -36,5 +37,7 @@ public double DistanceErrorPercentage public bool PointsOnly { get => Self.PointsOnly.GetValueOrDefault(false); set => Self.PointsOnly = value; } /// public bool IgnoreMalformed { get => Self.IgnoreMalformed.GetValueOrDefault(false); set => Self.IgnoreMalformed = value; } + /// + public bool IgnoreZValue { get => Self.IgnoreZValue.GetValueOrDefault(true); set => Self.IgnoreZValue = value; } } } diff --git a/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeProperty.cs b/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeProperty.cs index a1717fa3163..aefbf6fb46b 100644 --- a/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeProperty.cs +++ b/src/Nest/Mapping/Types/Geo/GeoShape/GeoShapeProperty.cs @@ -85,6 +85,18 @@ public interface IGeoShapeProperty : IDocValuesProperty /// [JsonProperty("ignore_malformed")] bool? IgnoreMalformed { get; set; } + + /// + /// If true (default) three dimension points will be accepted (stored in source) but + /// only latitude and longitude values will be indexed; the third dimension is ignored. If false, + /// geo-points containing any more than latitude and longitude (two dimensions) values throw + /// an exception and reject the whole document. + /// + /// + /// Valid for Elasticsearch 6.3.0+ + /// + [JsonProperty("ignore_z_value")] + bool? IgnoreZValue { get; set; } } /// @@ -116,6 +128,9 @@ public GeoShapeProperty() : base(FieldType.GeoShape) { } /// public bool? IgnoreMalformed { get; set; } + + /// + public bool? IgnoreZValue { get; set; } } /// @@ -132,6 +147,7 @@ public class GeoShapePropertyDescriptor double? IGeoShapeProperty.DistanceErrorPercentage { get; set; } bool? IGeoShapeProperty.PointsOnly { get; set; } bool? IGeoShapeProperty.IgnoreMalformed { get; set; } + bool? IGeoShapeProperty.IgnoreZValue { get; set; } public GeoShapePropertyDescriptor() : base(FieldType.GeoShape) { } @@ -161,5 +177,9 @@ public GeoShapePropertyDescriptor DistanceErrorPercentage(double? distanceErr /// public GeoShapePropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) => Assign(a => a.IgnoreMalformed = ignoreMalformed); + + /// + public GeoShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) => + Assign(a => a.IgnoreZValue = ignoreZValue); } } diff --git a/src/Nest/Mapping/Types/Properties.cs b/src/Nest/Mapping/Types/Properties.cs index 4cd602cb256..e6ac94cbc95 100644 --- a/src/Nest/Mapping/Types/Properties.cs +++ b/src/Nest/Mapping/Types/Properties.cs @@ -49,7 +49,7 @@ public partial interface IPropertiesDescriptor TReturnType Text(Func, ITextProperty> selector); TReturnType Keyword(Func, IKeywordProperty> selector); /// - /// Number introduces a numeric mapping that defaults to `float` use .Type() to set the right type if needed or use + /// Number introduces a numeric mapping that defaults to `float`. Use .Type() to set the right type if needed or use /// Scalar instead of /// TReturnType Number(Func, INumberProperty> selector); diff --git a/src/Nest/Mapping/Types/PropertyBase.cs b/src/Nest/Mapping/Types/PropertyBase.cs index 9f14323818f..30a10e5c885 100644 --- a/src/Nest/Mapping/Types/PropertyBase.cs +++ b/src/Nest/Mapping/Types/PropertyBase.cs @@ -7,6 +7,9 @@ namespace Nest { + /// + /// A mapping for a property type to a document field in Elasticsearch + /// [JsonObject(MemberSerialization.OptIn)] [ContractJsonConverter(typeof(PropertyJsonConverter))] public interface IProperty : IFieldMapping @@ -29,25 +32,32 @@ public interface IProperty : IFieldMapping IDictionary LocalMetadata { get; set; } } + /// + /// A mapping for a property from a CLR type + /// public interface IPropertyWithClrOrigin { + /// + /// The CLR property to which the mapping relates + /// PropertyInfo ClrOrigin { get; set; } } + /// [DebuggerDisplay("{DebugDisplay}")] public abstract class PropertyBase : IProperty, IPropertyWithClrOrigin { private string _type; - protected string TypeOverride { get => _type; set => _type = value; } string IProperty.Type { get => _type; set => _type = value; } - PropertyInfo IPropertyWithClrOrigin.ClrOrigin { get; set; } - protected PropertyBase(FieldType type) - { - ((IProperty)this).Type = type.GetStringValue(); - } + protected PropertyBase(FieldType type) => ((IProperty)this).Type = type.GetStringValue(); + + /// + /// Override for the property type, used for custom mappings + /// + protected string TypeOverride { get => _type; set => _type = value; } protected string DebugDisplay => $"Type: {((IProperty)this).Type ?? ""}, Name: {Name.DebugDisplay} "; diff --git a/src/Nest/Mapping/Types/PropertyDescriptorBase.cs b/src/Nest/Mapping/Types/PropertyDescriptorBase.cs index 6d4caab78dd..453f89efaf9 100644 --- a/src/Nest/Mapping/Types/PropertyDescriptorBase.cs +++ b/src/Nest/Mapping/Types/PropertyDescriptorBase.cs @@ -5,6 +5,7 @@ namespace Nest { + /// public abstract class PropertyDescriptorBase : DescriptorBase, IProperty where TDescriptor : PropertyDescriptorBase, TInterface @@ -21,13 +22,13 @@ public abstract class PropertyDescriptorBase protected PropertyDescriptorBase(FieldType type) { Self.Type = type.GetStringValue(); } + /// public TDescriptor Name(PropertyName name) => Assign(a => a.Name = name); + /// public TDescriptor Name(Expression> objectPath) => Assign(a => a.Name = objectPath); - /// - /// Local property metadata that will NOT be stored in Elasticsearch with the mappings - /// + /// public TDescriptor LocalMetadata(Func, FluentDictionary> selector) => Assign(a => a.LocalMetadata = selector?.Invoke(new FluentDictionary())); } diff --git a/src/Nest/Modules/Scripting/ExecutePainlessScript/ElasticClient-ExecutePainlessScript.cs b/src/Nest/Modules/Scripting/ExecutePainlessScript/ElasticClient-ExecutePainlessScript.cs new file mode 100644 index 00000000000..f37d57783d1 --- /dev/null +++ b/src/Nest/Modules/Scripting/ExecutePainlessScript/ElasticClient-ExecutePainlessScript.cs @@ -0,0 +1,54 @@ +using System; +using System.Threading.Tasks; +using Elasticsearch.Net; +using System.Threading; + +namespace Nest +{ + public partial interface IElasticClient + { + /// + /// Executes an arbitrary Painless script and returns a result. + /// Useful for testing the syntactical correctness of Painless scripts + /// + IExecutePainlessScriptResponse ExecutePainlessScript(Func selector); + + /// + IExecutePainlessScriptResponse ExecutePainlessScript(IExecutePainlessScriptRequest request); + + /// + Task> ExecutePainlessScriptAsync(Func selector, + CancellationToken cancellationToken = default(CancellationToken)); + + /// + Task> ExecutePainlessScriptAsync(IExecutePainlessScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + } + + public partial class ElasticClient + { + /// + public IExecutePainlessScriptResponse ExecutePainlessScript(Func selector) => + this.ExecutePainlessScript(selector?.Invoke(new ExecutePainlessScriptDescriptor())); + + /// + public IExecutePainlessScriptResponse ExecutePainlessScript(IExecutePainlessScriptRequest request) => + this.Dispatcher.Dispatch>( + request, + this.LowLevelDispatch.ScriptsPainlessExecuteDispatch> + ); + + /// + public Task> ExecutePainlessScriptAsync(Func selector, + CancellationToken cancellationToken = default(CancellationToken)) => + this.ExecutePainlessScriptAsync(selector?.Invoke(new ExecutePainlessScriptDescriptor()), cancellationToken); + + /// + public Task> ExecutePainlessScriptAsync(IExecutePainlessScriptRequest request, CancellationToken cancellationToken = default(CancellationToken)) => + this.Dispatcher.DispatchAsync, IExecutePainlessScriptResponse>( + request, + cancellationToken, + this.LowLevelDispatch.ScriptsPainlessExecuteDispatchAsync> + ); + } +} diff --git a/src/Nest/Modules/Scripting/ExecutePainlessScript/ExecutePainlessScriptRequest.cs b/src/Nest/Modules/Scripting/ExecutePainlessScript/ExecutePainlessScriptRequest.cs new file mode 100644 index 00000000000..c9bf286cdb6 --- /dev/null +++ b/src/Nest/Modules/Scripting/ExecutePainlessScript/ExecutePainlessScriptRequest.cs @@ -0,0 +1,25 @@ +using System; +using Newtonsoft.Json; + +namespace Nest +{ + public partial interface IExecutePainlessScriptRequest + { + [JsonProperty("script")] + IInlineScript Script { get; set; } + } + + public partial class ExecutePainlessScriptRequest + { + public IInlineScript Script { get; set; } + } + + [DescriptorFor("ScriptsPainlessExecute")] + public partial class ExecutePainlessScriptDescriptor + { + IInlineScript IExecutePainlessScriptRequest.Script { get; set; } + + public ExecutePainlessScriptDescriptor Script(Func selector) => + Assign(a => a.Script = selector?.Invoke(new InlineScriptDescriptor())); + } +} diff --git a/src/Nest/Modules/Scripting/ExecutePainlessScript/ExecutePainlessScriptResponse.cs b/src/Nest/Modules/Scripting/ExecutePainlessScript/ExecutePainlessScriptResponse.cs new file mode 100644 index 00000000000..d14936015d0 --- /dev/null +++ b/src/Nest/Modules/Scripting/ExecutePainlessScript/ExecutePainlessScriptResponse.cs @@ -0,0 +1,15 @@ +using Newtonsoft.Json; + +namespace Nest +{ + public interface IExecutePainlessScriptResponse : IResponse + { + [JsonProperty("result")] + TResult Result { get; } + } + + public class ExecutePainlessScriptResponse : ResponseBase, IExecutePainlessScriptResponse + { + public TResult Result { get; set; } + } +} diff --git a/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreRequest.cs b/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreRequest.cs index cfb26a06d52..0a72b3d8ee6 100644 --- a/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreRequest.cs +++ b/src/Nest/Modules/SnapshotAndRestore/Restore/RestoreRequest.cs @@ -4,39 +4,111 @@ namespace Nest { + /// + /// Restores a snapshot + /// public partial interface IRestoreRequest { + /// + /// The indices to restore + /// [JsonProperty("indices")] Indices Indices { get; set; } + + /// + /// Whether indices specified that do not exist + /// should be ignored. + /// [JsonProperty("ignore_unavailable")] bool? IgnoreUnavailable { get; set; } + + /// + /// Whether the cluster global state should be included + /// [JsonProperty("include_global_state")] bool? IncludeGlobalState { get; set; } + + /// + /// A pattern to use to rename restored indices. The pattern + /// can be used to capture parts of the original index name + /// and used within + /// [JsonProperty("rename_pattern")] string RenamePattern { get; set; } + + /// + /// A replacement to use to rename restored indices. Used + /// in conjunction with . + /// [JsonProperty("rename_replacement")] string RenameReplacement { get; set; } + + /// + /// The index settings that should be applied as part of + /// the restore operation. Some settings cannot be changed + /// as part of a restore operation, for example, the number + /// of shards. + /// [JsonProperty("index_settings")] IUpdateIndexSettingsRequest IndexSettings { get; set; } + + /// + /// The index settings to ignore as part of the restore operation + /// [JsonProperty("ignore_index_settings")] List IgnoreIndexSettings { get; set; } - } + /// + /// Whether to include aliases as part of the restore + /// + [JsonProperty("include_aliases")] + bool? IncludeAliases { get; set; } + + /// + /// Allow partial restore for indices that don't have snapshots of all shards available. + /// + /// By default, the entire restore operation will fail if one or more indices participating + /// in the operation don’t have snapshots of all shards available. It can occur if some + /// shards failed to snapshot for example. It is still possible to restore such indices + /// by setting to true. Only successfully snapshotted shards + /// will be restored in this case and all missing shards will be recreated empty. + /// + [JsonProperty("partial")] + bool? Partial { get; set; } + } + + /// public partial class RestoreRequest { + /// public Indices Indices { get; set; } + /// public bool? IgnoreUnavailable { get; set; } + /// public bool? IncludeGlobalState { get; set; } + /// public string RenamePattern { get; set; } + /// public string RenameReplacement { get; set; } + + /// public IUpdateIndexSettingsRequest IndexSettings { get; set; } + + /// public List IgnoreIndexSettings { get; set; } + + /// + public bool? IncludeAliases { get; set; } + + /// + public bool? Partial { get; set; } } + /// [DescriptorFor("SnapshotRestore")] public partial class RestoreDescriptor { @@ -47,27 +119,44 @@ public partial class RestoreDescriptor string IRestoreRequest.RenameReplacement { get; set; } IUpdateIndexSettingsRequest IRestoreRequest.IndexSettings { get; set; } List IRestoreRequest.IgnoreIndexSettings { get; set; } + bool? IRestoreRequest.IncludeAliases { get; set; } + bool? IRestoreRequest.Partial { get; set; } + /// public RestoreDescriptor Index(IndexName index) => this.Indices(index); + /// public RestoreDescriptor Index() where T : class => this.Indices(typeof(T)); + /// public RestoreDescriptor Indices(Indices indices) => Assign(a => a.Indices = indices); + /// public RestoreDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Assign(a => a.IgnoreUnavailable = ignoreUnavailable); + /// public RestoreDescriptor IncludeGlobalState(bool? includeGlobalState = true) => Assign(a => a.IncludeGlobalState = includeGlobalState); + /// public RestoreDescriptor RenamePattern(string renamePattern) => Assign(a => a.RenamePattern = renamePattern); + /// public RestoreDescriptor RenameReplacement(string renameReplacement) => Assign(a => a.RenameReplacement = renameReplacement); + /// public RestoreDescriptor IndexSettings(Func settingsSelector) => Assign(a => a.IndexSettings = settingsSelector?.Invoke(new UpdateIndexSettingsDescriptor())); + /// public RestoreDescriptor IgnoreIndexSettings(List ignoreIndexSettings) => Assign(a => a.IgnoreIndexSettings = ignoreIndexSettings); - public RestoreDescriptor IgnoreIndexSettings(params string[] ignoreIndexSettings) =>Assign(a => a.IgnoreIndexSettings = ignoreIndexSettings.ToListOrNullIfEmpty()); + /// + public RestoreDescriptor IgnoreIndexSettings(params string[] ignoreIndexSettings) => Assign(a => a.IgnoreIndexSettings = ignoreIndexSettings.ToListOrNullIfEmpty()); + + /// + public RestoreDescriptor IncludeAliases(bool? includeAliases = true) => Assign(a => a.IncludeAliases = includeAliases); + /// + public RestoreDescriptor Partial(bool? partial = true) => Assign(a => a.Partial = partial); } } diff --git a/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs b/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs index 2038a5d0ae2..5e974d1b61e 100644 --- a/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs +++ b/src/Nest/QueryDsl/FullText/MatchPhrasePrefix/MatchPhrasePrefixQuery.cs @@ -18,6 +18,15 @@ public interface IMatchPhrasePrefixQuery : IFieldNameQuery [JsonProperty("slop")] int? Slop { get; set; } + + /// + /// If the analyzer used removes all tokens in a query like a stop filter does, the default behavior is + /// to match no documents at all. In order to change that, can be used, + /// which accepts (default) and + /// which corresponds to a match_all query. + /// + [JsonProperty("zero_terms_query")] + ZeroTermsQuery? ZeroTermsQuery { get; set; } } public class MatchPhrasePrefixQuery : FieldNameQueryBase, IMatchPhrasePrefixQuery @@ -28,6 +37,8 @@ public class MatchPhrasePrefixQuery : FieldNameQueryBase, IMatchPhrasePrefixQuer public int? MaxExpansions { get; set; } public string Query { get; set; } public int? Slop { get; set; } + /// + public ZeroTermsQuery? ZeroTermsQuery { get; set; } internal override void InternalWrapInContainer(IQueryContainer c) => c.MatchPhrasePrefix = this; @@ -44,6 +55,7 @@ public class MatchPhrasePrefixQueryDescriptor string IMatchPhrasePrefixQuery.Analyzer { get; set; } int? IMatchPhrasePrefixQuery.MaxExpansions { get; set; } int? IMatchPhrasePrefixQuery.Slop { get; set; } + ZeroTermsQuery? IMatchPhrasePrefixQuery.ZeroTermsQuery { get; set; } public MatchPhrasePrefixQueryDescriptor Query(string query) => Assign(a => a.Query = query); @@ -52,5 +64,9 @@ public class MatchPhrasePrefixQueryDescriptor public MatchPhrasePrefixQueryDescriptor MaxExpansions(int? maxExpansions) => Assign(a => a.MaxExpansions = maxExpansions); public MatchPhrasePrefixQueryDescriptor Slop(int? slop) => Assign(a => a.Slop = slop); + + /// + public MatchPhrasePrefixQueryDescriptor ZeroTermsQuery(ZeroTermsQuery? zeroTermsQuery) => Assign(a => a.ZeroTermsQuery = zeroTermsQuery); + } } diff --git a/src/Nest/QueryDsl/Geo/BoundingBox/BoundingBox.cs b/src/Nest/QueryDsl/Geo/BoundingBox/BoundingBox.cs index 4cb99b917ed..79a2e530f73 100644 --- a/src/Nest/QueryDsl/Geo/BoundingBox/BoundingBox.cs +++ b/src/Nest/QueryDsl/Geo/BoundingBox/BoundingBox.cs @@ -10,26 +10,30 @@ public interface IBoundingBox [JsonProperty("bottom_right")] GeoLocation BottomRight { get; set; } + + [JsonProperty("wkt")] + string WellKnownText { get; set; } } public class BoundingBox : IBoundingBox { public GeoLocation TopLeft { get; set; } public GeoLocation BottomRight { get; set; } + public string WellKnownText { get; set; } } public class BoundingBoxDescriptor : DescriptorBase, IBoundingBox { GeoLocation IBoundingBox.TopLeft { get; set; } GeoLocation IBoundingBox.BottomRight { get; set; } + string IBoundingBox.WellKnownText { get; set; } - public BoundingBoxDescriptor TopLeft(GeoLocation topLeft) => Assign(a => a.TopLeft = topLeft); public BoundingBoxDescriptor TopLeft(double lat, double lon) => Assign(a => a.TopLeft = new GeoLocation(lat,lon)); public BoundingBoxDescriptor BottomRight(GeoLocation bottomRight) => Assign(a => a.BottomRight = bottomRight); public BoundingBoxDescriptor BottomRight(double lat, double lon) => Assign(a => a.BottomRight = new GeoLocation(lat, lon)); - + public BoundingBoxDescriptor WellKnownText(string wkt)=> Assign(a => a.WellKnownText = wkt); } -} \ No newline at end of file +} diff --git a/src/Nest/QueryDsl/Geo/BoundingBox/GeoBoundingBoxQuery.cs b/src/Nest/QueryDsl/Geo/BoundingBox/GeoBoundingBoxQuery.cs index 34cd44e5163..3303dd1a366 100644 --- a/src/Nest/QueryDsl/Geo/BoundingBox/GeoBoundingBoxQuery.cs +++ b/src/Nest/QueryDsl/Geo/BoundingBox/GeoBoundingBoxQuery.cs @@ -29,7 +29,7 @@ public class GeoBoundingBoxQuery : FieldNameQueryBase, IGeoBoundingBoxQuery internal override void InternalWrapInContainer(IQueryContainer c) => c.GeoBoundingBox = this; internal static bool IsConditionless(IGeoBoundingBoxQuery q) => - q.Field.IsConditionless() || q.BoundingBox?.BottomRight == null || q.BoundingBox?.TopLeft == null; + q.Field.IsConditionless() || (q.BoundingBox?.BottomRight == null && q.BoundingBox?.TopLeft == null && q.BoundingBox?.WellKnownText == null); } public class GeoBoundingBoxQueryDescriptor @@ -47,6 +47,9 @@ public GeoBoundingBoxQueryDescriptor BoundingBox(double topLeftLat, double to public GeoBoundingBoxQueryDescriptor BoundingBox(GeoLocation topLeft, GeoLocation bottomRight) => BoundingBox(f=>f.TopLeft(topLeft).BottomRight(bottomRight)); + public GeoBoundingBoxQueryDescriptor BoundingBox(string wkt) => + BoundingBox(f=>f.WellKnownText(wkt)); + public GeoBoundingBoxQueryDescriptor BoundingBox(Func boundingBoxSelector) => Assign(a => a.BoundingBox = boundingBoxSelector?.Invoke(new BoundingBoxDescriptor())); diff --git a/src/Nest/QueryDsl/Geo/GeoCoordinateJsonConverter.cs b/src/Nest/QueryDsl/Geo/GeoCoordinateJsonConverter.cs index a85b2a5d7b3..5931559903e 100644 --- a/src/Nest/QueryDsl/Geo/GeoCoordinateJsonConverter.cs +++ b/src/Nest/QueryDsl/Geo/GeoCoordinateJsonConverter.cs @@ -17,6 +17,8 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s writer.WriteStartArray(); serializer.Serialize(writer, p.Longitude); serializer.Serialize(writer, p.Latitude); + if (p.Z.HasValue) + serializer.Serialize(writer, p.Z.Value); writer.WriteEndArray(); } @@ -24,8 +26,15 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist { if (reader.TokenType != JsonToken.StartArray) return null; var doubles = serializer.Deserialize(reader); - if (doubles.Length != 2) return null; - return new GeoCoordinate(doubles[1], doubles[0]); + switch (doubles.Length) + { + case 2: + return new GeoCoordinate(doubles[1], doubles[0]); + case 3: + return new GeoCoordinate(doubles[1], doubles[0], doubles[2]); + default: + return null; + } } } -} \ No newline at end of file +} diff --git a/src/Nest/QueryDsl/Geo/GeoLocation.cs b/src/Nest/QueryDsl/Geo/GeoLocation.cs index 4047d8b89bd..5c1b22741fd 100644 --- a/src/Nest/QueryDsl/Geo/GeoLocation.cs +++ b/src/Nest/QueryDsl/Geo/GeoLocation.cs @@ -123,7 +123,8 @@ public static implicit operator GeoLocation(double[] lonLat) } /// - /// Represents a Latitude/Longitude as a 2 dimensional point that gets serialized as new [] { lon, lat } + /// Represents a Latitude/Longitude and optional Z value as a 2 or 3 dimensional point + /// that gets serialized as new [] { lon, lat, [z] } /// [JsonConverter(typeof(GeoCoordinateJsonConverter))] public class GeoCoordinate : GeoLocation @@ -134,17 +135,35 @@ public class GeoCoordinate : GeoLocation public GeoCoordinate(double latitude, double longitude) : base(latitude, longitude) { } /// - /// Creates a new instance of from a pair of coordinates - /// in the order Latitude then Longitude. + /// Creates a new instance of + /// + public GeoCoordinate(double latitude, double longitude, double z) : base(latitude, longitude) => + Z = z; + + /// + /// Gets or sets the Z value + /// + public double? Z { get; set; } + + /// + /// Creates a new instance of from an array + /// of 2 or 3 doubles, in the order Latitude, Longitude, and optional Z value. /// public static implicit operator GeoCoordinate(double[] coordinates) { - if (coordinates == null || coordinates.Length != 2) - throw new ArgumentOutOfRangeException( - nameof(coordinates), - $"Can not create a {nameof(GeoCoordinate)} from an array that does not have two doubles"); - - return new GeoCoordinate(coordinates[0], coordinates[1]); + if (coordinates == null) return null; + + switch (coordinates.Length) + { + case 2: + return new GeoCoordinate(coordinates[0], coordinates[1]); + case 3: + return new GeoCoordinate(coordinates[0], coordinates[1], coordinates[2]); + } + + throw new ArgumentOutOfRangeException( + nameof(coordinates), + $"Cannot create a {nameof(GeoCoordinate)} from an array that does not contain 2 or 3 values"); } } } diff --git a/src/Nest/QueryDsl/Geo/Shape/GeoShapeBase.cs b/src/Nest/QueryDsl/Geo/Shape/GeoShapeBase.cs index a095fdb9cc5..3852534b80c 100644 --- a/src/Nest/QueryDsl/Geo/Shape/GeoShapeBase.cs +++ b/src/Nest/QueryDsl/Geo/Shape/GeoShapeBase.cs @@ -24,8 +24,32 @@ public interface IGeoShape bool? IgnoreUnmapped { get; set; } } + internal enum GeoShapeFormat + { + GeoJson, + WellKnownText + } + + internal static class GeoShapeType + { + public const string Point = "POINT"; + public const string MultiPoint = "MULTIPOINT"; + public const string LineString = "LINESTRING"; + public const string MultiLineString = "MULTILINESTRING"; + public const string Polygon = "POLYGON"; + public const string MultiPolygon = "MULTIPOLYGON"; + public const string Circle = "CIRCLE"; + public const string Envelope = "ENVELOPE"; + public const string GeometryCollection = "GEOMETRYCOLLECTION"; + + // WKT uses BBOX for envelope geo shape + public const string BoundingBox = "BBOX"; + } + public abstract class GeoShapeBase : IGeoShape { + internal GeoShapeFormat Format { get; set; } + protected GeoShapeBase(string type) => this.Type = type; /// @@ -38,52 +62,121 @@ public abstract class GeoShapeBase : IGeoShape internal class GeoShapeConverter : JsonConverter { - public override bool CanWrite => false; + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + if (value == null) + { + writer.WriteNull(); + return; + } - public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) => - throw new NotSupportedException(); + // IGeometryCollection needs to be handled separately because it does not + // implement IGeoShape, and can't because it would be a binary breaking change. + // Fixed in 7.x + if (value is IGeometryCollection collection) + { + if (collection is GeometryCollection geometryCollection && geometryCollection.Format == GeoShapeFormat.WellKnownText) + { + writer.WriteValue(GeoWKTWriter.Write(collection)); + return; + } + + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteValue(collection.Type); + writer.WritePropertyName("geometries"); + serializer.Serialize(writer, collection.Geometries); + writer.WriteEndObject(); + } + else if (value is IGeoShape shape) + { + if (value is GeoShapeBase shapeBase && shapeBase.Format == GeoShapeFormat.WellKnownText) + { + writer.WriteValue(GeoWKTWriter.Write(shapeBase)); + return; + } + + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteValue(shape.Type); + writer.WritePropertyName("coordinates"); + switch (shape) + { + case IPointGeoShape point: + serializer.Serialize(writer, point.Coordinates); + break; + case IMultiPointGeoShape multiPoint: + serializer.Serialize(writer, multiPoint.Coordinates); + break; + case ILineStringGeoShape lineString: + serializer.Serialize(writer, lineString.Coordinates); + break; + case IMultiLineStringGeoShape multiLineString: + serializer.Serialize(writer, multiLineString.Coordinates); + break; + case IPolygonGeoShape polygon: + serializer.Serialize(writer, polygon.Coordinates); + break; + case IMultiPolygonGeoShape multiPolyon: + serializer.Serialize(writer, multiPolyon.Coordinates); + break; + case IEnvelopeGeoShape envelope: + serializer.Serialize(writer, envelope.Coordinates); + break; + case ICircleGeoShape circle: + serializer.Serialize(writer, circle.Coordinates); + writer.WritePropertyName("radius"); + writer.WriteValue(circle.Radius); + break; + } + writer.WriteEndObject(); + } + } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - if (reader.TokenType == JsonToken.Null) - return null; - - var shape = JObject.Load(reader); - return ReadJToken(shape, serializer); + switch (reader.TokenType) + { + case JsonToken.Null: + return null; + case JsonToken.String: + return GeoWKTReader.Read((string)reader.Value); + default: + var shape = JObject.Load(reader); + return ReadJToken(shape, serializer); + } } internal static object ReadJToken(JToken shape, JsonSerializer serializer) { - var type = shape["type"]; - var typeName = type?.Value(); + var typeName = shape["type"]?.Value().ToUpperInvariant(); switch (typeName) { - case "circle": - var radius = shape["radius"]; - return ParseCircleGeoShape(shape, serializer, radius); - case "envelope": + case GeoShapeType.Circle: + return ParseCircleGeoShape(shape, serializer); + case GeoShapeType.Envelope: return ParseEnvelopeGeoShape(shape, serializer); - case "linestring": + case GeoShapeType.LineString: return ParseLineStringGeoShape(shape, serializer); - case "multilinestring": + case GeoShapeType.MultiLineString: return ParseMultiLineStringGeoShape(shape, serializer); - case "point": + case GeoShapeType.Point: return ParsePointGeoShape(shape, serializer); - case "multipoint": + case GeoShapeType.MultiPoint: return ParseMultiPointGeoShape(shape, serializer); - case "polygon": + case GeoShapeType.Polygon: return ParsePolygonGeoShape(shape, serializer); - case "multipolygon": + case GeoShapeType.MultiPolygon: return ParseMultiPolygonGeoShape(shape, serializer); - case "geometrycollection": + case GeoShapeType.GeometryCollection: return ParseGeometryCollection(shape, serializer); default: return null; } } - public override bool CanConvert(Type objectType) => typeof(IGeoShape).IsAssignableFrom(objectType) || - typeof(IGeometryCollection).IsAssignableFrom(objectType); + public override bool CanConvert(Type objectType) => + typeof(IGeoShape).IsAssignableFrom(objectType) || typeof(IGeometryCollection).IsAssignableFrom(objectType); private static GeometryCollection ParseGeometryCollection(JToken shape, JsonSerializer serializer) { @@ -128,11 +221,11 @@ private static LineStringGeoShape ParseLineStringGeoShape(JToken shape, JsonSeri private static EnvelopeGeoShape ParseEnvelopeGeoShape(JToken shape, JsonSerializer serializer) => new EnvelopeGeoShape {Coordinates = GetCoordinates>(shape, serializer)}; - private static CircleGeoShape ParseCircleGeoShape(JToken shape, JsonSerializer serializer, JToken radius) => + private static CircleGeoShape ParseCircleGeoShape(JToken shape, JsonSerializer serializer) => new CircleGeoShape { Coordinates = GetCoordinates(shape, serializer), - Radius = radius?.Value() + Radius = shape["radius"]?.Value() }; private static T GetCoordinates(JToken shape, JsonSerializer serializer) diff --git a/src/Nest/QueryDsl/Geo/Shape/GeoShapeQueryJsonConverter.cs b/src/Nest/QueryDsl/Geo/Shape/GeoShapeQueryJsonConverter.cs index fe011cc16fd..992e46b2e7c 100644 --- a/src/Nest/QueryDsl/Geo/Shape/GeoShapeQueryJsonConverter.cs +++ b/src/Nest/QueryDsl/Geo/Shape/GeoShapeQueryJsonConverter.cs @@ -43,6 +43,7 @@ internal class GeoShapeQueryJsonConverter : JsonConverter public override bool CanRead => true; public override bool CanWrite => false; + // TODO: remove in 7.x public virtual T GetCoordinates(JToken shape, JsonSerializer serializer) { var coordinates = shape["coordinates"]; @@ -104,27 +105,27 @@ private static IGeoShapeQuery ParseIndexedShapeQuery(JToken indexedShape) => private static IGeoShapeQuery ParseShapeQuery(JToken shape, JsonSerializer serializer) { var type = shape["type"]; - var typeName = type?.Value(); + var typeName = type?.Value().ToUpperInvariant(); var geometry = GeoShapeConverter.ReadJToken(shape, serializer); switch (typeName) { - case "circle": + case GeoShapeType.Circle: return new GeoShapeCircleQuery { Shape = geometry as ICircleGeoShape }; - case "envelope": + case GeoShapeType.Envelope: return new GeoShapeEnvelopeQuery { Shape = geometry as IEnvelopeGeoShape }; - case "linestring": + case GeoShapeType.LineString: return new GeoShapeLineStringQuery { Shape = geometry as ILineStringGeoShape }; - case "multilinestring": + case GeoShapeType.MultiLineString: return new GeoShapeMultiLineStringQuery { Shape = geometry as IMultiLineStringGeoShape }; - case "point": + case GeoShapeType.Point: return new GeoShapePointQuery { Shape = geometry as IPointGeoShape }; - case "multipoint": + case GeoShapeType.MultiPoint: return new GeoShapeMultiPointQuery { Shape = geometry as IMultiPointGeoShape }; - case "polygon": + case GeoShapeType.Polygon: return new GeoShapePolygonQuery { Shape = geometry as IPolygonGeoShape }; - case "multipolygon": + case GeoShapeType.MultiPolygon: return new GeoShapeMultiPolygonQuery { Shape = geometry as IMultiPolygonGeoShape }; - case "geometrycollection": + case GeoShapeType.GeometryCollection: return new GeoShapeGeometryCollectionQuery { Shape = geometry as IGeometryCollection }; default: return null; diff --git a/src/Nest/QueryDsl/Geo/Shape/GeometryCollection/GeometryCollection.cs b/src/Nest/QueryDsl/Geo/Shape/GeometryCollection/GeometryCollection.cs index c687c6056d6..c12bbb395c2 100644 --- a/src/Nest/QueryDsl/Geo/Shape/GeometryCollection/GeometryCollection.cs +++ b/src/Nest/QueryDsl/Geo/Shape/GeometryCollection/GeometryCollection.cs @@ -27,6 +27,8 @@ public interface IGeometryCollection /// public class GeometryCollection : IGeometryCollection, IGeoShape { + internal GeoShapeFormat Format { get; set; } + /// public string Type => "geometrycollection"; diff --git a/src/Nest/QueryDsl/Geo/WKT/GeoWKTException.cs b/src/Nest/QueryDsl/Geo/WKT/GeoWKTException.cs new file mode 100644 index 00000000000..8c5dbf737da --- /dev/null +++ b/src/Nest/QueryDsl/Geo/WKT/GeoWKTException.cs @@ -0,0 +1,20 @@ +using System; + +namespace Nest +{ + /// + /// An exception when handling in Well-Known Text format + /// + public class GeoWKTException : Exception + { + public GeoWKTException(string message) + : base(message) + { + } + + public GeoWKTException(string message, int lineNumber, int position) + : base($"{message} at line {lineNumber}, position {position}") + { + } + } +} diff --git a/src/Nest/QueryDsl/Geo/WKT/GeoWKTReader.cs b/src/Nest/QueryDsl/Geo/WKT/GeoWKTReader.cs new file mode 100644 index 00000000000..19e1542109e --- /dev/null +++ b/src/Nest/QueryDsl/Geo/WKT/GeoWKTReader.cs @@ -0,0 +1,585 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; + +namespace Nest +{ + /// + /// Reads Well-Known Text (WKT) into types + /// + public class GeoWKTReader + { + /// + /// Reads Well-Known Text (WKT) into a new instance of + /// + public static IGeoShape Read(string wellKnownText) + { + using (var tokenizer = new WellKnownTextTokenizer(new StringReader(wellKnownText))) + return Read(tokenizer, null); + } + + private static IGeoShape Read(WellKnownTextTokenizer tokenizer, string shapeType) + { + var token = tokenizer.NextToken(); + + if (token != TokenType.Word) + throw new GeoWKTException( + $"Expected word but found {tokenizer.TokenString()}", tokenizer.LineNumber, tokenizer.Position); + + var type = tokenizer.TokenValue.ToUpperInvariant(); + + if (shapeType != null && shapeType != GeoShapeType.GeometryCollection && type != shapeType) + throw new GeoWKTException($"Expected geometry type {shapeType} but found {type}"); + + switch (type) + { + case GeoShapeType.Point: + var point = ParsePoint(tokenizer); + point.Format = GeoShapeFormat.WellKnownText; + return point; + case GeoShapeType.MultiPoint: + var multiPoint = ParseMultiPoint(tokenizer); + multiPoint.Format = GeoShapeFormat.WellKnownText; + return multiPoint; + case GeoShapeType.LineString: + var lineString = ParseLineString(tokenizer); + lineString.Format = GeoShapeFormat.WellKnownText; + return lineString; + case GeoShapeType.MultiLineString: + var multiLineString = ParseMultiLineString(tokenizer); + multiLineString.Format = GeoShapeFormat.WellKnownText; + return multiLineString; + case GeoShapeType.Polygon: + var polygon = ParsePolygon(tokenizer); + polygon.Format = GeoShapeFormat.WellKnownText; + return polygon; + case GeoShapeType.MultiPolygon: + var multiPolygon = ParseMultiPolygon(tokenizer); + multiPolygon.Format = GeoShapeFormat.WellKnownText; + return multiPolygon; + case GeoShapeType.BoundingBox: + var envelope = ParseBoundingBox(tokenizer); + envelope.Format = GeoShapeFormat.WellKnownText; + return envelope; + case GeoShapeType.GeometryCollection: + var geometryCollection = ParseGeometryCollection(tokenizer); + geometryCollection.Format = GeoShapeFormat.WellKnownText; + return geometryCollection; + default: + throw new GeoWKTException($"Unknown geometry type: {type}"); + } + } + + private static PointGeoShape ParsePoint(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var point = new PointGeoShape(ParseCoordinate(tokenizer)); + NextCloser(tokenizer); + + return point; + } + + private static MultiPointGeoShape ParseMultiPoint(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var coordinates = ParseCoordinates(tokenizer); + return new MultiPointGeoShape(coordinates); + } + + private static LineStringGeoShape ParseLineString(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var coordinates = ParseCoordinates(tokenizer); + return new LineStringGeoShape(coordinates); + } + + private static MultiLineStringGeoShape ParseMultiLineString(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var coordinates = ParseCoordinateLists(tokenizer); + return new MultiLineStringGeoShape(coordinates); + } + + private static PolygonGeoShape ParsePolygon(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var coordinates = ParseCoordinateLists(tokenizer); + return new PolygonGeoShape(coordinates); + } + + private static MultiPolygonGeoShape ParseMultiPolygon(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var coordinates = new List>> + { + ParseCoordinateLists(tokenizer) + }; + + while (NextCloserOrComma(tokenizer) == TokenType.Comma) + coordinates.Add(ParseCoordinateLists(tokenizer)); + + return new MultiPolygonGeoShape(coordinates); + } + + private static EnvelopeGeoShape ParseBoundingBox(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var minLon = NextNumber(tokenizer); + NextComma(tokenizer); + var maxLon = NextNumber(tokenizer); + NextComma(tokenizer); + var maxLat = NextNumber(tokenizer); + NextComma(tokenizer); + var minLat = NextNumber(tokenizer); + NextCloser(tokenizer); + return new EnvelopeGeoShape(new [] { new GeoCoordinate(maxLat, minLon), new GeoCoordinate(minLat, maxLon) }); + } + + private static GeometryCollection ParseGeometryCollection(WellKnownTextTokenizer tokenizer) + { + if (NextEmptyOrOpen(tokenizer) == TokenType.Word) + return null; + + var geometries = new List + { + Read(tokenizer, GeoShapeType.GeometryCollection) + }; + + while (NextCloserOrComma(tokenizer) == TokenType.Comma) + geometries.Add(Read(tokenizer, null)); + + return new GeometryCollection { Geometries = geometries }; + } + + private static List> ParseCoordinateLists(WellKnownTextTokenizer tokenizer) + { + var coordinates = new List>(); + + NextEmptyOrOpen(tokenizer); + coordinates.Add(ParseCoordinates(tokenizer)); + + while (NextCloserOrComma(tokenizer) == TokenType.Comma) + { + NextEmptyOrOpen(tokenizer); + coordinates.Add(ParseCoordinates(tokenizer)); + } + + return coordinates; + } + + private static List ParseCoordinates(WellKnownTextTokenizer tokenizer) + { + var coordinates = new List(); + + if (IsNumberNext(tokenizer) || (tokenizer.NextToken() == TokenType.LParen)) + coordinates.Add(ParseCoordinate(tokenizer)); + + while (NextCloserOrComma(tokenizer) == TokenType.Comma) + { + var isOpenParen = false; + + if (IsNumberNext(tokenizer) || (isOpenParen = tokenizer.NextToken() == TokenType.LParen)) + coordinates.Add(ParseCoordinate(tokenizer)); + + if (isOpenParen) + NextCloser(tokenizer); + } + + return coordinates; + } + + private static GeoCoordinate ParseCoordinate(WellKnownTextTokenizer tokenizer) + { + var lon = NextNumber(tokenizer); + var lat = NextNumber(tokenizer); + double? z = null; + + if (IsNumberNext(tokenizer)) + z = NextNumber(tokenizer); + + return z == null + ? new GeoCoordinate(lat, lon) + : new GeoCoordinate(lat, lon, z.Value); + } + + private static void NextCloser(WellKnownTextTokenizer tokenizer) + { + if (tokenizer.NextToken() != TokenType.RParen) + throw new GeoWKTException( + $"Expected {(char)WellKnownTextTokenizer.RParen} " + + $"but found: {tokenizer.TokenString()}", tokenizer.LineNumber, tokenizer.Position); + } + + private static void NextComma(WellKnownTextTokenizer tokenizer) + { + if (tokenizer.NextToken() != TokenType.Comma) + throw new GeoWKTException( + $"Expected {(char)WellKnownTextTokenizer.Comma} but found: {tokenizer.TokenString()}", + tokenizer.LineNumber, + tokenizer.Position); + } + + private static TokenType NextEmptyOrOpen(WellKnownTextTokenizer tokenizer) + { + var token = tokenizer.NextToken(); + if (token == TokenType.LParen || + token == TokenType.Word && tokenizer.TokenValue.Equals(WellKnownTextTokenizer.Empty, StringComparison.OrdinalIgnoreCase)) + return token; + + throw new GeoWKTException( + $"Expected {WellKnownTextTokenizer.Empty} or {(char)WellKnownTextTokenizer.LParen} " + + $"but found: {tokenizer.TokenString()}", tokenizer.LineNumber, tokenizer.Position); + } + + private static TokenType NextCloserOrComma(WellKnownTextTokenizer tokenizer) + { + var token = tokenizer.NextToken(); + if (token == TokenType.Comma || token == TokenType.RParen) + return token; + + throw new GeoWKTException( + $"Expected {(char)WellKnownTextTokenizer.Comma} or {(char)WellKnownTextTokenizer.RParen} " + + $"but found: {tokenizer.TokenString()}", tokenizer.LineNumber, tokenizer.Position); + } + + private static double NextNumber(WellKnownTextTokenizer tokenizer) + { + if (tokenizer.NextToken() == TokenType.Number) + { + if (string.Equals(tokenizer.TokenValue, WellKnownTextTokenizer.NaN, StringComparison.OrdinalIgnoreCase)) + return double.NaN; + + if (double.TryParse( + tokenizer.TokenValue, + NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingSign, + CultureInfo.InvariantCulture, out var d)) + return d; + } + + throw new GeoWKTException( + $"Expected number but found: {tokenizer.TokenString()}", tokenizer.LineNumber, tokenizer.Position); + } + + private static bool IsNumberNext(WellKnownTextTokenizer tokenizer) + { + var token = tokenizer.PeekToken(); + return token == TokenType.Number; + } + } + + /// + /// Character types when parsing Well-Known Text + /// + internal enum CharacterType : byte + { + Whitespace, + Digit, + Alpha, + Comment + } + + /// + /// Well-Known Text token types + /// + internal enum TokenType : byte + { + None, + Word, + Number, + LParen, + RParen, + Comma + } + + /// + /// Tokenizes a sequence of characters into Well-Known Text + /// (WKT) + /// + internal class WellKnownTextTokenizer : IDisposable + { + private const int NeedChar = int.MaxValue; + private const int CharacterTypesLength = 256; + + public const int Linefeed = '\n'; + public const int CarriageReturn = '\r'; + public const int LParen = '('; + public const int RParen = ')'; + public const int Comma = ','; + public const int Comment = '#'; + public const int Dot = '.'; + public const int Plus = '+'; + public const int Minus = '-'; + public const string NaN = "NAN"; + public const string Empty = "EMPTY"; + + private static readonly CharacterType[] CharacterTypes = new CharacterType[CharacterTypesLength]; + + private static void Chars(int low, int high, CharacterType type) + { + if (low < 0) + low = 0; + + if (high >= CharacterTypesLength) + high = CharacterTypesLength - 1; + + while (low <= high) + CharacterTypes[low++] = type; + } + + static WellKnownTextTokenizer() + { + // build a map of ASCII chars and their types + // Any unmapped ASCII will be considered whitespace + // and anything > 0 outside of ASCII will be considered alpha. + // Treat + - and . as digit characters to make parsing numbers easier. + Chars('a', 'z', CharacterType.Alpha); + Chars('A', 'Z', CharacterType.Alpha); + Chars(128 + 32, 255, CharacterType.Alpha); + Chars('0', '9', CharacterType.Digit); + Chars(LParen, RParen, CharacterType.Alpha); + Chars(Plus, Plus, CharacterType.Digit); + Chars(Comma, Comma, CharacterType.Alpha); + Chars(Minus, Dot, CharacterType.Digit); + Chars(Comment, Comment, CharacterType.Comment); + } + + private readonly TextReader _reader; + private readonly List _buffer = new List(); + private bool _pushed; + private int _peekChar = NeedChar; + + // TODO: use ReadOnlySpan in future + public WellKnownTextTokenizer(TextReader reader) => + _reader = reader ?? throw new ArgumentNullException(nameof(reader)); + + /// + /// Gets the current position + /// + public int Position { get; private set; } + + /// + /// Gets the current line number + /// + public int LineNumber { get; private set; } = 1; + + /// + /// Gets the current token value + /// + public string TokenValue { get; private set; } + + /// + /// Gets the current token type + /// + public TokenType TokenType { get; private set; } = TokenType.None; + + /// + /// A user friendly string for the current token + /// + public string TokenString() + { + switch (TokenType) + { + case TokenType.Word: + case TokenType.Number: + return TokenValue; + case TokenType.None: + return "END-OF-STREAM"; + case TokenType.LParen: + return "("; + case TokenType.RParen: + return ")"; + case TokenType.Comma: + return ","; + default: + return $"\'{(char)_peekChar}\'"; + } + } + + private int Read() + { + Position++; + return _reader.Read(); + } + + /// + /// Peeks at the next token without changing the state + /// of the reader + /// + public TokenType PeekToken() + { + var position = Position; + var token = NextToken(); + Position = position; + _pushed = true; + return token; + } + + /// + /// Gets the next token, advancing the position + /// + public TokenType NextToken() + { + if (_pushed) + { + _pushed = false; + + // Add the length of peeked token + Position += !string.IsNullOrEmpty(TokenValue) + ? 1 + TokenValue.Length + : 1; + + return TokenType; + } + + TokenValue = null; + + var c = _peekChar; + if (c < 0) + c = NeedChar; + + if (c == NeedChar) + { + c = Read(); + if (c < 0) + return TokenType = TokenType.None; + } + + // reset the peek character for next token + _peekChar = NeedChar; + + var characterType = c < CharacterTypesLength + ? CharacterTypes[c] + : CharacterType.Alpha; + + // consume all whitespace + while (characterType == CharacterType.Whitespace) + { + if (c == CarriageReturn) + { + LineNumber++; + Position = 0; + c = Read(); + if (c == Linefeed) + c = Read(); + } + else + { + if (c == Linefeed) + { + LineNumber++; + Position = 0; + } + + c = Read(); + } + + if (c < 0) + return TokenType = TokenType.None; + + characterType = c < CharacterTypesLength + ? CharacterTypes[c] + : CharacterType.Alpha; + } + + switch (c) + { + case LParen: + return TokenType = TokenType.LParen; + case RParen: + return TokenType = TokenType.RParen; + case Comma: + return TokenType = TokenType.Comma; + } + + if (characterType == CharacterType.Alpha) + { + var i = 0; + + do + { + _buffer.Insert(i++, (char)c); + c = Read(); + + if (c < 0) + characterType = CharacterType.Whitespace; + else if (c < CharacterTypesLength) + characterType = CharacterTypes[c]; + else + characterType = CharacterType.Alpha; + + } while (characterType == CharacterType.Alpha); + + _peekChar = c; + TokenValue = new string(_buffer.ToArray(), 0, i); + + // special case for NaN + if (string.Equals(TokenValue, NaN, StringComparison.OrdinalIgnoreCase)) + return TokenType = TokenType.Number; + + return TokenType = TokenType.Word; + } + + if (characterType == CharacterType.Digit) + { + var i = 0; + var dots = 0; + do + { + _buffer.Insert(i++, (char)c); + c = Read(); + + if (c < 0) + characterType = CharacterType.Whitespace; + else if (c < CharacterTypesLength) + { + characterType = CharacterTypes[c]; + if (c == Dot) + dots++; + } + else + characterType = CharacterType.Alpha; + } while (characterType == CharacterType.Digit); + + _peekChar = c; + TokenValue = new string(_buffer.ToArray(), 0, i); + + return dots > 1 + ? TokenType = TokenType.Word + : TokenType = TokenType.Number; + } + + if (characterType == CharacterType.Comment) + { + // consume all characters on comment line + while ((c = Read()) != Linefeed && c != CarriageReturn && c >= 0) + { + } + + _peekChar = c; + return NextToken(); + } + + return TokenType = TokenType.None; + } + + /// + /// Disposes of the reader from which characters are read + /// + public void Dispose() => _reader?.Dispose(); + } +} diff --git a/src/Nest/QueryDsl/Geo/WKT/GeoWKTWriter.cs b/src/Nest/QueryDsl/Geo/WKT/GeoWKTWriter.cs new file mode 100644 index 00000000000..d0a658df21d --- /dev/null +++ b/src/Nest/QueryDsl/Geo/WKT/GeoWKTWriter.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Nest +{ + /// + /// Writes types to Well-Known Text (WKT) + /// + public class GeoWKTWriter + { + /// + /// Writes a to Well-Known Text (WKT) + /// + public static string Write(IGeoShape shape) => + shape == null ? null : Write(shape, new StringBuilder()); + + /// + /// Writes a to Well-Known Text (WKT) + /// + // TODO: Remove in 7.x, where IGeometryCollection implements IGeoShape + public static string Write(IGeometryCollection collection) + { + if (collection == null) + return null; + + var builder = new StringBuilder(); + WriteGeometryCollection(collection, builder); + return builder.ToString(); + } + + private static string Write(IGeoShape shape, StringBuilder builder) + { + switch (shape) + { + case IPointGeoShape point: + WritePoint(point, builder); + break; + case IMultiPointGeoShape multiPoint: + WriteMultiPoint(multiPoint, builder); + break; + case ILineStringGeoShape lineString: + WriteLineString(lineString, builder); + break; + case IMultiLineStringGeoShape multiLineString: + WriteMultiLineString(multiLineString, builder); + break; + case IPolygonGeoShape polygon: + WritePolygon(polygon, builder); + break; + case IMultiPolygonGeoShape multiPolygon: + WriteMultiPolygon(multiPolygon, builder); + break; + case IGeometryCollection geometryCollection: + WriteGeometryCollection(geometryCollection, builder); + break; + case IEnvelopeGeoShape envelope: + WriteEnvelope(envelope, builder); + break; + default: + throw new GeoWKTException($"Unknown geometry type: {shape.GetType().Name}"); + } + + return builder.ToString(); + } + + private static void WritePoint(IPointGeoShape point, StringBuilder builder) + { + builder.Append(GeoShapeType.Point).Append(" ("); + WriteCoordinate(point.Coordinates, builder); + builder.Append(")"); + } + + private static void WriteMultiPoint(IMultiPointGeoShape multiPoint, StringBuilder builder) + { + builder.Append(GeoShapeType.MultiPoint).Append(" ("); + WriteCoordinates(multiPoint.Coordinates, builder); + builder.Append(")"); + } + + private static void WriteLineString(ILineStringGeoShape lineString, StringBuilder builder) + { + builder.Append(GeoShapeType.LineString).Append(" ("); + WriteCoordinates(lineString.Coordinates, builder); + builder.Append(")"); + } + + private static void WriteMultiLineString(IMultiLineStringGeoShape multiLineString, StringBuilder builder) + { + builder.Append(GeoShapeType.MultiLineString).Append(" "); + WriteCoordinatesList(multiLineString.Coordinates, builder); + } + + private static void WritePolygon(IPolygonGeoShape polygon, StringBuilder builder) + { + builder.Append(GeoShapeType.Polygon).Append(" "); + WriteCoordinatesList(polygon.Coordinates, builder); + } + + private static void WriteMultiPolygon(IMultiPolygonGeoShape multiPolygon, StringBuilder builder) + { + builder.Append(GeoShapeType.MultiPolygon).Append(" ("); + var i = 0; + foreach (var polygon in multiPolygon.Coordinates) + { + if (i > 0) + builder.Append(", "); + + WriteCoordinatesList(polygon, builder); + i++; + } + builder.Append(")"); + } + + private static void WriteGeometryCollection(IGeometryCollection geometryCollection, StringBuilder builder) + { + builder.Append(GeoShapeType.GeometryCollection).Append(" ("); + var i = 0; + foreach (var shape in geometryCollection.Geometries) + { + if (i > 0) + builder.Append(", "); + + Write(shape, builder); + i++; + } + builder.Append(")"); + } + + private static void WriteEnvelope(IEnvelopeGeoShape envelope, StringBuilder builder) + { + builder.Append(GeoShapeType.BoundingBox).Append(" ("); + var topLeft = envelope.Coordinates.ElementAt(0); + var bottomRight = envelope.Coordinates.ElementAt(1); + + // WKT specification expects the following order: minLon, maxLon, maxLat, minLat. + // envelope is top_left (minLon, maxLat), bottom_right (maxLon, minLat) + builder.Append(topLeft.Longitude) + .Append(", ") + .Append(bottomRight.Longitude) + .Append(", ") + .Append(topLeft.Latitude) + .Append(", ") + .Append(bottomRight.Latitude) + .Append(")"); + } + + private static void WriteCoordinatesList(IEnumerable> coordinates, StringBuilder builder) + { + builder.Append("("); + var i = 0; + foreach (var coordinateGroup in coordinates) + { + if (i > 0) + builder.Append(", "); + + builder.Append("("); + WriteCoordinates(coordinateGroup, builder); + builder.Append(")"); + i++; + } + builder.Append(")"); + } + + private static void WriteCoordinates(IEnumerable coordinates, StringBuilder builder) + { + var i = 0; + foreach (var coordinate in coordinates) + { + if (i > 0) + builder.Append(", "); + WriteCoordinate(coordinate, builder); + i++; + } + } + + private static void WriteCoordinate(GeoCoordinate coordinate, StringBuilder builder) + { + builder.Append(coordinate.Longitude) + .Append(" ") + .Append(coordinate.Latitude); + + if (coordinate.Z.HasValue) + builder.Append(" ").Append(coordinate.Z.Value); + } + } +} diff --git a/src/Nest/QueryDsl/Span/Gap/SpanGapQuery.cs b/src/Nest/QueryDsl/Span/Gap/SpanGapQuery.cs new file mode 100644 index 00000000000..4d07033a059 --- /dev/null +++ b/src/Nest/QueryDsl/Span/Gap/SpanGapQuery.cs @@ -0,0 +1,79 @@ +using System; +using System.Linq.Expressions; +using Newtonsoft.Json; + +namespace Nest +{ + [JsonObject(MemberSerialization = MemberSerialization.OptIn)] + [JsonConverter(typeof(SpanGapQueryJsonConverter))] + public interface ISpanGapQuery : ISpanSubQuery + { + Field Field { get; set; } + int? Width { get; set; } + } + + public class SpanGapQuery : QueryBase, ISpanGapQuery + { + protected override bool Conditionless => SpanGapQuery.IsConditionless(this); + + internal static bool IsConditionless(ISpanGapQuery q) => q?.Width == null || q.Field.IsConditionless(); + + public Field Field { get; set; } + public int? Width { get; set; } + + internal override void InternalWrapInContainer(IQueryContainer c) => + throw new Exception("span_gap may only appear as a span near clause"); + + } + + [JsonObject(MemberSerialization = MemberSerialization.OptIn)] + public class SpanGapQueryDescriptor : QueryDescriptorBase, ISpanGapQuery>, ISpanGapQuery + where T : class + { + protected override bool Conditionless => SpanGapQuery.IsConditionless(this); + + Field ISpanGapQuery.Field { get; set; } + + int? ISpanGapQuery.Width { get; set; } + + public SpanGapQueryDescriptor Field(Field field) => Assign(a => a.Field = field); + + public SpanGapQueryDescriptor Field(Expression> objectPath) => Assign(a => a.Field = objectPath); + + public SpanGapQueryDescriptor Width(int? width) => Assign(a => a.Width = width); + } + + internal class SpanGapQueryJsonConverter : JsonConverter + { + public override bool CanRead => true; + public override bool CanWrite => true; + public override bool CanConvert(Type objectType) => typeof(ISpanGapQuery).IsAssignableFrom(objectType); + + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + var gapQuery = value as ISpanGapQuery; + if (value == null || SpanGapQuery.IsConditionless(gapQuery)) + { + writer.WriteNull(); + return; + } + var settings = serializer.GetConnectionSettings(); + var fieldName = settings.Inferrer.Field(gapQuery.Field); + writer.WriteStartObject(); + writer.WritePropertyName(fieldName); + writer.WriteValue(gapQuery.Width); + writer.WriteEndObject(); + } + + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType != JsonToken.StartObject) return null; + reader.Read(); + var field = (Field)reader.Value.ToString(); // field + var width = reader.ReadAsInt32(); + reader.Read(); + return new SpanGapQuery {Field = field, Width = width}; + } + + } +} diff --git a/src/Nest/QueryDsl/Span/SpanQuery.cs b/src/Nest/QueryDsl/Span/SpanQuery.cs index d690bd61f8a..c57eb276889 100644 --- a/src/Nest/QueryDsl/Span/SpanQuery.cs +++ b/src/Nest/QueryDsl/Span/SpanQuery.cs @@ -17,17 +17,20 @@ public interface ISpanQuery : IQuery [JsonProperty("span_near")] ISpanNearQuery SpanNear { get; set; } + [JsonProperty("span_gap")] + ISpanGapQuery SpanGap { get; set; } + [JsonProperty("span_or")] ISpanOrQuery SpanOr { get; set; } [JsonProperty("span_not")] ISpanNotQuery SpanNot { get; set; } - - [JsonProperty("span_containing")] - ISpanContainingQuery SpanContaining { get; set; } - - [JsonProperty("span_within")] - ISpanWithinQuery SpanWithin { get; set; } + + [JsonProperty("span_containing")] + ISpanContainingQuery SpanContaining { get; set; } + + [JsonProperty("span_within")] + ISpanWithinQuery SpanWithin { get; set; } [JsonProperty("span_multi")] ISpanMultiTermQuery SpanMultiTerm { get; set; } @@ -50,14 +53,15 @@ public class SpanQuery : ISpanQuery public ISpanTermQuery SpanTerm { get; set; } public ISpanFirstQuery SpanFirst { get; set; } public ISpanNearQuery SpanNear { get; set; } + public ISpanGapQuery SpanGap { get; set; } public ISpanOrQuery SpanOr { get; set; } public ISpanNotQuery SpanNot { get; set; } - public ISpanMultiTermQuery SpanMultiTerm { get; set; } - public ISpanContainingQuery SpanContaining{ get; set; } - public ISpanWithinQuery SpanWithin { get; set; } - public ISpanFieldMaskingQuery SpanFieldMasking { get; set; } - - public void Accept(IQueryVisitor visitor) => new QueryWalker().Walk(this, visitor); + public ISpanMultiTermQuery SpanMultiTerm { get; set; } + public ISpanContainingQuery SpanContaining{ get; set; } + public ISpanWithinQuery SpanWithin { get; set; } + public ISpanFieldMaskingQuery SpanFieldMasking { get; set; } + + public void Accept(IQueryVisitor visitor) => new QueryWalker().Walk(this, visitor); internal static bool IsConditionless(ISpanQuery q) => new[] { @@ -67,6 +71,7 @@ internal static bool IsConditionless(ISpanQuery q) => new[] q.SpanOr , q.SpanNot, q.SpanMultiTerm, + q.SpanGap, q.SpanFieldMasking }.All(sq => sq == null || sq.Conditionless); } @@ -78,10 +83,11 @@ public class SpanQueryDescriptor : QueryDescriptorBase ISpanTermQuery ISpanQuery.SpanTerm { get; set; } ISpanFirstQuery ISpanQuery.SpanFirst { get; set; } ISpanNearQuery ISpanQuery.SpanNear { get; set; } + ISpanGapQuery ISpanQuery.SpanGap { get; set; } ISpanOrQuery ISpanQuery.SpanOr { get; set; } ISpanNotQuery ISpanQuery.SpanNot { get; set; } - ISpanMultiTermQuery ISpanQuery.SpanMultiTerm { get; set; } - ISpanContainingQuery ISpanQuery.SpanContaining{ get; set; } + ISpanMultiTermQuery ISpanQuery.SpanMultiTerm { get; set; } + ISpanContainingQuery ISpanQuery.SpanContaining{ get; set; } ISpanWithinQuery ISpanQuery.SpanWithin { get; set; } ISpanFieldMaskingQuery ISpanQuery.SpanFieldMasking { get; set; } @@ -94,6 +100,9 @@ public SpanQueryDescriptor SpanFirst(Func, ISpanF public SpanQueryDescriptor SpanNear(Func, ISpanNearQuery> selector) => Assign(a => a.SpanNear = selector?.Invoke(new SpanNearQueryDescriptor())); + public SpanQueryDescriptor SpanGap(Func, ISpanGapQuery> selector) => + Assign(a => a.SpanGap = selector?.Invoke(new SpanGapQueryDescriptor())); + public SpanQueryDescriptor SpanOr(Func, ISpanOrQuery> selector) => Assign(a => a.SpanOr = selector?.Invoke(new SpanOrQueryDescriptor())); @@ -102,17 +111,17 @@ public SpanQueryDescriptor SpanNot(Func, ISpanNotQu public SpanQueryDescriptor SpanMultiTerm(Func, ISpanMultiTermQuery> selector) => Assign(a => a.SpanMultiTerm = selector?.Invoke(new SpanMultiTermQueryDescriptor())); - - public SpanQueryDescriptor SpanContaining(Func, ISpanContainingQuery> selector) => - Assign(a => a.SpanContaining = selector?.Invoke(new SpanContainingQueryDescriptor())); - - public SpanQueryDescriptor SpanWithin(Func, ISpanWithinQuery> selector) => - Assign(a => a.SpanWithin = selector?.Invoke(new SpanWithinQueryDescriptor())); - - public SpanQueryDescriptor SpanFieldMasking(Func, ISpanFieldMaskingQuery> selector) => - Assign(a => a.SpanFieldMasking = selector?.Invoke(new SpanFieldMaskingQueryDescriptor())); - - void ISpanQuery.Accept(IQueryVisitor visitor) => new QueryWalker().Walk(this, visitor); + + public SpanQueryDescriptor SpanContaining(Func, ISpanContainingQuery> selector) => + Assign(a => a.SpanContaining = selector?.Invoke(new SpanContainingQueryDescriptor())); + + public SpanQueryDescriptor SpanWithin(Func, ISpanWithinQuery> selector) => + Assign(a => a.SpanWithin = selector?.Invoke(new SpanWithinQueryDescriptor())); + + public SpanQueryDescriptor SpanFieldMasking(Func, ISpanFieldMaskingQuery> selector) => + Assign(a => a.SpanFieldMasking = selector?.Invoke(new SpanFieldMaskingQueryDescriptor())); + + void ISpanQuery.Accept(IQueryVisitor visitor) => new QueryWalker().Walk(this, visitor); } } diff --git a/src/Nest/XPack/MachineLearning/Job/Detectors/Detector.cs b/src/Nest/XPack/MachineLearning/Job/Detectors/Detector.cs index 744581a2b68..c5bb1069718 100644 --- a/src/Nest/XPack/MachineLearning/Job/Detectors/Detector.cs +++ b/src/Nest/XPack/MachineLearning/Job/Detectors/Detector.cs @@ -285,5 +285,8 @@ public DetectorsDescriptor TimeOfDay(Func, ITimeDet public DetectorsDescriptor TimeOfWeek(Func, ITimeDetector> selector = null) => Assign(a => a.AddIfNotNull(selector.InvokeOrDefault(new TimeDetectorDescriptor(TimeFunction.TimeOfWeek)))); + + public DetectorsDescriptor LatLong(Func, IGeographicDetector> selector = null) => + Assign(a => a.AddIfNotNull(selector.InvokeOrDefault(new LatLongDetectorDescriptor()))); } } diff --git a/src/Nest/XPack/MachineLearning/Job/Detectors/GeographicDetector.cs b/src/Nest/XPack/MachineLearning/Job/Detectors/GeographicDetector.cs index 99e4ea80f99..6dd01ffb28e 100644 --- a/src/Nest/XPack/MachineLearning/Job/Detectors/GeographicDetector.cs +++ b/src/Nest/XPack/MachineLearning/Job/Detectors/GeographicDetector.cs @@ -44,8 +44,11 @@ public class LatLongDetectorDescriptor : DetectorDescriptorBase FieldName(Field fieldName) => Assign(a => a.FieldName = fieldName); public LatLongDetectorDescriptor FieldName(Expression> objectPath) => Assign(a => a.FieldName = objectPath); diff --git a/src/Nest/_Generated/_Descriptors.generated.cs b/src/Nest/_Generated/_Descriptors.generated.cs index 6162a68d8ef..8896a3c80e8 100644 --- a/src/Nest/_Generated/_Descriptors.generated.cs +++ b/src/Nest/_Generated/_Descriptors.generated.cs @@ -12,36 +12,44 @@ namespace Nest { public abstract partial class RequestDescriptorBase { + ///Pretty format the returned JSON response. public TDescriptor Pretty(bool? pretty = true) => Qs("pretty", pretty); + ///Return human readable values for statistics. public TDescriptor Human(bool? human = true) => Qs("human", human); + ///Include the stack trace of returned errors. public TDescriptor ErrorTrace(bool? errorTrace = true) => Qs("error_trace", errorTrace); + ///A comma-separated list of filters used to reduce the response.Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request. In such situations, use the low level client to issue the request and handle response deserialization public TDescriptor FilterPath(string[] filterPath) => Qs("filter_path", filterPath); } - + ///descriptor for Bulk
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html
public partial class BulkDescriptor : RequestDescriptorBase, IBulkRequest { /// /_bulk public BulkDescriptor() : base(){} - // values part of the url path IndexName IBulkRequest.Index => Self.RouteValues.Get("index"); TypeName IBulkRequest.Type => Self.RouteValues.Get("type"); + ///Default index for items which don't provide one public BulkDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public BulkDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (IndexName)typeof(TOther))); + ///Default document type for items which don't provide one public BulkDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public BulkDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (TypeName)typeof(TOther))); // Request parameters + ///Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) public BulkDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); ///If `true` then refresh the effected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. public BulkDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -55,33 +63,35 @@ public BulkDescriptor() : base(){} public BulkDescriptor Fields(Fields fields) => Qs("fields", fields); ///Default comma-separated list of fields to return in the response for updates, can be overridden on each sub-request public BulkDescriptor Fields(params Expression>[] fields) where T : class => Qs("fields", fields?.Select(e=>(Field)e)); + ///Whether the _source should be included in the response. public BulkDescriptor SourceEnabled(bool? sourceEnabled = true) => Qs("_source", sourceEnabled); ///Default list of fields to exclude from the returned _source field, can be overridden on each sub-request public BulkDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///Default list of fields to exclude from the returned _source field, can be overridden on each sub-request public BulkDescriptor SourceExclude(params Expression>[] fields) where T : class => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///Default list of fields to extract and return from the _source field, can be overridden on each sub-request public BulkDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///Default list of fields to extract and return from the _source field, can be overridden on each sub-request public BulkDescriptor SourceInclude(params Expression>[] fields) where T : class => Qs("_source_include", fields?.Select(e=>(Field)e)); + ///The pipeline id to preprocess incoming documents with public BulkDescriptor Pipeline(string pipeline) => Qs("pipeline", pipeline); - } - ///descriptor for CatAliases
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html
public partial class CatAliasesDescriptor : RequestDescriptorBase, ICatAliasesRequest { /// /_cat/aliases public CatAliasesDescriptor() : base(){} - // values part of the url path Names ICatAliasesRequest.Name => Self.RouteValues.Get("name"); + ///A comma-separated list of alias names to return public CatAliasesDescriptor Name(Names name) => Assign(a=>a.RouteValues.Optional("name", name)); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatAliasesDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -96,21 +106,20 @@ public CatAliasesDescriptor() : base(){} public CatAliasesDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatAliasesDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatAllocation
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html
public partial class CatAllocationDescriptor : RequestDescriptorBase, ICatAllocationRequest { /// /_cat/allocation public CatAllocationDescriptor() : base(){} - // values part of the url path NodeIds ICatAllocationRequest.NodeId => Self.RouteValues.Get("node_id"); + ///A comma-separated list of node IDs or names to limit the returned information public CatAllocationDescriptor NodeId(NodeIds nodeId) => Assign(a=>a.RouteValues.Optional("node_id", nodeId)); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatAllocationDescriptor Format(string format) => Qs("format", format); ///The unit in which to display byte values @@ -127,25 +136,26 @@ public CatAllocationDescriptor() : base(){} public CatAllocationDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatAllocationDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatCount
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html
public partial class CatCountDescriptor : RequestDescriptorBase, ICatCountRequest { /// /_cat/count public CatCountDescriptor() : base(){} - // values part of the url path Indices ICatCountRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names to limit the returned information public CatCountDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CatCountDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public CatCountDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatCountDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -160,23 +170,23 @@ public CatCountDescriptor() : base(){} public CatCountDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatCountDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatFielddata
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html
public partial class CatFielddataDescriptor : RequestDescriptorBase, ICatFielddataRequest { /// /_cat/fielddata public CatFielddataDescriptor() : base(){} - // values part of the url path Fields ICatFielddataRequest.Fields => Self.RouteValues.Get("fields"); + ///A comma-separated list of fields to return the fielddata size public CatFielddataDescriptor Fields(Fields fields) => Assign(a=>a.RouteValues.Optional("fields", fields)); + ///A comma-separated list of fields to return the fielddata size public CatFielddataDescriptor Fields(params Expression>[] fields) => Assign(a => a.RouteValues.Optional("fields", (Fields)fields)); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatFielddataDescriptor Format(string format) => Qs("format", format); ///The unit in which to display byte values @@ -193,15 +203,14 @@ public CatFielddataDescriptor() : base(){} public CatFielddataDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatFielddataDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatHealth
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html
public partial class CatHealthDescriptor : RequestDescriptorBase, ICatHealthRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatHealthDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -218,38 +227,38 @@ public partial class CatHealthDescriptor : RequestDescriptorBase Qs("ts", includeTimestamp); ///Verbose mode. Display column headers public CatHealthDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatHelp
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html
public partial class CatHelpDescriptor : RequestDescriptorBase, ICatHelpRequest { // values part of the url path // Request parameters + ///Return help information public CatHelpDescriptor Help(bool? help = true) => Qs("help", help); ///Comma-separated list of column names or column aliases to sort by public CatHelpDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); - } - ///descriptor for CatIndices
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html
public partial class CatIndicesDescriptor : RequestDescriptorBase, ICatIndicesRequest { /// /_cat/indices public CatIndicesDescriptor() : base(){} - // values part of the url path Indices ICatIndicesRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names to limit the returned information public CatIndicesDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CatIndicesDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public CatIndicesDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatIndicesDescriptor Format(string format) => Qs("format", format); ///The unit in which to display byte values @@ -270,15 +279,14 @@ public CatIndicesDescriptor() : base(){} public CatIndicesDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatIndicesDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatMaster
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html
public partial class CatMasterDescriptor : RequestDescriptorBase, ICatMasterRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatMasterDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -293,15 +301,14 @@ public partial class CatMasterDescriptor : RequestDescriptorBase Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatMasterDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatNodeattrs
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html
public partial class CatNodeAttributesDescriptor : RequestDescriptorBase, ICatNodeAttributesRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatNodeAttributesDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -316,15 +323,14 @@ public partial class CatNodeAttributesDescriptor : RequestDescriptorBase Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatNodeAttributesDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatNodes
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html
public partial class CatNodesDescriptor : RequestDescriptorBase, ICatNodesRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatNodesDescriptor Format(string format) => Qs("format", format); ///Return the full node ID instead of the shortened version (default: false) @@ -341,15 +347,14 @@ public partial class CatNodesDescriptor : RequestDescriptorBase Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatNodesDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatPendingTasks
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html
public partial class CatPendingTasksDescriptor : RequestDescriptorBase, ICatPendingTasksRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatPendingTasksDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -364,15 +369,14 @@ public partial class CatPendingTasksDescriptor : RequestDescriptorBase Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatPendingTasksDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatPlugins
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html
public partial class CatPluginsDescriptor : RequestDescriptorBase, ICatPluginsRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatPluginsDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -387,25 +391,26 @@ public partial class CatPluginsDescriptor : RequestDescriptorBase Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatPluginsDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatRecovery
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html
public partial class CatRecoveryDescriptor : RequestDescriptorBase, ICatRecoveryRequest { /// /_cat/recovery public CatRecoveryDescriptor() : base(){} - // values part of the url path Indices ICatRecoveryRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names to limit the returned information public CatRecoveryDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CatRecoveryDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public CatRecoveryDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatRecoveryDescriptor Format(string format) => Qs("format", format); ///The unit in which to display byte values @@ -420,15 +425,14 @@ public CatRecoveryDescriptor() : base(){} public CatRecoveryDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatRecoveryDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatRepositories
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html
public partial class CatRepositoriesDescriptor : RequestDescriptorBase, ICatRepositoriesRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatRepositoriesDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node @@ -443,25 +447,26 @@ public partial class CatRepositoriesDescriptor : RequestDescriptorBase Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatRepositoriesDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatSegments
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html
public partial class CatSegmentsDescriptor : RequestDescriptorBase, ICatSegmentsRequest { /// /_cat/segments public CatSegmentsDescriptor() : base(){} - // values part of the url path Indices ICatSegmentsRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names to limit the returned information public CatSegmentsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CatSegmentsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public CatSegmentsDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatSegmentsDescriptor Format(string format) => Qs("format", format); ///The unit in which to display byte values @@ -474,25 +479,26 @@ public CatSegmentsDescriptor() : base(){} public CatSegmentsDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatSegmentsDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatShards
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html
public partial class CatShardsDescriptor : RequestDescriptorBase, ICatShardsRequest { /// /_cat/shards public CatShardsDescriptor() : base(){} - // values part of the url path Indices ICatShardsRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names to limit the returned information public CatShardsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CatShardsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public CatShardsDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatShardsDescriptor Format(string format) => Qs("format", format); ///The unit in which to display byte values @@ -509,21 +515,20 @@ public CatShardsDescriptor() : base(){} public CatShardsDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatShardsDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatSnapshots
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html
public partial class CatSnapshotsDescriptor : RequestDescriptorBase, ICatSnapshotsRequest { /// /_cat/snapshots public CatSnapshotsDescriptor() : base(){} - // values part of the url path Names ICatSnapshotsRequest.RepositoryName => Self.RouteValues.Get("repository"); + ///Name of repository from which to fetch the snapshot information public CatSnapshotsDescriptor RepositoryName(Names repository) => Assign(a=>a.RouteValues.Optional("repository", repository)); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatSnapshotsDescriptor Format(string format) => Qs("format", format); ///Set to true to ignore unavailable snapshots @@ -538,15 +543,14 @@ public CatSnapshotsDescriptor() : base(){} public CatSnapshotsDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatSnapshotsDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatTasks
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class CatTasksDescriptor : RequestDescriptorBase, ICatTasksRequest { // values part of the url path // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatTasksDescriptor Format(string format) => Qs("format", format); ///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 @@ -555,8 +559,6 @@ public partial class CatTasksDescriptor : RequestDescriptorBase Qs("actions", actions); ///Return detailed task information (default: false) public CatTasksDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); - ///Return tasks with specified parent node. - public CatTasksDescriptor ParentNode(string parentNode) => Qs("parent_node", parentNode); ///Return tasks with specified parent task id. Set to -1 to return all. public CatTasksDescriptor ParentTask(long? parentTask) => Qs("parent_task", parentTask); ///Comma-separated list of column names to display @@ -567,21 +569,23 @@ public partial class CatTasksDescriptor : RequestDescriptorBase Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatTasksDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - + ///Return tasks with the specified parent node + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public CatTasksDescriptor ParentNode(string parentNode) => Qs("parent_node", parentNode); } - ///descriptor for CatTemplates
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html
public partial class CatTemplatesDescriptor : RequestDescriptorBase, ICatTemplatesRequest { /// /_cat/templates public CatTemplatesDescriptor() : base(){} - // values part of the url path Name ICatTemplatesRequest.Name => Self.RouteValues.Get("name"); + ///A pattern that returned template names must match public CatTemplatesDescriptor Name(Name name) => Assign(a=>a.RouteValues.Optional("name", name)); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatTemplatesDescriptor Format(string format) => Qs("format", format); ///Return local information, do not retrieve the state from master node (default: false) @@ -596,21 +600,20 @@ public CatTemplatesDescriptor() : base(){} public CatTemplatesDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatTemplatesDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for CatThreadPool
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html
public partial class CatThreadPoolDescriptor : RequestDescriptorBase, ICatThreadPoolRequest { /// /_cat/thread_pool public CatThreadPoolDescriptor() : base(){} - // values part of the url path Names ICatThreadPoolRequest.ThreadPoolPatterns => Self.RouteValues.Get("thread_pool_patterns"); + ///A comma-separated list of regular-expressions to filter the thread pools in the output public CatThreadPoolDescriptor ThreadPoolPatterns(Names threadPoolPatterns) => Assign(a=>a.RouteValues.Optional("thread_pool_patterns", threadPoolPatterns)); // Request parameters + ///a short version of the Accept header, e.g. json, yaml public CatThreadPoolDescriptor Format(string format) => Qs("format", format); ///The multiplier in which to display values @@ -627,40 +630,36 @@ public CatThreadPoolDescriptor() : base(){} public CatThreadPoolDescriptor SortByColumns(params string[] sortByColumns) => Qs("s", sortByColumns); ///Verbose mode. Display column headers public CatThreadPoolDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); - } - ///descriptor for ClearScroll
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html
public partial class ClearScrollDescriptor : RequestDescriptorBase, IClearScrollRequest { /// /_search/scroll public ClearScrollDescriptor() : base(){} - // values part of the url path // Request parameters - + } - ///descriptor for ClusterAllocationExplain
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html
public partial class ClusterAllocationExplainDescriptor : RequestDescriptorBase, IClusterAllocationExplainRequest { // values part of the url path // Request parameters + ///Return 'YES' decisions in explanation (default: false) public ClusterAllocationExplainDescriptor IncludeYesDecisions(bool? includeYesDecisions = true) => Qs("include_yes_decisions", includeYesDecisions); ///Return information about disk usage and shard sizes (default: false) public ClusterAllocationExplainDescriptor IncludeDiskInfo(bool? includeDiskInfo = true) => Qs("include_disk_info", includeDiskInfo); - } - ///descriptor for ClusterGetSettings
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html
public partial class ClusterGetSettingsDescriptor : RequestDescriptorBase, IClusterGetSettingsRequest { // values part of the url path // Request parameters + ///Return settings in flat format (default: false) public ClusterGetSettingsDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Explicit operation timeout for connection to master node @@ -669,25 +668,26 @@ public partial class ClusterGetSettingsDescriptor : RequestDescriptorBase Qs("timeout", timeout); ///Whether to return all default clusters setting. public ClusterGetSettingsDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - } - ///descriptor for ClusterHealth
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html
public partial class ClusterHealthDescriptor : RequestDescriptorBase, IClusterHealthRequest { /// /_cluster/health public ClusterHealthDescriptor() : base(){} - // values part of the url path Indices IClusterHealthRequest.Index => Self.RouteValues.Get("index"); + ///Limit the information returned to a specific index public ClusterHealthDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public ClusterHealthDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public ClusterHealthDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Specify the level of detail for returned information public ClusterHealthDescriptor Level(Level? level) => Qs("level", level); ///Return local information, do not retrieve the state from master node (default: false) @@ -708,52 +708,48 @@ public ClusterHealthDescriptor() : base(){} public ClusterHealthDescriptor WaitForNoInitializingShards(bool? waitForNoInitializingShards = true) => Qs("wait_for_no_initializing_shards", waitForNoInitializingShards); ///Wait until cluster is in a specific state public ClusterHealthDescriptor WaitForStatus(WaitForStatus? waitForStatus) => Qs("wait_for_status", waitForStatus); - } - ///descriptor for ClusterPendingTasks
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html
public partial class ClusterPendingTasksDescriptor : RequestDescriptorBase, IClusterPendingTasksRequest { // values part of the url path // Request parameters + ///Return local information, do not retrieve the state from master node (default: false) public ClusterPendingTasksDescriptor Local(bool? local = true) => Qs("local", local); ///Specify timeout for connection to master public ClusterPendingTasksDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for ClusterPutSettings
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html
public partial class ClusterPutSettingsDescriptor : RequestDescriptorBase, IClusterPutSettingsRequest { // values part of the url path // Request parameters + ///Return settings in flat format (default: false) public ClusterPutSettingsDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Explicit operation timeout for connection to master node public ClusterPutSettingsDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Explicit operation timeout public ClusterPutSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for ClusterRemoteInfo
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html
public partial class RemoteInfoDescriptor : RequestDescriptorBase, IRemoteInfoRequest { // values part of the url path // Request parameters - + } - ///descriptor for ClusterReroute
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html
public partial class ClusterRerouteDescriptor : RequestDescriptorBase, IClusterRerouteRequest { // values part of the url path // Request parameters + ///Simulate the operation only and return the resulting state public ClusterRerouteDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); ///Return an explanation of why the commands can or cannot be executed @@ -766,28 +762,30 @@ public partial class ClusterRerouteDescriptor : RequestDescriptorBase Qs("master_timeout", masterTimeout); ///Explicit operation timeout public ClusterRerouteDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for ClusterState
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html
public partial class ClusterStateDescriptor : RequestDescriptorBase, IClusterStateRequest { /// /_cluster/state public ClusterStateDescriptor() : base(){} - // values part of the url path Indices IClusterStateRequest.Index => Self.RouteValues.Get("index"); Metrics IClusterStateRequest.Metric => Self.RouteValues.Get("metric"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public ClusterStateDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public ClusterStateDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public ClusterStateDescriptor AllIndices() => this.Index(Indices.All); + ///Limit the information returned to the specified metrics public ClusterStateDescriptor Metric(ClusterStateMetric metric) => Assign(a=>a.RouteValues.Optional("metric", (Metrics)metric)); // Request parameters + ///Return local information, do not retrieve the state from master node (default: false) public ClusterStateDescriptor Local(bool? local = true) => Qs("local", local); ///Specify timeout for connection to master @@ -800,51 +798,54 @@ public ClusterStateDescriptor() : base(){} public ClusterStateDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ClusterStateDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for ClusterStats
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html
public partial class ClusterStatsDescriptor : RequestDescriptorBase, IClusterStatsRequest { /// /_cluster/stats public ClusterStatsDescriptor() : base(){} - // values part of the url path NodeIds IClusterStatsRequest.NodeId => Self.RouteValues.Get("node_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 ClusterStatsDescriptor NodeId(NodeIds nodeId) => Assign(a=>a.RouteValues.Optional("node_id", nodeId)); // Request parameters + ///Return settings in flat format (default: false) public ClusterStatsDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Explicit operation timeout public ClusterStatsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for Count
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html
public partial class CountDescriptor : RequestDescriptorBase,CountRequestParameters, ICountRequest>, ICountRequest { /// /_count public CountDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Required("type", (Types)typeof(T))){} - // values part of the url path Indices ICountRequest.Index => Self.RouteValues.Get("index"); Types ICountRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of indices to restrict the results public CountDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CountDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public CountDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of types to restrict the results public CountDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public CountDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public CountDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public CountDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -855,7 +856,7 @@ public CountDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Requ public CountDescriptor MinScore(double? minScore) => Qs("min_score", minScore); ///Specify the node or shard the operation should be performed on (default: random) public CountDescriptor Preference(string preference) => Qs("preference", preference); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -877,9 +878,7 @@ public CountDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Requ public CountDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); ///The maximum count for each shard, upon reaching which the query execution will terminate early public CountDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); - } - ///descriptor for Create
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html
public partial class CreateDescriptor : RequestDescriptorBase,CreateRequestParameters, ICreateRequest>, ICreateRequest { @@ -889,27 +888,30 @@ public partial class CreateDescriptor : RequestDescriptorBase this parameter is required public CreateDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(TDocument document); - // values part of the url path Id ICreateRequest.Id => Self.RouteValues.Get("id"); IndexName ICreateRequest.Index => Self.RouteValues.Get("index"); TypeName ICreateRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public CreateDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CreateDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document public CreateDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public CreateDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) public CreateDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); ///ID of the parent document @@ -917,7 +919,7 @@ public CreateDescriptor(DocumentPath document) : base(r=>r.Required(" public CreateDescriptor Parent(string parent) => Qs("parent", parent); ///If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. public CreateDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -933,9 +935,7 @@ public CreateDescriptor(DocumentPath document) : base(r=>r.Required(" public CreateDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); ///The pipeline id to preprocess incoming documents with public CreateDescriptor Pipeline(string pipeline) => Qs("pipeline", pipeline); - } - ///descriptor for Delete
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html
public partial class DeleteDescriptor : RequestDescriptorBase,DeleteRequestParameters, IDeleteRequest>, IDeleteRequest { @@ -945,27 +945,30 @@ public partial class DeleteDescriptor : RequestDescriptorBase this parameter is required public DeleteDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(T document); - // values part of the url path Id IDeleteRequest.Id => Self.RouteValues.Get("id"); IndexName IDeleteRequest.Index => Self.RouteValues.Get("index"); TypeName IDeleteRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public DeleteDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public DeleteDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document public DeleteDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public DeleteDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) public DeleteDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); ///ID of parent document @@ -973,7 +976,7 @@ public DeleteDescriptor(DocumentPath document) : base(r=>r.Required("index", public DeleteDescriptor Parent(string parent) => Qs("parent", parent); ///If `true` then refresh the effected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. public DeleteDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -987,33 +990,37 @@ public DeleteDescriptor(DocumentPath document) : base(r=>r.Required("index", public DeleteDescriptor Version(long? version) => Qs("version", version); ///Specific version type public DeleteDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for DeleteByQuery
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html
public partial class DeleteByQueryDescriptor : RequestDescriptorBase,DeleteByQueryRequestParameters, IDeleteByQueryRequest>, IDeleteByQueryRequest { /// /{index}/_delete_by_query /// this parameter is required public DeleteByQueryDescriptor(Indices index) : base(r=>r.Required("index", index).Required("type", (Types)typeof(T))){} - // values part of the url path Indices IDeleteByQueryRequest.Index => Self.RouteValues.Get("index"); Types IDeleteByQueryRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices public DeleteByQueryDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public DeleteByQueryDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public DeleteByQueryDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to search; leave empty to perform the operation on all types public DeleteByQueryDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public DeleteByQueryDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public DeleteByQueryDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///The analyzer to use for the query string public DeleteByQueryDescriptor Analyzer(string analyzer) => Qs("analyzer", analyzer); ///Specify whether wildcard and prefix queries should be analyzed (default: false) @@ -1028,7 +1035,7 @@ public DeleteByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public DeleteByQueryDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///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 DeleteByQueryDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - ///What to do when the delete-by-query hits version conflicts? + ///What to do when the delete by query hits version conflicts? public DeleteByQueryDescriptor Conflicts(Conflicts? conflicts) => Qs("conflicts", conflicts); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public DeleteByQueryDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); @@ -1038,7 +1045,7 @@ public DeleteByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public DeleteByQueryDescriptor Preference(string preference) => Qs("preference", preference); ///Query in the Lucene query string syntax public DeleteByQueryDescriptor QueryOnQueryString(string queryOnQueryString) => Qs("q", queryOnQueryString); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -1062,10 +1069,12 @@ public DeleteByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public DeleteByQueryDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public DeleteByQueryDescriptor SourceExclude(params Expression>[] fields) => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public DeleteByQueryDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public DeleteByQueryDescriptor SourceInclude(params Expression>[] fields) => Qs("_source_include", fields?.Select(e=>(Field)e)); + ///The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. public DeleteByQueryDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); ///Specific 'tag' of the request for logging and statistical purposes @@ -1080,35 +1089,31 @@ public DeleteByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public DeleteByQueryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) public DeleteByQueryDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the delete by query public DeleteByQueryDescriptor ScrollSize(long? scrollSize) => Qs("scroll_size", scrollSize); - ///Should the request should block until the delete-by-query is complete. + ///Should the request should block until the delete by query is complete. public DeleteByQueryDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); ///The throttle for this request in sub-requests per second. -1 means no throttle. public DeleteByQueryDescriptor RequestsPerSecond(long? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. public DeleteByQueryDescriptor Slices(long? slices) => Qs("slices", slices); - } - ///descriptor for DeleteScript
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
public partial class DeleteScriptDescriptor : RequestDescriptorBase, IDeleteScriptRequest { /// /_scripts/{id} /// this parameter is required public DeleteScriptDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IDeleteScriptRequest.Id => Self.RouteValues.Get("id"); // Request parameters + ///Explicit operation timeout public DeleteScriptDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public DeleteScriptDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for Exists
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class DocumentExistsDescriptor : RequestDescriptorBase,DocumentExistsRequestParameters, IDocumentExistsRequest>, IDocumentExistsRequest { @@ -1118,31 +1123,35 @@ public partial class DocumentExistsDescriptor : RequestDescriptorBase this parameter is required public DocumentExistsDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(T document); - // values part of the url path Id IDocumentExistsRequest.Id => Self.RouteValues.Get("id"); IndexName IDocumentExistsRequest.Index => Self.RouteValues.Get("index"); TypeName IDocumentExistsRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public DocumentExistsDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public DocumentExistsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) public DocumentExistsDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public DocumentExistsDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///A comma-separated list of stored fields to return in the response public DocumentExistsDescriptor StoredFields(Fields storedFields) => Qs("stored_fields", storedFields); ///A comma-separated list of stored fields to return in the response public DocumentExistsDescriptor StoredFields(params Expression>[] fields) => Qs("stored_fields", fields?.Select(e=>(Field)e)); + ///The ID of the parent document [Obsolete("Scheduled to be removed in 7.0, the parent parameter has been deprecated from elasticsearch, please use routing instead directly.")] public DocumentExistsDescriptor Parent(string parent) => Qs("parent", parent); @@ -1152,7 +1161,7 @@ public DocumentExistsDescriptor(DocumentPath document) : base(r=>r.Required(" public DocumentExistsDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); ///Refresh the shard containing the document before performing the operation public DocumentExistsDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -1166,17 +1175,17 @@ public DocumentExistsDescriptor(DocumentPath document) : base(r=>r.Required(" public DocumentExistsDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public DocumentExistsDescriptor SourceExclude(params Expression>[] fields) => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public DocumentExistsDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public DocumentExistsDescriptor SourceInclude(params Expression>[] fields) => Qs("_source_include", fields?.Select(e=>(Field)e)); + ///Explicit version number for concurrency control public DocumentExistsDescriptor Version(long? version) => Qs("version", version); ///Specific version type public DocumentExistsDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for ExistsSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class SourceExistsDescriptor : RequestDescriptorBase,SourceExistsRequestParameters, ISourceExistsRequest>, ISourceExistsRequest { @@ -1186,27 +1195,30 @@ public partial class SourceExistsDescriptor : RequestDescriptorBase this parameter is required public SourceExistsDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(T document); - // values part of the url path Id ISourceExistsRequest.Id => Self.RouteValues.Get("id"); IndexName ISourceExistsRequest.Index => Self.RouteValues.Get("index"); TypeName ISourceExistsRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public SourceExistsDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SourceExistsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document; use `_all` to fetch the first document matching the ID across all types public SourceExistsDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public SourceExistsDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///The ID of the parent document [Obsolete("Scheduled to be removed in 7.0, the parent parameter has been deprecated from elasticsearch, please use routing instead directly.")] public SourceExistsDescriptor Parent(string parent) => Qs("parent", parent); @@ -1216,7 +1228,7 @@ public SourceExistsDescriptor(DocumentPath document) : base(r=>r.Required("in public SourceExistsDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); ///Refresh the shard containing the document before performing the operation public SourceExistsDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -1230,17 +1242,17 @@ public SourceExistsDescriptor(DocumentPath document) : base(r=>r.Required("in public SourceExistsDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public SourceExistsDescriptor SourceExclude(params Expression>[] fields) => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public SourceExistsDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public SourceExistsDescriptor SourceInclude(params Expression>[] fields) => Qs("_source_include", fields?.Select(e=>(Field)e)); + ///Explicit version number for concurrency control public SourceExistsDescriptor Version(long? version) => Qs("version", version); ///Specific version type public SourceExistsDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for Explain
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html
public partial class ExplainDescriptor : RequestDescriptorBase,ExplainRequestParameters, IExplainRequest>, IExplainRequest { @@ -1250,27 +1262,30 @@ public partial class ExplainDescriptor : RequestDescriptorBase this parameter is required public ExplainDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(TDocument document); - // values part of the url path Id IExplainRequest.Id => Self.RouteValues.Get("id"); IndexName IExplainRequest.Index => Self.RouteValues.Get("index"); TypeName IExplainRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public ExplainDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public ExplainDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document public ExplainDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public ExplainDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false) public ExplainDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); ///The analyzer for the query string query @@ -1288,7 +1303,7 @@ public ExplainDescriptor(DocumentPath document) : base(r=>r.Required( public ExplainDescriptor Preference(string preference) => Qs("preference", preference); ///Query in the Lucene query string syntax public ExplainDescriptor QueryOnQueryString(string queryOnQueryString) => Qs("q", queryOnQueryString); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -1302,42 +1317,44 @@ public ExplainDescriptor(DocumentPath document) : base(r=>r.Required( public ExplainDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public ExplainDescriptor SourceExclude(params Expression>[] fields) => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public ExplainDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public ExplainDescriptor SourceInclude(params Expression>[] fields) => Qs("_source_include", fields?.Select(e=>(Field)e)); - + } - ///descriptor for FieldCaps
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html
public partial class FieldCapabilitiesDescriptor : RequestDescriptorBase, IFieldCapabilitiesRequest { /// /_field_caps public FieldCapabilitiesDescriptor() : base(){} - // values part of the url path Indices IFieldCapabilitiesRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public FieldCapabilitiesDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public FieldCapabilitiesDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public FieldCapabilitiesDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///A comma-separated list of field names public FieldCapabilitiesDescriptor Fields(Fields fields) => Qs("fields", fields); ///A comma-separated list of field names public FieldCapabilitiesDescriptor Fields(params Expression>[] fields) where T : class => Qs("fields", fields?.Select(e=>(Field)e)); + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public FieldCapabilitiesDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///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 FieldCapabilitiesDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public FieldCapabilitiesDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for Get
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class GetDescriptor : RequestDescriptorBase,GetRequestParameters, IGetRequest>, IGetRequest { @@ -1347,31 +1364,35 @@ public partial class GetDescriptor : RequestDescriptorBase, /// this parameter is required public GetDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(T document); - // values part of the url path Id IGetRequest.Id => Self.RouteValues.Get("id"); IndexName IGetRequest.Index => Self.RouteValues.Get("index"); TypeName IGetRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public GetDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public GetDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) public GetDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public GetDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///A comma-separated list of stored fields to return in the response public GetDescriptor StoredFields(Fields storedFields) => Qs("stored_fields", storedFields); ///A comma-separated list of stored fields to return in the response public GetDescriptor StoredFields(params Expression>[] fields) => Qs("stored_fields", fields?.Select(e=>(Field)e)); + ///The ID of the parent document [Obsolete("Scheduled to be removed in 7.0, the parent parameter has been deprecated from elasticsearch, please use routing instead directly.")] public GetDescriptor Parent(string parent) => Qs("parent", parent); @@ -1381,7 +1402,7 @@ public GetDescriptor(DocumentPath document) : base(r=>r.Required("index", doc public GetDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); ///Refresh the shard containing the document before performing the operation public GetDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -1395,31 +1416,29 @@ public GetDescriptor(DocumentPath document) : base(r=>r.Required("index", doc public GetDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public GetDescriptor SourceExclude(params Expression>[] fields) => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public GetDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public GetDescriptor SourceInclude(params Expression>[] fields) => Qs("_source_include", fields?.Select(e=>(Field)e)); + ///Explicit version number for concurrency control public GetDescriptor Version(long? version) => Qs("version", version); ///Specific version type public GetDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for GetScript
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
public partial class GetScriptDescriptor : RequestDescriptorBase, IGetScriptRequest { /// /_scripts/{id} /// this parameter is required public GetScriptDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IGetScriptRequest.Id => Self.RouteValues.Get("id"); // Request parameters - + } - ///descriptor for GetSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class SourceDescriptor : RequestDescriptorBase,SourceRequestParameters, ISourceRequest>, ISourceRequest { @@ -1429,27 +1448,30 @@ public partial class SourceDescriptor : RequestDescriptorBase this parameter is required public SourceDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(T document); - // values part of the url path Id ISourceRequest.Id => Self.RouteValues.Get("id"); IndexName ISourceRequest.Index => Self.RouteValues.Get("index"); TypeName ISourceRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public SourceDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SourceDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document; use `_all` to fetch the first document matching the ID across all types public SourceDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public SourceDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///The ID of the parent document [Obsolete("Scheduled to be removed in 7.0, the parent parameter has been deprecated from elasticsearch, please use routing instead directly.")] public SourceDescriptor Parent(string parent) => Qs("parent", parent); @@ -1459,7 +1481,7 @@ public SourceDescriptor(DocumentPath document) : base(r=>r.Required("index", public SourceDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); ///Refresh the shard containing the document before performing the operation public SourceDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -1473,17 +1495,17 @@ public SourceDescriptor(DocumentPath document) : base(r=>r.Required("index", public SourceDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public SourceDescriptor SourceExclude(params Expression>[] fields) => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public SourceDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public SourceDescriptor SourceInclude(params Expression>[] fields) => Qs("_source_include", fields?.Select(e=>(Field)e)); + ///Explicit version number for concurrency control public SourceDescriptor Version(long? version) => Qs("version", version); ///Specific version type public SourceDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for Index
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html
public partial class IndexDescriptor : RequestDescriptorBase,IndexRequestParameters, IIndexRequest>, IIndexRequest { @@ -1492,29 +1514,33 @@ public partial class IndexDescriptor : RequestDescriptorBase this parameter is required public IndexDescriptor(IndexName index, TypeName type) : base(r=>r.Required("index", index).Required("type", type)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(TDocument document); - // values part of the url path Id IIndexRequest.Id => Self.RouteValues.Get("id"); IndexName IIndexRequest.Index => Self.RouteValues.Get("index"); TypeName IIndexRequest.Type => Self.RouteValues.Get("type"); + ///Document ID public IndexDescriptor Id(Id id) => Assign(a=>a.RouteValues.Optional("id", id)); + ///The name of the index public IndexDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public IndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document public IndexDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public IndexDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) public IndexDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); ///Explicit operation type @@ -1524,7 +1550,7 @@ public IndexDescriptor(DocumentPath document) : base(r=>r.Required("i public IndexDescriptor Parent(string parent) => Qs("parent", parent); ///If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. public IndexDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -1540,52 +1566,54 @@ public IndexDescriptor(DocumentPath document) : base(r=>r.Required("i public IndexDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); ///The pipeline id to preprocess incoming documents with public IndexDescriptor Pipeline(string pipeline) => Qs("pipeline", pipeline); - } - ///descriptor for IndicesAnalyzeForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html
public partial class AnalyzeDescriptor : RequestDescriptorBase, IAnalyzeRequest { /// /_analyze public AnalyzeDescriptor() : base(){} - // values part of the url path IndexName IAnalyzeRequest.Index => Self.RouteValues.Get("index"); + ///The name of the index to scope the operation public AnalyzeDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public AnalyzeDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (IndexName)typeof(TOther))); // Request parameters + ///With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true) public AnalyzeDescriptor PreferLocal(bool? preferLocal = true) => Qs("prefer_local", preferLocal); ///Format of the output public AnalyzeDescriptor Format(Format? format) => Qs("format", format); - } - ///descriptor for IndicesClearCacheForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html
public partial class ClearCacheDescriptor : RequestDescriptorBase, IClearCacheRequest { /// /_cache/clear public ClearCacheDescriptor() : base(){} - // values part of the url path Indices IClearCacheRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index name to limit the operation public ClearCacheDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public ClearCacheDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public ClearCacheDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Clear field data public ClearCacheDescriptor Fielddata(bool? fielddata = true) => Qs("fielddata", fielddata); - ///A comma-separated list of fields to clear when using the `field_data` parameter (default: all) + ///A comma-separated list of fields to clear when using the `fielddata` parameter (default: all) public ClearCacheDescriptor Fields(Fields fields) => Qs("fields", fields); - ///A comma-separated list of fields to clear when using the `field_data` parameter (default: all) + ///A comma-separated list of fields to clear when using the `fielddata` parameter (default: all) public ClearCacheDescriptor Fields(params Expression>[] fields) where T : class => Qs("fields", fields?.Select(e=>(Field)e)); + ///Clear query caches public ClearCacheDescriptor Query(bool? query = true) => Qs("query", query); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -1594,32 +1622,34 @@ public ClearCacheDescriptor() : base(){} public ClearCacheDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ClearCacheDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - ///Clear the recycler cache - public ClearCacheDescriptor Recycler(bool? recycler = true) => Qs("recycler", recycler); ///Clear request cache public ClearCacheDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); ///Clear request cache public ClearCacheDescriptor Request(bool? request = true) => Qs("request", request); - + ///Clear the recycle cache + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28866")] + public ClearCacheDescriptor Recycler(bool? recycler = true) => Qs("recycler", recycler); } - ///descriptor for IndicesClose
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html
public partial class CloseIndexDescriptor : RequestDescriptorBase, ICloseIndexRequest { /// /{index}/_close /// this parameter is required public CloseIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices ICloseIndexRequest.Index => Self.RouteValues.Get("index"); + ///A comma separated list of indices to close public CloseIndexDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CloseIndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public CloseIndexDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Explicit operation timeout public CloseIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master @@ -1630,24 +1660,24 @@ public CloseIndexDescriptor(Indices index) : base(r=>r.Required("index", index)) public CloseIndexDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public CloseIndexDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for IndicesCreate
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html
public partial class CreateIndexDescriptor : RequestDescriptorBase, ICreateIndexRequest { /// /{index} /// this parameter is required public CreateIndexDescriptor(IndexName index) : base(r=>r.Required("index", index)){} - // values part of the url path IndexName ICreateIndexRequest.Index => Self.RouteValues.Get("index"); + ///The name of the index public CreateIndexDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public CreateIndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); // Request parameters + ///Set the number of active shards to wait for before the operation returns. public CreateIndexDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); ///Explicit operation timeout @@ -1655,27 +1685,29 @@ public CreateIndexDescriptor(IndexName index) : base(r=>r.Required("index", inde ///Specify timeout for connection to master public CreateIndexDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public CreateIndexDescriptor UpdateAllTypes(bool? updateAllTypes = true) => Qs("update_all_types", updateAllTypes); - } - ///descriptor for IndicesDelete
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html
public partial class DeleteIndexDescriptor : RequestDescriptorBase, IDeleteIndexRequest { /// /{index} /// this parameter is required public DeleteIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices IDeleteIndexRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices public DeleteIndexDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public DeleteIndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public DeleteIndexDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Explicit operation timeout public DeleteIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master @@ -1686,9 +1718,7 @@ public DeleteIndexDescriptor(Indices index) : base(r=>r.Required("index", index) public DeleteIndexDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether wildcard expressions should get expanded to open or closed indices (default: open) public DeleteIndexDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for IndicesDeleteAlias
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
public partial class DeleteAliasDescriptor : RequestDescriptorBase, IDeleteAliasRequest { @@ -1696,60 +1726,62 @@ public partial class DeleteAliasDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public DeleteAliasDescriptor(Indices index, Names name) : base(r=>r.Required("index", index).Required("name", name)){} - // values part of the url path Indices IDeleteAliasRequest.Index => Self.RouteValues.Get("index"); Names IDeleteAliasRequest.Name => Self.RouteValues.Get("name"); + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices public DeleteAliasDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public DeleteAliasDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public DeleteAliasDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Explicit timestamp for the document public DeleteAliasDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public DeleteAliasDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for IndicesDeleteTemplateForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
public partial class DeleteIndexTemplateDescriptor : RequestDescriptorBase, IDeleteIndexTemplateRequest { /// /_template/{name} /// this parameter is required public DeleteIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IDeleteIndexTemplateRequest.Name => Self.RouteValues.Get("name"); // Request parameters + ///Explicit operation timeout public DeleteIndexTemplateDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public DeleteIndexTemplateDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for IndicesExists
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html
public partial class IndexExistsDescriptor : RequestDescriptorBase, IIndexExistsRequest { /// /{index} /// this parameter is required public IndexExistsDescriptor(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices IIndexExistsRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names public IndexExistsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public IndexExistsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public IndexExistsDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Return local information, do not retrieve the state from master node (default: false) public IndexExistsDescriptor Local(bool? local = true) => Qs("local", local); ///Ignore unavailable indexes (default: false) @@ -1762,27 +1794,28 @@ public IndexExistsDescriptor(Indices index) : base(r=>r.Required("index", index) public IndexExistsDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Whether to return all default setting for each of the indices. public IndexExistsDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - } - ///descriptor for IndicesExistsAliasForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
public partial class AliasExistsDescriptor : RequestDescriptorBase, IAliasExistsRequest { /// /_alias/{name} /// this parameter is required public AliasExistsDescriptor(Names name) : base(r=>r.Required("name", name)){} - // values part of the url path Indices IAliasExistsRequest.Index => Self.RouteValues.Get("index"); Names IAliasExistsRequest.Name => Self.RouteValues.Get("name"); + ///A comma-separated list of index names to filter aliases public AliasExistsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public AliasExistsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public AliasExistsDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public AliasExistsDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -1791,29 +1824,25 @@ public AliasExistsDescriptor(Names name) : base(r=>r.Required("name", name)){} public AliasExistsDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Return local information, do not retrieve the state from master node (default: false) public AliasExistsDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for IndicesExistsTemplateForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
public partial class IndexTemplateExistsDescriptor : RequestDescriptorBase, IIndexTemplateExistsRequest { /// /_template/{name} /// this parameter is required public IndexTemplateExistsDescriptor(Names name) : base(r=>r.Required("name", name)){} - // values part of the url path Names IIndexTemplateExistsRequest.Name => Self.RouteValues.Get("name"); // Request parameters + ///Return settings in flat format (default: false) public IndexTemplateExistsDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Explicit operation timeout for connection to master node public IndexTemplateExistsDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Return local information, do not retrieve the state from master node (default: false) public IndexTemplateExistsDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for IndicesExistsType
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html
public partial class TypeExistsDescriptor : RequestDescriptorBase, ITypeExistsRequest { @@ -1821,24 +1850,30 @@ public partial class TypeExistsDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public TypeExistsDescriptor(Indices index, Types type) : base(r=>r.Required("index", index).Required("type", type)){} - // values part of the url path Indices ITypeExistsRequest.Index => Self.RouteValues.Get("index"); Types ITypeExistsRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names; use `_all` to check the types across all indices public TypeExistsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public TypeExistsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public TypeExistsDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to check public TypeExistsDescriptor Type(Types type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public TypeExistsDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public TypeExistsDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public TypeExistsDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -1847,25 +1882,26 @@ public TypeExistsDescriptor(Indices index, Types type) : base(r=>r.Required("ind public TypeExistsDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Return local information, do not retrieve the state from master node (default: false) public TypeExistsDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for IndicesFlushForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html
public partial class FlushDescriptor : RequestDescriptorBase, IFlushRequest { /// /_flush public FlushDescriptor() : base(){} - // values part of the url path Indices IFlushRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices public FlushDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public FlushDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public FlushDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal) public FlushDescriptor Force(bool? force = true) => Qs("force", force); ///If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. The default is true. If set to false the flush will be skipped iff if another flush operation is already running. @@ -1876,50 +1912,52 @@ public FlushDescriptor() : base(){} public FlushDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public FlushDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for IndicesFlushSyncedForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html
public partial class SyncedFlushDescriptor : RequestDescriptorBase, ISyncedFlushRequest { /// /_flush/synced public SyncedFlushDescriptor() : base(){} - // values part of the url path Indices ISyncedFlushRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All for all indices public SyncedFlushDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SyncedFlushDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public SyncedFlushDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public SyncedFlushDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///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 SyncedFlushDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public SyncedFlushDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for IndicesForcemergeForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html
public partial class ForceMergeDescriptor : RequestDescriptorBase, IForceMergeRequest { /// /_forcemerge public ForceMergeDescriptor() : base(){} - // values part of the url path Indices IForceMergeRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public ForceMergeDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public ForceMergeDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public ForceMergeDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Specify whether the index should be flushed after performing the operation (default: true) public ForceMergeDescriptor Flush(bool? flush = true) => Qs("flush", flush); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -1932,26 +1970,27 @@ public ForceMergeDescriptor() : base(){} public ForceMergeDescriptor MaxNumSegments(long? maxNumSegments) => Qs("max_num_segments", maxNumSegments); ///Specify whether the operation should only expunge deleted documents public ForceMergeDescriptor OnlyExpungeDeletes(bool? onlyExpungeDeletes = true) => Qs("only_expunge_deletes", onlyExpungeDeletes); - } - ///descriptor for IndicesGet
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html
public partial class GetIndexDescriptor : RequestDescriptorBase, IGetIndexRequest { /// /{index} /// this parameter is required public GetIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices IGetIndexRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names public GetIndexDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public GetIndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public GetIndexDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Return local information, do not retrieve the state from master node (default: false) public GetIndexDescriptor Local(bool? local = true) => Qs("local", local); ///Ignore unavailable indexes (default: false) @@ -1964,28 +2003,30 @@ public GetIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} public GetIndexDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Whether to return all default setting for each of the indices. public GetIndexDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - } - ///descriptor for IndicesGetAliasForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
public partial class GetAliasDescriptor : RequestDescriptorBase, IGetAliasRequest { /// /_alias public GetAliasDescriptor() : base(){} - // values part of the url path Indices IGetAliasRequest.Index => Self.RouteValues.Get("index"); Names IGetAliasRequest.Name => Self.RouteValues.Get("name"); + ///A comma-separated list of index names to filter aliases public GetAliasDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public GetAliasDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public GetAliasDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of alias names to return public GetAliasDescriptor Name(Names name) => Assign(a=>a.RouteValues.Optional("name", name)); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public GetAliasDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -1994,34 +2035,38 @@ public GetAliasDescriptor() : base(){} public GetAliasDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Return local information, do not retrieve the state from master node (default: false) public GetAliasDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for IndicesGetFieldMappingForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html
public partial class GetFieldMappingDescriptor : RequestDescriptorBase,GetFieldMappingRequestParameters, IGetFieldMappingRequest>, IGetFieldMappingRequest { /// /_mapping/field/{fields} /// this parameter is required public GetFieldMappingDescriptor(Fields fields) : base(r=>r.Required("fields", fields)){} - // values part of the url path Indices IGetFieldMappingRequest.Index => Self.RouteValues.Get("index"); Types IGetFieldMappingRequest.Type => Self.RouteValues.Get("type"); Fields IGetFieldMappingRequest.Fields => Self.RouteValues.Get("fields"); + ///A comma-separated list of index names public GetFieldMappingDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public GetFieldMappingDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public GetFieldMappingDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types public GetFieldMappingDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public GetFieldMappingDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public GetFieldMappingDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Whether the default mapping values should be returned as well public GetFieldMappingDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2032,32 +2077,36 @@ public GetFieldMappingDescriptor(Fields fields) : base(r=>r.Required("fields", f public GetFieldMappingDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Return local information, do not retrieve the state from master node (default: false) public GetFieldMappingDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for IndicesGetMappingForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html
public partial class GetMappingDescriptor : RequestDescriptorBase,GetMappingRequestParameters, IGetMappingRequest>, IGetMappingRequest { /// /_mapping public GetMappingDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Required("type", (Types)typeof(T))){} - // values part of the url path Indices IGetMappingRequest.Index => Self.RouteValues.Get("index"); Types IGetMappingRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names public GetMappingDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public GetMappingDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public GetMappingDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types public GetMappingDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public GetMappingDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public GetMappingDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public GetMappingDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -2066,28 +2115,30 @@ public GetMappingDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)) public GetMappingDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Return local information, do not retrieve the state from master node (default: false) public GetMappingDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for IndicesGetSettingsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html
public partial class GetIndexSettingsDescriptor : RequestDescriptorBase, IGetIndexSettingsRequest { /// /_settings public GetIndexSettingsDescriptor() : base(){} - // values part of the url path Indices IGetIndexSettingsRequest.Index => Self.RouteValues.Get("index"); Names IGetIndexSettingsRequest.Name => Self.RouteValues.Get("name"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public GetIndexSettingsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public GetIndexSettingsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public GetIndexSettingsDescriptor AllIndices() => this.Index(Indices.All); + ///The name of the settings that should be included public GetIndexSettingsDescriptor Name(Names name) => Assign(a=>a.RouteValues.Optional("name", name)); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public GetIndexSettingsDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -2100,72 +2151,73 @@ public GetIndexSettingsDescriptor() : base(){} public GetIndexSettingsDescriptor Local(bool? local = true) => Qs("local", local); ///Whether to return all default setting for each of the indices. public GetIndexSettingsDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - } - ///descriptor for IndicesGetTemplateForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
public partial class GetIndexTemplateDescriptor : RequestDescriptorBase, IGetIndexTemplateRequest { /// /_template public GetIndexTemplateDescriptor() : base(){} - // values part of the url path Names IGetIndexTemplateRequest.Name => Self.RouteValues.Get("name"); + ///The comma separated names of the index templates public GetIndexTemplateDescriptor Name(Names name) => Assign(a=>a.RouteValues.Optional("name", name)); // Request parameters + ///Return settings in flat format (default: false) public GetIndexTemplateDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Explicit operation timeout for connection to master node public GetIndexTemplateDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Return local information, do not retrieve the state from master node (default: false) public GetIndexTemplateDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for IndicesGetUpgradeForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html
public partial class UpgradeStatusDescriptor : RequestDescriptorBase, IUpgradeStatusRequest { /// /_upgrade public UpgradeStatusDescriptor() : base(){} - // values part of the url path Indices IUpgradeStatusRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public UpgradeStatusDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public UpgradeStatusDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public UpgradeStatusDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public UpgradeStatusDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///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 UpgradeStatusDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public UpgradeStatusDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for IndicesOpen
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html
public partial class OpenIndexDescriptor : RequestDescriptorBase, IOpenIndexRequest { /// /{index}/_open /// this parameter is required public OpenIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices IOpenIndexRequest.Index => Self.RouteValues.Get("index"); + ///A comma separated list of indices to open public OpenIndexDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public OpenIndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public OpenIndexDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Explicit operation timeout public OpenIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master @@ -2178,9 +2230,7 @@ public OpenIndexDescriptor(Indices index) : base(r=>r.Required("index", index)){ public OpenIndexDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Sets the number of active shards to wait for before the operation returns. public OpenIndexDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - } - ///descriptor for IndicesPutAlias
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
public partial class PutAliasDescriptor : RequestDescriptorBase, IPutAliasRequest { @@ -2188,47 +2238,53 @@ public partial class PutAliasDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public PutAliasDescriptor(Indices index, Name name) : base(r=>r.Required("index", index).Required("name", name)){} - // values part of the url path Indices IPutAliasRequest.Index => Self.RouteValues.Get("index"); Name IPutAliasRequest.Name => Self.RouteValues.Get("name"); + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. public PutAliasDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public PutAliasDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public PutAliasDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Explicit timestamp for the document public PutAliasDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public PutAliasDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for IndicesPutMapping
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html
public partial class PutMappingDescriptor : RequestDescriptorBase,PutMappingRequestParameters, IPutMappingRequest>, IPutMappingRequest { /// /{index}/{type}/_mapping /// this parameter is required public PutMappingDescriptor(TypeName type) : base(r=>r.Required("type", type)){} - // values part of the url path Indices IPutMappingRequest.Index => Self.RouteValues.Get("index"); TypeName IPutMappingRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. public PutMappingDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public PutMappingDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public PutMappingDescriptor AllIndices() => this.Index(Indices.All); + ///The name of the document type public PutMappingDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public PutMappingDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///Explicit operation timeout public PutMappingDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master @@ -2240,28 +2296,32 @@ public PutMappingDescriptor(TypeName type) : base(r=>r.Required("type", type)){} ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public PutMappingDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public PutMappingDescriptor UpdateAllTypes(bool? updateAllTypes = true) => Qs("update_all_types", updateAllTypes); - } - ///descriptor for IndicesPutSettingsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html
public partial class UpdateIndexSettingsDescriptor : RequestDescriptorBase, IUpdateIndexSettingsRequest { /// /_settings public UpdateIndexSettingsDescriptor() : base(){} - // values part of the url path Indices IUpdateIndexSettingsRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public UpdateIndexSettingsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public UpdateIndexSettingsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public UpdateIndexSettingsDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Specify timeout for connection to master public UpdateIndexSettingsDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); + ///Explicit operation timeout + public UpdateIndexSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Whether to update existing settings. If set to `true` existing settings on an index remain unchanged, the default is `false` public UpdateIndexSettingsDescriptor PreserveExisting(bool? preserveExisting = true) => Qs("preserve_existing", preserveExisting); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2272,20 +2332,18 @@ public UpdateIndexSettingsDescriptor() : base(){} public UpdateIndexSettingsDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Return settings in flat format (default: false) public UpdateIndexSettingsDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - } - ///descriptor for IndicesPutTemplateForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
public partial class PutIndexTemplateDescriptor : RequestDescriptorBase, IPutIndexTemplateRequest { /// /_template/{name} /// this parameter is required public PutIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IPutIndexTemplateRequest.Name => Self.RouteValues.Get("name"); // Request parameters + ///Whether the index template should only be added if new or can also replace an existing one public PutIndexTemplateDescriptor Create(bool? create = true) => Qs("create", create); ///Explicit operation timeout @@ -2294,71 +2352,72 @@ public PutIndexTemplateDescriptor(Name name) : base(r=>r.Required("name", name)) public PutIndexTemplateDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Return settings in flat format (default: false) public PutIndexTemplateDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - } - ///descriptor for IndicesRecoveryForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html
public partial class RecoveryStatusDescriptor : RequestDescriptorBase, IRecoveryStatusRequest { /// /_recovery public RecoveryStatusDescriptor() : base(){} - // values part of the url path Indices IRecoveryStatusRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public RecoveryStatusDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public RecoveryStatusDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public RecoveryStatusDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Whether to display detailed information about shard recovery public RecoveryStatusDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); ///Display only those recoveries that are currently on-going public RecoveryStatusDescriptor ActiveOnly(bool? activeOnly = true) => Qs("active_only", activeOnly); - } - ///descriptor for IndicesRefreshForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html
public partial class RefreshDescriptor : RequestDescriptorBase, IRefreshRequest { /// /_refresh public RefreshDescriptor() : base(){} - // values part of the url path Indices IRefreshRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public RefreshDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public RefreshDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public RefreshDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public RefreshDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///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 RefreshDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public RefreshDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for IndicesRolloverForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html
public partial class RolloverIndexDescriptor : RequestDescriptorBase, IRolloverIndexRequest { /// /{alias}/_rollover /// this parameter is required public RolloverIndexDescriptor(Name alias) : base(r=>r.Required("alias", alias)){} - // values part of the url path Name IRolloverIndexRequest.Alias => Self.RouteValues.Get("alias"); IndexName IRolloverIndexRequest.NewIndex => Self.RouteValues.Get("new_index"); + ///The name of the rollover index public RolloverIndexDescriptor NewIndex(IndexName newIndex) => Assign(a=>a.RouteValues.Optional("new_index", newIndex)); // Request parameters + ///Explicit operation timeout public RolloverIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///If set to true the rollover action will only be validated but not actually performed even if a condition matches. The default is false @@ -2367,25 +2426,26 @@ public RolloverIndexDescriptor(Name alias) : base(r=>r.Required("alias", alias)) public RolloverIndexDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Set the number of active shards to wait for on the newly created rollover index before the operation returns. public RolloverIndexDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - } - ///descriptor for IndicesSegmentsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html
public partial class SegmentsDescriptor : RequestDescriptorBase, ISegmentsRequest { /// /_segments public SegmentsDescriptor() : base(){} - // values part of the url path Indices ISegmentsRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public SegmentsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SegmentsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public SegmentsDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public SegmentsDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -2394,25 +2454,26 @@ public SegmentsDescriptor() : base(){} public SegmentsDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Includes detailed memory usage by Lucene. public SegmentsDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - } - ///descriptor for IndicesShardStoresForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html
public partial class IndicesShardStoresDescriptor : RequestDescriptorBase, IIndicesShardStoresRequest { /// /_shard_stores public IndicesShardStoresDescriptor() : base(){} - // values part of the url path Indices IIndicesShardStoresRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public IndicesShardStoresDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public IndicesShardStoresDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public IndicesShardStoresDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///A comma-separated list of statuses used to filter on shards to get store information for public IndicesShardStoresDescriptor Status(params string[] status) => Qs("status", status); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2421,9 +2482,7 @@ public IndicesShardStoresDescriptor() : base(){} public IndicesShardStoresDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public IndicesShardStoresDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for IndicesShrink
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html
public partial class ShrinkIndexDescriptor : RequestDescriptorBase, IShrinkIndexRequest { @@ -2431,25 +2490,25 @@ public partial class ShrinkIndexDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public ShrinkIndexDescriptor(IndexName index, IndexName target) : base(r=>r.Required("index", index).Required("target", target)){} - // values part of the url path IndexName IShrinkIndexRequest.Index => Self.RouteValues.Get("index"); IndexName IShrinkIndexRequest.Target => Self.RouteValues.Get("target"); + ///The name of the source index to shrink public ShrinkIndexDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public ShrinkIndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); // Request parameters + ///Explicit operation timeout public ShrinkIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public ShrinkIndexDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Set the number of active shards to wait for on the shrunken index before the operation returns. public ShrinkIndexDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - } - ///descriptor for IndicesSplit
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html
public partial class SplitIndexDescriptor : RequestDescriptorBase, ISplitIndexRequest { @@ -2457,94 +2516,101 @@ public partial class SplitIndexDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public SplitIndexDescriptor(IndexName index, IndexName target) : base(r=>r.Required("index", index).Required("target", target)){} - // values part of the url path IndexName ISplitIndexRequest.Index => Self.RouteValues.Get("index"); IndexName ISplitIndexRequest.Target => Self.RouteValues.Get("target"); + ///The name of the source index to split public SplitIndexDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SplitIndexDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); // Request parameters + ///Explicit operation timeout public SplitIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public SplitIndexDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Set the number of active shards to wait for on the shrunken index before the operation returns. public SplitIndexDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - } - ///descriptor for IndicesStatsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html
public partial class IndicesStatsDescriptor : RequestDescriptorBase, IIndicesStatsRequest { /// /_stats public IndicesStatsDescriptor() : base(){} - // values part of the url path Indices IIndicesStatsRequest.Index => Self.RouteValues.Get("index"); Metrics IIndicesStatsRequest.Metric => Self.RouteValues.Get("metric"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public IndicesStatsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public IndicesStatsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public IndicesStatsDescriptor AllIndices() => this.Index(Indices.All); + ///Limit the information returned the specific metrics. public IndicesStatsDescriptor Metric(IndicesStatsMetric metric) => Assign(a=>a.RouteValues.Optional("metric", (Metrics)metric)); // Request parameters + ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) public IndicesStatsDescriptor CompletionFields(Fields completionFields) => Qs("completion_fields", completionFields); ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) public IndicesStatsDescriptor CompletionFields(params Expression>[] fields) where T : class => Qs("completion_fields", fields?.Select(e=>(Field)e)); + ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) public IndicesStatsDescriptor FielddataFields(Fields fielddataFields) => Qs("fielddata_fields", fielddataFields); ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) public IndicesStatsDescriptor FielddataFields(params Expression>[] fields) where T : class => Qs("fielddata_fields", fields?.Select(e=>(Field)e)); + ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) public IndicesStatsDescriptor Fields(Fields fields) => Qs("fields", fields); ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) public IndicesStatsDescriptor Fields(params Expression>[] fields) where T : class => Qs("fields", fields?.Select(e=>(Field)e)); + ///A comma-separated list of search groups for `search` index metric public IndicesStatsDescriptor Groups(params string[] groups) => Qs("groups", groups); ///Return stats aggregated at cluster, index or shard level public IndicesStatsDescriptor Level(Level? level) => Qs("level", level); ///Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) public IndicesStatsDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - } - ///descriptor for IndicesUpdateAliasesForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
public partial class BulkAliasDescriptor : RequestDescriptorBase, IBulkAliasRequest { // values part of the url path // Request parameters + ///Request timeout public BulkAliasDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public BulkAliasDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for IndicesUpgradeForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html
public partial class UpgradeDescriptor : RequestDescriptorBase, IUpgradeRequest { /// /_upgrade public UpgradeDescriptor() : base(){} - // values part of the url path Indices IUpgradeRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public UpgradeDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public UpgradeDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public UpgradeDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///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 UpgradeDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. @@ -2555,32 +2621,36 @@ public UpgradeDescriptor() : base(){} public UpgradeDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); ///If true, only ancient (an older Lucene major release) segments will be upgraded public UpgradeDescriptor OnlyAncientSegments(bool? onlyAncientSegments = true) => Qs("only_ancient_segments", onlyAncientSegments); - } - ///descriptor for IndicesValidateQueryForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html
public partial class ValidateQueryDescriptor : RequestDescriptorBase,ValidateQueryRequestParameters, IValidateQueryRequest>, IValidateQueryRequest { /// /_validate/query public ValidateQueryDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Required("type", (Types)typeof(T))){} - // values part of the url path Indices IValidateQueryRequest.Index => Self.RouteValues.Get("index"); Types IValidateQueryRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to restrict the operation; use the special string `_all` or Indices.All to perform the operation on all indices public ValidateQueryDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public ValidateQueryDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public ValidateQueryDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types public ValidateQueryDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public ValidateQueryDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public ValidateQueryDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Return detailed information about the error public ValidateQueryDescriptor Explain(bool? explain = true) => Qs("explain", explain); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2605,123 +2675,117 @@ public ValidateQueryDescriptor() : base(r=> r.Required("index", (Indices)typeof( public ValidateQueryDescriptor Rewrite(bool? rewrite = true) => Qs("rewrite", rewrite); ///Execute validation on all shards instead of one random shard per index public ValidateQueryDescriptor AllShards(bool? allShards = true) => Qs("all_shards", allShards); - } - ///descriptor for Info
http://www.elastic.co/guide/
public partial class RootNodeInfoDescriptor : RequestDescriptorBase, IRootNodeInfoRequest { // values part of the url path // Request parameters - + } - ///descriptor for IngestDeletePipeline
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class DeletePipelineDescriptor : RequestDescriptorBase, IDeletePipelineRequest { /// /_ingest/pipeline/{id} /// this parameter is required public DeletePipelineDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IDeletePipelineRequest.Id => Self.RouteValues.Get("id"); // Request parameters + ///Explicit operation timeout for connection to master node public DeletePipelineDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Explicit operation timeout public DeletePipelineDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for IngestGetPipeline
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class GetPipelineDescriptor : RequestDescriptorBase, IGetPipelineRequest { /// /_ingest/pipeline public GetPipelineDescriptor() : base(){} - // values part of the url path Id IGetPipelineRequest.Id => Self.RouteValues.Get("id"); + ///Comma separated list of pipeline ids. Wildcards supported public GetPipelineDescriptor Id(Id id) => Assign(a=>a.RouteValues.Optional("id", id)); // Request parameters + ///Explicit operation timeout for connection to master node public GetPipelineDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for IngestProcessorGrok
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class GrokProcessorPatternsDescriptor : RequestDescriptorBase, IGrokProcessorPatternsRequest { // values part of the url path // Request parameters - + } - ///descriptor for IngestPutPipeline
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class PutPipelineDescriptor : RequestDescriptorBase, IPutPipelineRequest { /// /_ingest/pipeline/{id} /// this parameter is required public PutPipelineDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IPutPipelineRequest.Id => Self.RouteValues.Get("id"); // Request parameters + ///Explicit operation timeout for connection to master node public PutPipelineDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Explicit operation timeout public PutPipelineDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for IngestSimulate
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class SimulatePipelineDescriptor : RequestDescriptorBase, ISimulatePipelineRequest { /// /_ingest/pipeline/_simulate public SimulatePipelineDescriptor() : base(){} - // values part of the url path Id ISimulatePipelineRequest.Id => Self.RouteValues.Get("id"); + ///Pipeline ID public SimulatePipelineDescriptor Id(Id id) => Assign(a=>a.RouteValues.Optional("id", id)); // Request parameters + ///Verbose mode. Display data output for each processor in executed pipeline public SimulatePipelineDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - } - ///descriptor for Mget
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html
public partial class MultiGetDescriptor : RequestDescriptorBase, IMultiGetRequest { /// /_mget public MultiGetDescriptor() : base(){} - // values part of the url path IndexName IMultiGetRequest.Index => Self.RouteValues.Get("index"); TypeName IMultiGetRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public MultiGetDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public MultiGetDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (IndexName)typeof(TOther))); + ///The type of the document public MultiGetDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public MultiGetDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (TypeName)typeof(TOther))); // Request parameters + ///Specify the node or shard the operation should be performed on (default: random) public MultiGetDescriptor Preference(string preference) => Qs("preference", preference); ///Specify whether to perform the operation in realtime or search mode public MultiGetDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); ///Refresh the shard containing the document before performing the operation public MultiGetDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -2735,36 +2799,42 @@ public MultiGetDescriptor() : base(){} public MultiGetDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public MultiGetDescriptor SourceExclude(params Expression>[] fields) where T : class => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public MultiGetDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public MultiGetDescriptor SourceInclude(params Expression>[] fields) where T : class => Qs("_source_include", fields?.Select(e=>(Field)e)); - + } - ///descriptor for Msearch
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html
public partial class MultiSearchDescriptor : RequestDescriptorBase, IMultiSearchRequest { /// /_msearch public MultiSearchDescriptor(){} - // values part of the url path Indices IMultiSearchRequest.Index => Self.RouteValues.Get("index"); Types IMultiSearchRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to use as default public MultiSearchDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public MultiSearchDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public MultiSearchDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to use as default public MultiSearchDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public MultiSearchDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public MultiSearchDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Search operation type public MultiSearchDescriptor SearchType(SearchType? searchType) => Qs("search_type", searchType); ///Controls the maximum number of concurrent searches the multi search api will execute @@ -2773,60 +2843,66 @@ public MultiSearchDescriptor(){} public MultiSearchDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); ///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? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); - } - ///descriptor for MsearchTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html
public partial class MultiSearchTemplateDescriptor : RequestDescriptorBase, IMultiSearchTemplateRequest { /// /_msearch/template public MultiSearchTemplateDescriptor(){} - // values part of the url path Indices IMultiSearchTemplateRequest.Index => Self.RouteValues.Get("index"); Types IMultiSearchTemplateRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to use as default public MultiSearchTemplateDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public MultiSearchTemplateDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public MultiSearchTemplateDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to use as default public MultiSearchTemplateDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public MultiSearchTemplateDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public MultiSearchTemplateDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Search operation type public MultiSearchTemplateDescriptor SearchType(SearchType? searchType) => Qs("search_type", searchType); ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public MultiSearchTemplateDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); ///Controls the maximum number of concurrent searches the multi search api will execute public MultiSearchTemplateDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); - } - ///descriptor for Mtermvectors
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html
public partial class MultiTermVectorsDescriptor : RequestDescriptorBase, IMultiTermVectorsRequest { /// /_mtermvectors public MultiTermVectorsDescriptor() : base(){} - // values part of the url path IndexName IMultiTermVectorsRequest.Index => Self.RouteValues.Get("index"); TypeName IMultiTermVectorsRequest.Type => Self.RouteValues.Get("type"); + ///The index in which the document resides. public MultiTermVectorsDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public MultiTermVectorsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (IndexName)typeof(TOther))); + ///The type of the document. public MultiTermVectorsDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public MultiTermVectorsDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (TypeName)typeof(TOther))); // Request parameters + ///Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". public MultiTermVectorsDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); ///Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". @@ -2835,6 +2911,7 @@ public MultiTermVectorsDescriptor() : base(){} public MultiTermVectorsDescriptor Fields(Fields fields) => Qs("fields", fields); ///A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". public MultiTermVectorsDescriptor Fields(params Expression>[] fields) where T : class => Qs("fields", fields?.Select(e=>(Field)e)); + ///Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". public MultiTermVectorsDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); ///Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". @@ -2843,7 +2920,7 @@ public MultiTermVectorsDescriptor() : base(){} public MultiTermVectorsDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); ///Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs". public MultiTermVectorsDescriptor Preference(string preference) => Qs("preference", preference); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -2860,21 +2937,20 @@ public MultiTermVectorsDescriptor() : base(){} public MultiTermVectorsDescriptor Version(long? version) => Qs("version", version); ///Specific version type public MultiTermVectorsDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for NodesHotThreadsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html
public partial class NodesHotThreadsDescriptor : RequestDescriptorBase, INodesHotThreadsRequest { /// /_cluster/nodes/hotthreads public NodesHotThreadsDescriptor() : base(){} - // values part of the url path NodeIds INodesHotThreadsRequest.NodeId => Self.RouteValues.Get("node_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 NodesHotThreadsDescriptor NodeId(NodeIds nodeId) => Assign(a=>a.RouteValues.Optional("node_id", nodeId)); // Request parameters + ///The interval for the second sampling of threads public NodesHotThreadsDescriptor Interval(Time interval) => Qs("interval", interval); ///Number of samples of thread stacktrace (default: 10) @@ -2887,61 +2963,65 @@ public NodesHotThreadsDescriptor() : base(){} public NodesHotThreadsDescriptor ThreadType(ThreadType? threadType) => Qs("type", threadType); ///Explicit operation timeout public NodesHotThreadsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for NodesInfoForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html
public partial class NodesInfoDescriptor : RequestDescriptorBase, INodesInfoRequest { /// /_nodes public NodesInfoDescriptor() : base(){} - // values part of the url path NodeIds INodesInfoRequest.NodeId => Self.RouteValues.Get("node_id"); Metrics INodesInfoRequest.Metric => Self.RouteValues.Get("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 NodesInfoDescriptor NodeId(NodeIds nodeId) => Assign(a=>a.RouteValues.Optional("node_id", nodeId)); + ///A comma-separated list of metrics you wish returned. Leave empty to return all. public NodesInfoDescriptor Metric(NodesInfoMetric metric) => Assign(a=>a.RouteValues.Optional("metric", (Metrics)metric)); // Request parameters + ///Return settings in flat format (default: false) public NodesInfoDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); ///Explicit operation timeout public NodesInfoDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for NodesStatsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html
public partial class NodesStatsDescriptor : RequestDescriptorBase, INodesStatsRequest { /// /_nodes/stats public NodesStatsDescriptor() : base(){} - // values part of the url path Metrics INodesStatsRequest.Metric => Self.RouteValues.Get("metric"); IndexMetrics INodesStatsRequest.IndexMetric => Self.RouteValues.Get("index_metric"); NodeIds INodesStatsRequest.NodeId => Self.RouteValues.Get("node_id"); + ///Limit the information returned to the specified metrics public NodesStatsDescriptor Metric(NodesStatsMetric metric) => Assign(a=>a.RouteValues.Optional("metric", (Metrics)metric)); + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. public NodesStatsDescriptor IndexMetric(NodesStatsIndexMetric indexMetric) => Assign(a=>a.RouteValues.Optional("index_metric", (IndexMetrics)indexMetric)); + ///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 NodesStatsDescriptor NodeId(NodeIds nodeId) => Assign(a=>a.RouteValues.Optional("node_id", nodeId)); // Request parameters + ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) public NodesStatsDescriptor CompletionFields(Fields completionFields) => Qs("completion_fields", completionFields); ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) public NodesStatsDescriptor CompletionFields(params Expression>[] fields) where T : class => Qs("completion_fields", fields?.Select(e=>(Field)e)); + ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) public NodesStatsDescriptor FielddataFields(Fields fielddataFields) => Qs("fielddata_fields", fielddataFields); ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) public NodesStatsDescriptor FielddataFields(params Expression>[] fields) where T : class => Qs("fielddata_fields", fields?.Select(e=>(Field)e)); + ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) public NodesStatsDescriptor Fields(Fields fields) => Qs("fields", fields); ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) public NodesStatsDescriptor Fields(params Expression>[] fields) where T : class => Qs("fields", fields?.Select(e=>(Field)e)); + ///A comma-separated list of search groups for `search` index metric public NodesStatsDescriptor Groups(bool? groups = true) => Qs("groups", groups); ///Return indices stats aggregated at index, node or shard level @@ -2952,65 +3032,62 @@ public NodesStatsDescriptor() : base(){} public NodesStatsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) public NodesStatsDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - } - ///descriptor for NodesUsageForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html
public partial class NodesUsageDescriptor : RequestDescriptorBase, INodesUsageRequest { /// /_nodes/usage public NodesUsageDescriptor() : base(){} - // values part of the url path Metrics INodesUsageRequest.Metric => Self.RouteValues.Get("metric"); NodeIds INodesUsageRequest.NodeId => Self.RouteValues.Get("node_id"); + ///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)); // Request parameters + ///Explicit operation timeout public NodesUsageDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for Ping
http://www.elastic.co/guide/
public partial class PingDescriptor : RequestDescriptorBase, IPingRequest { // values part of the url path // Request parameters - + } - ///descriptor for PutScript
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
public partial class PutScriptDescriptor : RequestDescriptorBase, IPutScriptRequest { /// /_scripts/{id} /// this parameter is required public PutScriptDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IPutScriptRequest.Id => Self.RouteValues.Get("id"); Name IPutScriptRequest.Context => Self.RouteValues.Get("context"); + ///Script context public PutScriptDescriptor Context(Name context) => Assign(a=>a.RouteValues.Optional("context", context)); // Request parameters + ///Explicit operation timeout public PutScriptDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Specify timeout for connection to master public PutScriptDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for Reindex
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html
public partial class ReindexOnServerDescriptor : RequestDescriptorBase, IReindexOnServerRequest { // values part of the url path // Request parameters + ///Should the effected indexes be refreshed? public ReindexOnServerDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); ///Time each individual bulk request should wait for shards that are unavailable. @@ -3025,75 +3102,82 @@ public partial class ReindexOnServerDescriptor : RequestDescriptorBase Qs("slices", slices); ///Specify how long a consistent view of the index should be maintained for scrolled search public ReindexOnServerDescriptor Scroll(Time scroll) => Qs("scroll", scroll); - } - ///descriptor for ReindexRethrottle
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html
public partial class ReindexRethrottleDescriptor : RequestDescriptorBase, IReindexRethrottleRequest { /// /_reindex/{task_id}/_rethrottle /// this parameter is required public ReindexRethrottleDescriptor(TaskId task_id) : base(r=>r.Required("task_id", task_id)){} - // values part of the url path TaskId IReindexRethrottleRequest.TaskId => Self.RouteValues.Get("task_id"); // Request parameters + ///The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. public ReindexRethrottleDescriptor RequestsPerSecond(long? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - } - ///descriptor for RenderSearchTemplate
http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html
public partial class RenderSearchTemplateDescriptor : RequestDescriptorBase, IRenderSearchTemplateRequest { /// /_render/template public RenderSearchTemplateDescriptor() : base(){} - // values part of the url path Id IRenderSearchTemplateRequest.Id => Self.RouteValues.Get("id"); + ///The id of the stored search template public RenderSearchTemplateDescriptor Id(Id id) => Assign(a=>a.RouteValues.Optional("id", id)); // Request parameters - + + } + ///descriptor for ScriptsPainlessExecute
https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html
+ public partial class ExecutePainlessScriptDescriptor : RequestDescriptorBase, IExecutePainlessScriptRequest + { + // values part of the url path + + // Request parameters + } - ///descriptor for Scroll
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html
public partial class ScrollDescriptor : RequestDescriptorBase,ScrollRequestParameters, IScrollRequest>, IScrollRequest { /// /_search/scroll public ScrollDescriptor() : base(){} - // values part of the url path // Request parameters - + } - ///descriptor for Search
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html
public partial class SearchDescriptor : RequestDescriptorBase,SearchRequestParameters, ISearchRequest>, ISearchRequest { /// /_search public SearchDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Required("type", (Types)typeof(T))){} - // values part of the url path Indices ISearchRequest.Index => Self.RouteValues.Get("index"); Types ISearchRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices public SearchDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SearchDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public SearchDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to search; leave empty to perform the operation on all types public SearchDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public SearchDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public SearchDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///The analyzer to use for the query string public SearchDescriptor Analyzer(string analyzer) => Qs("analyzer", analyzer); ///Specify whether wildcard and prefix queries should be analyzed (default: false) @@ -3112,7 +3196,7 @@ public SearchDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Req public SearchDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); ///Specify the node or shard the operation should be performed on (default: random) public SearchDescriptor Preference(string preference) => Qs("preference", preference); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -3128,7 +3212,6 @@ public SearchDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Req public SearchDescriptor Stats(params string[] stats) => Qs("stats", stats); ///Specify which field to use for suggestions public SearchDescriptor SuggestField(Field suggestField) => Qs("suggest_field", suggestField); - ///Specify which field to use for suggestions public SearchDescriptor SuggestField(Expression> field) => Qs("suggest_field", (Field)field); ///Specify suggest mode @@ -3139,6 +3222,8 @@ public SearchDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Req public SearchDescriptor SuggestText(string suggestText) => Qs("suggest_text", suggestText); ///Indicate if the number of documents that match the query should be tracked public SearchDescriptor TrackTotalHits(bool? trackTotalHits = true) => Qs("track_total_hits", trackTotalHits); + ///Indicate if an error should be returned if there is a partial search failure or timeout + public SearchDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public SearchDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); ///Specify if request cache should be used for this request or not, defaults to index level setting @@ -3149,28 +3234,29 @@ public SearchDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Req public SearchDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); ///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? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); - } - ///descriptor for SearchShards
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html
public partial class SearchShardsDescriptor : RequestDescriptorBase,SearchShardsRequestParameters, ISearchShardsRequest>, ISearchShardsRequest { /// /_search_shards. Will infer the index from the generic type public SearchShardsDescriptor() : base(r => r.Optional("index", (Indices)typeof(T))){} - // values part of the url path Indices ISearchShardsRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices public SearchShardsDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SearchShardsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public SearchShardsDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///Specify the node or shard the operation should be performed on (default: random) public SearchShardsDescriptor Preference(string preference) => Qs("preference", preference); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -3186,32 +3272,36 @@ public SearchShardsDescriptor() : base(r => r.Optional("index", (Indices)typeof( public SearchShardsDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public SearchShardsDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); - } - ///descriptor for SearchTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html
public partial class SearchTemplateDescriptor : RequestDescriptorBase,SearchTemplateRequestParameters, ISearchTemplateRequest>, ISearchTemplateRequest { /// /_search/template public SearchTemplateDescriptor() : base(r=> r.Required("index", (Indices)typeof(T)).Required("type", (Types)typeof(T))){} - // values part of the url path Indices ISearchTemplateRequest.Index => Self.RouteValues.Get("index"); Types ISearchTemplateRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices public SearchTemplateDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public SearchTemplateDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public SearchTemplateDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to search; leave empty to perform the operation on all types public SearchTemplateDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public SearchTemplateDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public SearchTemplateDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public SearchTemplateDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) @@ -3220,7 +3310,7 @@ public SearchTemplateDescriptor() : base(r=> r.Required("index", (Indices)typeof public SearchTemplateDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Specify the node or shard the operation should be performed on (default: random) public SearchTemplateDescriptor Preference(string preference) => Qs("preference", preference); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -3238,9 +3328,7 @@ public SearchTemplateDescriptor() : base(r=> r.Required("index", (Indices)typeof public SearchTemplateDescriptor Profile(bool? profile = true) => Qs("profile", profile); ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public SearchTemplateDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - } - ///descriptor for SnapshotCreate
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class SnapshotDescriptor : RequestDescriptorBase, ISnapshotRequest { @@ -3248,39 +3336,35 @@ public partial class SnapshotDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public SnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} - // values part of the url path Name ISnapshotRequest.RepositoryName => Self.RouteValues.Get("repository"); Name ISnapshotRequest.Snapshot => Self.RouteValues.Get("snapshot"); // Request parameters + ///Explicit operation timeout for connection to master node public SnapshotDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Should this request wait until the operation has completed before returning public SnapshotDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - } - ///descriptor for SnapshotCreateRepository
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class CreateRepositoryDescriptor : RequestDescriptorBase, ICreateRepositoryRequest { /// /_snapshot/{repository} /// this parameter is required public CreateRepositoryDescriptor(Name repository) : base(r=>r.Required("repository", repository)){} - // values part of the url path Name ICreateRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); // Request parameters + ///Explicit operation timeout for connection to master node public CreateRepositoryDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Explicit operation timeout public CreateRepositoryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Whether to verify the repository after creation public CreateRepositoryDescriptor Verify(bool? verify = true) => Qs("verify", verify); - } - ///descriptor for SnapshotDelete
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class DeleteSnapshotDescriptor : RequestDescriptorBase, IDeleteSnapshotRequest { @@ -3288,35 +3372,31 @@ public partial class DeleteSnapshotDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public DeleteSnapshotDescriptor(Name repository, Name snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} - // values part of the url path Name IDeleteSnapshotRequest.RepositoryName => Self.RouteValues.Get("repository"); Name IDeleteSnapshotRequest.Snapshot => Self.RouteValues.Get("snapshot"); // Request parameters + ///Explicit operation timeout for connection to master node public DeleteSnapshotDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for SnapshotDeleteRepository
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class DeleteRepositoryDescriptor : RequestDescriptorBase, IDeleteRepositoryRequest { /// /_snapshot/{repository} /// this parameter is required public DeleteRepositoryDescriptor(Names repository) : base(r=>r.Required("repository", repository)){} - // values part of the url path Names IDeleteRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); // Request parameters + ///Explicit operation timeout for connection to master node public DeleteRepositoryDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Explicit operation timeout public DeleteRepositoryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for SnapshotGet
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class GetSnapshotDescriptor : RequestDescriptorBase, IGetSnapshotRequest { @@ -3324,40 +3404,37 @@ public partial class GetSnapshotDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public GetSnapshotDescriptor(Name repository, Names snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} - // values part of the url path Name IGetSnapshotRequest.RepositoryName => Self.RouteValues.Get("repository"); Names IGetSnapshotRequest.Snapshot => Self.RouteValues.Get("snapshot"); // Request parameters + ///Explicit operation timeout for connection to master node public GetSnapshotDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown public GetSnapshotDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); ///Whether to show verbose snapshot info or only show the basic info found in the repository index blob public GetSnapshotDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - } - ///descriptor for SnapshotGetRepository
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class GetRepositoryDescriptor : RequestDescriptorBase, IGetRepositoryRequest { /// /_snapshot public GetRepositoryDescriptor() : base(){} - // values part of the url path Names IGetRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); + ///A comma-separated list of repository names public GetRepositoryDescriptor RepositoryName(Names repository) => Assign(a=>a.RouteValues.Optional("repository", repository)); // Request parameters + ///Explicit operation timeout for connection to master node public GetRepositoryDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Return local information, do not retrieve the state from master node (default: false) public GetRepositoryDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for SnapshotRestore
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class RestoreDescriptor : RequestDescriptorBase, IRestoreRequest { @@ -3365,121 +3442,116 @@ public partial class RestoreDescriptor : RequestDescriptorBase this parameter is required /// this parameter is required public RestoreDescriptor(Name repository, Name snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} - // values part of the url path Name IRestoreRequest.RepositoryName => Self.RouteValues.Get("repository"); Name IRestoreRequest.Snapshot => Self.RouteValues.Get("snapshot"); // Request parameters + ///Explicit operation timeout for connection to master node public RestoreDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Should this request wait until the operation has completed before returning public RestoreDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - } - ///descriptor for SnapshotStatus
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class SnapshotStatusDescriptor : RequestDescriptorBase, ISnapshotStatusRequest { /// /_snapshot/_status public SnapshotStatusDescriptor() : base(){} - // values part of the url path Name ISnapshotStatusRequest.RepositoryName => Self.RouteValues.Get("repository"); Names ISnapshotStatusRequest.Snapshot => Self.RouteValues.Get("snapshot"); + ///A repository name public SnapshotStatusDescriptor RepositoryName(Name repository) => Assign(a=>a.RouteValues.Optional("repository", repository)); + ///A comma-separated list of snapshot names public SnapshotStatusDescriptor Snapshot(Names snapshot) => Assign(a=>a.RouteValues.Optional("snapshot", snapshot)); // Request parameters + ///Explicit operation timeout for connection to master node public SnapshotStatusDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown public SnapshotStatusDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - } - ///descriptor for SnapshotVerifyRepository
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class VerifyRepositoryDescriptor : RequestDescriptorBase, IVerifyRepositoryRequest { /// /_snapshot/{repository}/_verify /// this parameter is required public VerifyRepositoryDescriptor(Name repository) : base(r=>r.Required("repository", repository)){} - // values part of the url path Name IVerifyRepositoryRequest.RepositoryName => Self.RouteValues.Get("repository"); // Request parameters + ///Explicit operation timeout for connection to master node public VerifyRepositoryDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Explicit operation timeout public VerifyRepositoryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for TasksCancel
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class CancelTasksDescriptor : RequestDescriptorBase, ICancelTasksRequest { /// /_tasks/_cancel public CancelTasksDescriptor() : base(){} - // values part of the url path TaskId ICancelTasksRequest.TaskId => Self.RouteValues.Get("task_id"); + ///Cancel the task with specified task id (node_id:task_number) public CancelTasksDescriptor TaskId(TaskId taskId) => Assign(a=>a.RouteValues.Optional("task_id", taskId)); // Request parameters + ///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 Nodes(params string[] nodes) => Qs("nodes", nodes); ///A comma-separated list of actions that should be cancelled. Leave empty to cancel all. public CancelTasksDescriptor Actions(params string[] actions) => Qs("actions", actions); - ///Cancel tasks with specified parent node. - public CancelTasksDescriptor ParentNode(string parentNode) => Qs("parent_node", parentNode); ///Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. public CancelTasksDescriptor ParentTaskId(string parentTaskId) => Qs("parent_task_id", parentTaskId); - } - ///descriptor for TasksGet
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class GetTaskDescriptor : RequestDescriptorBase, IGetTaskRequest { /// /_tasks/{task_id} /// this parameter is required public GetTaskDescriptor(TaskId task_id) : base(r=>r.Required("task_id", task_id)){} - // values part of the url path TaskId IGetTaskRequest.TaskId => Self.RouteValues.Get("task_id"); // Request parameters + ///Wait for the matching tasks to complete (default: false) public GetTaskDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - + ///Explicit operation timeout + public GetTaskDescriptor Timeout(Time timeout) => Qs("timeout", timeout); } - ///descriptor for TasksList
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class ListTasksDescriptor : RequestDescriptorBase, IListTasksRequest { // values part of the url path // Request parameters + ///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 ListTasksDescriptor Nodes(params string[] nodes) => Qs("nodes", nodes); ///A comma-separated list of actions that should be returned. Leave empty to return all. public ListTasksDescriptor Actions(params string[] actions) => Qs("actions", actions); ///Return detailed task information (default: false) public ListTasksDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); - ///Return tasks with specified parent node. - public ListTasksDescriptor ParentNode(string parentNode) => Qs("parent_node", parentNode); ///Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. public ListTasksDescriptor ParentTaskId(string parentTaskId) => Qs("parent_task_id", parentTaskId); ///Wait for the matching tasks to complete (default: false) public ListTasksDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); ///Group tasks by nodes or parent/child relationships public ListTasksDescriptor GroupBy(GroupBy? groupBy) => Qs("group_by", groupBy); - + ///Explicit operation timeout + public ListTasksDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + ///Return tasks with the specified parent node + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public ListTasksDescriptor ParentNode(string parentNode) => Qs("parent_node", parentNode); } - ///descriptor for Termvectors
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html
public partial class TermVectorsDescriptor : RequestDescriptorBase,TermVectorsRequestParameters, ITermVectorsRequest>, ITermVectorsRequest { @@ -3488,29 +3560,33 @@ public partial class TermVectorsDescriptor : RequestDescriptorBase this parameter is required public TermVectorsDescriptor(IndexName index, TypeName type) : base(r=>r.Required("index", index).Required("type", type)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(TDocument document); - // values part of the url path IndexName ITermVectorsRequest.Index => Self.RouteValues.Get("index"); TypeName ITermVectorsRequest.Type => Self.RouteValues.Get("type"); Id ITermVectorsRequest.Id => Self.RouteValues.Get("id"); + ///The index in which the document resides. public TermVectorsDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public TermVectorsDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document. public TermVectorsDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public TermVectorsDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); + ///The id of the document, when not specified a doc param should be supplied. public TermVectorsDescriptor Id(Id id) => Assign(a=>a.RouteValues.Optional("id", id)); // Request parameters + ///Specifies if total term frequency and document frequency should be returned. public TermVectorsDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); ///Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. @@ -3519,6 +3595,7 @@ public TermVectorsDescriptor(DocumentPath document) : base(r=>r.Requi public TermVectorsDescriptor Fields(Fields fields) => Qs("fields", fields); ///A comma-separated list of fields to return. public TermVectorsDescriptor Fields(params Expression>[] fields) => Qs("fields", fields?.Select(e=>(Field)e)); + ///Specifies if term offsets should be returned. public TermVectorsDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); ///Specifies if term positions should be returned. @@ -3527,7 +3604,7 @@ public TermVectorsDescriptor(DocumentPath document) : base(r=>r.Requi public TermVectorsDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); ///Specify the node or shard the operation should be performed on (default: random). public TermVectorsDescriptor Preference(string preference) => Qs("preference", preference); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -3544,9 +3621,7 @@ public TermVectorsDescriptor(DocumentPath document) : base(r=>r.Requi public TermVectorsDescriptor Version(long? version) => Qs("version", version); ///Specific version type public TermVectorsDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for Update
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html
public partial class UpdateDescriptor : RequestDescriptorBase,UpdateRequestParameters, IUpdateRequest>, IUpdateRequest { @@ -3556,27 +3631,30 @@ public partial class UpdateDescriptor : RequestDes /// this parameter is required public UpdateDescriptor(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document));} partial void DocumentFromPath(TDocument document); - // values part of the url path Id IUpdateRequest.Id => Self.RouteValues.Get("id"); IndexName IUpdateRequest.Index => Self.RouteValues.Get("index"); TypeName IUpdateRequest.Type => Self.RouteValues.Get("type"); + ///The name of the index public UpdateDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public UpdateDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); + ///The type of the document public UpdateDescriptor Type(TypeName type) => Assign(a=>a.RouteValues.Required("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public UpdateDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Required("type", (TypeName)typeof(TOther))); // Request parameters + ///Sets the number of shard copies that must be active before proceeding with the update operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) public UpdateDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); ///Whether the _source should be included in the response. @@ -3590,7 +3668,7 @@ public UpdateDescriptor(DocumentPath document) : base(r=>r.Required(" public UpdateDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); ///Specify how many times should the operation be retried when a conflict occurs (default: 0) public UpdateDescriptor RetryOnConflict(long? retryOnConflict) => Qs("retry_on_conflict", retryOnConflict); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -3604,33 +3682,37 @@ public UpdateDescriptor(DocumentPath document) : base(r=>r.Required(" public UpdateDescriptor Version(long? version) => Qs("version", version); ///Specific version type public UpdateDescriptor VersionType(VersionType? versionType) => Qs("version_type", versionType); - } - ///descriptor for UpdateByQuery
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html
public partial class UpdateByQueryDescriptor : RequestDescriptorBase,UpdateByQueryRequestParameters, IUpdateByQueryRequest>, IUpdateByQueryRequest { /// /{index}/_update_by_query /// this parameter is required public UpdateByQueryDescriptor(Indices index) : base(r=>r.Required("index", index).Required("type", (Types)typeof(T))){} - // values part of the url path Indices IUpdateByQueryRequest.Index => Self.RouteValues.Get("index"); Types IUpdateByQueryRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices public UpdateByQueryDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public UpdateByQueryDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public UpdateByQueryDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to search; leave empty to perform the operation on all types public UpdateByQueryDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public UpdateByQueryDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public UpdateByQueryDescriptor AllTypes() => this.Type(Types.All); // Request parameters + ///The analyzer to use for the query string public UpdateByQueryDescriptor Analyzer(string analyzer) => Qs("analyzer", analyzer); ///Specify whether wildcard and prefix queries should be analyzed (default: false) @@ -3657,7 +3739,7 @@ public UpdateByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public UpdateByQueryDescriptor Preference(string preference) => Qs("preference", preference); ///Query in the Lucene query string syntax public UpdateByQueryDescriptor QueryOnQueryString(string queryOnQueryString) => Qs("q", queryOnQueryString); - /// + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -3681,10 +3763,12 @@ public UpdateByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public UpdateByQueryDescriptor SourceExclude(Fields sourceExclude) => Qs("_source_exclude", sourceExclude); ///A list of fields to exclude from the returned _source field public UpdateByQueryDescriptor SourceExclude(params Expression>[] fields) => Qs("_source_exclude", fields?.Select(e=>(Field)e)); + ///A list of fields to extract and return from the _source field public UpdateByQueryDescriptor SourceInclude(Fields sourceInclude) => Qs("_source_include", sourceInclude); ///A list of fields to extract and return from the _source field public UpdateByQueryDescriptor SourceInclude(params Expression>[] fields) => Qs("_source_include", fields?.Select(e=>(Field)e)); + ///The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. public UpdateByQueryDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); ///Specific 'tag' of the request for logging and statistical purposes @@ -3701,7 +3785,7 @@ public UpdateByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public UpdateByQueryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); ///Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) public UpdateByQueryDescriptor WaitForActiveShards(string waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the update by query public UpdateByQueryDescriptor ScrollSize(long? scrollSize) => Qs("scroll_size", scrollSize); ///Should the request should block until the update by query operation is complete. public UpdateByQueryDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); @@ -3709,34 +3793,38 @@ public UpdateByQueryDescriptor(Indices index) : base(r=>r.Required("index", inde public UpdateByQueryDescriptor RequestsPerSecond(long? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. public UpdateByQueryDescriptor Slices(long? slices) => Qs("slices", slices); - } - ///descriptor for XpackGraphExplore
https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html
public partial class GraphExploreDescriptor : RequestDescriptorBase,GraphExploreRequestParameters, IGraphExploreRequest>, IGraphExploreRequest { /// /{index}/_xpack/graph/_explore /// this parameter is required public GraphExploreDescriptor(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices IGraphExploreRequest.Index => Self.RouteValues.Get("index"); Types IGraphExploreRequest.Type => Self.RouteValues.Get("type"); + ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices public GraphExploreDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public GraphExploreDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public GraphExploreDescriptor AllIndices() => this.Index(Indices.All); + ///A comma-separated list of document types to search; leave empty to perform the operation on all types public GraphExploreDescriptor Type(Types type) => Assign(a=>a.RouteValues.Optional("type", type)); + ///a shortcut into calling Type(typeof(TOther)) public GraphExploreDescriptor Type() where TOther : class => Assign(a=>a.RouteValues.Optional("type", (Types)typeof(TOther))); + ///a shortcut into calling Type(Types.All) public GraphExploreDescriptor AllTypes() => this.Type(Types.All); // Request parameters - /// + + /// /// A document is routed to a particular shard in an index using the following formula /// shard_num = hash(_routing) % num_primary_shards /// Elasticsearch will use the document id if not provided. @@ -3746,141 +3834,129 @@ public GraphExploreDescriptor(Indices index) : base(r=>r.Required("index", index public GraphExploreDescriptor Routing(Routing routing) => Qs("routing", routing); ///Explicit operation timeout public GraphExploreDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for XpackInfo
https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html
public partial class XPackInfoDescriptor : RequestDescriptorBase, IXPackInfoRequest { // values part of the url path // Request parameters + ///Comma-separated list of info categories. Can be any of: build, license, features public XPackInfoDescriptor Categories(params string[] categories) => Qs("categories", categories); - } - ///descriptor for XpackUsage
Retrieve information about xpack features usage
public partial class XPackUsageDescriptor : RequestDescriptorBase, IXPackUsageRequest { // values part of the url path // Request parameters + ///Specify timeout for watch write operation public XPackUsageDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for XpackLicenseDelete
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class DeleteLicenseDescriptor : RequestDescriptorBase, IDeleteLicenseRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackLicenseGet
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class GetLicenseDescriptor : RequestDescriptorBase, IGetLicenseRequest { // values part of the url path // Request parameters + ///Return local information, do not retrieve the state from master node (default: false) public GetLicenseDescriptor Local(bool? local = true) => Qs("local", local); - } - ///descriptor for XpackLicenseGetTrialStatus
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class GetTrialLicenseStatusDescriptor : RequestDescriptorBase, IGetTrialLicenseStatusRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackLicensePost
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class PostLicenseDescriptor : RequestDescriptorBase, IPostLicenseRequest { // values part of the url path // Request parameters + ///whether the user has acknowledged acknowledge messages (default: false) public PostLicenseDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); - } - ///descriptor for XpackLicensePostStartTrial
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class StartTrialLicenseDescriptor : RequestDescriptorBase, IStartTrialLicenseRequest { // values part of the url path // Request parameters - + + ///The type of trial license to generate (default: "trial") + public StartTrialLicenseDescriptor TypeQueryString(string typeQueryString) => Qs("type", typeQueryString); + ///whether the user has acknowledged acknowledge messages (default: false) + public StartTrialLicenseDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); } - ///descriptor for XpackMlCloseJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html
public partial class CloseJobDescriptor : RequestDescriptorBase, ICloseJobRequest { /// /_xpack/ml/anomaly_detectors/{job_id}/_close /// this parameter is required public CloseJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id ICloseJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters + ///Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) public CloseJobDescriptor AllowNoJobs(bool? allowNoJobs = true) => Qs("allow_no_jobs", allowNoJobs); ///True if the job should be forcefully closed public CloseJobDescriptor Force(bool? force = true) => Qs("force", force); ///Controls the time to wait until a job has closed. Default to 30 minutes public CloseJobDescriptor Timeout(Time timeout) => Qs("timeout", timeout); - } - ///descriptor for XpackMlDeleteDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html
public partial class DeleteDatafeedDescriptor : RequestDescriptorBase, IDeleteDatafeedRequest { /// /_xpack/ml/datafeeds/{datafeed_id} /// this parameter is required public DeleteDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IDeleteDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters + ///True if the datafeed should be forcefully deleted public DeleteDatafeedDescriptor Force(bool? force = true) => Qs("force", force); - } - ///descriptor for XpackMlDeleteExpiredData
public partial class DeleteExpiredDataDescriptor : RequestDescriptorBase, IDeleteExpiredDataRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackMlDeleteJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html
public partial class DeleteJobDescriptor : RequestDescriptorBase, IDeleteJobRequest { /// /_xpack/ml/anomaly_detectors/{job_id} /// this parameter is required public DeleteJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IDeleteJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters + ///True if the job should be forcefully deleted public DeleteJobDescriptor Force(bool? force = true) => Qs("force", force); - } - ///descriptor for XpackMlDeleteModelSnapshot
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
public partial class DeleteModelSnapshotDescriptor : RequestDescriptorBase, IDeleteModelSnapshotRequest { @@ -3888,249 +3964,223 @@ public partial class DeleteModelSnapshotDescriptor : RequestDescriptorBase 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)){} - // values part of the url path Id IDeleteModelSnapshotRequest.JobId => Self.RouteValues.Get("job_id"); Id IDeleteModelSnapshotRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); // Request parameters - + } - ///descriptor for XpackMlFlushJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html
public partial class FlushJobDescriptor : RequestDescriptorBase, IFlushJobRequest { /// /_xpack/ml/anomaly_detectors/{job_id}/_flush /// this parameter is required public FlushJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IFlushJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters + ///Skips time to the given value without generating results or updating the model for the skipped interval public FlushJobDescriptor SkipTime(string skipTime) => Qs("skip_time", skipTime); - } - ///descriptor for XpackMlForecast
public partial class ForecastJobDescriptor : RequestDescriptorBase, IForecastJobRequest { /// /_xpack/ml/anomaly_detectors/{job_id}/_forecast /// this parameter is required public ForecastJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IForecastJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlGetBuckets
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html
public partial class GetBucketsDescriptor : RequestDescriptorBase, IGetBucketsRequest { /// /_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)){} - // values part of the url path Id IGetBucketsRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlGetCategories
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html
public partial class GetCategoriesDescriptor : RequestDescriptorBase, IGetCategoriesRequest { /// /_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)){} - // values part of the url path Id IGetCategoriesRequest.JobId => Self.RouteValues.Get("job_id"); CategoryId IGetCategoriesRequest.CategoryId => Self.RouteValues.Get("category_id"); + ///The identifier of the category definition of interest public GetCategoriesDescriptor CategoryId(CategoryId categoryId) => Assign(a=>a.RouteValues.Optional("category_id", categoryId)); // Request parameters - + } - ///descriptor for XpackMlGetDatafeeds
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html
public partial class GetDatafeedsDescriptor : RequestDescriptorBase, IGetDatafeedsRequest { /// /_xpack/ml/datafeeds/{datafeed_id} public GetDatafeedsDescriptor() : base(){} - // values part of the url path Id IGetDatafeedsRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); + ///The ID of the datafeeds to fetch public GetDatafeedsDescriptor DatafeedId(Id datafeedId) => Assign(a=>a.RouteValues.Optional("datafeed_id", datafeedId)); // Request parameters + ///Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) public GetDatafeedsDescriptor AllowNoDatafeeds(bool? allowNoDatafeeds = true) => Qs("allow_no_datafeeds", allowNoDatafeeds); - } - ///descriptor for XpackMlGetDatafeedStats
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html
public partial class GetDatafeedStatsDescriptor : RequestDescriptorBase, IGetDatafeedStatsRequest { /// /_xpack/ml/datafeeds/{datafeed_id}/_stats public GetDatafeedStatsDescriptor() : base(){} - // values part of the url path Id IGetDatafeedStatsRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); + ///The ID of the datafeeds stats to fetch public GetDatafeedStatsDescriptor DatafeedId(Id datafeedId) => Assign(a=>a.RouteValues.Optional("datafeed_id", datafeedId)); // Request parameters + ///Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) public GetDatafeedStatsDescriptor AllowNoDatafeeds(bool? allowNoDatafeeds = true) => Qs("allow_no_datafeeds", allowNoDatafeeds); - } - ///descriptor for XpackMlGetInfluencers
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html
public partial class GetInfluencersDescriptor : RequestDescriptorBase, IGetInfluencersRequest { /// /_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)){} - // values part of the url path Id IGetInfluencersRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlGetJobs
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html
public partial class GetJobsDescriptor : RequestDescriptorBase, IGetJobsRequest { /// /_xpack/ml/anomaly_detectors/{job_id} public GetJobsDescriptor() : base(){} - // values part of the url path Id IGetJobsRequest.JobId => Self.RouteValues.Get("job_id"); + ///The ID of the jobs to fetch public GetJobsDescriptor JobId(Id jobId) => Assign(a=>a.RouteValues.Optional("job_id", jobId)); // Request parameters + ///Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) public GetJobsDescriptor AllowNoJobs(bool? allowNoJobs = true) => Qs("allow_no_jobs", allowNoJobs); - } - ///descriptor for XpackMlGetJobStats
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html
public partial class GetJobStatsDescriptor : RequestDescriptorBase, IGetJobStatsRequest { /// /_xpack/ml/anomaly_detectors/_stats public GetJobStatsDescriptor() : base(){} - // values part of the url path Id IGetJobStatsRequest.JobId => Self.RouteValues.Get("job_id"); + ///The ID of the jobs stats to fetch public GetJobStatsDescriptor JobId(Id jobId) => Assign(a=>a.RouteValues.Optional("job_id", jobId)); // Request parameters + ///Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) public GetJobStatsDescriptor AllowNoJobs(bool? allowNoJobs = true) => Qs("allow_no_jobs", allowNoJobs); - } - ///descriptor for XpackMlGetModelSnapshots
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html
public partial class GetModelSnapshotsDescriptor : RequestDescriptorBase, IGetModelSnapshotsRequest { /// /_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)){} - // values part of the url path Id IGetModelSnapshotsRequest.JobId => Self.RouteValues.Get("job_id"); Id IGetModelSnapshotsRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); + ///The ID of the snapshot to fetch public GetModelSnapshotsDescriptor SnapshotId(Id snapshotId) => Assign(a=>a.RouteValues.Optional("snapshot_id", snapshotId)); // Request parameters - + } - ///descriptor for XpackMlGetOverallBuckets
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html
public partial class GetOverallBucketsDescriptor : RequestDescriptorBase, IGetOverallBucketsRequest { /// /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets /// this parameter is required public GetOverallBucketsDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IGetOverallBucketsRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlGetRecords
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html
public partial class GetAnomalyRecordsDescriptor : RequestDescriptorBase, IGetAnomalyRecordsRequest { /// /_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)){} - // values part of the url path Id IGetAnomalyRecordsRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlOpenJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html
public partial class OpenJobDescriptor : RequestDescriptorBase, IOpenJobRequest { /// /_xpack/ml/anomaly_detectors/{job_id}/_open /// this parameter is required public OpenJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IOpenJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlPostData
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html
public partial class PostJobDataDescriptor : RequestDescriptorBase, IPostJobDataRequest { /// /_xpack/ml/anomaly_detectors/{job_id}/_data /// this parameter is required public PostJobDataDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IPostJobDataRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters + ///Optional parameter to specify the start of the bucket resetting range public PostJobDataDescriptor ResetStart(DateTimeOffset? resetStart) => Qs("reset_start", resetStart); ///Optional parameter to specify the end of the bucket resetting range public PostJobDataDescriptor ResetEnd(DateTimeOffset? resetEnd) => Qs("reset_end", resetEnd); - } - ///descriptor for XpackMlPreviewDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html
public partial class PreviewDatafeedDescriptor : RequestDescriptorBase, IPreviewDatafeedRequest { /// /_xpack/ml/datafeeds/{datafeed_id}/_preview /// this parameter is required public PreviewDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IPreviewDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters - + } - ///descriptor for XpackMlPutDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html
public partial class PutDatafeedDescriptor : RequestDescriptorBase,PutDatafeedRequestParameters, IPutDatafeedRequest>, IPutDatafeedRequest { @@ -4138,28 +4188,24 @@ public partial class PutDatafeedDescriptor : RequestDescriptorBase 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); } - // values part of the url path Id IPutDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters - + } - ///descriptor for XpackMlPutJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html
public partial class PutJobDescriptor : RequestDescriptorBase,PutJobRequestParameters, IPutJobRequest>, IPutJobRequest { /// /_xpack/ml/anomaly_detectors/{job_id} /// this parameter is required public PutJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IPutJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlRevertModelSnapshot
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html
public partial class RevertModelSnapshotDescriptor : RequestDescriptorBase, IRevertModelSnapshotRequest { @@ -4167,45 +4213,39 @@ public partial class RevertModelSnapshotDescriptor : RequestDescriptorBase 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)){} - // values part of the url path Id IRevertModelSnapshotRequest.JobId => Self.RouteValues.Get("job_id"); Id IRevertModelSnapshotRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); // Request parameters - + } - ///descriptor for XpackMlStartDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html
public partial class StartDatafeedDescriptor : RequestDescriptorBase, IStartDatafeedRequest { /// /_xpack/ml/datafeeds/{datafeed_id}/_start /// this parameter is required public StartDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IStartDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters - + } - ///descriptor for XpackMlStopDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html
public partial class StopDatafeedDescriptor : RequestDescriptorBase, IStopDatafeedRequest { /// /_xpack/ml/datafeeds/{datafeed_id}/_stop /// this parameter is required public StopDatafeedDescriptor(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IStopDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters + ///Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) public StopDatafeedDescriptor AllowNoDatafeeds(bool? allowNoDatafeeds = true) => Qs("allow_no_datafeeds", allowNoDatafeeds); - } - ///descriptor for XpackMlUpdateDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html
public partial class UpdateDatafeedDescriptor : RequestDescriptorBase,UpdateDatafeedRequestParameters, IUpdateDatafeedRequest>, IUpdateDatafeedRequest { @@ -4213,28 +4253,24 @@ public partial class UpdateDatafeedDescriptor : RequestDescriptorBase 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); } - // values part of the url path Id IUpdateDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters - + } - ///descriptor for XpackMlUpdateJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html
public partial class UpdateJobDescriptor : RequestDescriptorBase,UpdateJobRequestParameters, IUpdateJobRequest>, IUpdateJobRequest { /// /_xpack/ml/anomaly_detectors/{job_id}/_update /// this parameter is required public UpdateJobDescriptor(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IUpdateJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters - + } - ///descriptor for XpackMlUpdateModelSnapshot
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html
public partial class UpdateModelSnapshotDescriptor : RequestDescriptorBase, IUpdateModelSnapshotRequest { @@ -4242,501 +4278,459 @@ public partial class UpdateModelSnapshotDescriptor : RequestDescriptorBase 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)){} - // values part of the url path Id IUpdateModelSnapshotRequest.JobId => Self.RouteValues.Get("job_id"); Id IUpdateModelSnapshotRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); // Request parameters - + } - ///descriptor for XpackMlValidate
public partial class ValidateJobDescriptor : RequestDescriptorBase,ValidateJobRequestParameters, IValidateJobRequest>, IValidateJobRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackMlValidateDetector
public partial class ValidateDetectorDescriptor : RequestDescriptorBase,ValidateDetectorRequestParameters, IValidateDetectorRequest>, IValidateDetectorRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackMigrationDeprecations
http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html
public partial class DeprecationInfoDescriptor : RequestDescriptorBase, IDeprecationInfoRequest { /// /_xpack/migration/deprecations public DeprecationInfoDescriptor() : base(){} - // values part of the url path IndexName IDeprecationInfoRequest.Index => Self.RouteValues.Get("index"); + ///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))); // Request parameters - + } - ///descriptor for XpackMigrationGetAssistance
https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html
public partial class MigrationAssistanceDescriptor : RequestDescriptorBase, IMigrationAssistanceRequest { /// /_xpack/migration/assistance public MigrationAssistanceDescriptor() : base(){} - // values part of the url path Indices IMigrationAssistanceRequest.Index => Self.RouteValues.Get("index"); + ///A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices public MigrationAssistanceDescriptor Index(Indices index) => Assign(a=>a.RouteValues.Optional("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public MigrationAssistanceDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Optional("index", (Indices)typeof(TOther))); + ///A shortcut into calling Index(Indices.All) public MigrationAssistanceDescriptor AllIndices() => this.Index(Indices.All); // Request parameters + ///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 MigrationAssistanceDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public MigrationAssistanceDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public MigrationAssistanceDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - } - ///descriptor for XpackMigrationUpgrade
https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html
public partial class MigrationUpgradeDescriptor : RequestDescriptorBase, IMigrationUpgradeRequest { /// /_xpack/migration/upgrade/{index} /// this parameter is required public MigrationUpgradeDescriptor(IndexName index) : base(r=>r.Required("index", index)){} - // values part of the url path IndexName IMigrationUpgradeRequest.Index => Self.RouteValues.Get("index"); + ///The name of the index public MigrationUpgradeDescriptor Index(IndexName index) => Assign(a=>a.RouteValues.Required("index", index)); + ///a shortcut into calling Index(typeof(TOther)) public MigrationUpgradeDescriptor Index() where TOther : class => Assign(a=>a.RouteValues.Required("index", (IndexName)typeof(TOther))); // Request parameters + ///Should the request block until the upgrade operation is completed public MigrationUpgradeDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - } - ///descriptor for XpackSecurityAuthenticate
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html
public partial class AuthenticateDescriptor : RequestDescriptorBase, IAuthenticateRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackSecurityChangePassword
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html
public partial class ChangePasswordDescriptor : RequestDescriptorBase, IChangePasswordRequest { /// /_xpack/security/user/{username}/_password public ChangePasswordDescriptor() : base(){} - // values part of the url path Name IChangePasswordRequest.Username => Self.RouteValues.Get("username"); + ///The username of the user to change the password for public ChangePasswordDescriptor Username(Name username) => Assign(a=>a.RouteValues.Optional("username", username)); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public ChangePasswordDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///descriptor for XpackSecurityClearCachedRealms
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html
public partial class ClearCachedRealmsDescriptor : RequestDescriptorBase, IClearCachedRealmsRequest { /// /_xpack/security/realm/{realms}/_clear_cache /// this parameter is required public ClearCachedRealmsDescriptor(Names realms) : base(r=>r.Required("realms", realms)){} - // values part of the url path Names IClearCachedRealmsRequest.Realms => Self.RouteValues.Get("realms"); // Request parameters + ///Comma-separated list of usernames to clear from the cache public ClearCachedRealmsDescriptor Usernames(params string[] usernames) => Qs("usernames", usernames); - } - ///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 { /// /_xpack/security/role/{name}/_clear_cache /// this parameter is required public ClearCachedRolesDescriptor(Names name) : base(r=>r.Required("name", name)){} - // values part of the url path Names IClearCachedRolesRequest.Name => Self.RouteValues.Get("name"); // Request parameters - + } - ///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 { /// /_xpack/security/role/{name} /// this parameter is required public DeleteRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IDeleteRoleRequest.Name => Self.RouteValues.Get("name"); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DeleteRoleDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///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 { /// /_xpack/security/role_mapping/{name} /// this parameter is required public DeleteRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IDeleteRoleMappingRequest.Name => Self.RouteValues.Get("name"); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DeleteRoleMappingDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///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 { /// /_xpack/security/user/{username} /// this parameter is required public DeleteUserDescriptor(Name username) : base(r=>r.Required("username", username)){} - // values part of the url path Name IDeleteUserRequest.Username => Self.RouteValues.Get("username"); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DeleteUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///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 { /// /_xpack/security/user/{username}/_disable public DisableUserDescriptor() : base(){} - // values part of the url path Name IDisableUserRequest.Username => Self.RouteValues.Get("username"); + ///The username of the user to disable public DisableUserDescriptor Username(Name username) => Assign(a=>a.RouteValues.Optional("username", username)); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public DisableUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///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 { /// /_xpack/security/user/{username}/_enable public EnableUserDescriptor() : base(){} - // values part of the url path Name IEnableUserRequest.Username => Self.RouteValues.Get("username"); + ///The username of the user to enable public EnableUserDescriptor Username(Name username) => Assign(a=>a.RouteValues.Optional("username", username)); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public EnableUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///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 { /// /_xpack/security/role/{name} public GetRoleDescriptor() : base(){} - // values part of the url path Name IGetRoleRequest.Name => Self.RouteValues.Get("name"); + ///Role name public GetRoleDescriptor Name(Name name) => Assign(a=>a.RouteValues.Optional("name", name)); // Request parameters - + } - ///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 { /// /_xpack/security/role_mapping/{name} public GetRoleMappingDescriptor() : base(){} - // values part of the url path Name IGetRoleMappingRequest.Name => Self.RouteValues.Get("name"); + ///Role-Mapping name public GetRoleMappingDescriptor Name(Name name) => Assign(a=>a.RouteValues.Optional("name", name)); // Request parameters - + } - ///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 { // values part of the url path // Request parameters - + } - ///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 { /// /_xpack/security/user/{username} public GetUserDescriptor() : base(){} - // values part of the url path Names IGetUserRequest.Username => Self.RouteValues.Get("username"); + ///A comma-separated list of usernames public GetUserDescriptor Username(Names username) => Assign(a=>a.RouteValues.Optional("username", username)); // Request parameters - + } - ///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 { // values part of the url path // Request parameters - + } - ///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 { /// /_xpack/security/role/{name} /// this parameter is required public PutRoleDescriptor(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IPutRoleRequest.Name => Self.RouteValues.Get("name"); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public PutRoleDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///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 { /// /_xpack/security/role_mapping/{name} /// this parameter is required public PutRoleMappingDescriptor(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IPutRoleMappingRequest.Name => Self.RouteValues.Get("name"); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public PutRoleMappingDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///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 { /// /_xpack/security/user/{username} /// this parameter is required public PutUserDescriptor(Name username) : base(r=>r.Required("username", username)){} - // values part of the url path Name IPutUserRequest.Username => Self.RouteValues.Get("username"); // Request parameters + ///If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. public PutUserDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); - } - ///descriptor for XpackWatcherAckWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html
public partial class AcknowledgeWatchDescriptor : RequestDescriptorBase, IAcknowledgeWatchRequest { /// /_xpack/watcher/watch/{watch_id}/_ack /// this parameter is required public AcknowledgeWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} - // values part of the url path Id IAcknowledgeWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); ActionIds IAcknowledgeWatchRequest.ActionId => Self.RouteValues.Get("action_id"); + ///A comma-separated list of the action ids to be acked public AcknowledgeWatchDescriptor ActionId(ActionIds actionId) => Assign(a=>a.RouteValues.Optional("action_id", actionId)); // Request parameters + ///Explicit operation timeout for connection to master node public AcknowledgeWatchDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for XpackWatcherActivateWatch
https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html
public partial class ActivateWatchDescriptor : RequestDescriptorBase, IActivateWatchRequest { /// /_xpack/watcher/watch/{watch_id}/_activate /// this parameter is required public ActivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} - // values part of the url path Id IActivateWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); // Request parameters + ///Explicit operation timeout for connection to master node public ActivateWatchDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for XpackWatcherDeactivateWatch
https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html
public partial class DeactivateWatchDescriptor : RequestDescriptorBase, IDeactivateWatchRequest { /// /_xpack/watcher/watch/{watch_id}/_deactivate /// this parameter is required public DeactivateWatchDescriptor(Id watch_id) : base(r=>r.Required("watch_id", watch_id)){} - // values part of the url path Id IDeactivateWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); // Request parameters + ///Explicit operation timeout for connection to master node public DeactivateWatchDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for XpackWatcherDeleteWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html
public partial class DeleteWatchDescriptor : RequestDescriptorBase, IDeleteWatchRequest { /// /_xpack/watcher/watch/{id} /// this parameter is required public DeleteWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IDeleteWatchRequest.Id => Self.RouteValues.Get("id"); // Request parameters + ///Explicit operation timeout for connection to master node public DeleteWatchDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); - } - ///descriptor for XpackWatcherExecuteWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html
public partial class ExecuteWatchDescriptor : RequestDescriptorBase, IExecuteWatchRequest { /// /_xpack/watcher/watch/{id}/_execute public ExecuteWatchDescriptor() : base(){} - // values part of the url path Id IExecuteWatchRequest.Id => Self.RouteValues.Get("id"); + ///Watch ID public ExecuteWatchDescriptor Id(Id id) => Assign(a=>a.RouteValues.Optional("id", id)); // Request parameters + ///indicates whether the watch should execute in debug mode public ExecuteWatchDescriptor Debug(bool? debug = true) => Qs("debug", debug); - } - ///descriptor for XpackWatcherGetWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html
public partial class GetWatchDescriptor : RequestDescriptorBase, IGetWatchRequest { /// /_xpack/watcher/watch/{id} /// this parameter is required public GetWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IGetWatchRequest.Id => Self.RouteValues.Get("id"); // Request parameters - + } - ///descriptor for XpackWatcherPutWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html
public partial class PutWatchDescriptor : RequestDescriptorBase, IPutWatchRequest { /// /_xpack/watcher/watch/{id} /// this parameter is required public PutWatchDescriptor(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IPutWatchRequest.Id => Self.RouteValues.Get("id"); // Request parameters + ///Explicit operation timeout for connection to master node public PutWatchDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Specify whether the watch is in/active by default public PutWatchDescriptor Active(bool? active = true) => Qs("active", active); - + ///Explicit version number for concurrency control + public PutWatchDescriptor Version(long? version) => Qs("version", version); } - ///descriptor for XpackWatcherRestart
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html
public partial class RestartWatcherDescriptor : RequestDescriptorBase, IRestartWatcherRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackWatcherStart
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html
public partial class StartWatcherDescriptor : RequestDescriptorBase, IStartWatcherRequest { // values part of the url path // Request parameters - + } - ///descriptor for XpackWatcherStats
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html
public partial class WatcherStatsDescriptor : RequestDescriptorBase, IWatcherStatsRequest { /// /_xpack/watcher/stats public WatcherStatsDescriptor() : base(){} - // values part of the url path Metrics IWatcherStatsRequest.WatcherStatsMetric => Self.RouteValues.Get("watcher_stats_metric"); + ///Controls what additional stat metrics should be include in the response public WatcherStatsDescriptor WatcherStatsMetric(WatcherStatsMetric watcherStatsMetric) => Assign(a=>a.RouteValues.Optional("watcher_stats_metric", (Metrics)watcherStatsMetric)); // Request parameters + ///Emits stack traces of currently running watches public WatcherStatsDescriptor EmitStacktraces(bool? emitStacktraces = true) => Qs("emit_stacktraces", emitStacktraces); - } - ///descriptor for XpackWatcherStop
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html
public partial class StopWatcherDescriptor : RequestDescriptorBase, IStopWatcherRequest { // values part of the url path // Request parameters - - } -} \ No newline at end of file + + }} \ No newline at end of file diff --git a/src/Nest/_Generated/_LowLevelDispatch.generated.cs b/src/Nest/_Generated/_LowLevelDispatch.generated.cs index 6cb44f3bba0..609af3e7ac8 100644 --- a/src/Nest/_Generated/_LowLevelDispatch.generated.cs +++ b/src/Nest/_Generated/_LowLevelDispatch.generated.cs @@ -10,7 +10,6 @@ //This file is automatically generated from https://github.com/elastic/elasticsearch/tree/master/rest-api-spec - namespace Nest { ///This dispatches highlevel requests into the proper lowlevel client overload method @@ -24,13 +23,11 @@ internal partial class LowLevelDispatch case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Bulk(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.Bulk(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.Bulk(body,p.RequestParameters); - + return _lowLevel.Bulk(body,p.RequestParameters); case PUT: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.BulkPut(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.BulkPut(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.BulkPut(body,p.RequestParameters); - + return _lowLevel.BulkPut(body,p.RequestParameters); } throw InvalidDispatch("Bulk", p, new [] { POST, PUT }, "/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"); } @@ -42,13 +39,11 @@ internal partial class LowLevelDispatch case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.BulkAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.BulkAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.BulkAsync(body,p.RequestParameters,ct); - + return _lowLevel.BulkAsync(body,p.RequestParameters,ct); case PUT: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.BulkPutAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.BulkPutAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.BulkPutAsync(body,p.RequestParameters,ct); - + return _lowLevel.BulkPutAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("Bulk", p, new [] { POST, PUT }, "/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"); } @@ -59,8 +54,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.CatAliases(p.RouteValues.Name,p.RequestParameters); - return _lowLevel.CatAliases(p.RequestParameters); - + return _lowLevel.CatAliases(p.RequestParameters); } throw InvalidDispatch("CatAliases", p, new [] { GET }, "/_cat/aliases", "/_cat/aliases/{name}"); } @@ -71,8 +65,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.CatAliasesAsync(p.RouteValues.Name,p.RequestParameters,ct); - return _lowLevel.CatAliasesAsync(p.RequestParameters,ct); - + return _lowLevel.CatAliasesAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatAliases", p, new [] { GET }, "/_cat/aliases", "/_cat/aliases/{name}"); } @@ -83,8 +76,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.NodeId)) return _lowLevel.CatAllocation(p.RouteValues.NodeId,p.RequestParameters); - return _lowLevel.CatAllocation(p.RequestParameters); - + return _lowLevel.CatAllocation(p.RequestParameters); } throw InvalidDispatch("CatAllocation", p, new [] { GET }, "/_cat/allocation", "/_cat/allocation/{node_id}"); } @@ -95,8 +87,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.NodeId)) return _lowLevel.CatAllocationAsync(p.RouteValues.NodeId,p.RequestParameters,ct); - return _lowLevel.CatAllocationAsync(p.RequestParameters,ct); - + return _lowLevel.CatAllocationAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatAllocation", p, new [] { GET }, "/_cat/allocation", "/_cat/allocation/{node_id}"); } @@ -107,8 +98,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatCount(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.CatCount(p.RequestParameters); - + return _lowLevel.CatCount(p.RequestParameters); } throw InvalidDispatch("CatCount", p, new [] { GET }, "/_cat/count", "/_cat/count/{index}"); } @@ -119,8 +109,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatCountAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.CatCountAsync(p.RequestParameters,ct); - + return _lowLevel.CatCountAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatCount", p, new [] { GET }, "/_cat/count", "/_cat/count/{index}"); } @@ -131,8 +120,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Fields)) return _lowLevel.CatFielddata(p.RouteValues.Fields,p.RequestParameters); - return _lowLevel.CatFielddata(p.RequestParameters); - + return _lowLevel.CatFielddata(p.RequestParameters); } throw InvalidDispatch("CatFielddata", p, new [] { GET }, "/_cat/fielddata", "/_cat/fielddata/{fields}"); } @@ -143,8 +131,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Fields)) return _lowLevel.CatFielddataAsync(p.RouteValues.Fields,p.RequestParameters,ct); - return _lowLevel.CatFielddataAsync(p.RequestParameters,ct); - + return _lowLevel.CatFielddataAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatFielddata", p, new [] { GET }, "/_cat/fielddata", "/_cat/fielddata/{fields}"); } @@ -154,8 +141,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatHealth(p.RequestParameters); - + return _lowLevel.CatHealth(p.RequestParameters); } throw InvalidDispatch("CatHealth", p, new [] { GET }, "/_cat/health"); } @@ -165,8 +151,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatHealthAsync(p.RequestParameters,ct); - + return _lowLevel.CatHealthAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatHealth", p, new [] { GET }, "/_cat/health"); } @@ -176,8 +161,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatHelp(p.RequestParameters); - + return _lowLevel.CatHelp(p.RequestParameters); } throw InvalidDispatch("CatHelp", p, new [] { GET }, "/_cat"); } @@ -187,8 +171,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatHelpAsync(p.RequestParameters,ct); - + return _lowLevel.CatHelpAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatHelp", p, new [] { GET }, "/_cat"); } @@ -199,8 +182,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatIndices(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.CatIndices(p.RequestParameters); - + return _lowLevel.CatIndices(p.RequestParameters); } throw InvalidDispatch("CatIndices", p, new [] { GET }, "/_cat/indices", "/_cat/indices/{index}"); } @@ -211,8 +193,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatIndicesAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.CatIndicesAsync(p.RequestParameters,ct); - + return _lowLevel.CatIndicesAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatIndices", p, new [] { GET }, "/_cat/indices", "/_cat/indices/{index}"); } @@ -222,8 +203,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatMaster(p.RequestParameters); - + return _lowLevel.CatMaster(p.RequestParameters); } throw InvalidDispatch("CatMaster", p, new [] { GET }, "/_cat/master"); } @@ -233,8 +213,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatMasterAsync(p.RequestParameters,ct); - + return _lowLevel.CatMasterAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatMaster", p, new [] { GET }, "/_cat/master"); } @@ -244,8 +223,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatNodeattrs(p.RequestParameters); - + return _lowLevel.CatNodeattrs(p.RequestParameters); } throw InvalidDispatch("CatNodeattrs", p, new [] { GET }, "/_cat/nodeattrs"); } @@ -255,8 +233,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatNodeattrsAsync(p.RequestParameters,ct); - + return _lowLevel.CatNodeattrsAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatNodeattrs", p, new [] { GET }, "/_cat/nodeattrs"); } @@ -266,8 +243,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatNodes(p.RequestParameters); - + return _lowLevel.CatNodes(p.RequestParameters); } throw InvalidDispatch("CatNodes", p, new [] { GET }, "/_cat/nodes"); } @@ -277,8 +253,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatNodesAsync(p.RequestParameters,ct); - + return _lowLevel.CatNodesAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatNodes", p, new [] { GET }, "/_cat/nodes"); } @@ -288,8 +263,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatPendingTasks(p.RequestParameters); - + return _lowLevel.CatPendingTasks(p.RequestParameters); } throw InvalidDispatch("CatPendingTasks", p, new [] { GET }, "/_cat/pending_tasks"); } @@ -299,8 +273,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatPendingTasksAsync(p.RequestParameters,ct); - + return _lowLevel.CatPendingTasksAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatPendingTasks", p, new [] { GET }, "/_cat/pending_tasks"); } @@ -310,8 +283,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatPlugins(p.RequestParameters); - + return _lowLevel.CatPlugins(p.RequestParameters); } throw InvalidDispatch("CatPlugins", p, new [] { GET }, "/_cat/plugins"); } @@ -321,8 +293,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatPluginsAsync(p.RequestParameters,ct); - + return _lowLevel.CatPluginsAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatPlugins", p, new [] { GET }, "/_cat/plugins"); } @@ -333,8 +304,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatRecovery(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.CatRecovery(p.RequestParameters); - + return _lowLevel.CatRecovery(p.RequestParameters); } throw InvalidDispatch("CatRecovery", p, new [] { GET }, "/_cat/recovery", "/_cat/recovery/{index}"); } @@ -345,8 +315,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatRecoveryAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.CatRecoveryAsync(p.RequestParameters,ct); - + return _lowLevel.CatRecoveryAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatRecovery", p, new [] { GET }, "/_cat/recovery", "/_cat/recovery/{index}"); } @@ -356,8 +325,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatRepositories(p.RequestParameters); - + return _lowLevel.CatRepositories(p.RequestParameters); } throw InvalidDispatch("CatRepositories", p, new [] { GET }, "/_cat/repositories"); } @@ -367,8 +335,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatRepositoriesAsync(p.RequestParameters,ct); - + return _lowLevel.CatRepositoriesAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatRepositories", p, new [] { GET }, "/_cat/repositories"); } @@ -379,8 +346,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatSegments(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.CatSegments(p.RequestParameters); - + return _lowLevel.CatSegments(p.RequestParameters); } throw InvalidDispatch("CatSegments", p, new [] { GET }, "/_cat/segments", "/_cat/segments/{index}"); } @@ -391,8 +357,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatSegmentsAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.CatSegmentsAsync(p.RequestParameters,ct); - + return _lowLevel.CatSegmentsAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatSegments", p, new [] { GET }, "/_cat/segments", "/_cat/segments/{index}"); } @@ -403,8 +368,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatShards(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.CatShards(p.RequestParameters); - + return _lowLevel.CatShards(p.RequestParameters); } throw InvalidDispatch("CatShards", p, new [] { GET }, "/_cat/shards", "/_cat/shards/{index}"); } @@ -415,8 +379,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.CatShardsAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.CatShardsAsync(p.RequestParameters,ct); - + return _lowLevel.CatShardsAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatShards", p, new [] { GET }, "/_cat/shards", "/_cat/shards/{index}"); } @@ -427,8 +390,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Repository)) return _lowLevel.CatSnapshots(p.RouteValues.Repository,p.RequestParameters); - return _lowLevel.CatSnapshots(p.RequestParameters); - + return _lowLevel.CatSnapshots(p.RequestParameters); } throw InvalidDispatch("CatSnapshots", p, new [] { GET }, "/_cat/snapshots", "/_cat/snapshots/{repository}"); } @@ -439,8 +401,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Repository)) return _lowLevel.CatSnapshotsAsync(p.RouteValues.Repository,p.RequestParameters,ct); - return _lowLevel.CatSnapshotsAsync(p.RequestParameters,ct); - + return _lowLevel.CatSnapshotsAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatSnapshots", p, new [] { GET }, "/_cat/snapshots", "/_cat/snapshots/{repository}"); } @@ -450,8 +411,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatTasks(p.RequestParameters); - + return _lowLevel.CatTasks(p.RequestParameters); } throw InvalidDispatch("CatTasks", p, new [] { GET }, "/_cat/tasks"); } @@ -461,8 +421,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.CatTasksAsync(p.RequestParameters,ct); - + return _lowLevel.CatTasksAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatTasks", p, new [] { GET }, "/_cat/tasks"); } @@ -473,8 +432,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.CatTemplates(p.RouteValues.Name,p.RequestParameters); - return _lowLevel.CatTemplates(p.RequestParameters); - + return _lowLevel.CatTemplates(p.RequestParameters); } throw InvalidDispatch("CatTemplates", p, new [] { GET }, "/_cat/templates", "/_cat/templates/{name}"); } @@ -485,8 +443,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.CatTemplatesAsync(p.RouteValues.Name,p.RequestParameters,ct); - return _lowLevel.CatTemplatesAsync(p.RequestParameters,ct); - + return _lowLevel.CatTemplatesAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatTemplates", p, new [] { GET }, "/_cat/templates", "/_cat/templates/{name}"); } @@ -497,8 +454,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.ThreadPoolPatterns)) return _lowLevel.CatThreadPool(p.RouteValues.ThreadPoolPatterns,p.RequestParameters); - return _lowLevel.CatThreadPool(p.RequestParameters); - + return _lowLevel.CatThreadPool(p.RequestParameters); } throw InvalidDispatch("CatThreadPool", p, new [] { GET }, "/_cat/thread_pool", "/_cat/thread_pool/{thread_pool_patterns}"); } @@ -509,8 +465,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.ThreadPoolPatterns)) return _lowLevel.CatThreadPoolAsync(p.RouteValues.ThreadPoolPatterns,p.RequestParameters,ct); - return _lowLevel.CatThreadPoolAsync(p.RequestParameters,ct); - + return _lowLevel.CatThreadPoolAsync(p.RequestParameters,ct); } throw InvalidDispatch("CatThreadPool", p, new [] { GET }, "/_cat/thread_pool", "/_cat/thread_pool/{thread_pool_patterns}"); } @@ -520,8 +475,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.ClearScroll(body,p.RequestParameters); - + return _lowLevel.ClearScroll(body,p.RequestParameters); } throw InvalidDispatch("ClearScroll", p, new [] { DELETE }, "/_search/scroll"); } @@ -531,8 +485,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.ClearScrollAsync(body,p.RequestParameters,ct); - + return _lowLevel.ClearScrollAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("ClearScroll", p, new [] { DELETE }, "/_search/scroll"); } @@ -542,11 +495,9 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterAllocationExplainGet(p.RequestParameters); - + return _lowLevel.ClusterAllocationExplainGet(p.RequestParameters); case POST: - return _lowLevel.ClusterAllocationExplain(body,p.RequestParameters); - + return _lowLevel.ClusterAllocationExplain(body,p.RequestParameters); } throw InvalidDispatch("ClusterAllocationExplain", p, new [] { GET, POST }, "/_cluster/allocation/explain"); } @@ -556,11 +507,9 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterAllocationExplainGetAsync(p.RequestParameters,ct); - + return _lowLevel.ClusterAllocationExplainGetAsync(p.RequestParameters,ct); case POST: - return _lowLevel.ClusterAllocationExplainAsync(body,p.RequestParameters,ct); - + return _lowLevel.ClusterAllocationExplainAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("ClusterAllocationExplain", p, new [] { GET, POST }, "/_cluster/allocation/explain"); } @@ -570,8 +519,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterGetSettings(p.RequestParameters); - + return _lowLevel.ClusterGetSettings(p.RequestParameters); } throw InvalidDispatch("ClusterGetSettings", p, new [] { GET }, "/_cluster/settings"); } @@ -581,8 +529,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterGetSettingsAsync(p.RequestParameters,ct); - + return _lowLevel.ClusterGetSettingsAsync(p.RequestParameters,ct); } throw InvalidDispatch("ClusterGetSettings", p, new [] { GET }, "/_cluster/settings"); } @@ -593,8 +540,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.ClusterHealth(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.ClusterHealth(p.RequestParameters); - + return _lowLevel.ClusterHealth(p.RequestParameters); } throw InvalidDispatch("ClusterHealth", p, new [] { GET }, "/_cluster/health", "/_cluster/health/{index}"); } @@ -605,8 +551,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.ClusterHealthAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.ClusterHealthAsync(p.RequestParameters,ct); - + return _lowLevel.ClusterHealthAsync(p.RequestParameters,ct); } throw InvalidDispatch("ClusterHealth", p, new [] { GET }, "/_cluster/health", "/_cluster/health/{index}"); } @@ -616,8 +561,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterPendingTasks(p.RequestParameters); - + return _lowLevel.ClusterPendingTasks(p.RequestParameters); } throw InvalidDispatch("ClusterPendingTasks", p, new [] { GET }, "/_cluster/pending_tasks"); } @@ -627,8 +571,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterPendingTasksAsync(p.RequestParameters,ct); - + return _lowLevel.ClusterPendingTasksAsync(p.RequestParameters,ct); } throw InvalidDispatch("ClusterPendingTasks", p, new [] { GET }, "/_cluster/pending_tasks"); } @@ -638,8 +581,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case PUT: - return _lowLevel.ClusterPutSettings(body,p.RequestParameters); - + return _lowLevel.ClusterPutSettings(body,p.RequestParameters); } throw InvalidDispatch("ClusterPutSettings", p, new [] { PUT }, "/_cluster/settings"); } @@ -649,8 +591,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case PUT: - return _lowLevel.ClusterPutSettingsAsync(body,p.RequestParameters,ct); - + return _lowLevel.ClusterPutSettingsAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("ClusterPutSettings", p, new [] { PUT }, "/_cluster/settings"); } @@ -660,8 +601,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterRemoteInfo(p.RequestParameters); - + return _lowLevel.ClusterRemoteInfo(p.RequestParameters); } throw InvalidDispatch("ClusterRemoteInfo", p, new [] { GET }, "/_remote/info"); } @@ -671,8 +611,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ClusterRemoteInfoAsync(p.RequestParameters,ct); - + return _lowLevel.ClusterRemoteInfoAsync(p.RequestParameters,ct); } throw InvalidDispatch("ClusterRemoteInfo", p, new [] { GET }, "/_remote/info"); } @@ -682,8 +621,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.ClusterReroute(body,p.RequestParameters); - + return _lowLevel.ClusterReroute(body,p.RequestParameters); } throw InvalidDispatch("ClusterReroute", p, new [] { POST }, "/_cluster/reroute"); } @@ -693,8 +631,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.ClusterRerouteAsync(body,p.RequestParameters,ct); - + return _lowLevel.ClusterRerouteAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("ClusterReroute", p, new [] { POST }, "/_cluster/reroute"); } @@ -706,8 +643,7 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Metric, p.RouteValues.Index)) return _lowLevel.ClusterState(p.RouteValues.Metric,p.RouteValues.Index,p.RequestParameters); if (AllSet(p.RouteValues.Metric)) return _lowLevel.ClusterState(p.RouteValues.Metric,p.RequestParameters); - return _lowLevel.ClusterState(p.RequestParameters); - + return _lowLevel.ClusterState(p.RequestParameters); } throw InvalidDispatch("ClusterState", p, new [] { GET }, "/_cluster/state", "/_cluster/state/{metric}", "/_cluster/state/{metric}/{index}"); } @@ -719,8 +655,7 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Metric, p.RouteValues.Index)) return _lowLevel.ClusterStateAsync(p.RouteValues.Metric,p.RouteValues.Index,p.RequestParameters,ct); if (AllSet(p.RouteValues.Metric)) return _lowLevel.ClusterStateAsync(p.RouteValues.Metric,p.RequestParameters,ct); - return _lowLevel.ClusterStateAsync(p.RequestParameters,ct); - + return _lowLevel.ClusterStateAsync(p.RequestParameters,ct); } throw InvalidDispatch("ClusterState", p, new [] { GET }, "/_cluster/state", "/_cluster/state/{metric}", "/_cluster/state/{metric}/{index}"); } @@ -731,8 +666,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.NodeId)) return _lowLevel.ClusterStats(p.RouteValues.NodeId,p.RequestParameters); - return _lowLevel.ClusterStats(p.RequestParameters); - + return _lowLevel.ClusterStats(p.RequestParameters); } throw InvalidDispatch("ClusterStats", p, new [] { GET }, "/_cluster/stats", "/_cluster/stats/nodes/{node_id}"); } @@ -743,8 +677,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.NodeId)) return _lowLevel.ClusterStatsAsync(p.RouteValues.NodeId,p.RequestParameters,ct); - return _lowLevel.ClusterStatsAsync(p.RequestParameters,ct); - + return _lowLevel.ClusterStatsAsync(p.RequestParameters,ct); } throw InvalidDispatch("ClusterStats", p, new [] { GET }, "/_cluster/stats", "/_cluster/stats/nodes/{node_id}"); } @@ -756,13 +689,11 @@ internal partial class LowLevelDispatch case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Count(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.Count(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.Count(body,p.RequestParameters); - + return _lowLevel.Count(body,p.RequestParameters); case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.CountGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.CountGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.CountGet(p.RequestParameters); - + return _lowLevel.CountGet(p.RequestParameters); } throw InvalidDispatch("Count", p, new [] { POST, GET }, "/_count", "/{index}/_count", "/{index}/{type}/_count"); } @@ -774,13 +705,11 @@ internal partial class LowLevelDispatch case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.CountAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.CountAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.CountAsync(body,p.RequestParameters,ct); - + return _lowLevel.CountAsync(body,p.RequestParameters,ct); case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.CountGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.CountGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.CountGetAsync(p.RequestParameters,ct); - + return _lowLevel.CountGetAsync(p.RequestParameters,ct); } throw InvalidDispatch("Count", p, new [] { POST, GET }, "/_count", "/{index}/_count", "/{index}/{type}/_count"); } @@ -792,11 +721,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Create(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.CreatePost(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters); break; - } throw InvalidDispatch("Create", p, new [] { PUT, POST }, "/{index}/{type}/{id}/_create"); } @@ -808,11 +735,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.CreateAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.CreatePostAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("Create", p, new [] { PUT, POST }, "/{index}/{type}/{id}/_create"); } @@ -824,7 +749,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Delete(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("Delete", p, new [] { DELETE }, "/{index}/{type}/{id}"); } @@ -836,7 +760,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.DeleteAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("Delete", p, new [] { DELETE }, "/{index}/{type}/{id}"); } @@ -849,7 +772,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.DeleteByQuery(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.DeleteByQuery(p.RouteValues.Index,body,p.RequestParameters); break; - } throw InvalidDispatch("DeleteByQuery", p, new [] { POST }, "/{index}/_delete_by_query", "/{index}/{type}/_delete_by_query"); } @@ -862,7 +784,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.DeleteByQueryAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.DeleteByQueryAsync(p.RouteValues.Index,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("DeleteByQuery", p, new [] { POST }, "/{index}/_delete_by_query", "/{index}/{type}/_delete_by_query"); } @@ -874,7 +795,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.DeleteScript(p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("DeleteScript", p, new [] { DELETE }, "/_scripts/{id}"); } @@ -886,7 +806,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.DeleteScriptAsync(p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("DeleteScript", p, new [] { DELETE }, "/_scripts/{id}"); } @@ -898,7 +817,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Exists(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("Exists", p, new [] { HEAD }, "/{index}/{type}/{id}"); } @@ -910,7 +828,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.ExistsAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("Exists", p, new [] { HEAD }, "/{index}/{type}/{id}"); } @@ -922,7 +839,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.ExistsSource(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("ExistsSource", p, new [] { HEAD }, "/{index}/{type}/{id}/_source"); } @@ -934,7 +850,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.ExistsSourceAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("ExistsSource", p, new [] { HEAD }, "/{index}/{type}/{id}/_source"); } @@ -946,11 +861,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.ExplainGet(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Explain(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters); break; - } throw InvalidDispatch("Explain", p, new [] { GET, POST }, "/{index}/{type}/{id}/_explain"); } @@ -962,11 +875,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.ExplainGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.ExplainAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("Explain", p, new [] { GET, POST }, "/{index}/{type}/{id}/_explain"); } @@ -977,12 +888,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldCapsGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.FieldCapsGet(p.RequestParameters); - + return _lowLevel.FieldCapsGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldCaps(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.FieldCaps(body,p.RequestParameters); - + return _lowLevel.FieldCaps(body,p.RequestParameters); } throw InvalidDispatch("FieldCaps", p, new [] { GET, POST }, "/_field_caps", "/{index}/_field_caps"); } @@ -993,12 +902,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldCapsGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.FieldCapsGetAsync(p.RequestParameters,ct); - + return _lowLevel.FieldCapsGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.FieldCapsAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.FieldCapsAsync(body,p.RequestParameters,ct); - + return _lowLevel.FieldCapsAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("FieldCaps", p, new [] { GET, POST }, "/_field_caps", "/{index}/_field_caps"); } @@ -1010,7 +917,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Get(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("Get", p, new [] { GET }, "/{index}/{type}/{id}"); } @@ -1022,7 +928,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.GetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("Get", p, new [] { GET }, "/{index}/{type}/{id}"); } @@ -1034,7 +939,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.GetScript(p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("GetScript", p, new [] { GET }, "/_scripts/{id}"); } @@ -1046,7 +950,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.GetScriptAsync(p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("GetScript", p, new [] { GET }, "/_scripts/{id}"); } @@ -1058,7 +961,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.GetSource(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("GetSource", p, new [] { GET }, "/{index}/{type}/{id}/_source"); } @@ -1070,7 +972,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.GetSourceAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("GetSource", p, new [] { GET }, "/{index}/{type}/{id}/_source"); } @@ -1083,12 +984,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Index(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Index(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); break; - case PUT: if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.IndexPut(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndexPut(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); break; - } throw InvalidDispatch("Index", p, new [] { POST, PUT }, "/{index}/{type}", "/{index}/{type}/{id}"); } @@ -1101,12 +1000,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.IndexAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndexAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); break; - case PUT: if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.IndexPutAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndexPutAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("Index", p, new [] { POST, PUT }, "/{index}/{type}", "/{index}/{type}/{id}"); } @@ -1117,12 +1014,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesAnalyzeGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesAnalyzeGetForAll(p.RequestParameters); - + return _lowLevel.IndicesAnalyzeGetForAll(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesAnalyze(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.IndicesAnalyzeForAll(body,p.RequestParameters); - + return _lowLevel.IndicesAnalyzeForAll(body,p.RequestParameters); } throw InvalidDispatch("IndicesAnalyze", p, new [] { GET, POST }, "/_analyze", "/{index}/_analyze"); } @@ -1133,12 +1028,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesAnalyzeGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesAnalyzeGetForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesAnalyzeGetForAllAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesAnalyzeAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.IndicesAnalyzeForAllAsync(body,p.RequestParameters,ct); - + return _lowLevel.IndicesAnalyzeForAllAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("IndicesAnalyze", p, new [] { GET, POST }, "/_analyze", "/{index}/_analyze"); } @@ -1149,12 +1042,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesClearCache(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesClearCacheForAll(p.RequestParameters); - + return _lowLevel.IndicesClearCacheForAll(p.RequestParameters); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesClearCacheGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesClearCacheGetForAll(p.RequestParameters); - + return _lowLevel.IndicesClearCacheGetForAll(p.RequestParameters); } throw InvalidDispatch("IndicesClearCache", p, new [] { POST, GET }, "/_cache/clear", "/{index}/_cache/clear"); } @@ -1165,12 +1056,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesClearCacheAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesClearCacheForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesClearCacheForAllAsync(p.RequestParameters,ct); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesClearCacheGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesClearCacheGetForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesClearCacheGetForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesClearCache", p, new [] { POST, GET }, "/_cache/clear", "/{index}/_cache/clear"); } @@ -1182,7 +1071,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesClose(p.RouteValues.Index,p.RequestParameters); break; - } throw InvalidDispatch("IndicesClose", p, new [] { POST }, "/{index}/_close"); } @@ -1194,7 +1082,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesCloseAsync(p.RouteValues.Index,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesClose", p, new [] { POST }, "/{index}/_close"); } @@ -1206,7 +1093,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesCreate(p.RouteValues.Index,body,p.RequestParameters); break; - } throw InvalidDispatch("IndicesCreate", p, new [] { PUT }, "/{index}"); } @@ -1218,7 +1104,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesCreateAsync(p.RouteValues.Index,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesCreate", p, new [] { PUT }, "/{index}"); } @@ -1230,7 +1115,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesDelete(p.RouteValues.Index,p.RequestParameters); break; - } throw InvalidDispatch("IndicesDelete", p, new [] { DELETE }, "/{index}"); } @@ -1242,7 +1126,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesDeleteAsync(p.RouteValues.Index,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesDelete", p, new [] { DELETE }, "/{index}"); } @@ -1254,7 +1137,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesDeleteAlias(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters); break; - } throw InvalidDispatch("IndicesDeleteAlias", p, new [] { DELETE }, "/{index}/_alias/{name}", "/{index}/_aliases/{name}"); } @@ -1266,7 +1148,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesDeleteAliasAsync(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesDeleteAlias", p, new [] { DELETE }, "/{index}/_alias/{name}", "/{index}/_aliases/{name}"); } @@ -1278,7 +1159,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesDeleteTemplateForAll(p.RouteValues.Name,p.RequestParameters); break; - } throw InvalidDispatch("IndicesDeleteTemplate", p, new [] { DELETE }, "/_template/{name}"); } @@ -1290,7 +1170,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesDeleteTemplateForAllAsync(p.RouteValues.Name,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesDeleteTemplate", p, new [] { DELETE }, "/_template/{name}"); } @@ -1302,7 +1181,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesExists(p.RouteValues.Index,p.RequestParameters); break; - } throw InvalidDispatch("IndicesExists", p, new [] { HEAD }, "/{index}"); } @@ -1314,7 +1192,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesExistsAsync(p.RouteValues.Index,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesExists", p, new [] { HEAD }, "/{index}"); } @@ -1327,7 +1204,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesExistsAlias(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesExistsAliasForAll(p.RouteValues.Name,p.RequestParameters); break; - } throw InvalidDispatch("IndicesExistsAlias", p, new [] { HEAD }, "/_alias/{name}", "/{index}/_alias/{name}"); } @@ -1340,7 +1216,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesExistsAliasAsync(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesExistsAliasForAllAsync(p.RouteValues.Name,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesExistsAlias", p, new [] { HEAD }, "/_alias/{name}", "/{index}/_alias/{name}"); } @@ -1352,7 +1227,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesExistsTemplateForAll(p.RouteValues.Name,p.RequestParameters); break; - } throw InvalidDispatch("IndicesExistsTemplate", p, new [] { HEAD }, "/_template/{name}"); } @@ -1364,7 +1238,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesExistsTemplateForAllAsync(p.RouteValues.Name,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesExistsTemplate", p, new [] { HEAD }, "/_template/{name}"); } @@ -1376,7 +1249,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesExistsType(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); break; - } throw InvalidDispatch("IndicesExistsType", p, new [] { HEAD }, "/{index}/_mapping/{type}"); } @@ -1388,7 +1260,6 @@ internal partial class LowLevelDispatch case HEAD: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesExistsTypeAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesExistsType", p, new [] { HEAD }, "/{index}/_mapping/{type}"); } @@ -1399,12 +1270,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlush(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesFlushForAll(p.RequestParameters); - + return _lowLevel.IndicesFlushForAll(p.RequestParameters); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlushGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesFlushGetForAll(p.RequestParameters); - + return _lowLevel.IndicesFlushGetForAll(p.RequestParameters); } throw InvalidDispatch("IndicesFlush", p, new [] { POST, GET }, "/_flush", "/{index}/_flush"); } @@ -1415,12 +1284,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlushAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesFlushForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesFlushForAllAsync(p.RequestParameters,ct); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlushGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesFlushGetForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesFlushGetForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesFlush", p, new [] { POST, GET }, "/_flush", "/{index}/_flush"); } @@ -1431,12 +1298,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlushSynced(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesFlushSyncedForAll(p.RequestParameters); - + return _lowLevel.IndicesFlushSyncedForAll(p.RequestParameters); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlushSyncedGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesFlushSyncedGetForAll(p.RequestParameters); - + return _lowLevel.IndicesFlushSyncedGetForAll(p.RequestParameters); } throw InvalidDispatch("IndicesFlushSynced", p, new [] { POST, GET }, "/_flush/synced", "/{index}/_flush/synced"); } @@ -1447,12 +1312,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlushSyncedAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesFlushSyncedForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesFlushSyncedForAllAsync(p.RequestParameters,ct); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesFlushSyncedGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesFlushSyncedGetForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesFlushSyncedGetForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesFlushSynced", p, new [] { POST, GET }, "/_flush/synced", "/{index}/_flush/synced"); } @@ -1463,8 +1326,7 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesForcemerge(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesForcemergeForAll(p.RequestParameters); - + return _lowLevel.IndicesForcemergeForAll(p.RequestParameters); } throw InvalidDispatch("IndicesForcemerge", p, new [] { POST }, "/_forcemerge", "/{index}/_forcemerge"); } @@ -1475,8 +1337,7 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesForcemergeAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesForcemergeForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesForcemergeForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesForcemerge", p, new [] { POST }, "/_forcemerge", "/{index}/_forcemerge"); } @@ -1488,7 +1349,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesGet(p.RouteValues.Index,p.RequestParameters); break; - } throw InvalidDispatch("IndicesGet", p, new [] { GET }, "/{index}"); } @@ -1500,7 +1360,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesGetAsync(p.RouteValues.Index,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesGet", p, new [] { GET }, "/{index}"); } @@ -1513,8 +1372,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesGetAlias(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters); if (AllSet(p.RouteValues.Name)) return _lowLevel.IndicesGetAliasForAll(p.RouteValues.Name,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetAlias(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesGetAliasForAll(p.RequestParameters); - + return _lowLevel.IndicesGetAliasForAll(p.RequestParameters); } throw InvalidDispatch("IndicesGetAlias", p, new [] { GET }, "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias"); } @@ -1527,8 +1385,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesGetAliasAsync(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters,ct); if (AllSet(p.RouteValues.Name)) return _lowLevel.IndicesGetAliasForAllAsync(p.RouteValues.Name,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetAliasAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesGetAliasForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesGetAliasForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesGetAlias", p, new [] { GET }, "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias"); } @@ -1543,7 +1400,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Type, p.RouteValues.Fields)) return _lowLevel.IndicesGetFieldMappingForAll(p.RouteValues.Type,p.RouteValues.Fields,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Fields)) return _lowLevel.IndicesGetFieldMappingForAll(p.RouteValues.Fields,p.RequestParameters); break; - } throw InvalidDispatch("IndicesGetFieldMapping", p, new [] { GET }, "/_mapping/field/{fields}", "/{index}/_mapping/field/{fields}", "/_mapping/{type}/field/{fields}", "/{index}/_mapping/{type}/field/{fields}"); } @@ -1558,7 +1414,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Type, p.RouteValues.Fields)) return _lowLevel.IndicesGetFieldMappingForAllAsync(p.RouteValues.Type,p.RouteValues.Fields,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Fields)) return _lowLevel.IndicesGetFieldMappingForAllAsync(p.RouteValues.Fields,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesGetFieldMapping", p, new [] { GET }, "/_mapping/field/{fields}", "/{index}/_mapping/field/{fields}", "/_mapping/{type}/field/{fields}", "/{index}/_mapping/{type}/field/{fields}"); } @@ -1571,8 +1426,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesGetMapping(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetMapping(p.RouteValues.Index,p.RequestParameters); if (AllSet(p.RouteValues.Type)) return _lowLevel.IndicesGetMappingForAll(p.RouteValues.Type,p.RequestParameters); - return _lowLevel.IndicesGetMappingForAll(p.RequestParameters); - + return _lowLevel.IndicesGetMappingForAll(p.RequestParameters); } throw InvalidDispatch("IndicesGetMapping", p, new [] { GET }, "/_mapping", "/{index}/_mapping", "/_mapping/{type}", "/{index}/_mapping/{type}"); } @@ -1585,8 +1439,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesGetMappingAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetMappingAsync(p.RouteValues.Index,p.RequestParameters,ct); if (AllSet(p.RouteValues.Type)) return _lowLevel.IndicesGetMappingForAllAsync(p.RouteValues.Type,p.RequestParameters,ct); - return _lowLevel.IndicesGetMappingForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesGetMappingForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesGetMapping", p, new [] { GET }, "/_mapping", "/{index}/_mapping", "/_mapping/{type}", "/{index}/_mapping/{type}"); } @@ -1599,8 +1452,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesGetSettings(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetSettings(p.RouteValues.Index,p.RequestParameters); if (AllSet(p.RouteValues.Name)) return _lowLevel.IndicesGetSettingsForAll(p.RouteValues.Name,p.RequestParameters); - return _lowLevel.IndicesGetSettingsForAll(p.RequestParameters); - + return _lowLevel.IndicesGetSettingsForAll(p.RequestParameters); } throw InvalidDispatch("IndicesGetSettings", p, new [] { GET }, "/_settings", "/{index}/_settings", "/{index}/_settings/{name}", "/_settings/{name}"); } @@ -1613,8 +1465,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesGetSettingsAsync(p.RouteValues.Index,p.RouteValues.Name,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetSettingsAsync(p.RouteValues.Index,p.RequestParameters,ct); if (AllSet(p.RouteValues.Name)) return _lowLevel.IndicesGetSettingsForAllAsync(p.RouteValues.Name,p.RequestParameters,ct); - return _lowLevel.IndicesGetSettingsForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesGetSettingsForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesGetSettings", p, new [] { GET }, "/_settings", "/{index}/_settings", "/{index}/_settings/{name}", "/_settings/{name}"); } @@ -1625,8 +1476,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.IndicesGetTemplateForAll(p.RouteValues.Name,p.RequestParameters); - return _lowLevel.IndicesGetTemplateForAll(p.RequestParameters); - + return _lowLevel.IndicesGetTemplateForAll(p.RequestParameters); } throw InvalidDispatch("IndicesGetTemplate", p, new [] { GET }, "/_template", "/_template/{name}"); } @@ -1637,8 +1487,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.IndicesGetTemplateForAllAsync(p.RouteValues.Name,p.RequestParameters,ct); - return _lowLevel.IndicesGetTemplateForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesGetTemplateForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesGetTemplate", p, new [] { GET }, "/_template", "/_template/{name}"); } @@ -1649,8 +1498,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetUpgrade(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesGetUpgradeForAll(p.RequestParameters); - + return _lowLevel.IndicesGetUpgradeForAll(p.RequestParameters); } throw InvalidDispatch("IndicesGetUpgrade", p, new [] { GET }, "/_upgrade", "/{index}/_upgrade"); } @@ -1661,8 +1509,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesGetUpgradeAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesGetUpgradeForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesGetUpgradeForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesGetUpgrade", p, new [] { GET }, "/_upgrade", "/{index}/_upgrade"); } @@ -1674,7 +1521,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesOpen(p.RouteValues.Index,p.RequestParameters); break; - } throw InvalidDispatch("IndicesOpen", p, new [] { POST }, "/{index}/_open"); } @@ -1686,7 +1532,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.IndicesOpenAsync(p.RouteValues.Index,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesOpen", p, new [] { POST }, "/{index}/_open"); } @@ -1698,11 +1543,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesPutAlias(p.RouteValues.Index,p.RouteValues.Name,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesPutAliasPost(p.RouteValues.Index,p.RouteValues.Name,body,p.RequestParameters); break; - } throw InvalidDispatch("IndicesPutAlias", p, new [] { PUT, POST }, "/{index}/_alias/{name}", "/{index}/_aliases/{name}"); } @@ -1714,11 +1557,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesPutAliasAsync(p.RouteValues.Index,p.RouteValues.Name,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Name)) return _lowLevel.IndicesPutAliasPostAsync(p.RouteValues.Index,p.RouteValues.Name,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesPutAlias", p, new [] { PUT, POST }, "/{index}/_alias/{name}", "/{index}/_aliases/{name}"); } @@ -1731,12 +1572,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesPutMapping(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Type)) return _lowLevel.IndicesPutMappingForAll(p.RouteValues.Type,body,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesPutMappingPost(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Type)) return _lowLevel.IndicesPutMappingPostForAll(p.RouteValues.Type,body,p.RequestParameters); break; - } throw InvalidDispatch("IndicesPutMapping", p, new [] { PUT, POST }, "/{index}/{type}/_mapping", "/{index}/_mapping/{type}", "/_mapping/{type}", "/{index}/{type}/_mappings", "/{index}/_mappings/{type}", "/_mappings/{type}"); } @@ -1749,12 +1588,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesPutMappingAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Type)) return _lowLevel.IndicesPutMappingForAllAsync(p.RouteValues.Type,body,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesPutMappingPostAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Type)) return _lowLevel.IndicesPutMappingPostForAllAsync(p.RouteValues.Type,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesPutMapping", p, new [] { PUT, POST }, "/{index}/{type}/_mapping", "/{index}/_mapping/{type}", "/_mapping/{type}", "/{index}/{type}/_mappings", "/{index}/_mappings/{type}", "/_mappings/{type}"); } @@ -1765,8 +1602,7 @@ internal partial class LowLevelDispatch { case PUT: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesPutSettings(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.IndicesPutSettingsForAll(body,p.RequestParameters); - + return _lowLevel.IndicesPutSettingsForAll(body,p.RequestParameters); } throw InvalidDispatch("IndicesPutSettings", p, new [] { PUT }, "/_settings", "/{index}/_settings"); } @@ -1777,8 +1613,7 @@ internal partial class LowLevelDispatch { case PUT: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesPutSettingsAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.IndicesPutSettingsForAllAsync(body,p.RequestParameters,ct); - + return _lowLevel.IndicesPutSettingsForAllAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("IndicesPutSettings", p, new [] { PUT }, "/_settings", "/{index}/_settings"); } @@ -1790,11 +1625,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesPutTemplateForAll(p.RouteValues.Name,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesPutTemplatePostForAll(p.RouteValues.Name,body,p.RequestParameters); break; - } throw InvalidDispatch("IndicesPutTemplate", p, new [] { PUT, POST }, "/_template/{name}"); } @@ -1806,11 +1639,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesPutTemplateForAllAsync(p.RouteValues.Name,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.IndicesPutTemplatePostForAllAsync(p.RouteValues.Name,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesPutTemplate", p, new [] { PUT, POST }, "/_template/{name}"); } @@ -1821,8 +1652,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesRecovery(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesRecoveryForAll(p.RequestParameters); - + return _lowLevel.IndicesRecoveryForAll(p.RequestParameters); } throw InvalidDispatch("IndicesRecovery", p, new [] { GET }, "/_recovery", "/{index}/_recovery"); } @@ -1833,8 +1663,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesRecoveryAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesRecoveryForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesRecoveryForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesRecovery", p, new [] { GET }, "/_recovery", "/{index}/_recovery"); } @@ -1845,12 +1674,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesRefresh(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesRefreshForAll(p.RequestParameters); - + return _lowLevel.IndicesRefreshForAll(p.RequestParameters); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesRefreshGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesRefreshGetForAll(p.RequestParameters); - + return _lowLevel.IndicesRefreshGetForAll(p.RequestParameters); } throw InvalidDispatch("IndicesRefresh", p, new [] { POST, GET }, "/_refresh", "/{index}/_refresh"); } @@ -1861,12 +1688,10 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesRefreshAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesRefreshForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesRefreshForAllAsync(p.RequestParameters,ct); case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesRefreshGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesRefreshGetForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesRefreshGetForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesRefresh", p, new [] { POST, GET }, "/_refresh", "/{index}/_refresh"); } @@ -1879,7 +1704,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Alias, p.RouteValues.NewIndex)) return _lowLevel.IndicesRolloverForAll(p.RouteValues.Alias,p.RouteValues.NewIndex,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Alias)) return _lowLevel.IndicesRolloverForAll(p.RouteValues.Alias,body,p.RequestParameters); break; - } throw InvalidDispatch("IndicesRollover", p, new [] { POST }, "/{alias}/_rollover", "/{alias}/_rollover/{new_index}"); } @@ -1892,7 +1716,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Alias, p.RouteValues.NewIndex)) return _lowLevel.IndicesRolloverForAllAsync(p.RouteValues.Alias,p.RouteValues.NewIndex,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Alias)) return _lowLevel.IndicesRolloverForAllAsync(p.RouteValues.Alias,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesRollover", p, new [] { POST }, "/{alias}/_rollover", "/{alias}/_rollover/{new_index}"); } @@ -1903,8 +1726,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesSegments(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesSegmentsForAll(p.RequestParameters); - + return _lowLevel.IndicesSegmentsForAll(p.RequestParameters); } throw InvalidDispatch("IndicesSegments", p, new [] { GET }, "/_segments", "/{index}/_segments"); } @@ -1915,8 +1737,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesSegmentsAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesSegmentsForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesSegmentsForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesSegments", p, new [] { GET }, "/_segments", "/{index}/_segments"); } @@ -1927,8 +1748,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesShardStores(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesShardStoresForAll(p.RequestParameters); - + return _lowLevel.IndicesShardStoresForAll(p.RequestParameters); } throw InvalidDispatch("IndicesShardStores", p, new [] { GET }, "/_shard_stores", "/{index}/_shard_stores"); } @@ -1939,8 +1759,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesShardStoresAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesShardStoresForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesShardStoresForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesShardStores", p, new [] { GET }, "/_shard_stores", "/{index}/_shard_stores"); } @@ -1952,11 +1771,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesShrink(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesShrinkPost(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters); break; - } throw InvalidDispatch("IndicesShrink", p, new [] { PUT, POST }, "/{index}/_shrink/{target}"); } @@ -1968,11 +1785,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesShrinkAsync(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesShrinkPostAsync(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesShrink", p, new [] { PUT, POST }, "/{index}/_shrink/{target}"); } @@ -1984,11 +1799,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesSplit(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesSplitPost(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters); break; - } throw InvalidDispatch("IndicesSplit", p, new [] { PUT, POST }, "/{index}/_split/{target}"); } @@ -2000,11 +1813,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesSplitAsync(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Target)) return _lowLevel.IndicesSplitPostAsync(p.RouteValues.Index,p.RouteValues.Target,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IndicesSplit", p, new [] { PUT, POST }, "/{index}/_split/{target}"); } @@ -2017,8 +1828,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Metric)) return _lowLevel.IndicesStats(p.RouteValues.Index,p.RouteValues.Metric,p.RequestParameters); if (AllSet(p.RouteValues.Metric)) return _lowLevel.IndicesStatsForAll(p.RouteValues.Metric,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesStats(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesStatsForAll(p.RequestParameters); - + return _lowLevel.IndicesStatsForAll(p.RequestParameters); } throw InvalidDispatch("IndicesStats", p, new [] { GET }, "/_stats", "/_stats/{metric}", "/{index}/_stats", "/{index}/_stats/{metric}"); } @@ -2031,8 +1841,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Metric)) return _lowLevel.IndicesStatsAsync(p.RouteValues.Index,p.RouteValues.Metric,p.RequestParameters,ct); if (AllSet(p.RouteValues.Metric)) return _lowLevel.IndicesStatsForAllAsync(p.RouteValues.Metric,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesStatsAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesStatsForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesStatsForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesStats", p, new [] { GET }, "/_stats", "/_stats/{metric}", "/{index}/_stats", "/{index}/_stats/{metric}"); } @@ -2042,8 +1851,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.IndicesUpdateAliasesForAll(body,p.RequestParameters); - + return _lowLevel.IndicesUpdateAliasesForAll(body,p.RequestParameters); } throw InvalidDispatch("IndicesUpdateAliases", p, new [] { POST }, "/_aliases"); } @@ -2053,8 +1861,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.IndicesUpdateAliasesForAllAsync(body,p.RequestParameters,ct); - + return _lowLevel.IndicesUpdateAliasesForAllAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("IndicesUpdateAliases", p, new [] { POST }, "/_aliases"); } @@ -2065,8 +1872,7 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesUpgrade(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesUpgradeForAll(p.RequestParameters); - + return _lowLevel.IndicesUpgradeForAll(p.RequestParameters); } throw InvalidDispatch("IndicesUpgrade", p, new [] { POST }, "/_upgrade", "/{index}/_upgrade"); } @@ -2077,8 +1883,7 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesUpgradeAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesUpgradeForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesUpgradeForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("IndicesUpgrade", p, new [] { POST }, "/_upgrade", "/{index}/_upgrade"); } @@ -2090,13 +1895,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesValidateQueryGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesValidateQueryGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.IndicesValidateQueryGetForAll(p.RequestParameters); - + return _lowLevel.IndicesValidateQueryGetForAll(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesValidateQuery(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesValidateQuery(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.IndicesValidateQueryForAll(body,p.RequestParameters); - + return _lowLevel.IndicesValidateQueryForAll(body,p.RequestParameters); } throw InvalidDispatch("IndicesValidateQuery", p, new [] { GET, POST }, "/_validate/query", "/{index}/_validate/query", "/{index}/{type}/_validate/query"); } @@ -2108,13 +1911,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesValidateQueryGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesValidateQueryGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.IndicesValidateQueryGetForAllAsync(p.RequestParameters,ct); - + return _lowLevel.IndicesValidateQueryGetForAllAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.IndicesValidateQueryAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.IndicesValidateQueryAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.IndicesValidateQueryForAllAsync(body,p.RequestParameters,ct); - + return _lowLevel.IndicesValidateQueryForAllAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("IndicesValidateQuery", p, new [] { GET, POST }, "/_validate/query", "/{index}/_validate/query", "/{index}/{type}/_validate/query"); } @@ -2124,8 +1925,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.Info(p.RequestParameters); - + return _lowLevel.Info(p.RequestParameters); } throw InvalidDispatch("Info", p, new [] { GET }, "/"); } @@ -2135,8 +1935,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.InfoAsync(p.RequestParameters,ct); - + return _lowLevel.InfoAsync(p.RequestParameters,ct); } throw InvalidDispatch("Info", p, new [] { GET }, "/"); } @@ -2148,7 +1947,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.IngestDeletePipeline(p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("IngestDeletePipeline", p, new [] { DELETE }, "/_ingest/pipeline/{id}"); } @@ -2160,7 +1958,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.IngestDeletePipelineAsync(p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("IngestDeletePipeline", p, new [] { DELETE }, "/_ingest/pipeline/{id}"); } @@ -2171,8 +1968,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Id)) return _lowLevel.IngestGetPipeline(p.RouteValues.Id,p.RequestParameters); - return _lowLevel.IngestGetPipeline(p.RequestParameters); - + return _lowLevel.IngestGetPipeline(p.RequestParameters); } throw InvalidDispatch("IngestGetPipeline", p, new [] { GET }, "/_ingest/pipeline", "/_ingest/pipeline/{id}"); } @@ -2183,8 +1979,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Id)) return _lowLevel.IngestGetPipelineAsync(p.RouteValues.Id,p.RequestParameters,ct); - return _lowLevel.IngestGetPipelineAsync(p.RequestParameters,ct); - + return _lowLevel.IngestGetPipelineAsync(p.RequestParameters,ct); } throw InvalidDispatch("IngestGetPipeline", p, new [] { GET }, "/_ingest/pipeline", "/_ingest/pipeline/{id}"); } @@ -2194,8 +1989,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.IngestProcessorGrok(p.RequestParameters); - + return _lowLevel.IngestProcessorGrok(p.RequestParameters); } throw InvalidDispatch("IngestProcessorGrok", p, new [] { GET }, "/_ingest/processor/grok"); } @@ -2205,8 +1999,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.IngestProcessorGrokAsync(p.RequestParameters,ct); - + return _lowLevel.IngestProcessorGrokAsync(p.RequestParameters,ct); } throw InvalidDispatch("IngestProcessorGrok", p, new [] { GET }, "/_ingest/processor/grok"); } @@ -2218,7 +2011,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.IngestPutPipeline(p.RouteValues.Id,body,p.RequestParameters); break; - } throw InvalidDispatch("IngestPutPipeline", p, new [] { PUT }, "/_ingest/pipeline/{id}"); } @@ -2230,7 +2022,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.IngestPutPipelineAsync(p.RouteValues.Id,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("IngestPutPipeline", p, new [] { PUT }, "/_ingest/pipeline/{id}"); } @@ -2241,12 +2032,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Id)) return _lowLevel.IngestSimulateGet(p.RouteValues.Id,p.RequestParameters); - return _lowLevel.IngestSimulateGet(p.RequestParameters); - + return _lowLevel.IngestSimulateGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Id)) return _lowLevel.IngestSimulate(p.RouteValues.Id,body,p.RequestParameters); - return _lowLevel.IngestSimulate(body,p.RequestParameters); - + return _lowLevel.IngestSimulate(body,p.RequestParameters); } throw InvalidDispatch("IngestSimulate", p, new [] { GET, POST }, "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate"); } @@ -2257,12 +2046,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Id)) return _lowLevel.IngestSimulateGetAsync(p.RouteValues.Id,p.RequestParameters,ct); - return _lowLevel.IngestSimulateGetAsync(p.RequestParameters,ct); - + return _lowLevel.IngestSimulateGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Id)) return _lowLevel.IngestSimulateAsync(p.RouteValues.Id,body,p.RequestParameters,ct); - return _lowLevel.IngestSimulateAsync(body,p.RequestParameters,ct); - + return _lowLevel.IngestSimulateAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("IngestSimulate", p, new [] { GET, POST }, "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate"); } @@ -2274,13 +2061,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MgetGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.MgetGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.MgetGet(p.RequestParameters); - + return _lowLevel.MgetGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Mget(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.Mget(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.Mget(body,p.RequestParameters); - + return _lowLevel.Mget(body,p.RequestParameters); } throw InvalidDispatch("Mget", p, new [] { GET, POST }, "/_mget", "/{index}/_mget", "/{index}/{type}/_mget"); } @@ -2292,13 +2077,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MgetGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MgetGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.MgetGetAsync(p.RequestParameters,ct); - + return _lowLevel.MgetGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MgetAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MgetAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.MgetAsync(body,p.RequestParameters,ct); - + return _lowLevel.MgetAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("Mget", p, new [] { GET, POST }, "/_mget", "/{index}/_mget", "/{index}/{type}/_mget"); } @@ -2310,13 +2093,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MsearchGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.MsearchGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.MsearchGet(p.RequestParameters); - + return _lowLevel.MsearchGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Msearch(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.Msearch(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.Msearch(body,p.RequestParameters); - + return _lowLevel.Msearch(body,p.RequestParameters); } throw InvalidDispatch("Msearch", p, new [] { GET, POST }, "/_msearch", "/{index}/_msearch", "/{index}/{type}/_msearch"); } @@ -2328,13 +2109,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MsearchGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MsearchGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.MsearchGetAsync(p.RequestParameters,ct); - + return _lowLevel.MsearchGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MsearchAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MsearchAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.MsearchAsync(body,p.RequestParameters,ct); - + return _lowLevel.MsearchAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("Msearch", p, new [] { GET, POST }, "/_msearch", "/{index}/_msearch", "/{index}/{type}/_msearch"); } @@ -2346,13 +2125,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MsearchTemplateGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.MsearchTemplateGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.MsearchTemplateGet(p.RequestParameters); - + return _lowLevel.MsearchTemplateGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MsearchTemplate(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.MsearchTemplate(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.MsearchTemplate(body,p.RequestParameters); - + return _lowLevel.MsearchTemplate(body,p.RequestParameters); } throw InvalidDispatch("MsearchTemplate", p, new [] { GET, POST }, "/_msearch/template", "/{index}/_msearch/template", "/{index}/{type}/_msearch/template"); } @@ -2364,13 +2141,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MsearchTemplateGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MsearchTemplateGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.MsearchTemplateGetAsync(p.RequestParameters,ct); - + return _lowLevel.MsearchTemplateGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MsearchTemplateAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MsearchTemplateAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.MsearchTemplateAsync(body,p.RequestParameters,ct); - + return _lowLevel.MsearchTemplateAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("MsearchTemplate", p, new [] { GET, POST }, "/_msearch/template", "/{index}/_msearch/template", "/{index}/{type}/_msearch/template"); } @@ -2382,13 +2157,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MtermvectorsGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.MtermvectorsGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.MtermvectorsGet(p.RequestParameters); - + return _lowLevel.MtermvectorsGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Mtermvectors(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.Mtermvectors(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.Mtermvectors(body,p.RequestParameters); - + return _lowLevel.Mtermvectors(body,p.RequestParameters); } throw InvalidDispatch("Mtermvectors", p, new [] { GET, POST }, "/_mtermvectors", "/{index}/_mtermvectors", "/{index}/{type}/_mtermvectors"); } @@ -2400,13 +2173,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MtermvectorsGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MtermvectorsGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.MtermvectorsGetAsync(p.RequestParameters,ct); - + return _lowLevel.MtermvectorsGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.MtermvectorsAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.MtermvectorsAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.MtermvectorsAsync(body,p.RequestParameters,ct); - + return _lowLevel.MtermvectorsAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("Mtermvectors", p, new [] { GET, POST }, "/_mtermvectors", "/{index}/_mtermvectors", "/{index}/{type}/_mtermvectors"); } @@ -2417,8 +2188,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesHotThreads(p.RouteValues.NodeId,p.RequestParameters); - return _lowLevel.NodesHotThreadsForAll(p.RequestParameters); - + return _lowLevel.NodesHotThreadsForAll(p.RequestParameters); } throw InvalidDispatch("NodesHotThreads", p, new [] { GET }, "/_cluster/nodes/hotthreads", "/_cluster/nodes/hot_threads", "/_cluster/nodes/{node_id}/hotthreads", "/_cluster/nodes/{node_id}/hot_threads", "/_nodes/hotthreads", "/_nodes/hot_threads", "/_nodes/{node_id}/hotthreads", "/_nodes/{node_id}/hot_threads"); } @@ -2429,8 +2199,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesHotThreadsAsync(p.RouteValues.NodeId,p.RequestParameters,ct); - return _lowLevel.NodesHotThreadsForAllAsync(p.RequestParameters,ct); - + return _lowLevel.NodesHotThreadsForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("NodesHotThreads", p, new [] { GET }, "/_cluster/nodes/hotthreads", "/_cluster/nodes/hot_threads", "/_cluster/nodes/{node_id}/hotthreads", "/_cluster/nodes/{node_id}/hot_threads", "/_nodes/hotthreads", "/_nodes/hot_threads", "/_nodes/{node_id}/hotthreads", "/_nodes/{node_id}/hot_threads"); } @@ -2443,8 +2212,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.NodeId, p.RouteValues.Metric)) return _lowLevel.NodesInfo(p.RouteValues.NodeId,p.RouteValues.Metric,p.RequestParameters); if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesInfo(p.RouteValues.NodeId,p.RequestParameters); if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesInfoForAll(p.RouteValues.Metric,p.RequestParameters); - return _lowLevel.NodesInfoForAll(p.RequestParameters); - + return _lowLevel.NodesInfoForAll(p.RequestParameters); } throw InvalidDispatch("NodesInfo", p, new [] { GET }, "/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}"); } @@ -2457,8 +2225,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.NodeId, p.RouteValues.Metric)) return _lowLevel.NodesInfoAsync(p.RouteValues.NodeId,p.RouteValues.Metric,p.RequestParameters,ct); if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesInfoAsync(p.RouteValues.NodeId,p.RequestParameters,ct); if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesInfoForAllAsync(p.RouteValues.Metric,p.RequestParameters,ct); - return _lowLevel.NodesInfoForAllAsync(p.RequestParameters,ct); - + return _lowLevel.NodesInfoForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("NodesInfo", p, new [] { GET }, "/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}"); } @@ -2473,8 +2240,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Metric, p.RouteValues.IndexMetric)) return _lowLevel.NodesStatsForAll(p.RouteValues.Metric,p.RouteValues.IndexMetric,p.RequestParameters); if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesStats(p.RouteValues.NodeId,p.RequestParameters); if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesStatsForAll(p.RouteValues.Metric,p.RequestParameters); - return _lowLevel.NodesStatsForAll(p.RequestParameters); - + return _lowLevel.NodesStatsForAll(p.RequestParameters); } throw InvalidDispatch("NodesStats", p, new [] { GET }, "/_nodes/stats", "/_nodes/{node_id}/stats", "/_nodes/stats/{metric}", "/_nodes/{node_id}/stats/{metric}", "/_nodes/stats/{metric}/{index_metric}", "/_nodes/{node_id}/stats/{metric}/{index_metric}"); } @@ -2489,8 +2255,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Metric, p.RouteValues.IndexMetric)) return _lowLevel.NodesStatsForAllAsync(p.RouteValues.Metric,p.RouteValues.IndexMetric,p.RequestParameters,ct); if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesStatsAsync(p.RouteValues.NodeId,p.RequestParameters,ct); if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesStatsForAllAsync(p.RouteValues.Metric,p.RequestParameters,ct); - return _lowLevel.NodesStatsForAllAsync(p.RequestParameters,ct); - + return _lowLevel.NodesStatsForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("NodesStats", p, new [] { GET }, "/_nodes/stats", "/_nodes/{node_id}/stats", "/_nodes/stats/{metric}", "/_nodes/{node_id}/stats/{metric}", "/_nodes/stats/{metric}/{index_metric}", "/_nodes/{node_id}/stats/{metric}/{index_metric}"); } @@ -2503,8 +2268,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.NodeId, p.RouteValues.Metric)) return _lowLevel.NodesUsage(p.RouteValues.NodeId,p.RouteValues.Metric,p.RequestParameters); if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesUsage(p.RouteValues.NodeId,p.RequestParameters); if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesUsageForAll(p.RouteValues.Metric,p.RequestParameters); - return _lowLevel.NodesUsageForAll(p.RequestParameters); - + return _lowLevel.NodesUsageForAll(p.RequestParameters); } throw InvalidDispatch("NodesUsage", p, new [] { GET }, "/_nodes/usage", "/_nodes/{node_id}/usage", "/_nodes/usage/{metric}", "/_nodes/{node_id}/usage/{metric}"); } @@ -2517,8 +2281,7 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.NodeId, p.RouteValues.Metric)) return _lowLevel.NodesUsageAsync(p.RouteValues.NodeId,p.RouteValues.Metric,p.RequestParameters,ct); if (AllSet(p.RouteValues.NodeId)) return _lowLevel.NodesUsageAsync(p.RouteValues.NodeId,p.RequestParameters,ct); if (AllSet(p.RouteValues.Metric)) return _lowLevel.NodesUsageForAllAsync(p.RouteValues.Metric,p.RequestParameters,ct); - return _lowLevel.NodesUsageForAllAsync(p.RequestParameters,ct); - + return _lowLevel.NodesUsageForAllAsync(p.RequestParameters,ct); } throw InvalidDispatch("NodesUsage", p, new [] { GET }, "/_nodes/usage", "/_nodes/{node_id}/usage", "/_nodes/usage/{metric}", "/_nodes/{node_id}/usage/{metric}"); } @@ -2528,8 +2291,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case HEAD: - return _lowLevel.Ping(p.RequestParameters); - + return _lowLevel.Ping(p.RequestParameters); } throw InvalidDispatch("Ping", p, new [] { HEAD }, "/"); } @@ -2539,8 +2301,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case HEAD: - return _lowLevel.PingAsync(p.RequestParameters,ct); - + return _lowLevel.PingAsync(p.RequestParameters,ct); } throw InvalidDispatch("Ping", p, new [] { HEAD }, "/"); } @@ -2553,12 +2314,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScript(p.RouteValues.Id,p.RouteValues.Context,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScript(p.RouteValues.Id,body,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScriptPost(p.RouteValues.Id,p.RouteValues.Context,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScriptPost(p.RouteValues.Id,body,p.RequestParameters); break; - } throw InvalidDispatch("PutScript", p, new [] { PUT, POST }, "/_scripts/{id}", "/_scripts/{id}/{context}"); } @@ -2571,12 +2330,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScriptAsync(p.RouteValues.Id,p.RouteValues.Context,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScriptAsync(p.RouteValues.Id,body,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.Id, p.RouteValues.Context)) return _lowLevel.PutScriptPostAsync(p.RouteValues.Id,p.RouteValues.Context,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.PutScriptPostAsync(p.RouteValues.Id,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("PutScript", p, new [] { PUT, POST }, "/_scripts/{id}", "/_scripts/{id}/{context}"); } @@ -2586,8 +2343,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.Reindex(body,p.RequestParameters); - + return _lowLevel.Reindex(body,p.RequestParameters); } throw InvalidDispatch("Reindex", p, new [] { POST }, "/_reindex"); } @@ -2597,8 +2353,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.ReindexAsync(body,p.RequestParameters,ct); - + return _lowLevel.ReindexAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("Reindex", p, new [] { POST }, "/_reindex"); } @@ -2610,7 +2365,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.ReindexRethrottle(p.RouteValues.TaskId,p.RequestParameters); break; - } throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle"); } @@ -2622,7 +2376,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.ReindexRethrottleAsync(p.RouteValues.TaskId,p.RequestParameters,ct); break; - } throw InvalidDispatch("ReindexRethrottle", p, new [] { POST }, "/_reindex/{task_id}/_rethrottle", "/_update_by_query/{task_id}/_rethrottle", "/_delete_by_query/{task_id}/_rethrottle"); } @@ -2633,12 +2386,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Id)) return _lowLevel.RenderSearchTemplateGet(p.RouteValues.Id,p.RequestParameters); - return _lowLevel.RenderSearchTemplateGet(p.RequestParameters); - + return _lowLevel.RenderSearchTemplateGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Id)) return _lowLevel.RenderSearchTemplate(p.RouteValues.Id,body,p.RequestParameters); - return _lowLevel.RenderSearchTemplate(body,p.RequestParameters); - + return _lowLevel.RenderSearchTemplate(body,p.RequestParameters); } throw InvalidDispatch("RenderSearchTemplate", p, new [] { GET, POST }, "/_render/template", "/_render/template/{id}"); } @@ -2649,26 +2400,46 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Id)) return _lowLevel.RenderSearchTemplateGetAsync(p.RouteValues.Id,p.RequestParameters,ct); - return _lowLevel.RenderSearchTemplateGetAsync(p.RequestParameters,ct); - + return _lowLevel.RenderSearchTemplateGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Id)) return _lowLevel.RenderSearchTemplateAsync(p.RouteValues.Id,body,p.RequestParameters,ct); - return _lowLevel.RenderSearchTemplateAsync(body,p.RequestParameters,ct); - + return _lowLevel.RenderSearchTemplateAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("RenderSearchTemplate", p, new [] { GET, POST }, "/_render/template", "/_render/template/{id}"); } + internal TResponse ScriptsPainlessExecuteDispatch(IRequest p,SerializableData body) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.ScriptsPainlessExecuteGet(p.RequestParameters); + case POST: + return _lowLevel.ScriptsPainlessExecute(body,p.RequestParameters); + } + throw InvalidDispatch("ScriptsPainlessExecute", p, new [] { GET, POST }, "/_scripts/painless/_execute"); + } + + internal Task ScriptsPainlessExecuteDispatchAsync(IRequest p,SerializableData body, CancellationToken ct) where TResponse : class, IElasticsearchResponse, new() + { + switch(p.HttpMethod) + { + case GET: + return _lowLevel.ScriptsPainlessExecuteGetAsync(p.RequestParameters,ct); + case POST: + return _lowLevel.ScriptsPainlessExecuteAsync(body,p.RequestParameters,ct); + } + throw InvalidDispatch("ScriptsPainlessExecute", p, new [] { GET, POST }, "/_scripts/painless/_execute"); + } + internal TResponse ScrollDispatch(IRequest p,SerializableData body) where TResponse : class, IElasticsearchResponse, new() { switch(p.HttpMethod) { case GET: - return _lowLevel.ScrollGet(p.RequestParameters); - + return _lowLevel.ScrollGet(p.RequestParameters); case POST: - return _lowLevel.Scroll(body,p.RequestParameters); - + return _lowLevel.Scroll(body,p.RequestParameters); } throw InvalidDispatch("Scroll", p, new [] { GET, POST }, "/_search/scroll"); } @@ -2678,11 +2449,9 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.ScrollGetAsync(p.RequestParameters,ct); - + return _lowLevel.ScrollGetAsync(p.RequestParameters,ct); case POST: - return _lowLevel.ScrollAsync(body,p.RequestParameters,ct); - + return _lowLevel.ScrollAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("Scroll", p, new [] { GET, POST }, "/_search/scroll"); } @@ -2694,13 +2463,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.SearchGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.SearchGet(p.RequestParameters); - + return _lowLevel.SearchGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Search(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.Search(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.Search(body,p.RequestParameters); - + return _lowLevel.Search(body,p.RequestParameters); } throw InvalidDispatch("Search", p, new [] { GET, POST }, "/_search", "/{index}/_search", "/{index}/{type}/_search"); } @@ -2712,13 +2479,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.SearchGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.SearchGetAsync(p.RequestParameters,ct); - + return _lowLevel.SearchGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.SearchAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.SearchAsync(body,p.RequestParameters,ct); - + return _lowLevel.SearchAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("Search", p, new [] { GET, POST }, "/_search", "/{index}/_search", "/{index}/{type}/_search"); } @@ -2729,12 +2494,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchShardsGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.SearchShardsGet(p.RequestParameters); - + return _lowLevel.SearchShardsGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchShards(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.SearchShards(p.RequestParameters); - + return _lowLevel.SearchShards(p.RequestParameters); } throw InvalidDispatch("SearchShards", p, new [] { GET, POST }, "/_search_shards", "/{index}/_search_shards"); } @@ -2745,12 +2508,10 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchShardsGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.SearchShardsGetAsync(p.RequestParameters,ct); - + return _lowLevel.SearchShardsGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchShardsAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.SearchShardsAsync(p.RequestParameters,ct); - + return _lowLevel.SearchShardsAsync(p.RequestParameters,ct); } throw InvalidDispatch("SearchShards", p, new [] { GET, POST }, "/_search_shards", "/{index}/_search_shards"); } @@ -2762,13 +2523,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.SearchTemplateGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchTemplateGet(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.SearchTemplateGet(p.RequestParameters); - + return _lowLevel.SearchTemplateGet(p.RequestParameters); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.SearchTemplate(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchTemplate(p.RouteValues.Index,body,p.RequestParameters); - return _lowLevel.SearchTemplate(body,p.RequestParameters); - + return _lowLevel.SearchTemplate(body,p.RequestParameters); } throw InvalidDispatch("SearchTemplate", p, new [] { GET, POST }, "/_search/template", "/{index}/_search/template", "/{index}/{type}/_search/template"); } @@ -2780,13 +2539,11 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.SearchTemplateGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchTemplateGetAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.SearchTemplateGetAsync(p.RequestParameters,ct); - + return _lowLevel.SearchTemplateGetAsync(p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.SearchTemplateAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSet(p.RouteValues.Index)) return _lowLevel.SearchTemplateAsync(p.RouteValues.Index,body,p.RequestParameters,ct); - return _lowLevel.SearchTemplateAsync(body,p.RequestParameters,ct); - + return _lowLevel.SearchTemplateAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("SearchTemplate", p, new [] { GET, POST }, "/_search/template", "/{index}/_search/template", "/{index}/{type}/_search/template"); } @@ -2798,11 +2555,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotCreate(p.RouteValues.Repository,p.RouteValues.Snapshot,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotCreatePost(p.RouteValues.Repository,p.RouteValues.Snapshot,body,p.RequestParameters); break; - } throw InvalidDispatch("SnapshotCreate", p, new [] { PUT, POST }, "/_snapshot/{repository}/{snapshot}"); } @@ -2814,11 +2569,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotCreateAsync(p.RouteValues.Repository,p.RouteValues.Snapshot,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotCreatePostAsync(p.RouteValues.Repository,p.RouteValues.Snapshot,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("SnapshotCreate", p, new [] { PUT, POST }, "/_snapshot/{repository}/{snapshot}"); } @@ -2830,11 +2583,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotCreateRepository(p.RouteValues.Repository,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotCreateRepositoryPost(p.RouteValues.Repository,body,p.RequestParameters); break; - } throw InvalidDispatch("SnapshotCreateRepository", p, new [] { PUT, POST }, "/_snapshot/{repository}"); } @@ -2846,11 +2597,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotCreateRepositoryAsync(p.RouteValues.Repository,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotCreateRepositoryPostAsync(p.RouteValues.Repository,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("SnapshotCreateRepository", p, new [] { PUT, POST }, "/_snapshot/{repository}"); } @@ -2862,7 +2611,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotDelete(p.RouteValues.Repository,p.RouteValues.Snapshot,p.RequestParameters); break; - } throw InvalidDispatch("SnapshotDelete", p, new [] { DELETE }, "/_snapshot/{repository}/{snapshot}"); } @@ -2874,7 +2622,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotDeleteAsync(p.RouteValues.Repository,p.RouteValues.Snapshot,p.RequestParameters,ct); break; - } throw InvalidDispatch("SnapshotDelete", p, new [] { DELETE }, "/_snapshot/{repository}/{snapshot}"); } @@ -2886,7 +2633,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotDeleteRepository(p.RouteValues.Repository,p.RequestParameters); break; - } throw InvalidDispatch("SnapshotDeleteRepository", p, new [] { DELETE }, "/_snapshot/{repository}"); } @@ -2898,7 +2644,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotDeleteRepositoryAsync(p.RouteValues.Repository,p.RequestParameters,ct); break; - } throw InvalidDispatch("SnapshotDeleteRepository", p, new [] { DELETE }, "/_snapshot/{repository}"); } @@ -2910,7 +2655,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotGet(p.RouteValues.Repository,p.RouteValues.Snapshot,p.RequestParameters); break; - } throw InvalidDispatch("SnapshotGet", p, new [] { GET }, "/_snapshot/{repository}/{snapshot}"); } @@ -2922,7 +2666,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotGetAsync(p.RouteValues.Repository,p.RouteValues.Snapshot,p.RequestParameters,ct); break; - } throw InvalidDispatch("SnapshotGet", p, new [] { GET }, "/_snapshot/{repository}/{snapshot}"); } @@ -2933,8 +2676,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Repository)) return _lowLevel.SnapshotGetRepository(p.RouteValues.Repository,p.RequestParameters); - return _lowLevel.SnapshotGetRepository(p.RequestParameters); - + return _lowLevel.SnapshotGetRepository(p.RequestParameters); } throw InvalidDispatch("SnapshotGetRepository", p, new [] { GET }, "/_snapshot", "/_snapshot/{repository}"); } @@ -2945,8 +2687,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Repository)) return _lowLevel.SnapshotGetRepositoryAsync(p.RouteValues.Repository,p.RequestParameters,ct); - return _lowLevel.SnapshotGetRepositoryAsync(p.RequestParameters,ct); - + return _lowLevel.SnapshotGetRepositoryAsync(p.RequestParameters,ct); } throw InvalidDispatch("SnapshotGetRepository", p, new [] { GET }, "/_snapshot", "/_snapshot/{repository}"); } @@ -2958,7 +2699,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotRestore(p.RouteValues.Repository,p.RouteValues.Snapshot,body,p.RequestParameters); break; - } throw InvalidDispatch("SnapshotRestore", p, new [] { POST }, "/_snapshot/{repository}/{snapshot}/_restore"); } @@ -2970,7 +2710,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotRestoreAsync(p.RouteValues.Repository,p.RouteValues.Snapshot,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("SnapshotRestore", p, new [] { POST }, "/_snapshot/{repository}/{snapshot}/_restore"); } @@ -2982,8 +2721,7 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotStatus(p.RouteValues.Repository,p.RouteValues.Snapshot,p.RequestParameters); if (AllSet(p.RouteValues.Repository)) return _lowLevel.SnapshotStatus(p.RouteValues.Repository,p.RequestParameters); - return _lowLevel.SnapshotStatus(p.RequestParameters); - + return _lowLevel.SnapshotStatus(p.RequestParameters); } throw InvalidDispatch("SnapshotStatus", p, new [] { GET }, "/_snapshot/_status", "/_snapshot/{repository}/_status", "/_snapshot/{repository}/{snapshot}/_status"); } @@ -2995,8 +2733,7 @@ internal partial class LowLevelDispatch case GET: if (AllSet(p.RouteValues.Repository, p.RouteValues.Snapshot)) return _lowLevel.SnapshotStatusAsync(p.RouteValues.Repository,p.RouteValues.Snapshot,p.RequestParameters,ct); if (AllSet(p.RouteValues.Repository)) return _lowLevel.SnapshotStatusAsync(p.RouteValues.Repository,p.RequestParameters,ct); - return _lowLevel.SnapshotStatusAsync(p.RequestParameters,ct); - + return _lowLevel.SnapshotStatusAsync(p.RequestParameters,ct); } throw InvalidDispatch("SnapshotStatus", p, new [] { GET }, "/_snapshot/_status", "/_snapshot/{repository}/_status", "/_snapshot/{repository}/{snapshot}/_status"); } @@ -3008,7 +2745,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotVerifyRepository(p.RouteValues.Repository,p.RequestParameters); break; - } throw InvalidDispatch("SnapshotVerifyRepository", p, new [] { POST }, "/_snapshot/{repository}/_verify"); } @@ -3020,7 +2756,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Repository)) return _lowLevel.SnapshotVerifyRepositoryAsync(p.RouteValues.Repository,p.RequestParameters,ct); break; - } throw InvalidDispatch("SnapshotVerifyRepository", p, new [] { POST }, "/_snapshot/{repository}/_verify"); } @@ -3031,8 +2766,7 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.TaskId)) return _lowLevel.TasksCancel(p.RouteValues.TaskId,p.RequestParameters); - return _lowLevel.TasksCancel(p.RequestParameters); - + return _lowLevel.TasksCancel(p.RequestParameters); } throw InvalidDispatch("TasksCancel", p, new [] { POST }, "/_tasks/_cancel", "/_tasks/{task_id}/_cancel"); } @@ -3043,8 +2777,7 @@ internal partial class LowLevelDispatch { case POST: if (AllSet(p.RouteValues.TaskId)) return _lowLevel.TasksCancelAsync(p.RouteValues.TaskId,p.RequestParameters,ct); - return _lowLevel.TasksCancelAsync(p.RequestParameters,ct); - + return _lowLevel.TasksCancelAsync(p.RequestParameters,ct); } throw InvalidDispatch("TasksCancel", p, new [] { POST }, "/_tasks/_cancel", "/_tasks/{task_id}/_cancel"); } @@ -3056,7 +2789,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.TasksGet(p.RouteValues.TaskId,p.RequestParameters); break; - } throw InvalidDispatch("TasksGet", p, new [] { GET }, "/_tasks/{task_id}"); } @@ -3068,7 +2800,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.TaskId)) return _lowLevel.TasksGetAsync(p.RouteValues.TaskId,p.RequestParameters,ct); break; - } throw InvalidDispatch("TasksGet", p, new [] { GET }, "/_tasks/{task_id}"); } @@ -3078,8 +2809,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.TasksList(p.RequestParameters); - + return _lowLevel.TasksList(p.RequestParameters); } throw InvalidDispatch("TasksList", p, new [] { GET }, "/_tasks"); } @@ -3089,8 +2819,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.TasksListAsync(p.RequestParameters,ct); - + return _lowLevel.TasksListAsync(p.RequestParameters,ct); } throw InvalidDispatch("TasksList", p, new [] { GET }, "/_tasks"); } @@ -3103,12 +2832,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.TermvectorsGet(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.TermvectorsGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Termvectors(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.Termvectors(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); break; - } throw InvalidDispatch("Termvectors", p, new [] { GET, POST }, "/{index}/{type}/_termvectors", "/{index}/{type}/{id}/_termvectors"); } @@ -3121,12 +2848,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.TermvectorsGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.TermvectorsGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.TermvectorsAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.TermvectorsAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("Termvectors", p, new [] { GET, POST }, "/{index}/{type}/_termvectors", "/{index}/{type}/{id}/_termvectors"); } @@ -3138,7 +2863,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.Update(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters); break; - } throw InvalidDispatch("Update", p, new [] { POST }, "/{index}/{type}/{id}/_update"); } @@ -3150,7 +2874,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index, p.RouteValues.Type, p.RouteValues.Id)) return _lowLevel.UpdateAsync(p.RouteValues.Index,p.RouteValues.Type,p.RouteValues.Id,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("Update", p, new [] { POST }, "/{index}/{type}/{id}/_update"); } @@ -3163,7 +2886,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.UpdateByQuery(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.UpdateByQuery(p.RouteValues.Index,body,p.RequestParameters); break; - } throw InvalidDispatch("UpdateByQuery", p, new [] { POST }, "/{index}/_update_by_query", "/{index}/{type}/_update_by_query"); } @@ -3176,7 +2898,6 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.UpdateByQueryAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.UpdateByQueryAsync(p.RouteValues.Index,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("UpdateByQuery", p, new [] { POST }, "/{index}/_update_by_query", "/{index}/{type}/_update_by_query"); } @@ -3189,12 +2910,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.XpackGraphExploreGet(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.XpackGraphExploreGet(p.RouteValues.Index,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.XpackGraphExplore(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.XpackGraphExplore(p.RouteValues.Index,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackGraphExplore", p, new [] { GET, POST }, "/{index}/_xpack/graph/_explore", "/{index}/{type}/_xpack/graph/_explore"); } @@ -3207,12 +2926,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.XpackGraphExploreGetAsync(p.RouteValues.Index,p.RouteValues.Type,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.XpackGraphExploreGetAsync(p.RouteValues.Index,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.Index, p.RouteValues.Type)) return _lowLevel.XpackGraphExploreAsync(p.RouteValues.Index,p.RouteValues.Type,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.XpackGraphExploreAsync(p.RouteValues.Index,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackGraphExplore", p, new [] { GET, POST }, "/{index}/_xpack/graph/_explore", "/{index}/{type}/_xpack/graph/_explore"); } @@ -3222,8 +2939,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackInfo(p.RequestParameters); - + return _lowLevel.XpackInfo(p.RequestParameters); } throw InvalidDispatch("XpackInfo", p, new [] { GET }, "/_xpack"); } @@ -3233,8 +2949,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackInfoAsync(p.RequestParameters,ct); - + return _lowLevel.XpackInfoAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackInfo", p, new [] { GET }, "/_xpack"); } @@ -3244,8 +2959,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackUsage(p.RequestParameters); - + return _lowLevel.XpackUsage(p.RequestParameters); } throw InvalidDispatch("XpackUsage", p, new [] { GET }, "/_xpack/usage"); } @@ -3255,8 +2969,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackUsageAsync(p.RequestParameters,ct); - + return _lowLevel.XpackUsageAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackUsage", p, new [] { GET }, "/_xpack/usage"); } @@ -3266,8 +2979,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.XpackLicenseDelete(p.RequestParameters); - + return _lowLevel.XpackLicenseDelete(p.RequestParameters); } throw InvalidDispatch("XpackLicenseDelete", p, new [] { DELETE }, "/_xpack/license"); } @@ -3277,8 +2989,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.XpackLicenseDeleteAsync(p.RequestParameters,ct); - + return _lowLevel.XpackLicenseDeleteAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackLicenseDelete", p, new [] { DELETE }, "/_xpack/license"); } @@ -3288,8 +2999,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackLicenseGet(p.RequestParameters); - + return _lowLevel.XpackLicenseGet(p.RequestParameters); } throw InvalidDispatch("XpackLicenseGet", p, new [] { GET }, "/_xpack/license"); } @@ -3299,8 +3009,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackLicenseGetAsync(p.RequestParameters,ct); - + return _lowLevel.XpackLicenseGetAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackLicenseGet", p, new [] { GET }, "/_xpack/license"); } @@ -3310,8 +3019,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackLicenseGetTrialStatus(p.RequestParameters); - + return _lowLevel.XpackLicenseGetTrialStatus(p.RequestParameters); } throw InvalidDispatch("XpackLicenseGetTrialStatus", p, new [] { GET }, "/_xpack/license/trial_status"); } @@ -3321,8 +3029,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackLicenseGetTrialStatusAsync(p.RequestParameters,ct); - + return _lowLevel.XpackLicenseGetTrialStatusAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackLicenseGetTrialStatus", p, new [] { GET }, "/_xpack/license/trial_status"); } @@ -3332,8 +3039,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case PUT: - return _lowLevel.XpackLicensePost(body,p.RequestParameters); - + return _lowLevel.XpackLicensePost(body,p.RequestParameters); } throw InvalidDispatch("XpackLicensePost", p, new [] { PUT }, "/_xpack/license"); } @@ -3343,8 +3049,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case PUT: - return _lowLevel.XpackLicensePostAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackLicensePostAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("XpackLicensePost", p, new [] { PUT }, "/_xpack/license"); } @@ -3354,8 +3059,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackLicensePostStartTrial(p.RequestParameters); - + return _lowLevel.XpackLicensePostStartTrial(p.RequestParameters); } throw InvalidDispatch("XpackLicensePostStartTrial", p, new [] { POST }, "/_xpack/license/start_trial"); } @@ -3365,8 +3069,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackLicensePostStartTrialAsync(p.RequestParameters,ct); - + return _lowLevel.XpackLicensePostStartTrialAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackLicensePostStartTrial", p, new [] { POST }, "/_xpack/license/start_trial"); } @@ -3378,7 +3081,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlCloseJob(p.RouteValues.JobId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlCloseJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_close"); } @@ -3390,7 +3092,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlCloseJobAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlCloseJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_close"); } @@ -3402,7 +3103,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlDeleteDatafeed(p.RouteValues.DatafeedId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlDeleteDatafeed", p, new [] { DELETE }, "/_xpack/ml/datafeeds/{datafeed_id}"); } @@ -3414,7 +3114,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlDeleteDatafeedAsync(p.RouteValues.DatafeedId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlDeleteDatafeed", p, new [] { DELETE }, "/_xpack/ml/datafeeds/{datafeed_id}"); } @@ -3424,8 +3123,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.XpackMlDeleteExpiredData(p.RequestParameters); - + return _lowLevel.XpackMlDeleteExpiredData(p.RequestParameters); } throw InvalidDispatch("XpackMlDeleteExpiredData", p, new [] { DELETE }, "/_xpack/ml/_delete_expired_data"); } @@ -3435,8 +3133,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.XpackMlDeleteExpiredDataAsync(p.RequestParameters,ct); - + return _lowLevel.XpackMlDeleteExpiredDataAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackMlDeleteExpiredData", p, new [] { DELETE }, "/_xpack/ml/_delete_expired_data"); } @@ -3448,7 +3145,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlDeleteJob(p.RouteValues.JobId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlDeleteJob", p, new [] { DELETE }, "/_xpack/ml/anomaly_detectors/{job_id}"); } @@ -3460,7 +3156,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlDeleteJobAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlDeleteJob", p, new [] { DELETE }, "/_xpack/ml/anomaly_detectors/{job_id}"); } @@ -3472,7 +3167,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlDeleteModelSnapshot(p.RouteValues.JobId,p.RouteValues.SnapshotId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlDeleteModelSnapshot", p, new [] { DELETE }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}"); } @@ -3484,7 +3178,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlDeleteModelSnapshotAsync(p.RouteValues.JobId,p.RouteValues.SnapshotId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlDeleteModelSnapshot", p, new [] { DELETE }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}"); } @@ -3496,7 +3189,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlFlushJob(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlFlushJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_flush"); } @@ -3508,7 +3200,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlFlushJobAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlFlushJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_flush"); } @@ -3520,7 +3211,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlForecast(p.RouteValues.JobId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlForecast", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_forecast"); } @@ -3532,7 +3222,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlForecastAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlForecast", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_forecast"); } @@ -3544,11 +3233,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetBuckets(p.RouteValues.JobId,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetBuckets(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlGetBuckets", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/buckets"); } @@ -3560,11 +3247,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetBucketsAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetBucketsAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlGetBuckets", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/buckets"); } @@ -3577,12 +3262,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.JobId, p.RouteValues.CategoryId)) return _lowLevel.XpackMlGetCategories(p.RouteValues.JobId,long.Parse(p.RouteValues.CategoryId),p.RequestParameters); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetCategories(p.RouteValues.JobId,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.JobId, p.RouteValues.CategoryId)) return _lowLevel.XpackMlGetCategories(p.RouteValues.JobId,long.Parse(p.RouteValues.CategoryId),body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetCategories(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlGetCategories", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id}", "/_xpack/ml/anomaly_detectors/{job_id}/results/categories/"); } @@ -3595,12 +3278,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.JobId, p.RouteValues.CategoryId)) return _lowLevel.XpackMlGetCategoriesAsync(p.RouteValues.JobId,long.Parse(p.RouteValues.CategoryId),p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetCategoriesAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.JobId, p.RouteValues.CategoryId)) return _lowLevel.XpackMlGetCategoriesAsync(p.RouteValues.JobId,long.Parse(p.RouteValues.CategoryId),body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetCategoriesAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlGetCategories", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id}", "/_xpack/ml/anomaly_detectors/{job_id}/results/categories/"); } @@ -3611,8 +3292,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlGetDatafeeds(p.RouteValues.DatafeedId,p.RequestParameters); - return _lowLevel.XpackMlGetDatafeeds(p.RequestParameters); - + return _lowLevel.XpackMlGetDatafeeds(p.RequestParameters); } throw InvalidDispatch("XpackMlGetDatafeeds", p, new [] { GET }, "/_xpack/ml/datafeeds/{datafeed_id}", "/_xpack/ml/datafeeds"); } @@ -3623,8 +3303,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlGetDatafeedsAsync(p.RouteValues.DatafeedId,p.RequestParameters,ct); - return _lowLevel.XpackMlGetDatafeedsAsync(p.RequestParameters,ct); - + return _lowLevel.XpackMlGetDatafeedsAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackMlGetDatafeeds", p, new [] { GET }, "/_xpack/ml/datafeeds/{datafeed_id}", "/_xpack/ml/datafeeds"); } @@ -3635,8 +3314,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlGetDatafeedStats(p.RouteValues.DatafeedId,p.RequestParameters); - return _lowLevel.XpackMlGetDatafeedStats(p.RequestParameters); - + return _lowLevel.XpackMlGetDatafeedStats(p.RequestParameters); } throw InvalidDispatch("XpackMlGetDatafeedStats", p, new [] { GET }, "/_xpack/ml/datafeeds/{datafeed_id}/_stats", "/_xpack/ml/datafeeds/_stats"); } @@ -3647,8 +3325,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlGetDatafeedStatsAsync(p.RouteValues.DatafeedId,p.RequestParameters,ct); - return _lowLevel.XpackMlGetDatafeedStatsAsync(p.RequestParameters,ct); - + return _lowLevel.XpackMlGetDatafeedStatsAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackMlGetDatafeedStats", p, new [] { GET }, "/_xpack/ml/datafeeds/{datafeed_id}/_stats", "/_xpack/ml/datafeeds/_stats"); } @@ -3660,11 +3337,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetInfluencers(p.RouteValues.JobId,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetInfluencers(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlGetInfluencers", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/influencers"); } @@ -3676,11 +3351,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetInfluencersAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetInfluencersAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlGetInfluencers", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/influencers"); } @@ -3691,8 +3364,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.JobId)) return _lowLevel.XpackMlGetJobs(p.RouteValues.JobId,p.RequestParameters); - return _lowLevel.XpackMlGetJobs(p.RequestParameters); - + return _lowLevel.XpackMlGetJobs(p.RequestParameters); } throw InvalidDispatch("XpackMlGetJobs", p, new [] { GET }, "/_xpack/ml/anomaly_detectors/{job_id}", "/_xpack/ml/anomaly_detectors"); } @@ -3703,8 +3375,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.JobId)) return _lowLevel.XpackMlGetJobsAsync(p.RouteValues.JobId,p.RequestParameters,ct); - return _lowLevel.XpackMlGetJobsAsync(p.RequestParameters,ct); - + return _lowLevel.XpackMlGetJobsAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackMlGetJobs", p, new [] { GET }, "/_xpack/ml/anomaly_detectors/{job_id}", "/_xpack/ml/anomaly_detectors"); } @@ -3715,8 +3386,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.JobId)) return _lowLevel.XpackMlGetJobStats(p.RouteValues.JobId,p.RequestParameters); - return _lowLevel.XpackMlGetJobStats(p.RequestParameters); - + return _lowLevel.XpackMlGetJobStats(p.RequestParameters); } throw InvalidDispatch("XpackMlGetJobStats", p, new [] { GET }, "/_xpack/ml/anomaly_detectors/_stats", "/_xpack/ml/anomaly_detectors/{job_id}/_stats"); } @@ -3727,8 +3397,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.JobId)) return _lowLevel.XpackMlGetJobStatsAsync(p.RouteValues.JobId,p.RequestParameters,ct); - return _lowLevel.XpackMlGetJobStatsAsync(p.RequestParameters,ct); - + return _lowLevel.XpackMlGetJobStatsAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackMlGetJobStats", p, new [] { GET }, "/_xpack/ml/anomaly_detectors/_stats", "/_xpack/ml/anomaly_detectors/{job_id}/_stats"); } @@ -3741,12 +3410,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlGetModelSnapshots(p.RouteValues.JobId,p.RouteValues.SnapshotId,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetModelSnapshots(p.RouteValues.JobId,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlGetModelSnapshots(p.RouteValues.JobId,p.RouteValues.SnapshotId,body,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetModelSnapshots(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlGetModelSnapshots", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots"); } @@ -3759,12 +3426,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlGetModelSnapshotsAsync(p.RouteValues.JobId,p.RouteValues.SnapshotId,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetModelSnapshotsAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlGetModelSnapshotsAsync(p.RouteValues.JobId,p.RouteValues.SnapshotId,body,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetModelSnapshotsAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlGetModelSnapshots", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots"); } @@ -3776,11 +3441,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetOverallBuckets(p.RouteValues.JobId,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetOverallBuckets(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlGetOverallBuckets", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets"); } @@ -3792,11 +3455,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetOverallBucketsAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetOverallBucketsAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlGetOverallBuckets", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets"); } @@ -3808,11 +3469,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetRecords(p.RouteValues.JobId,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetRecords(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlGetRecords", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/records"); } @@ -3824,11 +3483,9 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetRecordsAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlGetRecordsAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlGetRecords", p, new [] { GET, POST }, "/_xpack/ml/anomaly_detectors/{job_id}/results/records"); } @@ -3840,7 +3497,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlOpenJob(p.RouteValues.JobId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlOpenJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_open"); } @@ -3852,7 +3508,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlOpenJobAsync(p.RouteValues.JobId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlOpenJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_open"); } @@ -3864,7 +3519,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlPostData(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlPostData", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_data"); } @@ -3876,7 +3530,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlPostDataAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlPostData", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_data"); } @@ -3888,7 +3541,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlPreviewDatafeed(p.RouteValues.DatafeedId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlPreviewDatafeed", p, new [] { GET }, "/_xpack/ml/datafeeds/{datafeed_id}/_preview"); } @@ -3900,7 +3552,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlPreviewDatafeedAsync(p.RouteValues.DatafeedId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlPreviewDatafeed", p, new [] { GET }, "/_xpack/ml/datafeeds/{datafeed_id}/_preview"); } @@ -3912,7 +3563,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlPutDatafeed(p.RouteValues.DatafeedId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlPutDatafeed", p, new [] { PUT }, "/_xpack/ml/datafeeds/{datafeed_id}"); } @@ -3924,7 +3574,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlPutDatafeedAsync(p.RouteValues.DatafeedId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlPutDatafeed", p, new [] { PUT }, "/_xpack/ml/datafeeds/{datafeed_id}"); } @@ -3936,7 +3585,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlPutJob(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlPutJob", p, new [] { PUT }, "/_xpack/ml/anomaly_detectors/{job_id}"); } @@ -3948,7 +3596,6 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlPutJobAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlPutJob", p, new [] { PUT }, "/_xpack/ml/anomaly_detectors/{job_id}"); } @@ -3960,7 +3607,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlRevertModelSnapshot(p.RouteValues.JobId,p.RouteValues.SnapshotId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlRevertModelSnapshot", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert"); } @@ -3972,7 +3618,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlRevertModelSnapshotAsync(p.RouteValues.JobId,p.RouteValues.SnapshotId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlRevertModelSnapshot", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert"); } @@ -3984,7 +3629,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlStartDatafeed(p.RouteValues.DatafeedId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlStartDatafeed", p, new [] { POST }, "/_xpack/ml/datafeeds/{datafeed_id}/_start"); } @@ -3996,7 +3640,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlStartDatafeedAsync(p.RouteValues.DatafeedId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlStartDatafeed", p, new [] { POST }, "/_xpack/ml/datafeeds/{datafeed_id}/_start"); } @@ -4008,7 +3651,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlStopDatafeed(p.RouteValues.DatafeedId,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlStopDatafeed", p, new [] { POST }, "/_xpack/ml/datafeeds/{datafeed_id}/_stop"); } @@ -4020,7 +3662,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlStopDatafeedAsync(p.RouteValues.DatafeedId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlStopDatafeed", p, new [] { POST }, "/_xpack/ml/datafeeds/{datafeed_id}/_stop"); } @@ -4032,7 +3673,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlUpdateDatafeed(p.RouteValues.DatafeedId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlUpdateDatafeed", p, new [] { POST }, "/_xpack/ml/datafeeds/{datafeed_id}/_update"); } @@ -4044,7 +3684,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.DatafeedId)) return _lowLevel.XpackMlUpdateDatafeedAsync(p.RouteValues.DatafeedId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlUpdateDatafeed", p, new [] { POST }, "/_xpack/ml/datafeeds/{datafeed_id}/_update"); } @@ -4056,7 +3695,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlUpdateJob(p.RouteValues.JobId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlUpdateJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_update"); } @@ -4068,7 +3706,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId)) return _lowLevel.XpackMlUpdateJobAsync(p.RouteValues.JobId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlUpdateJob", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/_update"); } @@ -4080,7 +3717,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlUpdateModelSnapshot(p.RouteValues.JobId,p.RouteValues.SnapshotId,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackMlUpdateModelSnapshot", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update"); } @@ -4092,7 +3728,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.JobId, p.RouteValues.SnapshotId)) return _lowLevel.XpackMlUpdateModelSnapshotAsync(p.RouteValues.JobId,p.RouteValues.SnapshotId,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMlUpdateModelSnapshot", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update"); } @@ -4102,8 +3737,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackMlValidate(body,p.RequestParameters); - + return _lowLevel.XpackMlValidate(body,p.RequestParameters); } throw InvalidDispatch("XpackMlValidate", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/_validate"); } @@ -4113,8 +3747,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackMlValidateAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackMlValidateAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("XpackMlValidate", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/_validate"); } @@ -4124,8 +3757,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackMlValidateDetector(body,p.RequestParameters); - + return _lowLevel.XpackMlValidateDetector(body,p.RequestParameters); } throw InvalidDispatch("XpackMlValidateDetector", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/_validate/detector"); } @@ -4135,8 +3767,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackMlValidateDetectorAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackMlValidateDetectorAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("XpackMlValidateDetector", p, new [] { POST }, "/_xpack/ml/anomaly_detectors/_validate/detector"); } @@ -4147,8 +3778,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.XpackMigrationDeprecations(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.XpackMigrationDeprecations(p.RequestParameters); - + return _lowLevel.XpackMigrationDeprecations(p.RequestParameters); } throw InvalidDispatch("XpackMigrationDeprecations", p, new [] { GET }, "/_xpack/migration/deprecations", "/{index}/_xpack/migration/deprecations"); } @@ -4159,8 +3789,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.XpackMigrationDeprecationsAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.XpackMigrationDeprecationsAsync(p.RequestParameters,ct); - + return _lowLevel.XpackMigrationDeprecationsAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackMigrationDeprecations", p, new [] { GET }, "/_xpack/migration/deprecations", "/{index}/_xpack/migration/deprecations"); } @@ -4171,8 +3800,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.XpackMigrationGetAssistance(p.RouteValues.Index,p.RequestParameters); - return _lowLevel.XpackMigrationGetAssistance(p.RequestParameters); - + return _lowLevel.XpackMigrationGetAssistance(p.RequestParameters); } throw InvalidDispatch("XpackMigrationGetAssistance", p, new [] { GET }, "/_xpack/migration/assistance", "/_xpack/migration/assistance/{index}"); } @@ -4183,8 +3811,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Index)) return _lowLevel.XpackMigrationGetAssistanceAsync(p.RouteValues.Index,p.RequestParameters,ct); - return _lowLevel.XpackMigrationGetAssistanceAsync(p.RequestParameters,ct); - + return _lowLevel.XpackMigrationGetAssistanceAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackMigrationGetAssistance", p, new [] { GET }, "/_xpack/migration/assistance", "/_xpack/migration/assistance/{index}"); } @@ -4196,7 +3823,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.XpackMigrationUpgrade(p.RouteValues.Index,p.RequestParameters); break; - } throw InvalidDispatch("XpackMigrationUpgrade", p, new [] { POST }, "/_xpack/migration/upgrade/{index}"); } @@ -4208,7 +3834,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Index)) return _lowLevel.XpackMigrationUpgradeAsync(p.RouteValues.Index,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackMigrationUpgrade", p, new [] { POST }, "/_xpack/migration/upgrade/{index}"); } @@ -4218,8 +3843,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackSecurityAuthenticate(p.RequestParameters); - + return _lowLevel.XpackSecurityAuthenticate(p.RequestParameters); } throw InvalidDispatch("XpackSecurityAuthenticate", p, new [] { GET }, "/_xpack/security/_authenticate"); } @@ -4229,8 +3853,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case GET: - return _lowLevel.XpackSecurityAuthenticateAsync(p.RequestParameters,ct); - + return _lowLevel.XpackSecurityAuthenticateAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackSecurityAuthenticate", p, new [] { GET }, "/_xpack/security/_authenticate"); } @@ -4241,12 +3864,10 @@ internal partial class LowLevelDispatch { case PUT: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityChangePassword(p.RouteValues.Username,body,p.RequestParameters); - return _lowLevel.XpackSecurityChangePassword(body,p.RequestParameters); - + return _lowLevel.XpackSecurityChangePassword(body,p.RequestParameters); case POST: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityChangePasswordPost(p.RouteValues.Username,body,p.RequestParameters); - return _lowLevel.XpackSecurityChangePasswordPost(body,p.RequestParameters); - + return _lowLevel.XpackSecurityChangePasswordPost(body,p.RequestParameters); } throw InvalidDispatch("XpackSecurityChangePassword", p, new [] { PUT, POST }, "/_xpack/security/user/{username}/_password", "/_xpack/security/user/_password"); } @@ -4257,12 +3878,10 @@ internal partial class LowLevelDispatch { case PUT: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityChangePasswordAsync(p.RouteValues.Username,body,p.RequestParameters,ct); - return _lowLevel.XpackSecurityChangePasswordAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackSecurityChangePasswordAsync(body,p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityChangePasswordPostAsync(p.RouteValues.Username,body,p.RequestParameters,ct); - return _lowLevel.XpackSecurityChangePasswordPostAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackSecurityChangePasswordPostAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("XpackSecurityChangePassword", p, new [] { PUT, POST }, "/_xpack/security/user/{username}/_password", "/_xpack/security/user/_password"); } @@ -4274,7 +3893,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Realms)) return _lowLevel.XpackSecurityClearCachedRealms(p.RouteValues.Realms,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityClearCachedRealms", p, new [] { POST }, "/_xpack/security/realm/{realms}/_clear_cache"); } @@ -4286,7 +3904,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Realms)) return _lowLevel.XpackSecurityClearCachedRealmsAsync(p.RouteValues.Realms,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityClearCachedRealms", p, new [] { POST }, "/_xpack/security/realm/{realms}/_clear_cache"); } @@ -4298,7 +3915,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityClearCachedRoles(p.RouteValues.Name,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityClearCachedRoles", p, new [] { POST }, "/_xpack/security/role/{name}/_clear_cache"); } @@ -4310,7 +3926,6 @@ internal partial class LowLevelDispatch case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityClearCachedRolesAsync(p.RouteValues.Name,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityClearCachedRoles", p, new [] { POST }, "/_xpack/security/role/{name}/_clear_cache"); } @@ -4322,7 +3937,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityDeleteRole(p.RouteValues.Name,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityDeleteRole", p, new [] { DELETE }, "/_xpack/security/role/{name}"); } @@ -4334,7 +3948,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityDeleteRoleAsync(p.RouteValues.Name,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityDeleteRole", p, new [] { DELETE }, "/_xpack/security/role/{name}"); } @@ -4346,7 +3959,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityDeleteRoleMapping(p.RouteValues.Name,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityDeleteRoleMapping", p, new [] { DELETE }, "/_xpack/security/role_mapping/{name}"); } @@ -4358,7 +3970,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityDeleteRoleMappingAsync(p.RouteValues.Name,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityDeleteRoleMapping", p, new [] { DELETE }, "/_xpack/security/role_mapping/{name}"); } @@ -4370,7 +3981,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Username)) return _lowLevel.XpackSecurityDeleteUser(p.RouteValues.Username,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityDeleteUser", p, new [] { DELETE }, "/_xpack/security/user/{username}"); } @@ -4382,7 +3992,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Username)) return _lowLevel.XpackSecurityDeleteUserAsync(p.RouteValues.Username,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityDeleteUser", p, new [] { DELETE }, "/_xpack/security/user/{username}"); } @@ -4394,11 +4003,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityDisableUser(p.RouteValues.Username,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityDisableUserPost(p.RouteValues.Username,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityDisableUser", p, new [] { PUT, POST }, "/_xpack/security/user/{username}/_disable"); } @@ -4410,11 +4017,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityDisableUserAsync(p.RouteValues.Username,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityDisableUserPostAsync(p.RouteValues.Username,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityDisableUser", p, new [] { PUT, POST }, "/_xpack/security/user/{username}/_disable"); } @@ -4426,11 +4031,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityEnableUser(p.RouteValues.Username,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityEnableUserPost(p.RouteValues.Username,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityEnableUser", p, new [] { PUT, POST }, "/_xpack/security/user/{username}/_enable"); } @@ -4442,11 +4045,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityEnableUserAsync(p.RouteValues.Username,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityEnableUserPostAsync(p.RouteValues.Username,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityEnableUser", p, new [] { PUT, POST }, "/_xpack/security/user/{username}/_enable"); } @@ -4457,8 +4058,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.XpackSecurityGetRole(p.RouteValues.Name,p.RequestParameters); - return _lowLevel.XpackSecurityGetRole(p.RequestParameters); - + return _lowLevel.XpackSecurityGetRole(p.RequestParameters); } throw InvalidDispatch("XpackSecurityGetRole", p, new [] { GET }, "/_xpack/security/role/{name}", "/_xpack/security/role"); } @@ -4469,8 +4069,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.XpackSecurityGetRoleAsync(p.RouteValues.Name,p.RequestParameters,ct); - return _lowLevel.XpackSecurityGetRoleAsync(p.RequestParameters,ct); - + return _lowLevel.XpackSecurityGetRoleAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackSecurityGetRole", p, new [] { GET }, "/_xpack/security/role/{name}", "/_xpack/security/role"); } @@ -4481,8 +4080,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.XpackSecurityGetRoleMapping(p.RouteValues.Name,p.RequestParameters); - return _lowLevel.XpackSecurityGetRoleMapping(p.RequestParameters); - + return _lowLevel.XpackSecurityGetRoleMapping(p.RequestParameters); } throw InvalidDispatch("XpackSecurityGetRoleMapping", p, new [] { GET }, "/_xpack/security/role_mapping/{name}", "/_xpack/security/role_mapping"); } @@ -4493,8 +4091,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Name)) return _lowLevel.XpackSecurityGetRoleMappingAsync(p.RouteValues.Name,p.RequestParameters,ct); - return _lowLevel.XpackSecurityGetRoleMappingAsync(p.RequestParameters,ct); - + return _lowLevel.XpackSecurityGetRoleMappingAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackSecurityGetRoleMapping", p, new [] { GET }, "/_xpack/security/role_mapping/{name}", "/_xpack/security/role_mapping"); } @@ -4504,8 +4101,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackSecurityGetToken(body,p.RequestParameters); - + return _lowLevel.XpackSecurityGetToken(body,p.RequestParameters); } throw InvalidDispatch("XpackSecurityGetToken", p, new [] { POST }, "/_xpack/security/oauth2/token"); } @@ -4515,8 +4111,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackSecurityGetTokenAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackSecurityGetTokenAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("XpackSecurityGetToken", p, new [] { POST }, "/_xpack/security/oauth2/token"); } @@ -4527,8 +4122,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityGetUser(p.RouteValues.Username,p.RequestParameters); - return _lowLevel.XpackSecurityGetUser(p.RequestParameters); - + return _lowLevel.XpackSecurityGetUser(p.RequestParameters); } throw InvalidDispatch("XpackSecurityGetUser", p, new [] { GET }, "/_xpack/security/user/{username}", "/_xpack/security/user"); } @@ -4539,8 +4133,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.Username)) return _lowLevel.XpackSecurityGetUserAsync(p.RouteValues.Username,p.RequestParameters,ct); - return _lowLevel.XpackSecurityGetUserAsync(p.RequestParameters,ct); - + return _lowLevel.XpackSecurityGetUserAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackSecurityGetUser", p, new [] { GET }, "/_xpack/security/user/{username}", "/_xpack/security/user"); } @@ -4550,8 +4143,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.XpackSecurityInvalidateToken(body,p.RequestParameters); - + return _lowLevel.XpackSecurityInvalidateToken(body,p.RequestParameters); } throw InvalidDispatch("XpackSecurityInvalidateToken", p, new [] { DELETE }, "/_xpack/security/oauth2/token"); } @@ -4561,8 +4153,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case DELETE: - return _lowLevel.XpackSecurityInvalidateTokenAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackSecurityInvalidateTokenAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("XpackSecurityInvalidateToken", p, new [] { DELETE }, "/_xpack/security/oauth2/token"); } @@ -4574,11 +4165,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRole(p.RouteValues.Name,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRolePost(p.RouteValues.Name,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityPutRole", p, new [] { PUT, POST }, "/_xpack/security/role/{name}"); } @@ -4590,11 +4179,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRoleAsync(p.RouteValues.Name,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRolePostAsync(p.RouteValues.Name,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityPutRole", p, new [] { PUT, POST }, "/_xpack/security/role/{name}"); } @@ -4606,11 +4193,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRoleMapping(p.RouteValues.Name,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRoleMappingPost(p.RouteValues.Name,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityPutRoleMapping", p, new [] { PUT, POST }, "/_xpack/security/role_mapping/{name}"); } @@ -4622,11 +4207,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRoleMappingAsync(p.RouteValues.Name,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Name)) return _lowLevel.XpackSecurityPutRoleMappingPostAsync(p.RouteValues.Name,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityPutRoleMapping", p, new [] { PUT, POST }, "/_xpack/security/role_mapping/{name}"); } @@ -4638,11 +4221,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Username)) return _lowLevel.XpackSecurityPutUser(p.RouteValues.Username,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Username)) return _lowLevel.XpackSecurityPutUserPost(p.RouteValues.Username,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackSecurityPutUser", p, new [] { PUT, POST }, "/_xpack/security/user/{username}"); } @@ -4654,11 +4235,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Username)) return _lowLevel.XpackSecurityPutUserAsync(p.RouteValues.Username,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Username)) return _lowLevel.XpackSecurityPutUserPostAsync(p.RouteValues.Username,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackSecurityPutUser", p, new [] { PUT, POST }, "/_xpack/security/user/{username}"); } @@ -4671,12 +4250,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.WatchId, p.RouteValues.ActionId)) return _lowLevel.XpackWatcherAckWatch(p.RouteValues.WatchId,p.RouteValues.ActionId,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherAckWatch(p.RouteValues.WatchId,p.RequestParameters); break; - case POST: if (AllSet(p.RouteValues.WatchId, p.RouteValues.ActionId)) return _lowLevel.XpackWatcherAckWatchPost(p.RouteValues.WatchId,p.RouteValues.ActionId,p.RequestParameters); if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherAckWatchPost(p.RouteValues.WatchId,p.RequestParameters); break; - } throw InvalidDispatch("XpackWatcherAckWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{watch_id}/_ack", "/_xpack/watcher/watch/{watch_id}/_ack/{action_id}"); } @@ -4689,12 +4266,10 @@ internal partial class LowLevelDispatch if (AllSet(p.RouteValues.WatchId, p.RouteValues.ActionId)) return _lowLevel.XpackWatcherAckWatchAsync(p.RouteValues.WatchId,p.RouteValues.ActionId,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherAckWatchAsync(p.RouteValues.WatchId,p.RequestParameters,ct); break; - case POST: if (AllSet(p.RouteValues.WatchId, p.RouteValues.ActionId)) return _lowLevel.XpackWatcherAckWatchPostAsync(p.RouteValues.WatchId,p.RouteValues.ActionId,p.RequestParameters,ct); if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherAckWatchPostAsync(p.RouteValues.WatchId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackWatcherAckWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{watch_id}/_ack", "/_xpack/watcher/watch/{watch_id}/_ack/{action_id}"); } @@ -4706,11 +4281,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherActivateWatch(p.RouteValues.WatchId,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherActivateWatchPost(p.RouteValues.WatchId,p.RequestParameters); break; - } throw InvalidDispatch("XpackWatcherActivateWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{watch_id}/_activate"); } @@ -4722,11 +4295,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherActivateWatchAsync(p.RouteValues.WatchId,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherActivateWatchPostAsync(p.RouteValues.WatchId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackWatcherActivateWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{watch_id}/_activate"); } @@ -4738,11 +4309,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherDeactivateWatch(p.RouteValues.WatchId,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherDeactivateWatchPost(p.RouteValues.WatchId,p.RequestParameters); break; - } throw InvalidDispatch("XpackWatcherDeactivateWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{watch_id}/_deactivate"); } @@ -4754,11 +4323,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherDeactivateWatchAsync(p.RouteValues.WatchId,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.WatchId)) return _lowLevel.XpackWatcherDeactivateWatchPostAsync(p.RouteValues.WatchId,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackWatcherDeactivateWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{watch_id}/_deactivate"); } @@ -4770,7 +4337,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherDeleteWatch(p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("XpackWatcherDeleteWatch", p, new [] { DELETE }, "/_xpack/watcher/watch/{id}"); } @@ -4782,7 +4348,6 @@ internal partial class LowLevelDispatch case DELETE: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherDeleteWatchAsync(p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackWatcherDeleteWatch", p, new [] { DELETE }, "/_xpack/watcher/watch/{id}"); } @@ -4793,12 +4358,10 @@ internal partial class LowLevelDispatch { case PUT: if (AllSet(p.RouteValues.Id)) return _lowLevel.XpackWatcherExecuteWatch(p.RouteValues.Id,body,p.RequestParameters); - return _lowLevel.XpackWatcherExecuteWatch(body,p.RequestParameters); - + return _lowLevel.XpackWatcherExecuteWatch(body,p.RequestParameters); case POST: if (AllSet(p.RouteValues.Id)) return _lowLevel.XpackWatcherExecuteWatchPost(p.RouteValues.Id,body,p.RequestParameters); - return _lowLevel.XpackWatcherExecuteWatchPost(body,p.RequestParameters); - + return _lowLevel.XpackWatcherExecuteWatchPost(body,p.RequestParameters); } throw InvalidDispatch("XpackWatcherExecuteWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{id}/_execute", "/_xpack/watcher/watch/_execute"); } @@ -4809,12 +4372,10 @@ internal partial class LowLevelDispatch { case PUT: if (AllSet(p.RouteValues.Id)) return _lowLevel.XpackWatcherExecuteWatchAsync(p.RouteValues.Id,body,p.RequestParameters,ct); - return _lowLevel.XpackWatcherExecuteWatchAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackWatcherExecuteWatchAsync(body,p.RequestParameters,ct); case POST: if (AllSet(p.RouteValues.Id)) return _lowLevel.XpackWatcherExecuteWatchPostAsync(p.RouteValues.Id,body,p.RequestParameters,ct); - return _lowLevel.XpackWatcherExecuteWatchPostAsync(body,p.RequestParameters,ct); - + return _lowLevel.XpackWatcherExecuteWatchPostAsync(body,p.RequestParameters,ct); } throw InvalidDispatch("XpackWatcherExecuteWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{id}/_execute", "/_xpack/watcher/watch/_execute"); } @@ -4826,7 +4387,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherGetWatch(p.RouteValues.Id,p.RequestParameters); break; - } throw InvalidDispatch("XpackWatcherGetWatch", p, new [] { GET }, "/_xpack/watcher/watch/{id}"); } @@ -4838,7 +4398,6 @@ internal partial class LowLevelDispatch case GET: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherGetWatchAsync(p.RouteValues.Id,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackWatcherGetWatch", p, new [] { GET }, "/_xpack/watcher/watch/{id}"); } @@ -4850,11 +4409,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherPutWatch(p.RouteValues.Id,body,p.RequestParameters); break; - case POST: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherPutWatchPost(p.RouteValues.Id,body,p.RequestParameters); break; - } throw InvalidDispatch("XpackWatcherPutWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{id}"); } @@ -4866,11 +4423,9 @@ internal partial class LowLevelDispatch case PUT: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherPutWatchAsync(p.RouteValues.Id,body,p.RequestParameters,ct); break; - case POST: if (AllSetNoFallback(p.RouteValues.Id)) return _lowLevel.XpackWatcherPutWatchPostAsync(p.RouteValues.Id,body,p.RequestParameters,ct); break; - } throw InvalidDispatch("XpackWatcherPutWatch", p, new [] { PUT, POST }, "/_xpack/watcher/watch/{id}"); } @@ -4880,8 +4435,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackWatcherRestart(p.RequestParameters); - + return _lowLevel.XpackWatcherRestart(p.RequestParameters); } throw InvalidDispatch("XpackWatcherRestart", p, new [] { POST }, "/_xpack/watcher/_restart"); } @@ -4891,8 +4445,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackWatcherRestartAsync(p.RequestParameters,ct); - + return _lowLevel.XpackWatcherRestartAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackWatcherRestart", p, new [] { POST }, "/_xpack/watcher/_restart"); } @@ -4902,8 +4455,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackWatcherStart(p.RequestParameters); - + return _lowLevel.XpackWatcherStart(p.RequestParameters); } throw InvalidDispatch("XpackWatcherStart", p, new [] { POST }, "/_xpack/watcher/_start"); } @@ -4913,8 +4465,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackWatcherStartAsync(p.RequestParameters,ct); - + return _lowLevel.XpackWatcherStartAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackWatcherStart", p, new [] { POST }, "/_xpack/watcher/_start"); } @@ -4925,8 +4476,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.WatcherStatsMetric)) return _lowLevel.XpackWatcherStats(p.RouteValues.WatcherStatsMetric.Value,p.RequestParameters); - return _lowLevel.XpackWatcherStats(p.RequestParameters); - + return _lowLevel.XpackWatcherStats(p.RequestParameters); } throw InvalidDispatch("XpackWatcherStats", p, new [] { GET }, "/_xpack/watcher/stats", "/_xpack/watcher/stats/{watcher_stats_metric}"); } @@ -4937,8 +4487,7 @@ internal partial class LowLevelDispatch { case GET: if (AllSet(p.RouteValues.WatcherStatsMetric)) return _lowLevel.XpackWatcherStatsAsync(p.RouteValues.WatcherStatsMetric.Value,p.RequestParameters,ct); - return _lowLevel.XpackWatcherStatsAsync(p.RequestParameters,ct); - + return _lowLevel.XpackWatcherStatsAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackWatcherStats", p, new [] { GET }, "/_xpack/watcher/stats", "/_xpack/watcher/stats/{watcher_stats_metric}"); } @@ -4948,8 +4497,7 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackWatcherStop(p.RequestParameters); - + return _lowLevel.XpackWatcherStop(p.RequestParameters); } throw InvalidDispatch("XpackWatcherStop", p, new [] { POST }, "/_xpack/watcher/_stop"); } @@ -4959,11 +4507,9 @@ internal partial class LowLevelDispatch switch(p.HttpMethod) { case POST: - return _lowLevel.XpackWatcherStopAsync(p.RequestParameters,ct); - + return _lowLevel.XpackWatcherStopAsync(p.RequestParameters,ct); } throw InvalidDispatch("XpackWatcherStop", p, new [] { POST }, "/_xpack/watcher/_stop"); } - - } + } } diff --git a/src/Nest/_Generated/_Requests.generated.cs b/src/Nest/_Generated/_Requests.generated.cs index a573f36fd66..14c9ac46755 100644 --- a/src/Nest/_Generated/_Requests.generated.cs +++ b/src/Nest/_Generated/_Requests.generated.cs @@ -12,7 +12,6 @@ namespace Nest { - public abstract partial class PlainRequestBase { ///Pretty format the returned JSON response. @@ -21,30 +20,32 @@ public abstract partial class PlainRequestBase public bool? Human { get => Q("human"); set => Q("human", value); } ///Include the stack trace of returned errors. public bool? ErrorTrace { get => Q("error_trace"); set => Q("error_trace", value); } - ///A comma-separated list of filters used to reduce the respone. + /// + /// A comma-separated list of filters used to reduce the response. + /// Use of response filtering can result in a response from Elasticsearch + /// that cannot be correctly deserialized to the respective response type for the request. + /// In such situations, use the low level client to issue the request and handle response deserialization + /// public string[] FilterPath { get => Q("filter_path"); set => Q("filter_path", value); } } - + [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IAcknowledgeWatchRequest : IRequest { Id WatchId { get; } ActionIds ActionId { get; } } - ///Request parameters for XpackWatcherAckWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html
public partial class AcknowledgeWatchRequest : PlainRequestBase, IAcknowledgeWatchRequest { protected IAcknowledgeWatchRequest Self => this; - /// /_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} + ////_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)){} - // values part of the url path Id IAcknowledgeWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); ActionIds IAcknowledgeWatchRequest.ActionId => Self.RouteValues.Get("action_id"); @@ -53,21 +54,18 @@ public AcknowledgeWatchRequest(Id watch_id, ActionIds action_id) : base(r=>r.Req ///Explicit operation timeout for connection to master node public Time MasterTimeout { get => Q
public Time MasterTimeout { get => Q
public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatHelpRequest : IRequest { } - ///Request parameters for CatHelp
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html
public partial class CatHelpRequest : PlainRequestBase, ICatHelpRequest { @@ -468,24 +423,20 @@ public partial class CatHelpRequest : PlainRequestBase ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatIndicesRequest : IRequest { Indices Index { get; } } - ///Request parameters for CatIndices
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html
public partial class CatIndicesRequest : PlainRequestBase, ICatIndicesRequest { protected ICatIndicesRequest Self => this; - /// /_cat/indices + ////_cat/indices public CatIndicesRequest() : base(){} - - /// /_cat/indices/{index} + ////_cat/indices/{index} ///Optional, accepts null public CatIndicesRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ICatIndicesRequest.Index => Self.RouteValues.Get("index"); @@ -511,12 +462,10 @@ public CatIndicesRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatMasterRequest : IRequest { } - ///Request parameters for CatMaster
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html
public partial class CatMasterRequest : PlainRequestBase, ICatMasterRequest { @@ -539,12 +488,10 @@ public partial class CatMasterRequest : PlainRequestBaseVerbose mode. Display column headers
public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatNodeAttributesRequest : IRequest { } - ///Request parameters for CatNodeattrs
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html
public partial class CatNodeAttributesRequest : PlainRequestBase, ICatNodeAttributesRequest { @@ -567,12 +514,10 @@ public partial class CatNodeAttributesRequest : PlainRequestBaseVerbose mode. Display column headers
public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatNodesRequest : IRequest { } - ///Request parameters for CatNodes
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html
public partial class CatNodesRequest : PlainRequestBase, ICatNodesRequest { @@ -597,12 +542,10 @@ public partial class CatNodesRequest : PlainRequestBaseVerbose mode. Display column headers
public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatPendingTasksRequest : IRequest { } - ///Request parameters for CatPendingTasks
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html
public partial class CatPendingTasksRequest : PlainRequestBase, ICatPendingTasksRequest { @@ -625,12 +568,10 @@ public partial class CatPendingTasksRequest : PlainRequestBaseVerbose mode. Display column headers
public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatPluginsRequest : IRequest { } - ///Request parameters for CatPlugins
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html
public partial class CatPluginsRequest : PlainRequestBase, ICatPluginsRequest { @@ -653,24 +594,20 @@ public partial class CatPluginsRequest : PlainRequestBaseVerbose mode. Display column headers
public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatRecoveryRequest : IRequest { Indices Index { get; } } - ///Request parameters for CatRecovery
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html
public partial class CatRecoveryRequest : PlainRequestBase, ICatRecoveryRequest { protected ICatRecoveryRequest Self => this; - /// /_cat/recovery + ////_cat/recovery public CatRecoveryRequest() : base(){} - - /// /_cat/recovery/{index} + ////_cat/recovery/{index} ///Optional, accepts null public CatRecoveryRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ICatRecoveryRequest.Index => Self.RouteValues.Get("index"); @@ -690,12 +627,10 @@ public CatRecoveryRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatRepositoriesRequest : IRequest { } - ///Request parameters for CatRepositories
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html
public partial class CatRepositoriesRequest : PlainRequestBase, ICatRepositoriesRequest { @@ -718,24 +653,20 @@ public partial class CatRepositoriesRequest : PlainRequestBaseVerbose mode. Display column headers
public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatSegmentsRequest : IRequest { Indices Index { get; } } - ///Request parameters for CatSegments
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html
public partial class CatSegmentsRequest : PlainRequestBase, ICatSegmentsRequest { protected ICatSegmentsRequest Self => this; - /// /_cat/segments + ////_cat/segments public CatSegmentsRequest() : base(){} - - /// /_cat/segments/{index} + ////_cat/segments/{index} ///Optional, accepts null public CatSegmentsRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ICatSegmentsRequest.Index => Self.RouteValues.Get("index"); @@ -753,24 +684,20 @@ public CatSegmentsRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatShardsRequest : IRequest { Indices Index { get; } } - ///Request parameters for CatShards
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html
public partial class CatShardsRequest : PlainRequestBase, ICatShardsRequest { protected ICatShardsRequest Self => this; - /// /_cat/shards + ////_cat/shards public CatShardsRequest() : base(){} - - /// /_cat/shards/{index} + ////_cat/shards/{index} ///Optional, accepts null public CatShardsRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ICatShardsRequest.Index => Self.RouteValues.Get("index"); @@ -792,24 +719,20 @@ public CatShardsRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatSnapshotsRequest : IRequest { Names RepositoryName { get; } } - ///Request parameters for CatSnapshots
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html
public partial class CatSnapshotsRequest : PlainRequestBase, ICatSnapshotsRequest { protected ICatSnapshotsRequest Self => this; - /// /_cat/snapshots + ////_cat/snapshots public CatSnapshotsRequest() : base(){} - - /// /_cat/snapshots/{repository} + ////_cat/snapshots/{repository} ///Optional, accepts null public CatSnapshotsRequest(Names repository) : base(r=>r.Optional("repository", repository)){} - // values part of the url path Names ICatSnapshotsRequest.RepositoryName => Self.RouteValues.Get("repository"); @@ -829,12 +752,10 @@ public CatSnapshotsRequest(Names repository) : base(r=>r.Optional("repository", ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatTasksRequest : IRequest { } - ///Request parameters for CatTasks
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class CatTasksRequest : PlainRequestBase, ICatTasksRequest { @@ -853,8 +774,6 @@ public partial class CatTasksRequest : PlainRequestBase Q("actions"); set => Q("actions", value); } ///Return detailed task information (default: false) public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } - ///Return tasks with specified parent node. - public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } ///Return tasks with specified parent task id. Set to -1 to return all. public long? ParentTask { get => Q("parent_task"); set => Q("parent_task", value); } ///Comma-separated list of column names to display @@ -865,25 +784,24 @@ public partial class CatTasksRequest : PlainRequestBase Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } + ///Return tasks with the specified parent node + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28841")] + public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatTemplatesRequest : IRequest { Name Name { get; } } - ///Request parameters for CatTemplates
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html
public partial class CatTemplatesRequest : PlainRequestBase, ICatTemplatesRequest { protected ICatTemplatesRequest Self => this; - /// /_cat/templates + ////_cat/templates public CatTemplatesRequest() : base(){} - - /// /_cat/templates/{name} + ////_cat/templates/{name} ///Optional, accepts null public CatTemplatesRequest(Name name) : base(r=>r.Optional("name", name)){} - // values part of the url path Name ICatTemplatesRequest.Name => Self.RouteValues.Get("name"); @@ -903,24 +821,20 @@ public CatTemplatesRequest(Name name) : base(r=>r.Optional("name", name)){} ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICatThreadPoolRequest : IRequest { Names ThreadPoolPatterns { get; } } - ///Request parameters for CatThreadPool
http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html
public partial class CatThreadPoolRequest : PlainRequestBase, ICatThreadPoolRequest { protected ICatThreadPoolRequest Self => this; - /// /_cat/thread_pool + ////_cat/thread_pool public CatThreadPoolRequest() : base(){} - - /// /_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)){} - // values part of the url path Names ICatThreadPoolRequest.ThreadPoolPatterns => Self.RouteValues.Get("thread_pool_patterns"); @@ -942,24 +856,20 @@ public CatThreadPoolRequest(Names thread_pool_patterns) : base(r=>r.Optional("th ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IChangePasswordRequest : IRequest { Name Username { get; } } - ///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; - /// /_xpack/security/user/{username}/_password + ////_xpack/security/user/{username}/_password ///Optional, accepts null public ChangePasswordRequest(Name username) : base(r=>r.Optional("username", username)){} - - /// /_xpack/security/user/_password + ////_xpack/security/user/_password public ChangePasswordRequest() : base(){} - // values part of the url path Name IChangePasswordRequest.Username => Self.RouteValues.Get("username"); @@ -970,21 +880,18 @@ public ChangePasswordRequest() : base(){} ///
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IClearCachedRealmsRequest : IRequest { Names Realms { get; } } - ///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; - /// /_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)){} - // values part of the url path Names IClearCachedRealmsRequest.Realms => Self.RouteValues.Get("realms"); @@ -992,51 +899,44 @@ public ClearCachedRealmsRequest(Names realms) : base(r=>r.Required("realms", rea ///Comma-separated list of usernames to clear from the cache public string[] Usernames { get => Q("usernames"); set => Q("usernames", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IClearCachedRolesRequest : IRequest { Names Name { get; } } - ///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; - /// /_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)){} - // values part of the url path Names IClearCachedRolesRequest.Name => Self.RouteValues.Get("name"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IClearCacheRequest : IRequest { Indices Index { get; } } - ///Request parameters for IndicesClearCacheForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html
public partial class ClearCacheRequest : PlainRequestBase, IClearCacheRequest { protected IClearCacheRequest Self => this; - /// /_cache/clear + ////_cache/clear public ClearCacheRequest() : base(){} - - /// /{index}/_cache/clear + ////{index}/_cache/clear ///Optional, accepts null public ClearCacheRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IClearCacheRequest.Index => Self.RouteValues.Get("index"); // Request parameters ///Clear field data public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } - ///A comma-separated list of fields to clear when using the `field_data` parameter (default: all) + ///A comma-separated list of fields to clear when using the `fielddata` parameter (default: all) public Fields Fields { get => Q("fields"); set => Q("fields", value); } ///Clear query caches public bool? Query { get => Q("query"); set => Q("query", value); } @@ -1049,19 +949,18 @@ public ClearCacheRequest(Indices index) : base(r=>r.Optional("index", index)){} public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } - ///Clear the recycler cache - public bool? Recycler { get => Q("recycler"); set => Q("recycler", value); } ///Clear request cache public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } ///Clear request cache public bool? Request { get => Q("request"); set => Q("request", value); } + ///Clear the recycle cache + [Obsolete("Scheduled to be removed in 7.0, Removed in 6.3.0 from the server see https://github.com/elastic/elasticsearch/pull/28866")] + public bool? Recycler { get => Q("recycler"); set => Q("recycler", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IClearScrollRequest : IRequest { } - ///Request parameters for ClearScroll
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html
public partial class ClearScrollRequest : PlainRequestBase, IClearScrollRequest { @@ -1070,21 +969,18 @@ public partial class ClearScrollRequest : PlainRequestBase { Indices Index { get; } } - ///Request parameters for IndicesClose
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html
public partial class CloseIndexRequest : PlainRequestBase, ICloseIndexRequest { protected ICloseIndexRequest Self => this; - /// /{index}/_close + ////{index}/_close ///this parameter is required public CloseIndexRequest(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices ICloseIndexRequest.Index => Self.RouteValues.Get("index"); @@ -1103,21 +999,18 @@ public CloseIndexRequest(Indices index) : base(r=>r.Required("index", index)){} ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ICloseJobRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlCloseJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html
public partial class CloseJobRequest : PlainRequestBase, ICloseJobRequest { protected ICloseJobRequest Self => this; - /// /_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)){} - // values part of the url path Id ICloseJobRequest.JobId => Self.RouteValues.Get("job_id"); @@ -1129,12 +1022,10 @@ public CloseJobRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} ///Controls the time to wait until a job has closed. Default to 30 minutes public Time Timeout { get => Q
public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IClusterGetSettingsRequest : IRequest { } - ///Request parameters for ClusterGetSettings
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html
public partial class ClusterGetSettingsRequest : PlainRequestBase, IClusterGetSettingsRequest { @@ -1169,24 +1058,20 @@ public partial class ClusterGetSettingsRequest : PlainRequestBaseWhether to return all default clusters setting.
public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IClusterHealthRequest : IRequest { Indices Index { get; } } - ///Request parameters for ClusterHealth
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html
public partial class ClusterHealthRequest : PlainRequestBase, IClusterHealthRequest { protected IClusterHealthRequest Self => this; - /// /_cluster/health + ////_cluster/health public ClusterHealthRequest() : base(){} - - /// /_cluster/health/{index} + ////_cluster/health/{index} ///Optional, accepts null public ClusterHealthRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IClusterHealthRequest.Index => Self.RouteValues.Get("index"); @@ -1212,12 +1097,10 @@ public ClusterHealthRequest(Indices index) : base(r=>r.Optional("index", index)) ///Wait until cluster is in a specific state public WaitForStatus? WaitForStatus { get => Q("wait_for_status"); set => Q("wait_for_status", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IClusterPendingTasksRequest : IRequest { } - ///Request parameters for ClusterPendingTasks
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html
public partial class ClusterPendingTasksRequest : PlainRequestBase, IClusterPendingTasksRequest { @@ -1230,12 +1113,10 @@ public partial class ClusterPendingTasksRequest : PlainRequestBaseSpecify timeout for connection to master
public Time MasterTimeout { get => Q
public Time Timeout { get => Q
public Time Timeout { get => Q
public partial class CreateRequest : PlainRequestBase, ICreateRequest { protected ICreateRequest Self => this; - /// /{index}/{type}/{id}/_create + ////{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)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document)); } partial void DocumentFromPath(TDocument document); - // values part of the url path Id ICreateRequest.Id => Self.RouteValues.Get("id"); IndexName ICreateRequest.Index => Self.RouteValues.Get("index"); @@ -1590,21 +1442,18 @@ public CreateRequest(DocumentPath document, IndexName index = null, T ///The pipeline id to preprocess incoming documents with public string Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeactivateWatchRequest : IRequest { Id WatchId { get; } } - ///Request parameters for XpackWatcherDeactivateWatch
https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html
public partial class DeactivateWatchRequest : PlainRequestBase, IDeactivateWatchRequest { protected IDeactivateWatchRequest Self => this; - /// /_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)){} - // values part of the url path Id IDeactivateWatchRequest.WatchId => Self.RouteValues.Get("watch_id"); @@ -1612,23 +1461,20 @@ public DeactivateWatchRequest(Id watch_id) : base(r=>r.Required("watch_id", watc ///Explicit operation timeout for connection to master node public Time MasterTimeout { get => Q
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - ///What to do when the delete-by-query hits version conflicts? + ///What to do when the delete by query hits version conflicts? public Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -1735,28 +1577,25 @@ public DeleteByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind /// copies for the shard (number of replicas + 1) ///
public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the delete by query public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } - ///Should the request should block until the delete-by-query is complete. + ///Should the request should block until the delete by query is complete. public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } ///The throttle for this request in sub-requests per second. -1 means no throttle. public long? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. public long? Slices { get => Q("slices"); set => Q("slices", value); } - } - ///Request parameters for DeleteByQuery
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html
+ } ///Request parameters for DeleteByQuery
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html
public partial class DeleteByQueryRequest : PlainRequestBase, IDeleteByQueryRequest { protected IDeleteByQueryRequest Self => this; - /// /{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 + ////{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)){} - // values part of the url path Indices IDeleteByQueryRequest.Index => Self.RouteValues.Get("index"); Types IDeleteByQueryRequest.Type => Self.RouteValues.Get("type"); @@ -1779,7 +1618,7 @@ public DeleteByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind /// been specified) ///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - ///What to do when the delete-by-query hits version conflicts? + ///What to do when the delete by query hits version conflicts? public Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -1832,30 +1671,27 @@ public DeleteByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind /// copies for the shard (number of replicas + 1) ///
public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the delete by query public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } - ///Should the request should block until the delete-by-query is complete. + ///Should the request should block until the delete by query is complete. public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } ///The throttle for this request in sub-requests per second. -1 means no throttle. public long? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. public long? Slices { get => Q("slices"); set => Q("slices", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeleteDatafeedRequest : IRequest { Id DatafeedId { get; } } - ///Request parameters for XpackMlDeleteDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html
public partial class DeleteDatafeedRequest : PlainRequestBase, IDeleteDatafeedRequest { protected IDeleteDatafeedRequest Self => this; - /// /_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)){} - // values part of the url path Id IDeleteDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); @@ -1863,12 +1699,10 @@ public DeleteDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", ///True if the datafeed should be forcefully deleted public bool? Force { get => Q("force"); set => Q("force", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeleteExpiredDataRequest : IRequest { } - ///Request parameters for XpackMlDeleteExpiredData
public partial class DeleteExpiredDataRequest : PlainRequestBase, IDeleteExpiredDataRequest { @@ -1877,21 +1711,18 @@ public partial class DeleteExpiredDataRequest : PlainRequestBase { Indices Index { get; } } - ///Request parameters for IndicesDelete
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html
public partial class DeleteIndexRequest : PlainRequestBase, IDeleteIndexRequest { protected IDeleteIndexRequest Self => this; - /// /{index} + ////{index} ///this parameter is required public DeleteIndexRequest(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices IDeleteIndexRequest.Index => Self.RouteValues.Get("index"); @@ -1907,21 +1738,18 @@ public DeleteIndexRequest(Indices index) : base(r=>r.Required("index", index)){} ///Whether wildcard expressions should get expanded to open or closed indices (default: open) public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeleteIndexTemplateRequest : IRequest { Name Name { get; } } - ///Request parameters for IndicesDeleteTemplateForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
public partial class DeleteIndexTemplateRequest : PlainRequestBase, IDeleteIndexTemplateRequest { protected IDeleteIndexTemplateRequest Self => this; - /// /_template/{name} + ////_template/{name} ///this parameter is required public DeleteIndexTemplateRequest(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IDeleteIndexTemplateRequest.Name => Self.RouteValues.Get("name"); @@ -1931,21 +1759,18 @@ public DeleteIndexTemplateRequest(Name name) : base(r=>r.Required("name", name)) ///Specify timeout for connection to master public Time MasterTimeout { get => Q
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeleteRoleRequest : IRequest { Name Name { get; } } - ///Request parameters for XpackSecurityDeleteRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role
public partial class DeleteRoleRequest : PlainRequestBase, IDeleteRoleRequest { protected IDeleteRoleRequest Self => this; - /// /_xpack/security/role/{name} + ////_xpack/security/role/{name} ///this parameter is required public DeleteRoleRequest(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IDeleteRoleRequest.Name => Self.RouteValues.Get("name"); @@ -2197,21 +1999,18 @@ public DeleteRoleRequest(Name name) : base(r=>r.Required("name", name)){} ///
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeleteScriptRequest : IRequest { Id Id { get; } } - ///Request parameters for DeleteScript
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
public partial class DeleteScriptRequest : PlainRequestBase, IDeleteScriptRequest { protected IDeleteScriptRequest Self => this; - /// /_scripts/{id} + ////_scripts/{id} ///this parameter is required public DeleteScriptRequest(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IDeleteScriptRequest.Id => Self.RouteValues.Get("id"); @@ -2221,23 +2020,20 @@ public DeleteScriptRequest(Id id) : base(r=>r.Required("id", id)){} ///Specify timeout for connection to master public Time MasterTimeout { get => Q
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDeleteWatchRequest : IRequest { Id Id { get; } } - ///Request parameters for XpackWatcherDeleteWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html
public partial class DeleteWatchRequest : PlainRequestBase, IDeleteWatchRequest { protected IDeleteWatchRequest Self => this; - /// /_xpack/watcher/watch/{id} + ////_xpack/watcher/watch/{id} ///this parameter is required public DeleteWatchRequest(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IDeleteWatchRequest.Id => Self.RouteValues.Get("id"); @@ -2293,44 +2083,37 @@ public DeleteWatchRequest(Id id) : base(r=>r.Required("id", id)){} ///Explicit operation timeout for connection to master node public Time MasterTimeout { get => Q
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IDocumentExistsRequest : IRequest { @@ -2349,24 +2131,21 @@ public partial interface IDocumentExistsRequest : IRequestRequest parameters for Exists
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class DocumentExistsRequest : PlainRequestBase, IDocumentExistsRequest { protected IDocumentExistsRequest Self => this; - /// /{index}/{type}/{id} + ////{index}/{type}/{id} ///this parameter is required ///this parameter is required ///this parameter is required public DocumentExistsRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{index}/{type}/{id} /// describes an elasticsearch document of type from which the index, type and id can be inferred public DocumentExistsRequest(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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document)); } partial void DocumentFromPath(T document); - // values part of the url path Id IDocumentExistsRequest.Id => Self.RouteValues.Get("id"); IndexName IDocumentExistsRequest.Index => Self.RouteValues.Get("index"); @@ -2403,18 +2182,16 @@ public DocumentExistsRequest(DocumentPath document, IndexName index = null, T public long? Version { get => Q("version"); set => Q("version", value); } ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - } - ///Request parameters for Exists
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
+ } ///Request parameters for Exists
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class DocumentExistsRequest : PlainRequestBase, IDocumentExistsRequest { protected IDocumentExistsRequest Self => this; - /// /{index}/{type}/{id} + ////{index}/{type}/{id} ///this parameter is required ///this parameter is required ///this parameter is required public DocumentExistsRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - // values part of the url path Id IDocumentExistsRequest.Id => Self.RouteValues.Get("id"); IndexName IDocumentExistsRequest.Index => Self.RouteValues.Get("index"); @@ -2452,21 +2229,18 @@ public DocumentExistsRequest(IndexName index, TypeName type, Id id) : base(r=>r. ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IEnableUserRequest : IRequest { Name Username { get; } } - ///Request parameters for XpackSecurityEnableUser
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user
public partial class EnableUserRequest : PlainRequestBase, IEnableUserRequest { protected IEnableUserRequest Self => this; - /// /_xpack/security/user/{username}/_enable + ////_xpack/security/user/{username}/_enable ///Optional, accepts null public EnableUserRequest(Name username) : base(r=>r.Optional("username", username)){} - // values part of the url path Name IEnableUserRequest.Username => Self.RouteValues.Get("username"); @@ -2477,24 +2251,32 @@ public EnableUserRequest(Name username) : base(r=>r.Optional("username", usernam ///
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - + [JsonObject(MemberSerialization = MemberSerialization.OptIn)] + public partial interface IExecutePainlessScriptRequest : IRequest + { + } + ///Request parameters for ScriptsPainlessExecute
https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html
+ public partial class ExecutePainlessScriptRequest : PlainRequestBase, IExecutePainlessScriptRequest + { + protected IExecutePainlessScriptRequest Self => this; + // values part of the url path + + // Request parameters + } [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IExecuteWatchRequest : IRequest { Id Id { get; } } - ///Request parameters for XpackWatcherExecuteWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html
public partial class ExecuteWatchRequest : PlainRequestBase, IExecuteWatchRequest { protected IExecuteWatchRequest Self => this; - /// /_xpack/watcher/watch/{id}/_execute + ////_xpack/watcher/watch/{id}/_execute ///Optional, accepts null public ExecuteWatchRequest(Id id) : base(r=>r.Optional("id", id)){} - - /// /_xpack/watcher/watch/_execute + ////_xpack/watcher/watch/_execute public ExecuteWatchRequest() : base(){} - // values part of the url path Id IExecuteWatchRequest.Id => Self.RouteValues.Get("id"); @@ -2502,33 +2284,28 @@ public ExecuteWatchRequest() : base(){} ///indicates whether the watch should execute in debug mode public bool? Debug { get => Q("debug"); set => Q("debug", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IExplainRequest : IRequest { Id Id { get; } IndexName Index { get; } TypeName Type { get; } - [JsonProperty("stored_fields")] Fields StoredFields { get; set; } - } - +[JsonProperty("stored_fields")] Fields StoredFields { get; set; } } ///Request parameters for Explain
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html
public partial class ExplainRequest : PlainRequestBase, IExplainRequest { protected IExplainRequest Self => this; - /// /{index}/{type}/{id}/_explain + ////{index}/{type}/{id}/_explain ///this parameter is required ///this parameter is required ///this parameter is required public ExplainRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{index}/{type}/{id}/_explain /// describes an elasticsearch document of type from which the index, type and id can be inferred public ExplainRequest(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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document)); } partial void DocumentFromPath(TDocument document); - // values part of the url path Id IExplainRequest.Id => Self.RouteValues.Get("id"); IndexName IExplainRequest.Index => Self.RouteValues.Get("index"); @@ -2568,24 +2345,20 @@ public ExplainRequest(DocumentPath document, IndexName index = null, ///A list of fields to extract and return from the _source field public Fields SourceInclude { get => Q("_source_include"); set => Q("_source_include", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IFieldCapabilitiesRequest : IRequest { Indices Index { get; } } - ///Request parameters for FieldCaps
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html
public partial class FieldCapabilitiesRequest : PlainRequestBase, IFieldCapabilitiesRequest { protected IFieldCapabilitiesRequest Self => this; - /// /_field_caps + ////_field_caps public FieldCapabilitiesRequest() : base(){} - - /// /{index}/_field_caps + ////{index}/_field_caps ///Optional, accepts null public FieldCapabilitiesRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IFieldCapabilitiesRequest.Index => Self.RouteValues.Get("index"); @@ -2602,21 +2375,18 @@ public FieldCapabilitiesRequest(Indices index) : base(r=>r.Optional("index", ind ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IFlushJobRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlFlushJob
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html
public partial class FlushJobRequest : PlainRequestBase, IFlushJobRequest { protected IFlushJobRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/_flush + ////_xpack/ml/anomaly_detectors/{job_id}/_flush ///this parameter is required public FlushJobRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IFlushJobRequest.JobId => Self.RouteValues.Get("job_id"); @@ -2624,24 +2394,20 @@ public FlushJobRequest(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 string SkipTime { get => Q("skip_time"); set => Q("skip_time", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IFlushRequest : IRequest { Indices Index { get; } } - ///Request parameters for IndicesFlushForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html
public partial class FlushRequest : PlainRequestBase, IFlushRequest { protected IFlushRequest Self => this; - /// /_flush + ////_flush public FlushRequest() : base(){} - - /// /{index}/_flush + ////{index}/_flush ///Optional, accepts null public FlushRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IFlushRequest.Index => Self.RouteValues.Get("index"); @@ -2666,24 +2432,20 @@ public FlushRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IForceMergeRequest : IRequest { Indices Index { get; } } - ///Request parameters for IndicesForcemergeForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html
public partial class ForceMergeRequest : PlainRequestBase, IForceMergeRequest { protected IForceMergeRequest Self => this; - /// /_forcemerge + ////_forcemerge public ForceMergeRequest() : base(){} - - /// /{index}/_forcemerge + ////{index}/_forcemerge ///Optional, accepts null public ForceMergeRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IForceMergeRequest.Index => Self.RouteValues.Get("index"); @@ -2704,54 +2466,45 @@ public ForceMergeRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Specify whether the operation should only expunge deleted documents public bool? OnlyExpungeDeletes { get => Q("only_expunge_deletes"); set => Q("only_expunge_deletes", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IForecastJobRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlForecast
public partial class ForecastJobRequest : PlainRequestBase, IForecastJobRequest { protected IForecastJobRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/_forecast + ////_xpack/ml/anomaly_detectors/{job_id}/_forecast ///this parameter is required public ForecastJobRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IForecastJobRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetAliasRequest : IRequest { Indices Index { get; } Names Name { get; } } - ///Request parameters for IndicesGetAliasForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
public partial class GetAliasRequest : PlainRequestBase, IGetAliasRequest { protected IGetAliasRequest Self => this; - /// /_alias + ////_alias public GetAliasRequest() : base(){} - - /// /_alias/{name} + ////_alias/{name} ///Optional, accepts null public GetAliasRequest(Names name) : base(r=>r.Optional("name", name)){} - - /// /{index}/_alias/{name} + ////{index}/_alias/{name} ///Optional, accepts null ///Optional, accepts null public GetAliasRequest(Indices index, Names name) : base(r=>r.Optional("index", index).Optional("name", name)){} - - /// /{index}/_alias + ////{index}/_alias ///Optional, accepts null public GetAliasRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IGetAliasRequest.Index => Self.RouteValues.Get("index"); Names IGetAliasRequest.Name => Self.RouteValues.Get("name"); @@ -2769,91 +2522,77 @@ public GetAliasRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Return local information, do not retrieve the state from master node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetAnomalyRecordsRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlGetRecords
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html
public partial class GetAnomalyRecordsRequest : PlainRequestBase, IGetAnomalyRecordsRequest { protected IGetAnomalyRecordsRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/results/records + ////_xpack/ml/anomaly_detectors/{job_id}/results/records ///this parameter is required public GetAnomalyRecordsRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IGetAnomalyRecordsRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetBucketsRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlGetBuckets
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html
public partial class GetBucketsRequest : PlainRequestBase, IGetBucketsRequest { protected IGetBucketsRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/results/buckets + ////_xpack/ml/anomaly_detectors/{job_id}/results/buckets ///this parameter is required public GetBucketsRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IGetBucketsRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetCategoriesRequest : IRequest { Id JobId { get; } CategoryId CategoryId { get; } } - ///Request parameters for XpackMlGetCategories
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html
public partial class GetCategoriesRequest : PlainRequestBase, IGetCategoriesRequest { protected IGetCategoriesRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} + ////_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id} ///this parameter is required ///Optional, accepts null public GetCategoriesRequest(Id job_id, CategoryId category_id) : base(r=>r.Required("job_id", job_id).Optional("category_id", category_id)){} - - /// /_xpack/ml/anomaly_detectors/{job_id}/results/categories/ + ////_xpack/ml/anomaly_detectors/{job_id}/results/categories/ ///this parameter is required public GetCategoriesRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IGetCategoriesRequest.JobId => Self.RouteValues.Get("job_id"); CategoryId IGetCategoriesRequest.CategoryId => Self.RouteValues.Get("category_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetDatafeedsRequest : IRequest { Id DatafeedId { get; } } - ///Request parameters for XpackMlGetDatafeeds
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html
public partial class GetDatafeedsRequest : PlainRequestBase, IGetDatafeedsRequest { protected IGetDatafeedsRequest Self => this; - /// /_xpack/ml/datafeeds/{datafeed_id} + ////_xpack/ml/datafeeds/{datafeed_id} ///Optional, accepts null public GetDatafeedsRequest(Id datafeed_id) : base(r=>r.Optional("datafeed_id", datafeed_id)){} - - /// /_xpack/ml/datafeeds + ////_xpack/ml/datafeeds public GetDatafeedsRequest() : base(){} - // values part of the url path Id IGetDatafeedsRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); @@ -2861,24 +2600,20 @@ public GetDatafeedsRequest() : base(){} ///Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) public bool? AllowNoDatafeeds { get => Q("allow_no_datafeeds"); set => Q("allow_no_datafeeds", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetDatafeedStatsRequest : IRequest { Id DatafeedId { get; } } - ///Request parameters for XpackMlGetDatafeedStats
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html
public partial class GetDatafeedStatsRequest : PlainRequestBase, IGetDatafeedStatsRequest { protected IGetDatafeedStatsRequest Self => this; - /// /_xpack/ml/datafeeds/{datafeed_id}/_stats + ////_xpack/ml/datafeeds/{datafeed_id}/_stats ///Optional, accepts null public GetDatafeedStatsRequest(Id datafeed_id) : base(r=>r.Optional("datafeed_id", datafeed_id)){} - - /// /_xpack/ml/datafeeds/_stats + ////_xpack/ml/datafeeds/_stats public GetDatafeedStatsRequest() : base(){} - // values part of the url path Id IGetDatafeedStatsRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); @@ -2886,7 +2621,6 @@ public GetDatafeedStatsRequest() : base(){} ///Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) public bool? AllowNoDatafeeds { get => Q("allow_no_datafeeds"); set => Q("allow_no_datafeeds", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetFieldMappingRequest : IRequest { @@ -2894,31 +2628,26 @@ public partial interface IGetFieldMappingRequest : IRequestRequest parameters for IndicesGetFieldMappingForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html
public partial class GetFieldMappingRequest : PlainRequestBase, IGetFieldMappingRequest { protected IGetFieldMappingRequest Self => this; - /// /_mapping/field/{fields} + ////_mapping/field/{fields} ///this parameter is required public GetFieldMappingRequest(Fields fields) : base(r=>r.Required("fields", fields)){} - - /// /{index}/_mapping/field/{fields} + ////{index}/_mapping/field/{fields} ///Optional, accepts null ///this parameter is required public GetFieldMappingRequest(Indices index, Fields fields) : base(r=>r.Optional("index", index).Required("fields", fields)){} - - /// /_mapping/{type}/field/{fields} + ////_mapping/{type}/field/{fields} ///Optional, accepts null ///this parameter is required public GetFieldMappingRequest(Types type, Fields fields) : base(r=>r.Optional("type", type).Required("fields", fields)){} - - /// /{index}/_mapping/{type}/field/{fields} + ////{index}/_mapping/{type}/field/{fields} ///Optional, accepts null ///Optional, accepts null ///this parameter is required public GetFieldMappingRequest(Indices index, Types type, Fields fields) : base(r=>r.Optional("index", index).Optional("type", type).Required("fields", fields)){} - // values part of the url path Indices IGetFieldMappingRequest.Index => Self.RouteValues.Get("index"); Types IGetFieldMappingRequest.Type => Self.RouteValues.Get("type"); @@ -2939,21 +2668,18 @@ public GetFieldMappingRequest(Indices index, Types type, Fields fields) : base(r ///Return local information, do not retrieve the state from master node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetIndexRequest : IRequest { Indices Index { get; } } - ///Request parameters for IndicesGet
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html
public partial class GetIndexRequest : PlainRequestBase, IGetIndexRequest { protected IGetIndexRequest Self => this; - /// /{index} + ////{index} ///this parameter is required public GetIndexRequest(Indices index) : base(r=>r.Required("index", index)){} - // values part of the url path Indices IGetIndexRequest.Index => Self.RouteValues.Get("index"); @@ -2971,34 +2697,28 @@ public GetIndexRequest(Indices index) : base(r=>r.Required("index", index)){} ///Whether to return all default setting for each of the indices. public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetIndexSettingsRequest : IRequest { Indices Index { get; } Names Name { get; } } - ///Request parameters for IndicesGetSettingsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html
public partial class GetIndexSettingsRequest : PlainRequestBase, IGetIndexSettingsRequest { protected IGetIndexSettingsRequest Self => this; - /// /_settings + ////_settings public GetIndexSettingsRequest() : base(){} - - /// /{index}/_settings + ////{index}/_settings ///Optional, accepts null public GetIndexSettingsRequest(Indices index) : base(r=>r.Optional("index", index)){} - - /// /{index}/_settings/{name} + ////{index}/_settings/{name} ///Optional, accepts null ///Optional, accepts null public GetIndexSettingsRequest(Indices index, Names name) : base(r=>r.Optional("index", index).Optional("name", name)){} - - /// /_settings/{name} + ////_settings/{name} ///Optional, accepts null public GetIndexSettingsRequest(Names name) : base(r=>r.Optional("name", name)){} - // values part of the url path Indices IGetIndexSettingsRequest.Index => Self.RouteValues.Get("index"); Names IGetIndexSettingsRequest.Name => Self.RouteValues.Get("name"); @@ -3020,24 +2740,20 @@ public GetIndexSettingsRequest(Names name) : base(r=>r.Optional("name", name)){} ///Whether to return all default setting for each of the indices. public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetIndexTemplateRequest : IRequest { Names Name { get; } } - ///Request parameters for IndicesGetTemplateForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
public partial class GetIndexTemplateRequest : PlainRequestBase, IGetIndexTemplateRequest { protected IGetIndexTemplateRequest Self => this; - /// /_template + ////_template public GetIndexTemplateRequest() : base(){} - - /// /_template/{name} + ////_template/{name} ///Optional, accepts null public GetIndexTemplateRequest(Names name) : base(r=>r.Optional("name", name)){} - // values part of the url path Names IGetIndexTemplateRequest.Name => Self.RouteValues.Get("name"); @@ -3049,44 +2765,37 @@ public GetIndexTemplateRequest(Names name) : base(r=>r.Optional("name", name)){} ///Return local information, do not retrieve the state from master node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetInfluencersRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlGetInfluencers
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html
public partial class GetInfluencersRequest : PlainRequestBase, IGetInfluencersRequest { protected IGetInfluencersRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/results/influencers + ////_xpack/ml/anomaly_detectors/{job_id}/results/influencers ///this parameter is required public GetInfluencersRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IGetInfluencersRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetJobsRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlGetJobs
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html
public partial class GetJobsRequest : PlainRequestBase, IGetJobsRequest { protected IGetJobsRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id} + ////_xpack/ml/anomaly_detectors/{job_id} ///Optional, accepts null public GetJobsRequest(Id job_id) : base(r=>r.Optional("job_id", job_id)){} - - /// /_xpack/ml/anomaly_detectors + ////_xpack/ml/anomaly_detectors public GetJobsRequest() : base(){} - // values part of the url path Id IGetJobsRequest.JobId => Self.RouteValues.Get("job_id"); @@ -3094,24 +2803,20 @@ public GetJobsRequest() : base(){} ///Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) public bool? AllowNoJobs { get => Q("allow_no_jobs"); set => Q("allow_no_jobs", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetJobStatsRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlGetJobStats
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html
public partial class GetJobStatsRequest : PlainRequestBase, IGetJobStatsRequest { protected IGetJobStatsRequest Self => this; - /// /_xpack/ml/anomaly_detectors/_stats + ////_xpack/ml/anomaly_detectors/_stats public GetJobStatsRequest() : base(){} - - /// /_xpack/ml/anomaly_detectors/{job_id}/_stats + ////_xpack/ml/anomaly_detectors/{job_id}/_stats ///Optional, accepts null public GetJobStatsRequest(Id job_id) : base(r=>r.Optional("job_id", job_id)){} - // values part of the url path Id IGetJobStatsRequest.JobId => Self.RouteValues.Get("job_id"); @@ -3119,12 +2824,10 @@ public GetJobStatsRequest(Id job_id) : base(r=>r.Optional("job_id", job_id)){} ///Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) public bool? AllowNoJobs { get => Q("allow_no_jobs"); set => Q("allow_no_jobs", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetLicenseRequest : IRequest { } - ///Request parameters for XpackLicenseGet
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class GetLicenseRequest : PlainRequestBase, IGetLicenseRequest { @@ -3135,34 +2838,28 @@ public partial class GetLicenseRequest : PlainRequestBaseReturn local information, do not retrieve the state from master node (default: false)
public bool? Local { get => Q("local"); set => Q("local", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetMappingRequest : IRequest { Indices Index { get; } Types Type { get; } } - ///Request parameters for IndicesGetMappingForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html
public partial class GetMappingRequest : PlainRequestBase, IGetMappingRequest { protected IGetMappingRequest Self => this; /// /_mapping public GetMappingRequest(){} - - /// /{index}/_mapping + ////{index}/_mapping ///Optional, accepts null public GetMappingRequest(Indices index) : base(r=>r.Optional("index", index)){} - - /// /_mapping/{type} + ////_mapping/{type} ///Optional, accepts null public GetMappingRequest(Types type) : base(r=>r.Optional("type", type)){} - - /// /{index}/_mapping/{type} + ////{index}/_mapping/{type} ///Optional, accepts null ///Optional, accepts null public GetMappingRequest(Indices index, Types type) : base(r=>r.Optional("index", index).Optional("type", type)){} - // values part of the url path Indices IGetMappingRequest.Index => Self.RouteValues.Get("index"); Types IGetMappingRequest.Type => Self.RouteValues.Get("type"); @@ -3180,71 +2877,60 @@ public GetMappingRequest(Indices index, Types type) : base(r=>r.Optional("index" ///Return local information, do not retrieve the state from master node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetModelSnapshotsRequest : IRequest { Id JobId { get; } Id SnapshotId { get; } } - ///Request parameters for XpackMlGetModelSnapshots
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html
public partial class GetModelSnapshotsRequest : PlainRequestBase, IGetModelSnapshotsRequest { protected IGetModelSnapshotsRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} + ////_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id} ///this parameter is required ///Optional, accepts null public GetModelSnapshotsRequest(Id job_id, Id snapshot_id) : base(r=>r.Required("job_id", job_id).Optional("snapshot_id", snapshot_id)){} - - /// /_xpack/ml/anomaly_detectors/{job_id}/model_snapshots + ////_xpack/ml/anomaly_detectors/{job_id}/model_snapshots ///this parameter is required public GetModelSnapshotsRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IGetModelSnapshotsRequest.JobId => Self.RouteValues.Get("job_id"); Id IGetModelSnapshotsRequest.SnapshotId => Self.RouteValues.Get("snapshot_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetOverallBucketsRequest : IRequest { Id JobId { get; } } - ///Request parameters for XpackMlGetOverallBuckets
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html
public partial class GetOverallBucketsRequest : PlainRequestBase, IGetOverallBucketsRequest { protected IGetOverallBucketsRequest Self => this; - /// /_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets + ////_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets ///this parameter is required public GetOverallBucketsRequest(Id job_id) : base(r=>r.Required("job_id", job_id)){} - // values part of the url path Id IGetOverallBucketsRequest.JobId => Self.RouteValues.Get("job_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IGetPipelineRequest : IRequest { Id Id { get; } } - ///Request parameters for IngestGetPipeline
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class GetPipelineRequest : PlainRequestBase, IGetPipelineRequest { protected IGetPipelineRequest Self => this; - /// /_ingest/pipeline + ////_ingest/pipeline public GetPipelineRequest() : base(){} - - /// /_ingest/pipeline/{id} + ////_ingest/pipeline/{id} ///Optional, accepts null public GetPipelineRequest(Id id) : base(r=>r.Optional("id", id)){} - // values part of the url path Id IGetPipelineRequest.Id => Self.RouteValues.Get("id"); @@ -3252,24 +2938,20 @@ public GetPipelineRequest(Id id) : base(r=>r.Optional("id", id)){} ///Explicit operation timeout for connection to master node public Time MasterTimeout { get => Q
public partial class IndexRequest : PlainRequestBase, IIndexRequest { protected IIndexRequest Self => this; - /// /{index}/{type} + ////{index}/{type} ///this parameter is required ///this parameter is required public IndexRequest(IndexName index, TypeName type) : base(r=>r.Required("index", index).Required("type", type)) => Q("routing", new Routing(() => AutoRouteDocument())); - - /// /{index}/{type}/{id} + ////{index}/{type}/{id} ///this parameter is required ///this parameter is required ///Optional, accepts null public IndexRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Optional("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{index}/{type} /// describes an elasticsearch document of type from which the index, type and id can be inferred public IndexRequest(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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document)); } partial void DocumentFromPath(TDocument document); - // values part of the url path Id IIndexRequest.Id => Self.RouteValues.Get("id"); IndexName IIndexRequest.Index => Self.RouteValues.Get("index"); @@ -3764,21 +3397,18 @@ public IndexRequest(DocumentPath document, IndexName index = null, Ty ///The pipeline id to preprocess incoming documents with public string Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IIndexTemplateExistsRequest : IRequest { Names Name { get; } } - ///Request parameters for IndicesExistsTemplateForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
public partial class IndexTemplateExistsRequest : PlainRequestBase, IIndexTemplateExistsRequest { protected IIndexTemplateExistsRequest Self => this; - /// /_template/{name} + ////_template/{name} ///this parameter is required public IndexTemplateExistsRequest(Names name) : base(r=>r.Required("name", name)){} - // values part of the url path Names IIndexTemplateExistsRequest.Name => Self.RouteValues.Get("name"); @@ -3790,24 +3420,20 @@ public IndexTemplateExistsRequest(Names name) : base(r=>r.Required("name", name) ///Return local information, do not retrieve the state from master node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IIndicesShardStoresRequest : IRequest { Indices Index { get; } } - ///Request parameters for IndicesShardStoresForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html
public partial class IndicesShardStoresRequest : PlainRequestBase, IIndicesShardStoresRequest { protected IIndicesShardStoresRequest Self => this; - /// /_shard_stores + ////_shard_stores public IndicesShardStoresRequest() : base(){} - - /// /{index}/_shard_stores + ////{index}/_shard_stores ///Optional, accepts null public IndicesShardStoresRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IIndicesShardStoresRequest.Index => Self.RouteValues.Get("index"); @@ -3824,34 +3450,28 @@ public IndicesShardStoresRequest(Indices index) : base(r=>r.Optional("index", in ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IIndicesStatsRequest : IRequest { Indices Index { get; } Metrics Metric { get; } } - ///Request parameters for IndicesStatsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html
public partial class IndicesStatsRequest : PlainRequestBase, IIndicesStatsRequest { protected IIndicesStatsRequest Self => this; - /// /_stats + ////_stats public IndicesStatsRequest() : base(){} - - /// /_stats/{metric} + ////_stats/{metric} ///Optional, accepts null public IndicesStatsRequest(IndicesStatsMetric metric) : base(r=>r.Optional("metric", (Metrics)metric)){} - - /// /{index}/_stats + ////{index}/_stats ///Optional, accepts null public IndicesStatsRequest(Indices index) : base(r=>r.Optional("index", index)){} - - /// /{index}/_stats/{metric} + ////{index}/_stats/{metric} ///Optional, accepts null ///Optional, accepts null public IndicesStatsRequest(Indices index, IndicesStatsMetric metric) : base(r=>r.Optional("index", index).Optional("metric", (Metrics)metric)){} - // values part of the url path Indices IIndicesStatsRequest.Index => Self.RouteValues.Get("index"); Metrics IIndicesStatsRequest.Metric => Self.RouteValues.Get("metric"); @@ -3870,12 +3490,10 @@ public IndicesStatsRequest(Indices index, IndicesStatsMetric metric) : base(r=>r ///Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IInvalidateUserAccessTokenRequest : IRequest { } - ///Request parameters for XpackSecurityInvalidateToken
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token
public partial class InvalidateUserAccessTokenRequest : PlainRequestBase, IInvalidateUserAccessTokenRequest { @@ -3884,12 +3502,10 @@ public partial class InvalidateUserAccessTokenRequest : PlainRequestBase { } - ///Request parameters for TasksList
http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
public partial class ListTasksRequest : PlainRequestBase, IListTasksRequest { @@ -3906,33 +3522,32 @@ public partial class ListTasksRequest : PlainRequestBase Q("actions"); set => Q("actions", value); } ///Return detailed task information (default: false) public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } - ///Return tasks with specified parent node. - public string ParentNode { get => Q("parent_node"); set => Q("parent_node", value); } ///Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. public string ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } ///Wait for the matching tasks to complete (default: false) public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } ///Group tasks by nodes or parent/child relationships public GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } + ///Explicit operation timeout + public Time Timeout { get => Q
public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IMultiSearchTemplateRequest : IRequest { Indices Index { get; } Types Type { get; } } - ///Request parameters for MsearchTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html
public partial class MultiSearchTemplateRequest : PlainRequestBase, IMultiSearchTemplateRequest { protected IMultiSearchTemplateRequest Self => this; /// /_msearch/template public MultiSearchTemplateRequest(){} - - /// /{index}/_msearch/template + ////{index}/_msearch/template ///Optional, accepts null public MultiSearchTemplateRequest(Indices index) : base(r=>r.Optional("index", index)){} - - /// /{index}/{type}/_msearch/template + ////{index}/{type}/_msearch/template ///Optional, accepts null ///Optional, accepts null public MultiSearchTemplateRequest(Indices index, Types type) : base(r=>r.Optional("index", index).Optional("type", type)){} - // values part of the url path Indices IMultiSearchTemplateRequest.Index => Self.RouteValues.Get("index"); Types IMultiSearchTemplateRequest.Type => Self.RouteValues.Get("type"); @@ -4100,30 +3696,25 @@ public MultiSearchTemplateRequest(Indices index, Types type) : base(r=>r.Optiona ///Controls the maximum number of concurrent searches the multi search api will execute public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IMultiTermVectorsRequest : IRequest { IndexName Index { get; } TypeName Type { get; } } - ///Request parameters for Mtermvectors
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html
public partial class MultiTermVectorsRequest : PlainRequestBase, IMultiTermVectorsRequest { protected IMultiTermVectorsRequest Self => this; - /// /_mtermvectors + ////_mtermvectors public MultiTermVectorsRequest() : base(){} - - /// /{index}/_mtermvectors + ////{index}/_mtermvectors ///Optional, accepts null public MultiTermVectorsRequest(IndexName index) : base(r=>r.Optional("index", index)){} - - /// /{index}/{type}/_mtermvectors + ////{index}/{type}/_mtermvectors ///Optional, accepts null ///Optional, accepts null public MultiTermVectorsRequest(IndexName index, TypeName type) : base(r=>r.Optional("index", index).Optional("type", type)){} - // values part of the url path IndexName IMultiTermVectorsRequest.Index => Self.RouteValues.Get("index"); TypeName IMultiTermVectorsRequest.Type => Self.RouteValues.Get("type"); @@ -4171,24 +3762,20 @@ public MultiTermVectorsRequest(IndexName index, TypeName type) : base(r=>r.Optio ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface INodesHotThreadsRequest : IRequest { NodeIds NodeId { get; } } - ///Request parameters for NodesHotThreadsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html
public partial class NodesHotThreadsRequest : PlainRequestBase, INodesHotThreadsRequest { protected INodesHotThreadsRequest Self => this; - /// /_cluster/nodes/hotthreads + ////_cluster/nodes/hotthreads public NodesHotThreadsRequest() : base(){} - - /// /_cluster/nodes/{node_id}/hotthreads + ////_cluster/nodes/{node_id}/hotthreads ///Optional, accepts null public NodesHotThreadsRequest(NodeIds node_id) : base(r=>r.Optional("node_id", node_id)){} - // values part of the url path NodeIds INodesHotThreadsRequest.NodeId => Self.RouteValues.Get("node_id"); @@ -4206,34 +3793,28 @@ public NodesHotThreadsRequest(NodeIds node_id) : base(r=>r.Optional("node_id", n ///Explicit operation timeout public Time Timeout { get => Q
public partial class NodesStatsRequest : PlainRequestBase, INodesStatsRequest { protected INodesStatsRequest Self => this; - /// /_nodes/stats + ////_nodes/stats public NodesStatsRequest() : base(){} - - /// /_nodes/{node_id}/stats + ////_nodes/{node_id}/stats ///Optional, accepts null public NodesStatsRequest(NodeIds node_id) : base(r=>r.Optional("node_id", node_id)){} - - /// /_nodes/stats/{metric} + ////_nodes/stats/{metric} ///Optional, accepts null public NodesStatsRequest(NodesStatsMetric metric) : base(r=>r.Optional("metric", (Metrics)metric)){} - - /// /_nodes/{node_id}/stats/{metric} + ////_nodes/{node_id}/stats/{metric} ///Optional, accepts null ///Optional, accepts null public NodesStatsRequest(NodeIds node_id, NodesStatsMetric metric) : base(r=>r.Optional("node_id", node_id).Optional("metric", (Metrics)metric)){} - - /// /_nodes/stats/{metric}/{index_metric} + ////_nodes/stats/{metric}/{index_metric} ///Optional, accepts null ///Optional, accepts null public NodesStatsRequest(NodesStatsMetric metric, NodesStatsIndexMetric index_metric) : base(r=>r.Optional("metric", (Metrics)metric).Optional("index_metric", (IndexMetrics)index_metric)){} - - /// /_nodes/{node_id}/stats/{metric}/{index_metric} + ////_nodes/{node_id}/stats/{metric}/{index_metric} ///Optional, accepts null ///Optional, accepts null ///Optional, accepts null public NodesStatsRequest(NodeIds node_id, NodesStatsMetric metric, NodesStatsIndexMetric index_metric) : base(r=>r.Optional("node_id", node_id).Optional("metric", (Metrics)metric).Optional("index_metric", (IndexMetrics)index_metric)){} - // values part of the url path Metrics INodesStatsRequest.Metric => Self.RouteValues.Get("metric"); IndexMetrics INodesStatsRequest.IndexMetric => Self.RouteValues.Get("index_metric"); @@ -4307,34 +3880,28 @@ public NodesStatsRequest(NodeIds node_id, NodesStatsMetric metric, NodesStatsInd ///Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface INodesUsageRequest : IRequest { Metrics Metric { get; } NodeIds NodeId { get; } } - ///Request parameters for NodesUsageForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html
public partial class NodesUsageRequest : PlainRequestBase, INodesUsageRequest { protected INodesUsageRequest Self => this; - /// /_nodes/usage + ////_nodes/usage public NodesUsageRequest() : base(){} - - /// /_nodes/{node_id}/usage + ////_nodes/{node_id}/usage ///Optional, accepts null public NodesUsageRequest(NodeIds node_id) : base(r=>r.Optional("node_id", node_id)){} - - /// /_nodes/usage/{metric} + ////_nodes/usage/{metric} ///Optional, accepts null public NodesUsageRequest(NodesUsageMetric metric) : base(r=>r.Optional("metric", (Metrics)metric)){} - - /// /_nodes/{node_id}/usage/{metric} + ////_nodes/{node_id}/usage/{metric} ///Optional, accepts null ///Optional, accepts null public NodesUsageRequest(NodeIds node_id, NodesUsageMetric metric) : base(r=>r.Optional("node_id", node_id).Optional("metric", (Metrics)metric)){} - // values part of the url path Metrics INodesUsageRequest.Metric => Self.RouteValues.Get("metric"); NodeIds INodesUsageRequest.NodeId => Self.RouteValues.Get("node_id"); @@ -4343,21 +3910,18 @@ public NodesUsageRequest(NodeIds node_id, NodesUsageMetric metric) : base(r=>r.O ///Explicit operation timeout public Time Timeout { get => Q
public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IPreviewDatafeedRequest : IRequest { Id DatafeedId { get; } } - ///Request parameters for XpackMlPreviewDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html
public partial class PreviewDatafeedRequest : PlainRequestBase, IPreviewDatafeedRequest { protected IPreviewDatafeedRequest Self => this; - /// /_xpack/ml/datafeeds/{datafeed_id}/_preview + ////_xpack/ml/datafeeds/{datafeed_id}/_preview ///this parameter is required public PreviewDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IPreviewDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IPutAliasRequest : IRequest { Indices Index { get; } Name Name { get; } } - ///Request parameters for IndicesPutAlias
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html
public partial class PutAliasRequest : PlainRequestBase, IPutAliasRequest { protected IPutAliasRequest Self => this; - /// /{index}/_alias/{name} + ////{index}/_alias/{name} ///this parameter is required ///this parameter is required public PutAliasRequest(Indices index, Name name) : base(r=>r.Required("index", index).Required("name", name)){} - // values part of the url path Indices IPutAliasRequest.Index => Self.RouteValues.Get("index"); Name IPutAliasRequest.Name => Self.RouteValues.Get("name"); @@ -4499,41 +4047,35 @@ public PutAliasRequest(Indices index, Name name) : base(r=>r.Required("index", i ///Specify timeout for connection to master public Time MasterTimeout { get => Q
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IPutRoleRequest : IRequest { Name Name { get; } } - ///Request parameters for XpackSecurityPutRole
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role
public partial class PutRoleRequest : PlainRequestBase, IPutRoleRequest { protected IPutRoleRequest Self => this; - /// /_xpack/security/role/{name} + ////_xpack/security/role/{name} ///this parameter is required public PutRoleRequest(Name name) : base(r=>r.Required("name", name)){} - // values part of the url path Name IPutRoleRequest.Name => Self.RouteValues.Get("name"); @@ -4717,27 +4242,23 @@ public PutRoleRequest(Name name) : base(r=>r.Required("name", name)){} ///
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IPutScriptRequest : IRequest { Id Id { get; } Name Context { get; } } - ///Request parameters for PutScript
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
public partial class PutScriptRequest : PlainRequestBase, IPutScriptRequest { protected IPutScriptRequest Self => this; - /// /_scripts/{id} + ////_scripts/{id} ///this parameter is required public PutScriptRequest(Id id) : base(r=>r.Required("id", id)){} - - /// /_scripts/{id}/{context} + ////_scripts/{id}/{context} ///this parameter is required ///Optional, accepts null public PutScriptRequest(Id id, Name context) : base(r=>r.Required("id", id).Optional("context", context)){} - // values part of the url path Id IPutScriptRequest.Id => Self.RouteValues.Get("id"); Name IPutScriptRequest.Context => Self.RouteValues.Get("context"); @@ -4748,21 +4269,18 @@ public PutScriptRequest(Id id, Name context) : base(r=>r.Required("id", id).Opti ///Specify timeout for connection to master public Time MasterTimeout { get => Q
public Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IPutWatchRequest : IRequest { Id Id { get; } } - ///Request parameters for XpackWatcherPutWatch
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html
public partial class PutWatchRequest : PlainRequestBase, IPutWatchRequest { protected IPutWatchRequest Self => this; - /// /_xpack/watcher/watch/{id} + ////_xpack/watcher/watch/{id} ///this parameter is required public PutWatchRequest(Id id) : base(r=>r.Required("id", id)){} - // values part of the url path Id IPutWatchRequest.Id => Self.RouteValues.Get("id"); @@ -4796,25 +4311,23 @@ public PutWatchRequest(Id id) : base(r=>r.Required("id", id)){} public Time MasterTimeout { get => Q
public Time Scroll { get => Q
public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } - } - ///Request parameters for Search
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html
+ } ///Request parameters for Search
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html
public partial class SearchRequest : PlainRequestBase, ISearchRequest { protected ISearchRequest Self => this; /// /_search public SearchRequest(){} - - /// /{index}/_search + ////{index}/_search ///Optional, accepts null public SearchRequest(Indices index) : base(r=>r.Optional("index", index)){} - - /// /{index}/{type}/_search + ////{index}/{type}/_search ///Optional, accepts null ///Optional, accepts null public SearchRequest(Indices index, Types type) : base(r=>r.Optional("index", index).Optional("type", type)){} - // values part of the url path Indices ISearchRequest.Index => Self.RouteValues.Get("index"); Types ISearchRequest.Type => Self.RouteValues.Get("type"); @@ -5240,6 +4713,8 @@ public SearchRequest(Indices index, Types type) : base(r=>r.Optional("index", in public string SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); } ///Indicate if the number of documents that match the query should be tracked public bool? TrackTotalHits { get => Q("track_total_hits"); set => Q("track_total_hits", value); } + ///Indicate if an error should be returned if there is a partial search failure or timeout + public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } ///Specify if request cache should be used for this request or not, defaults to index level setting @@ -5262,24 +4737,20 @@ public SearchRequest(Indices index, Types type) : base(r=>r.Optional("index", in ///
public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISearchShardsRequest : IRequest { Indices Index { get; } } - ///Request parameters for SearchShards
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html
public partial class SearchShardsRequest : PlainRequestBase, ISearchShardsRequest { protected ISearchShardsRequest Self => this; - /// /_search_shards. Will infer the index from the generic type + ////_search_shards public SearchShardsRequest() : this(typeof(T)){} - - /// /{index}/_search_shards + ////{index}/_search_shards ///Optional, accepts null public SearchShardsRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ISearchShardsRequest.Index => Self.RouteValues.Get("index"); @@ -5306,18 +4777,15 @@ public SearchShardsRequest(Indices index) : base(r=>r.Optional("index", index)){ public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } - } - ///Request parameters for SearchShards
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html
+ } ///Request parameters for SearchShards
http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html
public partial class SearchShardsRequest : PlainRequestBase, ISearchShardsRequest { protected ISearchShardsRequest Self => this; - /// /_search_shards + ////_search_shards public SearchShardsRequest() : base(){} - - /// /{index}/_search_shards + ////{index}/_search_shards ///Optional, accepts null public SearchShardsRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ISearchShardsRequest.Index => Self.RouteValues.Get("index"); @@ -5345,30 +4813,25 @@ public SearchShardsRequest(Indices index) : base(r=>r.Optional("index", index)){ ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISearchTemplateRequest : IRequest { Indices Index { get; } Types Type { get; } } - ///Request parameters for SearchTemplate
http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html
public partial class SearchTemplateRequest : PlainRequestBase, ISearchTemplateRequest { protected ISearchTemplateRequest Self => this; /// /_search/template public SearchTemplateRequest(){} - - /// /{index}/_search/template + ////{index}/_search/template ///Optional, accepts null public SearchTemplateRequest(Indices index) : base(r=>r.Optional("index", index)){} - - /// /{index}/{type}/_search/template + ////{index}/{type}/_search/template ///Optional, accepts null ///Optional, accepts null public SearchTemplateRequest(Indices index, Types type) : base(r=>r.Optional("index", index).Optional("type", type)){} - // values part of the url path Indices ISearchTemplateRequest.Index => Self.RouteValues.Get("index"); Types ISearchTemplateRequest.Type => Self.RouteValues.Get("type"); @@ -5405,24 +4868,20 @@ public SearchTemplateRequest(Indices index, Types type) : base(r=>r.Optional("in ///Specify whether aggregation and suggester names should be prefixed by their respective types in the response public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISegmentsRequest : IRequest { Indices Index { get; } } - ///Request parameters for IndicesSegmentsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html
public partial class SegmentsRequest : PlainRequestBase, ISegmentsRequest { protected ISegmentsRequest Self => this; - /// /_segments + ////_segments public SegmentsRequest() : base(){} - - /// /{index}/_segments + ////{index}/_segments ///Optional, accepts null public SegmentsRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ISegmentsRequest.Index => Self.RouteValues.Get("index"); @@ -5439,23 +4898,20 @@ public SegmentsRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Includes detailed memory usage by Lucene. public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IShrinkIndexRequest : IRequest { IndexName Index { get; } IndexName Target { get; } } - ///Request parameters for IndicesShrink
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html
public partial class ShrinkIndexRequest : PlainRequestBase, IShrinkIndexRequest { protected IShrinkIndexRequest Self => this; - /// /{index}/_shrink/{target} + ////{index}/_shrink/{target} ///this parameter is required ///this parameter is required public ShrinkIndexRequest(IndexName index, IndexName target) : base(r=>r.Required("index", index).Required("target", target)){} - // values part of the url path IndexName IShrinkIndexRequest.Index => Self.RouteValues.Get("index"); IndexName IShrinkIndexRequest.Target => Self.RouteValues.Get("target"); @@ -5468,24 +4924,20 @@ public ShrinkIndexRequest(IndexName index, IndexName target) : base(r=>r.Require ///Set the number of active shards to wait for on the shrunken index before the operation returns. public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISimulatePipelineRequest : IRequest { Id Id { get; } } - ///Request parameters for IngestSimulate
https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
public partial class SimulatePipelineRequest : PlainRequestBase, ISimulatePipelineRequest { protected ISimulatePipelineRequest Self => this; - /// /_ingest/pipeline/_simulate + ////_ingest/pipeline/_simulate public SimulatePipelineRequest() : base(){} - - /// /_ingest/pipeline/{id}/_simulate + ////_ingest/pipeline/{id}/_simulate ///Optional, accepts null public SimulatePipelineRequest(Id id) : base(r=>r.Optional("id", id)){} - // values part of the url path Id ISimulatePipelineRequest.Id => Self.RouteValues.Get("id"); @@ -5493,23 +4945,20 @@ public SimulatePipelineRequest(Id id) : base(r=>r.Optional("id", id)){} ///Verbose mode. Display data output for each processor in executed pipeline public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISnapshotRequest : IRequest { Name RepositoryName { get; } Name Snapshot { get; } } - ///Request parameters for SnapshotCreate
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class SnapshotRequest : PlainRequestBase, ISnapshotRequest { protected ISnapshotRequest Self => this; - /// /_snapshot/{repository}/{snapshot} + ////_snapshot/{repository}/{snapshot} ///this parameter is required ///this parameter is required public SnapshotRequest(Name repository, Name snapshot) : base(r=>r.Required("repository", repository).Required("snapshot", snapshot)){} - // values part of the url path Name ISnapshotRequest.RepositoryName => Self.RouteValues.Get("repository"); Name ISnapshotRequest.Snapshot => Self.RouteValues.Get("snapshot"); @@ -5520,30 +4969,25 @@ public SnapshotRequest(Name repository, Name snapshot) : base(r=>r.Required("rep ///Should this request wait until the operation has completed before returning public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISnapshotStatusRequest : IRequest { Name RepositoryName { get; } Names Snapshot { get; } } - ///Request parameters for SnapshotStatus
http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html
public partial class SnapshotStatusRequest : PlainRequestBase, ISnapshotStatusRequest { protected ISnapshotStatusRequest Self => this; - /// /_snapshot/_status + ////_snapshot/_status public SnapshotStatusRequest() : base(){} - - /// /_snapshot/{repository}/_status + ////_snapshot/{repository}/_status ///Optional, accepts null public SnapshotStatusRequest(Name repository) : base(r=>r.Optional("repository", repository)){} - - /// /_snapshot/{repository}/{snapshot}/_status + ////_snapshot/{repository}/{snapshot}/_status ///Optional, accepts null ///Optional, accepts null public SnapshotStatusRequest(Name repository, Names snapshot) : base(r=>r.Optional("repository", repository).Optional("snapshot", snapshot)){} - // values part of the url path Name ISnapshotStatusRequest.RepositoryName => Self.RouteValues.Get("repository"); Names ISnapshotStatusRequest.Snapshot => Self.RouteValues.Get("snapshot"); @@ -5554,7 +4998,6 @@ public SnapshotStatusRequest(Name repository, Names snapshot) : base(r=>r.Option ///Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISourceExistsRequest : IRequest { @@ -5562,24 +5005,21 @@ public partial interface ISourceExistsRequest : IRequestRequest parameters for ExistsSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class SourceExistsRequest : PlainRequestBase, ISourceExistsRequest { protected ISourceExistsRequest Self => this; - /// /{index}/{type}/{id}/_source + ////{index}/{type}/{id}/_source ///this parameter is required ///this parameter is required ///this parameter is required public SourceExistsRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{index}/{type}/{id}/_source /// describes an elasticsearch document of type from which the index, type and id can be inferred public SourceExistsRequest(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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document)); } partial void DocumentFromPath(T document); - // values part of the url path Id ISourceExistsRequest.Id => Self.RouteValues.Get("id"); IndexName ISourceExistsRequest.Index => Self.RouteValues.Get("index"); @@ -5614,18 +5054,16 @@ public SourceExistsRequest(DocumentPath document, IndexName index = null, Typ public long? Version { get => Q("version"); set => Q("version", value); } ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - } - ///Request parameters for ExistsSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
+ } ///Request parameters for ExistsSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class SourceExistsRequest : PlainRequestBase, ISourceExistsRequest { protected ISourceExistsRequest Self => this; - /// /{index}/{type}/{id}/_source + ////{index}/{type}/{id}/_source ///this parameter is required ///this parameter is required ///this parameter is required public SourceExistsRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - // values part of the url path Id ISourceExistsRequest.Id => Self.RouteValues.Get("id"); IndexName ISourceExistsRequest.Index => Self.RouteValues.Get("index"); @@ -5661,7 +5099,6 @@ public SourceExistsRequest(IndexName index, TypeName type, Id id) : base(r=>r.Re ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISourceRequest : IRequest { @@ -5669,24 +5106,21 @@ public partial interface ISourceRequest : IRequest IndexName Index { get; } TypeName Type { get; } } - ///Request parameters for GetSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class SourceRequest : PlainRequestBase, ISourceRequest { protected ISourceRequest Self => this; - /// /{index}/{type}/{id}/_source + ////{index}/{type}/{id}/_source ///this parameter is required ///this parameter is required ///this parameter is required public SourceRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{index}/{type}/{id}/_source /// describes an elasticsearch document of type from which the index, type and id can be inferred public SourceRequest(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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document)); } partial void DocumentFromPath(T document); - // values part of the url path Id ISourceRequest.Id => Self.RouteValues.Get("id"); IndexName ISourceRequest.Index => Self.RouteValues.Get("index"); @@ -5721,18 +5155,16 @@ public SourceRequest(DocumentPath document, IndexName index = null, TypeName public long? Version { get => Q("version"); set => Q("version", value); } ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - } - ///Request parameters for GetSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
+ } ///Request parameters for GetSource
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html
public partial class SourceRequest : PlainRequestBase, ISourceRequest { protected ISourceRequest Self => this; - /// /{index}/{type}/{id}/_source + ////{index}/{type}/{id}/_source ///this parameter is required ///this parameter is required ///this parameter is required public SourceRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Required("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - // values part of the url path Id ISourceRequest.Id => Self.RouteValues.Get("id"); IndexName ISourceRequest.Index => Self.RouteValues.Get("index"); @@ -5768,23 +5200,20 @@ public SourceRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ISplitIndexRequest : IRequest { IndexName Index { get; } IndexName Target { get; } } - ///Request parameters for IndicesSplit
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html
public partial class SplitIndexRequest : PlainRequestBase, ISplitIndexRequest { protected ISplitIndexRequest Self => this; - /// /{index}/_split/{target} + ////{index}/_split/{target} ///this parameter is required ///this parameter is required public SplitIndexRequest(IndexName index, IndexName target) : base(r=>r.Required("index", index).Required("target", target)){} - // values part of the url path IndexName ISplitIndexRequest.Index => Self.RouteValues.Get("index"); IndexName ISplitIndexRequest.Target => Self.RouteValues.Get("target"); @@ -5797,32 +5226,27 @@ public SplitIndexRequest(IndexName index, IndexName target) : base(r=>r.Required ///Set the number of active shards to wait for on the shrunken index before the operation returns. public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IStartDatafeedRequest : IRequest { Id DatafeedId { get; } } - ///Request parameters for XpackMlStartDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html
public partial class StartDatafeedRequest : PlainRequestBase, IStartDatafeedRequest { protected IStartDatafeedRequest Self => this; - /// /_xpack/ml/datafeeds/{datafeed_id}/_start + ////_xpack/ml/datafeeds/{datafeed_id}/_start ///this parameter is required public StartDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IStartDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IStartTrialLicenseRequest : IRequest { } - ///Request parameters for XpackLicensePostStartTrial
https://www.elastic.co/guide/en/x-pack/current/license-management.html
public partial class StartTrialLicenseRequest : PlainRequestBase, IStartTrialLicenseRequest { @@ -5830,13 +5254,15 @@ public partial class StartTrialLicenseRequest : PlainRequestBaseThe type of trial license to generate (default: "trial")
+ public string TypeQueryString { get => Q("type"); set => Q("type", value); } + ///whether the user has acknowledged acknowledge messages (default: false) + public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IStartWatcherRequest : IRequest { } - ///Request parameters for XpackWatcherStart
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html
public partial class StartWatcherRequest : PlainRequestBase, IStartWatcherRequest { @@ -5845,21 +5271,18 @@ public partial class StartWatcherRequest : PlainRequestBase { Id DatafeedId { get; } } - ///Request parameters for XpackMlStopDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html
public partial class StopDatafeedRequest : PlainRequestBase, IStopDatafeedRequest { protected IStopDatafeedRequest Self => this; - /// /_xpack/ml/datafeeds/{datafeed_id}/_stop + ////_xpack/ml/datafeeds/{datafeed_id}/_stop ///this parameter is required public StopDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IStopDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); @@ -5867,12 +5290,10 @@ public StopDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", d ///Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) public bool? AllowNoDatafeeds { get => Q("allow_no_datafeeds"); set => Q("allow_no_datafeeds", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IStopWatcherRequest : IRequest { } - ///Request parameters for XpackWatcherStop
http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html
public partial class StopWatcherRequest : PlainRequestBase, IStopWatcherRequest { @@ -5881,24 +5302,20 @@ public partial class StopWatcherRequest : PlainRequestBase { Indices Index { get; } } - ///Request parameters for IndicesFlushSyncedForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html
public partial class SyncedFlushRequest : PlainRequestBase, ISyncedFlushRequest { protected ISyncedFlushRequest Self => this; - /// /_flush/synced + ////_flush/synced public SyncedFlushRequest() : base(){} - - /// /{index}/_flush/synced + ////{index}/_flush/synced ///Optional, accepts null public SyncedFlushRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices ISyncedFlushRequest.Index => Self.RouteValues.Get("index"); @@ -5913,7 +5330,6 @@ public SyncedFlushRequest(Indices index) : base(r=>r.Optional("index", index)){} ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ITermVectorsRequest : IRequest { @@ -5921,30 +5337,26 @@ public partial interface ITermVectorsRequest : IRequestRequest parameters for Termvectors
http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html
public partial class TermVectorsRequest : PlainRequestBase, ITermVectorsRequest { protected ITermVectorsRequest Self => this; - /// /{index}/{type}/_termvectors + ////{index}/{type}/_termvectors ///this parameter is required ///this parameter is required public TermVectorsRequest(IndexName index, TypeName type) : base(r=>r.Required("index", index).Required("type", type)) => Q("routing", new Routing(() => AutoRouteDocument())); - - /// /{index}/{type}/{id}/_termvectors + ////{index}/{type}/{id}/_termvectors ///this parameter is required ///this parameter is required ///Optional, accepts null public TermVectorsRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required("index", index).Required("type", type).Optional("id", id)) => Q("routing", new Routing(() => AutoRouteDocument())); - /// /{index}/{type}/_termvectors /// describes an elasticsearch document of type from which the index, type and id can be inferred public TermVectorsRequest(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); Q("routing", new Routing(() => AutoRouteDocument() ?? document.Document)); } partial void DocumentFromPath(TDocument document); - // values part of the url path IndexName ITermVectorsRequest.Index => Self.RouteValues.Get("index"); TypeName ITermVectorsRequest.Type => Self.RouteValues.Get("type"); @@ -5984,23 +5396,20 @@ public TermVectorsRequest(DocumentPath document, IndexName index = nu ///Specific version type public VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface ITypeExistsRequest : IRequest { Indices Index { get; } Types Type { get; } } - ///Request parameters for IndicesExistsType
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html
public partial class TypeExistsRequest : PlainRequestBase, ITypeExistsRequest { protected ITypeExistsRequest Self => this; - /// /{index}/_mapping/{type} + ////{index}/_mapping/{type} ///this parameter is required ///this parameter is required public TypeExistsRequest(Indices index, Types type) : base(r=>r.Required("index", index).Required("type", type)){} - // values part of the url path Indices ITypeExistsRequest.Index => Self.RouteValues.Get("index"); Types ITypeExistsRequest.Type => Self.RouteValues.Get("type"); @@ -6018,27 +5427,23 @@ public TypeExistsRequest(Indices index, Types type) : base(r=>r.Required("index" ///Return local information, do not retrieve the state from master node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IUpdateByQueryRequest : IRequest { Indices Index { get; } Types Type { get; } } - ///Request parameters for UpdateByQuery
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html
public partial class UpdateByQueryRequest : PlainRequestBase, IUpdateByQueryRequest { protected IUpdateByQueryRequest Self => this; - /// /{index}/_update_by_query + ////{index}/_update_by_query ///this parameter is required public UpdateByQueryRequest(Indices index) : base(r=>r.Required("index", index)){} - - /// /{index}/{type}/_update_by_query + ////{index}/{type}/_update_by_query ///this parameter is required ///Optional, accepts null public UpdateByQueryRequest(Indices index, Types type) : base(r=>r.Required("index", index).Optional("type", type)){} - // values part of the url path Indices IUpdateByQueryRequest.Index => Self.RouteValues.Get("index"); Types IUpdateByQueryRequest.Type => Self.RouteValues.Get("type"); @@ -6118,7 +5523,7 @@ public UpdateByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind /// copies for the shard (number of replicas + 1) /// public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the update by query public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } ///Should the request should block until the update by query operation is complete. public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } @@ -6126,20 +5531,17 @@ public UpdateByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind public long? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. public long? Slices { get => Q("slices"); set => Q("slices", value); } - } - ///Request parameters for UpdateByQuery
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html
+ } ///Request parameters for UpdateByQuery
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html
public partial class UpdateByQueryRequest : PlainRequestBase, IUpdateByQueryRequest { protected IUpdateByQueryRequest Self => this; - /// /{index}/_update_by_query + ////{index}/_update_by_query ///this parameter is required public UpdateByQueryRequest(Indices index) : base(r=>r.Required("index", index)){} - - /// /{index}/{type}/_update_by_query + ////{index}/{type}/_update_by_query ///this parameter is required ///Optional, accepts null public UpdateByQueryRequest(Indices index, Types type) : base(r=>r.Required("index", index).Optional("type", type)){} - // values part of the url path Indices IUpdateByQueryRequest.Index => Self.RouteValues.Get("index"); Types IUpdateByQueryRequest.Type => Self.RouteValues.Get("type"); @@ -6219,7 +5621,7 @@ public UpdateByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind /// copies for the shard (number of replicas + 1) /// public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - ///Size on the scroll request powering the update_by_query + ///Size on the scroll request powering the update by query public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } ///Should the request should block until the update by query operation is complete. public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } @@ -6228,50 +5630,45 @@ public UpdateByQueryRequest(Indices index, Types type) : base(r=>r.Required("ind ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. public long? Slices { get => Q("slices"); set => Q("slices", value); } } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IUpdateDatafeedRequest : IRequest { Id DatafeedId { get; } } - ///Request parameters for XpackMlUpdateDatafeed
http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html
public partial class UpdateDatafeedRequest : PlainRequestBase, IUpdateDatafeedRequest { protected IUpdateDatafeedRequest Self => this; - /// /_xpack/ml/datafeeds/{datafeed_id}/_update + ////_xpack/ml/datafeeds/{datafeed_id}/_update ///this parameter is required public UpdateDatafeedRequest(Id datafeed_id) : base(r=>r.Required("datafeed_id", datafeed_id)){} - // values part of the url path Id IUpdateDatafeedRequest.DatafeedId => Self.RouteValues.Get("datafeed_id"); // Request parameters } - [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial interface IUpdateIndexSettingsRequest : IRequest { Indices Index { get; } } - ///Request parameters for IndicesPutSettingsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html
public partial class UpdateIndexSettingsRequest : PlainRequestBase, IUpdateIndexSettingsRequest { protected IUpdateIndexSettingsRequest Self => this; - /// /_settings + ////_settings public UpdateIndexSettingsRequest() : base(){} - - /// /{index}/_settings + ////{index}/_settings ///Optional, accepts null public UpdateIndexSettingsRequest(Indices index) : base(r=>r.Optional("index", index)){} - // values part of the url path Indices IUpdateIndexSettingsRequest.Index => Self.RouteValues.Get("index"); // Request parameters ///Specify timeout for connection to master public Time MasterTimeout { get => Q