From f5f793a8d92df6933fd940146a728a6e73cb4f87 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Tue, 25 Feb 2020 13:47:19 +1000 Subject: [PATCH] Fix API generator This commit fixes the API generator and removes REST API specs ported from later version branches: 1. The collection of high level endpoints were being used in some of the low level generators 2. High level endpoints excluded need to be compared to the list by filename 3. Exclude new ML experimental APIs Co-authored-by: Stuart Cam --- .../Configuration/CodeConfiguration.cs | 5 + src/ApiGenerator/Domain/RestApiSpec.cs | 4 +- .../LowLevelClientImplementationGenerator.cs | 2 +- .../Razor/RequestParametersGenerator.cs | 2 +- .../Core/delete_by_query.json | 4 + .../Core/msearch_template.json | 5 + .../RestSpecification/Core/root.html | 80 ++++--- .../Core/scripts_painless_context.json | 17 -- .../Core/search_template.json | 5 + .../XPack/cat.ml.datafeeds.json | 72 ------ .../RestSpecification/XPack/cat.ml.jobs.json | 89 -------- .../XPack/ccr.forget_follower.json | 2 +- .../RestSpecification/XPack/ccr.unfollow.json | 2 +- ...ata_frame.delete_data_frame_transform.json | 31 --- .../data_frame.get_data_frame_transform.json | 47 ---- ..._frame.get_data_frame_transform_stats.json | 41 ---- ...ta_frame.preview_data_frame_transform.json | 22 -- .../data_frame.put_data_frame_transform.json | 35 --- ...data_frame.start_data_frame_transform.json | 31 --- .../data_frame.stop_data_frame_transform.json | 41 ---- ...ata_frame.update_data_frame_transform.json | 34 --- .../XPack/enrich.get_policy.json | 4 +- .../RestSpecification/XPack/eql.search.json | 30 --- .../XPack/ml.estimate_memory_usage.json | 21 -- .../RestSpecification/XPack/root.html | 86 ++++--- .../XPack/security.delete_privileges.json | 2 +- .../XPack/security.put_privileges.json | 2 +- .../XPack/slm.execute_lifecycle.json | 2 +- .../XPack/slm.get_status.json | 2 +- .../RestSpecification/XPack/slm.start.json | 2 +- .../RestSpecification/XPack/slm.stop.json | 2 +- .../XPack/sql.clear_cursor.json | 2 +- .../RestSpecification/XPack/sql.query.json | 2 +- .../RestSpecification/XPack/xpack.usage.json | 2 +- .../ElasticLowLevelClient.cshtml | 4 +- .../Interface/IElasticLowLevelClient.cshtml | 2 +- .../Views/LowLevel/Client/Usings.cshtml | 2 +- .../RequestParameters.Cat.cs | 109 --------- ...questParameters.CrossClusterReplication.cs | 4 +- .../RequestParameters.DataFrame.cs | 170 -------------- .../RequestParameters.MachineLearning.cs | 99 -------- .../RequestParameters.NoNamespace.cs | 12 - .../RequestParameters.Security.cs | 4 +- ...tParameters.SnapshotLifecycleManagement.cs | 8 +- .../RequestParameters.Sql.cs | 4 +- .../RequestParameters.XPack.cs | 2 +- .../ElasticLowLevelClient.Cat.cs | 40 ---- ...cLowLevelClient.CrossClusterReplication.cs | 8 +- .../ElasticLowLevelClient.DataFrame.cs | 166 -------------- .../ElasticLowLevelClient.MachineLearning.cs | 117 ---------- .../ElasticLowLevelClient.NoNamespace.cs | 19 -- .../ElasticLowLevelClient.Security.cs | 8 +- ...LevelClient.SnapshotLifecycleManagement.cs | 16 +- .../ElasticLowLevelClient.Sql.cs | 8 +- .../ElasticLowLevelClient.XPack.cs | 4 +- .../IElasticLowLevelClient.Generated.cs | 17 -- src/Nest/Descriptors.Cat.cs | 2 +- .../Descriptors.CrossClusterReplication.cs | 4 +- src/Nest/Descriptors.License.cs | 2 + src/Nest/Descriptors.MachineLearning.cs | 54 ++--- src/Nest/Descriptors.Migration.cs | 2 +- src/Nest/Descriptors.NoNamespace.cs | 12 +- ...Descriptors.SnapshotLifecycleManagement.cs | 16 +- src/Nest/Descriptors.Watcher.cs | 16 +- src/Nest/Descriptors.XPack.cs | 2 +- .../ElasticClient.CrossClusterReplication.cs | 16 +- src/Nest/ElasticClient.MachineLearning.cs | 216 +++++++++--------- src/Nest/ElasticClient.Migration.cs | 8 +- ...asticClient.SnapshotLifecycleManagement.cs | 64 +++--- src/Nest/ElasticClient.Watcher.cs | 64 +++--- src/Nest/ElasticClient.XPack.cs | 8 +- src/Nest/Requests.Cat.cs | 2 +- src/Nest/Requests.CrossClusterReplication.cs | 4 +- src/Nest/Requests.License.cs | 7 + src/Nest/Requests.MachineLearning.cs | 54 ++--- src/Nest/Requests.Migration.cs | 2 +- src/Nest/Requests.NoNamespace.cs | 12 +- .../Requests.SnapshotLifecycleManagement.cs | 16 +- src/Nest/Requests.Watcher.cs | 16 +- src/Nest/Requests.XPack.cs | 2 +- src/Nest/Requests.cs | 1 + .../_Generated/ApiUrlsLookup.generated.cs | 20 ++ 82 files changed, 492 insertions(+), 1683 deletions(-) delete mode 100644 src/ApiGenerator/RestSpecification/Core/scripts_painless_context.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/cat.ml.datafeeds.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/cat.ml.jobs.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.delete_data_frame_transform.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform_stats.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.preview_data_frame_transform.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.put_data_frame_transform.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.start_data_frame_transform.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.stop_data_frame_transform.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/data_frame.update_data_frame_transform.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/eql.search.json delete mode 100644 src/ApiGenerator/RestSpecification/XPack/ml.estimate_memory_usage.json delete mode 100644 src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.DataFrame.cs delete mode 100644 src/Elasticsearch.Net/ElasticLowLevelClient.DataFrame.cs diff --git a/src/ApiGenerator/Configuration/CodeConfiguration.cs b/src/ApiGenerator/Configuration/CodeConfiguration.cs index e183a290e10..665819a46db 100644 --- a/src/ApiGenerator/Configuration/CodeConfiguration.cs +++ b/src/ApiGenerator/Configuration/CodeConfiguration.cs @@ -19,6 +19,11 @@ public static class CodeConfiguration "indices.reload_search_analyzers.json", "rank_eval.json", "eql.search.json", + "ml.delete_trained_model.json", + "ml.get_trained_models.json", + "ml.get_trained_models_stats.json", + "ml.put_trained_model.json", + "ml.explain_data_frame_analytics.json", // Internal API, "monitoring.bulk.json", diff --git a/src/ApiGenerator/Domain/RestApiSpec.cs b/src/ApiGenerator/Domain/RestApiSpec.cs index 1f5bb02473e..06949bc0d79 100644 --- a/src/ApiGenerator/Domain/RestApiSpec.cs +++ b/src/ApiGenerator/Domain/RestApiSpec.cs @@ -22,13 +22,13 @@ public class RestApiSpec public IDictionary Endpoints { get; set; } - public ImmutableSortedDictionary> EndpointsPerNamespace => + public ImmutableSortedDictionary> EndpointsPerNamespaceLowLevel => Endpoints.Values.GroupBy(e=>e.CsharpNames.Namespace) .ToImmutableSortedDictionary(kv => kv.Key, kv => kv.ToList().AsReadOnly()); public ImmutableSortedDictionary> EndpointsPerNamespaceHighLevel => Endpoints.Values - .Where(v => !CodeConfiguration.IgnoredApisHighLevel.Contains(v.Name)) + .Where(v => !CodeConfiguration.IgnoredApisHighLevel.Contains(v.FileName)) .GroupBy(e => e.CsharpNames.Namespace) .ToImmutableSortedDictionary(kv => kv.Key, kv => kv.ToList().AsReadOnly()); diff --git a/src/ApiGenerator/Generator/Razor/LowLevelClientImplementationGenerator.cs b/src/ApiGenerator/Generator/Razor/LowLevelClientImplementationGenerator.cs index bd856568a8d..0767e880977 100644 --- a/src/ApiGenerator/Generator/Razor/LowLevelClientImplementationGenerator.cs +++ b/src/ApiGenerator/Generator/Razor/LowLevelClientImplementationGenerator.cs @@ -17,7 +17,7 @@ public override async Task Generate(RestApiSpec spec, ProgressBar progressBar) var target = GeneratorLocations.LowLevel($"ElasticLowLevelClient.{CsharpNames.RootNamespace}.cs"); await DoRazor(spec, view, target); - var namespaced = spec.EndpointsPerNamespaceHighLevel.Where(kv => kv.Key != CsharpNames.RootNamespace).ToList(); + var namespaced = spec.EndpointsPerNamespaceLowLevel.Where(kv => kv.Key != CsharpNames.RootNamespace).ToList(); var namespacedView = ViewLocations.LowLevel("Client", "Implementation", "ElasticLowLevelClient.Namespace.cshtml"); await DoRazorDependantFiles(progressBar, namespaced, namespacedView, kv => kv.Key, id => GeneratorLocations.LowLevel($"ElasticLowLevelClient.{id}.cs")); diff --git a/src/ApiGenerator/Generator/Razor/RequestParametersGenerator.cs b/src/ApiGenerator/Generator/Razor/RequestParametersGenerator.cs index 52e5e99bf25..ba8647dbaf9 100644 --- a/src/ApiGenerator/Generator/Razor/RequestParametersGenerator.cs +++ b/src/ApiGenerator/Generator/Razor/RequestParametersGenerator.cs @@ -15,7 +15,7 @@ public override async Task Generate(RestApiSpec spec, ProgressBar progressBar) var view = ViewLocations.LowLevel("RequestParameters", "RequestParameters.cshtml"); string Target(string id) => GeneratorLocations.LowLevel("Api", "RequestParameters", $"RequestParameters.{id}.cs"); - var namespaced = spec.EndpointsPerNamespaceHighLevel.ToList(); + var namespaced = spec.EndpointsPerNamespaceLowLevel.ToList(); await DoRazorDependantFiles(progressBar, namespaced, view, kv => kv.Key, id => Target(id)); } } diff --git a/src/ApiGenerator/RestSpecification/Core/delete_by_query.json b/src/ApiGenerator/RestSpecification/Core/delete_by_query.json index 314f27d9a80..47108248bac 100644 --- a/src/ApiGenerator/RestSpecification/Core/delete_by_query.json +++ b/src/ApiGenerator/RestSpecification/Core/delete_by_query.json @@ -41,6 +41,10 @@ ] }, "params":{ + "analyzer": { + "type" : "string", + "description" : "The analyzer to use for the query string" + }, "analyze_wildcard": { "type" : "boolean", "description" : "Specify whether wildcard and prefix queries should be analyzed (default: false)" diff --git a/src/ApiGenerator/RestSpecification/Core/msearch_template.json b/src/ApiGenerator/RestSpecification/Core/msearch_template.json index 094a3690ca5..8eb300c9759 100644 --- a/src/ApiGenerator/RestSpecification/Core/msearch_template.json +++ b/src/ApiGenerator/RestSpecification/Core/msearch_template.json @@ -70,6 +70,11 @@ "type" : "boolean", "description" : "Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "default" : false + }, + "ccs_minimize_roundtrips": { + "type" : "boolean", + "description" : "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", + "default" : "true" } }, "body":{ diff --git a/src/ApiGenerator/RestSpecification/Core/root.html b/src/ApiGenerator/RestSpecification/Core/root.html index 02928bb1ac8..53443ada0ca 100644 --- a/src/ApiGenerator/RestSpecification/Core/root.html +++ b/src/ApiGenerator/RestSpecification/Core/root.html @@ -18,9 +18,9 @@ - - - + + + @@ -42,7 +42,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -260,7 +260,7 @@

Conne spellcheck="false" autocomplete="off" > - + @@ -409,8 +409,10 @@

Conne - - + + + + @@ -422,6 +424,7 @@

Conne + @@ -432,7 +435,7 @@

Conne -
+
+ +
@@ -610,22 +615,25 @@

- This branch is 5321 commits ahead, 6145 commits behind master. + This branch is 5401 commits ahead, 6345 commits behind master.

- -
- - Fetching latest commit… -
-
- Cannot retrieve the latest commit at this time. -
-
- +
+
+ +
+ + Fetching latest commit… +
+
+ Cannot retrieve the latest commit at this time. +
+
+

Files

+ - - Permalink + + Permalink @@ -1216,7 +1224,7 @@

- delete_by_query.json + delete_by_query.json @@ -2160,7 +2168,7 @@

- msearch_template.json + msearch_template.json @@ -2432,7 +2440,7 @@

- search_template.json + search_template.json @@ -2721,6 +2729,7 @@

+ @@ -2776,10 +2785,11 @@

- - + + + - + diff --git a/src/ApiGenerator/RestSpecification/Core/scripts_painless_context.json b/src/ApiGenerator/RestSpecification/Core/scripts_painless_context.json deleted file mode 100644 index cb078ec4a00..00000000000 --- a/src/ApiGenerator/RestSpecification/Core/scripts_painless_context.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scripts_painless_context": { - "stability": "experimental", - "methods": ["GET"], - "url": { - "paths": ["/_scripts/painless/_context"], - "parts": { - }, - "params": { - "context" : { - "type" : "string", - "description" : "Select a specific context to retrieve API information about" - } - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/Core/search_template.json b/src/ApiGenerator/RestSpecification/Core/search_template.json index 4bf9983b555..15409ec6c31 100644 --- a/src/ApiGenerator/RestSpecification/Core/search_template.json +++ b/src/ApiGenerator/RestSpecification/Core/search_template.json @@ -109,6 +109,11 @@ "type":"boolean", "description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "default":false + }, + "ccs_minimize_roundtrips": { + "type" : "boolean", + "description" : "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", + "default" : "true" } }, "body":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/cat.ml.datafeeds.json b/src/ApiGenerator/RestSpecification/XPack/cat.ml.datafeeds.json deleted file mode 100644 index a03e301a391..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/cat.ml.datafeeds.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "cat.ml.datafeeds":{ - "documentation":{ - "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html" - }, - "stability":"stable", - "url":{ - "paths":[ - { - "path":"/_cat/ml/datafeeds", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/ml/datafeeds/{datafeed_id}", - "methods":[ - "GET" - ], - "parts":{ - "datafeed_id":{ - "type":"string", - "description":"The ID of the datafeeds stats to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_datafeeds":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)" - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d (Days)", - "h (Hours)", - "m (Minutes)", - "s (Seconds)", - "ms (Milliseconds)", - "micros (Microseconds)", - "nanos (Nanoseconds)" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/cat.ml.jobs.json b/src/ApiGenerator/RestSpecification/XPack/cat.ml.jobs.json deleted file mode 100644 index 0b1171116f4..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/cat.ml.jobs.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "cat.ml.jobs":{ - "documentation":{ - "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html" - }, - "stability":"stable", - "url":{ - "paths":[ - { - "path":"/_cat/ml/anomaly_detectors", - "methods":[ - "GET" - ] - }, - { - "path":"/_cat/ml/anomaly_detectors/{job_id}", - "methods":[ - "GET" - ], - "parts":{ - "job_id":{ - "type":"string", - "description":"The ID of the jobs stats to fetch" - } - } - } - ] - }, - "params":{ - "allow_no_jobs":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)" - }, - "bytes":{ - "type":"enum", - "description":"The unit in which to display byte values", - "options":[ - "b", - "k", - "kb", - "m", - "mb", - "g", - "gb", - "t", - "tb", - "p", - "pb" - ] - }, - "format":{ - "type":"string", - "description":"a short version of the Accept header, e.g. json, yaml" - }, - "h":{ - "type":"list", - "description":"Comma-separated list of column names to display" - }, - "help":{ - "type":"boolean", - "description":"Return help information", - "default":false - }, - "s":{ - "type":"list", - "description":"Comma-separated list of column names or column aliases to sort by" - }, - "time":{ - "type":"enum", - "description":"The unit in which to display time values", - "options":[ - "d (Days)", - "h (Hours)", - "m (Minutes)", - "s (Seconds)", - "ms (Milliseconds)", - "micros (Microseconds)", - "nanos (Nanoseconds)" - ] - }, - "v":{ - "type":"boolean", - "description":"Verbose mode. Display column headers", - "default":false - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/ccr.forget_follower.json b/src/ApiGenerator/RestSpecification/XPack/ccr.forget_follower.json index 4d4af1a6072..477ab10ce27 100644 --- a/src/ApiGenerator/RestSpecification/XPack/ccr.forget_follower.json +++ b/src/ApiGenerator/RestSpecification/XPack/ccr.forget_follower.json @@ -1,7 +1,7 @@ { "ccr.forget_follower":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html" + "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/ccr.unfollow.json b/src/ApiGenerator/RestSpecification/XPack/ccr.unfollow.json index 1730a728c5e..71df50f2d10 100644 --- a/src/ApiGenerator/RestSpecification/XPack/ccr.unfollow.json +++ b/src/ApiGenerator/RestSpecification/XPack/ccr.unfollow.json @@ -1,7 +1,7 @@ { "ccr.unfollow":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html" + "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.delete_data_frame_transform.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.delete_data_frame_transform.json deleted file mode 100644 index d8545728ab9..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.delete_data_frame_transform.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "data_frame.delete_data_frame_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html" - }, - "stability":"beta", - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}", - "methods":[ - "DELETE" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to delete" - } - } - } - ] - }, - "params":{ - "force":{ - "type":"boolean", - "required":false, - "description":"When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted." - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform.json deleted file mode 100644 index e25a3301ec0..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "data_frame.get_data_frame_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html" - }, - "stability":"beta", - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}", - "methods":[ - "GET" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms" - } - } - }, - { - "path":"/_data_frame/transforms", - "methods":[ - "GET" - ] - } - ] - }, - "params":{ - "from":{ - "type":"int", - "required":false, - "description":"skips a number of transform configs, defaults to 0" - }, - "size":{ - "type":"int", - "required":false, - "description":"specifies a max number of transforms to get, defaults to 100" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms have been specified)" - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform_stats.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform_stats.json deleted file mode 100644 index 57b004482a7..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.get_data_frame_transform_stats.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "data_frame.get_data_frame_transform_stats":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html" - }, - "stability":"beta", - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}/_stats", - "methods":[ - "GET" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform for which to get stats. '_all' or '*' implies all transforms" - } - } - } - ] - }, - "params":{ - "from":{ - "type":"number", - "required":false, - "description":"skips a number of transform stats, defaults to 0" - }, - "size":{ - "type":"number", - "required":false, - "description":"specifies a max number of transform stats to get, defaults to 100" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms have been specified)" - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.preview_data_frame_transform.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.preview_data_frame_transform.json deleted file mode 100644 index e3f24448b9f..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.preview_data_frame_transform.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "data_frame.preview_data_frame_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html" - }, - "stability":"beta", - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/_preview", - "methods":[ - "POST" - ] - } - ] - }, - "body":{ - "description":"The definition for the data_frame transform to preview", - "required":true - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.put_data_frame_transform.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.put_data_frame_transform.json deleted file mode 100644 index 5e7354f435d..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.put_data_frame_transform.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "data_frame.put_data_frame_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html" - }, - "stability":"beta", - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}", - "methods":[ - "PUT" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the new transform." - } - } - } - ] - }, - "params": { - "defer_validation": { - "type": "boolean", - "required": false, - "description": "If validations should be deferred until data frame transform starts, defaults to false." - } - }, - "body":{ - "description":"The data frame transform definition", - "required":true - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.start_data_frame_transform.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.start_data_frame_transform.json deleted file mode 100644 index c0d701be562..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.start_data_frame_transform.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "data_frame.start_data_frame_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html" - }, - "stability":"beta", - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}/_start", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to start" - } - } - } - ] - }, - "params":{ - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait for the transform to start" - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.stop_data_frame_transform.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.stop_data_frame_transform.json deleted file mode 100644 index c88a7176309..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.stop_data_frame_transform.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "data_frame.stop_data_frame_transform":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html" - }, - "stability":"beta", - "url":{ - "paths":[ - { - "path":"/_data_frame/transforms/{transform_id}/_stop", - "methods":[ - "POST" - ], - "parts":{ - "transform_id":{ - "type":"string", - "description":"The id of the transform to stop" - } - } - } - ] - }, - "params":{ - "wait_for_completion":{ - "type":"boolean", - "required":false, - "description":"Whether to wait for the transform to fully stop before returning or not. Default to false" - }, - "timeout":{ - "type":"time", - "required":false, - "description":"Controls the time to wait until the transform has stopped. Default to 30 seconds" - }, - "allow_no_match":{ - "type":"boolean", - "required":false, - "description":"Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms have been specified)" - } - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/data_frame.update_data_frame_transform.json b/src/ApiGenerator/RestSpecification/XPack/data_frame.update_data_frame_transform.json deleted file mode 100644 index 70d1342815e..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/data_frame.update_data_frame_transform.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "data_frame.update_data_frame_transform": { - "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html" - }, - "stability": "beta", - "url": { - "paths": [ - { - "path": "/_data_frame/transforms/{transform_id}/_update", - "methods": [ "POST" ], - "parts": { - "transform_id": { - "type": "string", - "required": true, - "description": "The id of the transform." - } - } - } - ] - }, - "params": { - "defer_validation": { - "type": "boolean", - "required": false, - "description": "If validations should be deferred until data frame transform starts, defaults to false." - } - }, - "body": { - "description" : "The update data frame transform definition", - "required": true - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/enrich.get_policy.json b/src/ApiGenerator/RestSpecification/XPack/enrich.get_policy.json index 685c24ea228..36f112cbd16 100644 --- a/src/ApiGenerator/RestSpecification/XPack/enrich.get_policy.json +++ b/src/ApiGenerator/RestSpecification/XPack/enrich.get_policy.json @@ -9,8 +9,8 @@ "methods": [ "GET" ], "parts": { "name": { - "type" : "string", - "description" : "The name of the enrich policy" + "type" : "list", + "description" : "A comma-separated list of enrich policy names" } } }, diff --git a/src/ApiGenerator/RestSpecification/XPack/eql.search.json b/src/ApiGenerator/RestSpecification/XPack/eql.search.json deleted file mode 100644 index a08dceaccbd..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/eql.search.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "eql.search":{ - "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search.html" - }, - "stability": "beta", - "url":{ - "paths":[ - { - "path":"/{index}/_eql/search", - "methods":[ - "GET", - "POST" - ], - "parts":{ - "index":{ - "type":"string", - "description":"The name of the index to scope the operation" - } - } - } - ] - }, - "params":{}, - "body":{ - "description":"Eql request body. Use the `query` to limit the query scope.", - "required":true - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/ml.estimate_memory_usage.json b/src/ApiGenerator/RestSpecification/XPack/ml.estimate_memory_usage.json deleted file mode 100644 index 99bd6527de3..00000000000 --- a/src/ApiGenerator/RestSpecification/XPack/ml.estimate_memory_usage.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "ml.estimate_memory_usage": { - "documentation": { - "url": "http://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html" - }, - "stability": "experimental", - "url": { - "paths" : [ - { - "path" : "/_ml/data_frame/analytics/_estimate_memory_usage", - "methods": [ "POST" ], - "parts": {} - } - ] - }, - "body": { - "description" : "Memory usage estimation definition", - "required" : true - } - } -} diff --git a/src/ApiGenerator/RestSpecification/XPack/root.html b/src/ApiGenerator/RestSpecification/XPack/root.html index 55b5b2232de..eb6d88de43d 100644 --- a/src/ApiGenerator/RestSpecification/XPack/root.html +++ b/src/ApiGenerator/RestSpecification/XPack/root.html @@ -18,9 +18,9 @@ - - - + + + @@ -42,7 +42,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -260,7 +260,7 @@

Conne spellcheck="false" autocomplete="off" > - + @@ -409,8 +409,10 @@

Conne - - + + + + @@ -422,6 +424,7 @@

Conne + @@ -432,7 +435,7 @@

Conne -
+
+ +
@@ -610,22 +615,25 @@

- This branch is 5321 commits ahead, 6145 commits behind master. + This branch is 5401 commits ahead, 6345 commits behind master.

- -
- - Fetching latest commit… -
-
- Cannot retrieve the latest commit at this time. -
-
- +
+
+ +
+ + Fetching latest commit… +
+
+ Cannot retrieve the latest commit at this time. +
+
+

Files

+ - - Permalink + + Permalink @@ -1024,7 +1032,7 @@

- enrich.get_policy.json + enrich.get_policy.json @@ -2928,7 +2936,7 @@

- slm.execute_lifecycle.json + slm.execute_lifecycle.json @@ -2992,7 +3000,7 @@

- slm.get_status.json + slm.get_status.json @@ -3024,7 +3032,7 @@

- slm.start.json + slm.start.json @@ -3040,7 +3048,7 @@

- slm.stop.json + slm.stop.json @@ -3424,7 +3432,7 @@

- xpack.usage.json + xpack.usage.json @@ -3441,6 +3449,7 @@

+ @@ -3496,10 +3505,11 @@

- - + + + - + diff --git a/src/ApiGenerator/RestSpecification/XPack/security.delete_privileges.json b/src/ApiGenerator/RestSpecification/XPack/security.delete_privileges.json index 1707372c424..bf95eae6a2a 100644 --- a/src/ApiGenerator/RestSpecification/XPack/security.delete_privileges.json +++ b/src/ApiGenerator/RestSpecification/XPack/security.delete_privileges.json @@ -1,7 +1,7 @@ { "security.delete_privileges":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html" + "url":"TODO" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/security.put_privileges.json b/src/ApiGenerator/RestSpecification/XPack/security.put_privileges.json index 0c9f84b4765..3e81d7164bb 100644 --- a/src/ApiGenerator/RestSpecification/XPack/security.put_privileges.json +++ b/src/ApiGenerator/RestSpecification/XPack/security.put_privileges.json @@ -1,7 +1,7 @@ { "security.put_privileges":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html" + "url":"TODO" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/slm.execute_lifecycle.json b/src/ApiGenerator/RestSpecification/XPack/slm.execute_lifecycle.json index 6538dabd230..963a6e0577b 100644 --- a/src/ApiGenerator/RestSpecification/XPack/slm.execute_lifecycle.json +++ b/src/ApiGenerator/RestSpecification/XPack/slm.execute_lifecycle.json @@ -1,7 +1,7 @@ { "slm.execute_lifecycle":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-policy.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/slm.get_status.json b/src/ApiGenerator/RestSpecification/XPack/slm.get_status.json index 163ad5558c3..4ea6089ce43 100644 --- a/src/ApiGenerator/RestSpecification/XPack/slm.get_status.json +++ b/src/ApiGenerator/RestSpecification/XPack/slm.get_status.json @@ -1,7 +1,7 @@ { "slm.get_status":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/slm.start.json b/src/ApiGenerator/RestSpecification/XPack/slm.start.json index 21ae3d50978..0ceb74e9279 100644 --- a/src/ApiGenerator/RestSpecification/XPack/slm.start.json +++ b/src/ApiGenerator/RestSpecification/XPack/slm.start.json @@ -1,7 +1,7 @@ { "slm.start":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/slm.stop.json b/src/ApiGenerator/RestSpecification/XPack/slm.stop.json index 63b74ab9c2f..b052f4bf975 100644 --- a/src/ApiGenerator/RestSpecification/XPack/slm.stop.json +++ b/src/ApiGenerator/RestSpecification/XPack/slm.stop.json @@ -1,7 +1,7 @@ { "slm.stop":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/sql.clear_cursor.json b/src/ApiGenerator/RestSpecification/XPack/sql.clear_cursor.json index a9048aa0cd6..392b24b2187 100644 --- a/src/ApiGenerator/RestSpecification/XPack/sql.clear_cursor.json +++ b/src/ApiGenerator/RestSpecification/XPack/sql.clear_cursor.json @@ -1,7 +1,7 @@ { "sql.clear_cursor":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html" + "url":"Clear SQL cursor" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/sql.query.json b/src/ApiGenerator/RestSpecification/XPack/sql.query.json index 59bc783c288..0fe518b5205 100644 --- a/src/ApiGenerator/RestSpecification/XPack/sql.query.json +++ b/src/ApiGenerator/RestSpecification/XPack/sql.query.json @@ -1,7 +1,7 @@ { "sql.query":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html" + "url":"Execute SQL" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/RestSpecification/XPack/xpack.usage.json b/src/ApiGenerator/RestSpecification/XPack/xpack.usage.json index 6a9d065d806..ebd546b0f00 100644 --- a/src/ApiGenerator/RestSpecification/XPack/xpack.usage.json +++ b/src/ApiGenerator/RestSpecification/XPack/xpack.usage.json @@ -1,7 +1,7 @@ { "xpack.usage":{ "documentation":{ - "url":"Retrieve information about xpack features usage" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html" }, "stability":"stable", "url":{ diff --git a/src/ApiGenerator/Views/LowLevel/Client/Implementation/ElasticLowLevelClient.cshtml b/src/ApiGenerator/Views/LowLevel/Client/Implementation/ElasticLowLevelClient.cshtml index a19a419166e..f2331c01e88 100644 --- a/src/ApiGenerator/Views/LowLevel/Client/Implementation/ElasticLowLevelClient.cshtml +++ b/src/ApiGenerator/Views/LowLevel/Client/Implementation/ElasticLowLevelClient.cshtml @@ -24,7 +24,7 @@ using static Elasticsearch.Net.HttpMethod; @{ RestApiSpec model = Model; - var namespaces = model.EndpointsPerNamespace.Keys.Where(k => k != CsharpNames.RootNamespace); + var namespaces = model.EndpointsPerNamespaceLowLevel.Keys.Where(k => k != CsharpNames.RootNamespace); // ReSharper disable InterpolatedStringExpressionIsNotIFormattable // ReSharper disable RedundantExtendsListEntry @@ -55,7 +55,7 @@ namespace Elasticsearch.Net - foreach (var kv in model.EndpointsPerNamespace) + foreach (var kv in model.EndpointsPerNamespaceLowLevel) { if (kv.Key != CsharpNames.RootNamespace) { diff --git a/src/ApiGenerator/Views/LowLevel/Client/Interface/IElasticLowLevelClient.cshtml b/src/ApiGenerator/Views/LowLevel/Client/Interface/IElasticLowLevelClient.cshtml index c1f9a747149..ed2d019ca4e 100644 --- a/src/ApiGenerator/Views/LowLevel/Client/Interface/IElasticLowLevelClient.cshtml +++ b/src/ApiGenerator/Views/LowLevel/Client/Interface/IElasticLowLevelClient.cshtml @@ -23,7 +23,7 @@ namespace Elasticsearch.Net /// public partial interface IElasticLowLevelClient { - @foreach(var kv in Model.EndpointsPerNamespace) + @foreach(var kv in Model.EndpointsPerNamespaceLowLevel) { if (kv.Key != CsharpNames.RootNamespace) { diff --git a/src/ApiGenerator/Views/LowLevel/Client/Usings.cshtml b/src/ApiGenerator/Views/LowLevel/Client/Usings.cshtml index b80f3a3d215..ff8546c5dba 100644 --- a/src/ApiGenerator/Views/LowLevel/Client/Usings.cshtml +++ b/src/ApiGenerator/Views/LowLevel/Client/Usings.cshtml @@ -3,7 +3,7 @@ @using ApiGenerator.Domain @using ApiGenerator.Domain.Code @inherits ApiGenerator.CodeTemplatePage -@foreach(var kv in Model.EndpointsPerNamespace) +@foreach(var kv in Model.EndpointsPerNamespaceLowLevel) { if (kv.Key != CsharpNames.RootNamespace) { diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs index f801ade7deb..ebebf1116f9 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs @@ -505,115 +505,6 @@ public bool? Verbose } } - ///Request options for Datafeeds https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html - public class DatafeedsRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - ///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); - } - - ///a short version of the Accept header, e.g. json, yaml - public string Format - { - get => Q("format"); - set - { - Q("format", value); - SetAcceptHeader(value); - } - } - - ///Comma-separated list of column names to display - public string[] Headers - { - get => Q("h"); - set => Q("h", value); - } - - ///Return help information - public bool? Help - { - get => Q("help"); - set => Q("help", value); - } - - ///Comma-separated list of column names or column aliases to sort by - public string[] SortByColumns - { - get => Q("s"); - set => Q("s", value); - } - - ///Verbose mode. Display column headers - public bool? Verbose - { - get => Q("v"); - set => Q("v", value); - } - } - - ///Request options for Jobs https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html - public class JobsRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - ///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); - } - - ///The unit in which to display byte values - public Bytes? Bytes - { - get => Q("bytes"); - set => Q("bytes", value); - } - - ///a short version of the Accept header, e.g. json, yaml - public string Format - { - get => Q("format"); - set - { - Q("format", value); - SetAcceptHeader(value); - } - } - - ///Comma-separated list of column names to display - public string[] Headers - { - get => Q("h"); - set => Q("h", value); - } - - ///Return help information - public bool? Help - { - get => Q("help"); - set => Q("help", value); - } - - ///Comma-separated list of column names or column aliases to sort by - public string[] SortByColumns - { - get => Q("s"); - set => Q("s", value); - } - - ///Verbose mode. Display column headers - public bool? Verbose - { - get => Q("v"); - set => Q("v", value); - } - } - ///Request options for NodeAttributes https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html public class CatNodeAttributesRequestParameters : RequestParameters { diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.CrossClusterReplication.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.CrossClusterReplication.cs index b582cbeee10..212454cf44f 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.CrossClusterReplication.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.CrossClusterReplication.cs @@ -57,7 +57,7 @@ public class FollowIndexStatsRequestParameters : RequestParameters HttpMethod.GET; } - ///Request options for ForgetFollowerIndex https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html + ///Request options for ForgetFollowerIndex https://www.elastic.co/guide/en/elasticsearch/reference/current public class ForgetFollowerIndexRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; @@ -105,7 +105,7 @@ public class CcrStatsRequestParameters : RequestParameters HttpMethod.GET; } - ///Request options for UnfollowIndex https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html + ///Request options for UnfollowIndex https://www.elastic.co/guide/en/elasticsearch/reference/current public class UnfollowIndexRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.DataFrame.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.DataFrame.cs deleted file mode 100644 index 42e0121de1c..00000000000 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.DataFrame.cs +++ /dev/null @@ -1,170 +0,0 @@ -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ----------------------------------------------- -// -// This file is automatically generated -// Please do not edit these files manually -// Run the following in the root of the repos: -// -// *NIX : ./build.sh codegen -// Windows : build.bat codegen -// -// ----------------------------------------------- -// ReSharper disable RedundantUsingDirective -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Linq.Expressions; - -// ReSharper disable once CheckNamespace -namespace Elasticsearch.Net.Specification.DataFrameApi -{ - ///Request options for DeleteTransform https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html - public class DeleteDataFrameTransformRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; - /// - /// When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be - /// `stopped` before it can be deleted. - /// - public bool? Force - { - get => Q("force"); - set => Q("force", value); - } - } - - ///Request options for GetTransform https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html - public class GetDataFrameTransformRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - /// - /// Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms - /// have been specified) - /// - public bool? AllowNoMatch - { - get => Q("allow_no_match"); - set => Q("allow_no_match", value); - } - - ///skips a number of transform configs, defaults to 0 - public int? From - { - get => Q("from"); - set => Q("from", value); - } - - ///specifies a max number of transforms to get, defaults to 100 - public int? Size - { - get => Q("size"); - set => Q("size", value); - } - } - - ///Request options for GetTransformStats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html - public class GetDataFrameTransformStatsRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - /// - /// Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms - /// have been specified) - /// - public bool? AllowNoMatch - { - get => Q("allow_no_match"); - set => Q("allow_no_match", value); - } - - ///skips a number of transform stats, defaults to 0 - public long? From - { - get => Q("from"); - set => Q("from", value); - } - - ///specifies a max number of transform stats to get, defaults to 100 - public long? Size - { - get => Q("size"); - set => Q("size", value); - } - } - - ///Request options for PreviewTransform https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html - public class PreviewDataFrameTransformRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.POST; - } - - ///Request options for PutTransform https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html - public class PutDataFrameTransformRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; - ///If validations should be deferred until data frame transform starts, defaults to false. - public bool? DeferValidation - { - get => Q("defer_validation"); - set => Q("defer_validation", value); - } - } - - ///Request options for StartTransform https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html - public class StartDataFrameTransformRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.POST; - ///Controls the time to wait for the transform to start - public TimeSpan Timeout - { - get => Q("timeout"); - set => Q("timeout", value); - } - } - - ///Request options for StopTransform https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html - public class StopDataFrameTransformRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.POST; - /// - /// Whether to ignore if a wildcard expression matches no data frame transforms. (This includes `_all` string or when no data frame transforms - /// have been specified) - /// - public bool? AllowNoMatch - { - get => Q("allow_no_match"); - set => Q("allow_no_match", value); - } - - ///Controls the time to wait until the transform has stopped. Default to 30 seconds - public TimeSpan Timeout - { - get => Q("timeout"); - set => Q("timeout", value); - } - - ///Whether to wait for the transform to fully stop before returning or not. Default to false - public bool? WaitForCompletion - { - get => Q("wait_for_completion"); - set => Q("wait_for_completion", value); - } - } - - ///Request options for UpdateTransform https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html - public class UpdateDataFrameTransformRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.POST; - ///If validations should be deferred until data frame transform starts, defaults to false. - public bool? DeferValidation - { - get => Q("defer_validation"); - set => Q("defer_validation", value); - } - } -} \ No newline at end of file diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs index 2ccac8bfc4a..8b7261322a5 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs @@ -148,30 +148,12 @@ public class DeleteModelSnapshotRequestParameters : RequestParameters HttpMethod.DELETE; } - ///Request options for DeleteTrainedModel https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html - public class DeleteTrainedModelRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; - } - - ///Request options for EstimateMemoryUsage https://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html - public class EstimateMemoryUsageRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.POST; - } - ///Request options for EvaluateDataFrame https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html public class EvaluateDataFrameRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; } - ///Request options for ExplainDataFrameAnalytics https://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html - public class ExplainDataFrameAnalyticsRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.POST; - } - ///Request options for FindFileStructure https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html public class FindFileStructureRequestParameters : RequestParameters { @@ -486,81 +468,6 @@ public class GetAnomalyRecordsRequestParameters : RequestParameters HttpMethod.POST; } - ///Request options for GetTrainedModels https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html - public class GetTrainedModelsRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - /// - /// Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been - /// specified) - /// - public bool? AllowNoMatch - { - get => Q("allow_no_match"); - set => Q("allow_no_match", value); - } - - ///Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true. - public bool? DecompressDefinition - { - get => Q("decompress_definition"); - set => Q("decompress_definition", value); - } - - ///skips a number of trained models - public int? From - { - get => Q("from"); - set => Q("from", value); - } - - /// - /// Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults - /// to false. - /// - public bool? IncludeModelDefinition - { - get => Q("include_model_definition"); - set => Q("include_model_definition", value); - } - - ///specifies a max number of trained models to get - public int? Size - { - get => Q("size"); - set => Q("size", value); - } - } - - ///Request options for GetTrainedModelsStats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html - public class GetTrainedModelsStatsRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - /// - /// Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been - /// specified) - /// - public bool? AllowNoMatch - { - get => Q("allow_no_match"); - set => Q("allow_no_match", value); - } - - ///skips a number of trained models - public int? From - { - get => Q("from"); - set => Q("from", value); - } - - ///specifies a max number of trained models to get - public int? Size - { - get => Q("size"); - set => Q("size", value); - } - } - ///Request options for Info public class MachineLearningInfoRequestParameters : RequestParameters { @@ -640,12 +547,6 @@ public class PutJobRequestParameters : RequestParameters HttpMethod.PUT; } - ///Request options for PutTrainedModel TODO - public class PutTrainedModelRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; - } - ///Request options for RevertModelSnapshot https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html public class RevertModelSnapshotRequestParameters : RequestParameters { diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs index 08160eaf390..2863e826a28 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs @@ -1502,18 +1502,6 @@ public class RenderSearchTemplateRequestParameters : RequestParameters HttpMethod.POST; } - ///Request options for ScriptsPainlessContext - public class ScriptsPainlessContextRequestParameters : RequestParameters - { - public override HttpMethod DefaultHttpMethod => HttpMethod.GET; - ///Select a specific context to retrieve API information about - public string Context - { - get => Q("context"); - set => Q("context", value); - } - } - ///Request options for ExecutePainlessScript https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html public class ExecutePainlessScriptRequestParameters : RequestParameters { diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs index 1607c849b1d..bbc3101228f 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs @@ -78,7 +78,7 @@ public Refresh? Refresh } } - ///Request options for DeletePrivileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html + ///Request options for DeletePrivileges TODO public class DeletePrivilegesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; @@ -268,7 +268,7 @@ public class InvalidateUserAccessTokenRequestParameters : RequestParameters HttpMethod.DELETE; } - ///Request options for PutPrivileges https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html + ///Request options for PutPrivileges TODO public class PutPrivilegesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.SnapshotLifecycleManagement.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.SnapshotLifecycleManagement.cs index d6f53eb8072..78090c1d5de 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.SnapshotLifecycleManagement.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.SnapshotLifecycleManagement.cs @@ -30,7 +30,7 @@ public class DeleteSnapshotLifecycleRequestParameters : RequestParameters HttpMethod.DELETE; } - ///Request options for ExecuteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-policy.html + ///Request options for ExecuteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html public class ExecuteSnapshotLifecycleRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; @@ -54,7 +54,7 @@ public class GetSnapshotLifecycleStatsRequestParameters : RequestParameters HttpMethod.GET; } - ///Request options for GetStatus https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + ///Request options for GetStatus https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html public class GetSnapshotLifecycleManagementStatusRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; @@ -66,13 +66,13 @@ public class PutSnapshotLifecycleRequestParameters : RequestParameters HttpMethod.PUT; } - ///Request options for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + ///Request options for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html public class StartSnapshotLifecycleManagementRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; } - ///Request options for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + ///Request options for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html public class StopSnapshotLifecycleManagementRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Sql.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Sql.cs index 27ab1f79c14..f419dd46689 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Sql.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Sql.cs @@ -24,13 +24,13 @@ // ReSharper disable once CheckNamespace namespace Elasticsearch.Net.Specification.SqlApi { - ///Request options for ClearCursor https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html + ///Request options for ClearCursor Clear SQL cursor public class ClearSqlCursorRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; } - ///Request options for Query https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html + ///Request options for Query Execute SQL public class QuerySqlRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.XPack.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.XPack.cs index 6457fd07853..cffaf6e664c 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.XPack.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.XPack.cs @@ -36,7 +36,7 @@ public string[] Categories } } - ///Request options for Usage Retrieve information about xpack features usage + ///Request options for Usage https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html public class XPackUsageRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs index e9d22858a42..da87f43d8ce 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs @@ -176,46 +176,6 @@ public TResponse Master(CatMasterRequestParameters requestParameters [MapsApi("cat.master", "")] public Task MasterAsync(CatMasterRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_cat/master", ctx, null, RequestParams(requestParameters)); - ///GET on /_cat/ml/datafeeds https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - public TResponse Datafeeds(DatafeedsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_cat/ml/datafeeds", null, RequestParams(requestParameters)); - ///GET on /_cat/ml/datafeeds https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - [MapsApi("cat.datafeeds", "")] - public Task DatafeedsAsync(DatafeedsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_cat/ml/datafeeds", ctx, null, RequestParams(requestParameters)); - ///GET on /_cat/ml/datafeeds/{datafeed_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html - ///The ID of the datafeeds stats to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - public TResponse Datafeeds(string datafeedId, DatafeedsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_cat/ml/datafeeds/{datafeedId:datafeedId}"), null, RequestParams(requestParameters)); - ///GET on /_cat/ml/datafeeds/{datafeed_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html - ///The ID of the datafeeds stats to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - [MapsApi("cat.datafeeds", "datafeed_id")] - public Task DatafeedsAsync(string datafeedId, DatafeedsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_cat/ml/datafeeds/{datafeedId:datafeedId}"), ctx, null, RequestParams(requestParameters)); - ///GET on /_cat/ml/anomaly_detectors https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - public TResponse Jobs(JobsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_cat/ml/anomaly_detectors", null, RequestParams(requestParameters)); - ///GET on /_cat/ml/anomaly_detectors https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - [MapsApi("cat.jobs", "")] - public Task JobsAsync(JobsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_cat/ml/anomaly_detectors", ctx, null, RequestParams(requestParameters)); - ///GET on /_cat/ml/anomaly_detectors/{job_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html - ///The ID of the jobs stats to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - public TResponse Jobs(string jobId, JobsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_cat/ml/anomaly_detectors/{jobId:jobId}"), null, RequestParams(requestParameters)); - ///GET on /_cat/ml/anomaly_detectors/{job_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html - ///The ID of the jobs stats to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - [MapsApi("cat.jobs", "job_id")] - public Task JobsAsync(string jobId, JobsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_cat/ml/anomaly_detectors/{jobId:jobId}"), ctx, null, RequestParams(requestParameters)); ///GET on /_cat/nodeattrs https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse NodeAttributes(CatNodeAttributesRequestParameters requestParameters = null) diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.CrossClusterReplication.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.CrossClusterReplication.cs index 9eac9c87f67..70d4028cc05 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.CrossClusterReplication.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.CrossClusterReplication.cs @@ -89,13 +89,13 @@ public TResponse FollowIndexStats(string index, FollowIndexStatsReque [MapsApi("ccr.follow_stats", "index")] public Task FollowIndexStatsAsync(string index, FollowIndexStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"{index:index}/_ccr/stats"), ctx, null, RequestParams(requestParameters)); - ///POST on /{index}/_ccr/forget_follower https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html + ///POST on /{index}/_ccr/forget_follower https://www.elastic.co/guide/en/elasticsearch/reference/current ///the name of the leader index for which specified follower retention leases should be removed ///the name and UUID of the follower index, the name of the cluster containing the follower index, and the alias from the perspective of that cluster for the remote cluster containing the leader index ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse ForgetFollowerIndex(string index, PostData body, ForgetFollowerIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"{index:index}/_ccr/forget_follower"), body, RequestParams(requestParameters)); - ///POST on /{index}/_ccr/forget_follower https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html + ///POST on /{index}/_ccr/forget_follower https://www.elastic.co/guide/en/elasticsearch/reference/current ///the name of the leader index for which specified follower retention leases should be removed ///the name and UUID of the follower index, the name of the cluster containing the follower index, and the alias from the perspective of that cluster for the remote cluster containing the leader index ///Request specific configuration such as querystring parameters & request specific connection settings. @@ -190,12 +190,12 @@ public TResponse Stats(CcrStatsRequestParameters requestParameters = [MapsApi("ccr.stats", "")] public Task StatsAsync(CcrStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_ccr/stats", ctx, null, RequestParams(requestParameters)); - ///POST on /{index}/_ccr/unfollow https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html + ///POST on /{index}/_ccr/unfollow https://www.elastic.co/guide/en/elasticsearch/reference/current ///The name of the follower index that should be turned into a regular index. ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse UnfollowIndex(string index, UnfollowIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"{index:index}/_ccr/unfollow"), null, RequestParams(requestParameters)); - ///POST on /{index}/_ccr/unfollow https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html + ///POST on /{index}/_ccr/unfollow https://www.elastic.co/guide/en/elasticsearch/reference/current ///The name of the follower index that should be turned into a regular index. ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("ccr.unfollow", "index")] diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.DataFrame.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.DataFrame.cs deleted file mode 100644 index 4ea9bf012bd..00000000000 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.DataFrame.cs +++ /dev/null @@ -1,166 +0,0 @@ -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ----------------------------------------------- -// -// This file is automatically generated -// Please do not edit these files manually -// Run the following in the root of the repos: -// -// *NIX : ./build.sh codegen -// Windows : build.bat codegen -// -// ----------------------------------------------- -// ReSharper disable RedundantUsingDirective -using System; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.Linq; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Elasticsearch.Net; -using static Elasticsearch.Net.HttpMethod; - -// ReSharper disable InterpolatedStringExpressionIsNotIFormattable -// ReSharper disable once CheckNamespace -// ReSharper disable InterpolatedStringExpressionIsNotIFormattable -// ReSharper disable RedundantExtendsListEntry -namespace Elasticsearch.Net.Specification.DataFrameApi -{ - /// - /// Data Frame APIs. - /// Not intended to be instantiated directly. Use the property - /// on . - /// - /// - public class LowLevelDataFrameNamespace : NamespacedClientProxy - { - internal LowLevelDataFrameNamespace(ElasticLowLevelClient client): base(client) - { - } - - ///DELETE on /_data_frame/transforms/{transform_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html - ///The id of the transform to delete - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse DeleteTransform(string transformId, DeleteDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(DELETE, Url($"_data_frame/transforms/{transformId:transformId}"), null, RequestParams(requestParameters)); - ///DELETE on /_data_frame/transforms/{transform_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html - ///The id of the transform to delete - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.delete_data_frame_transform", "transform_id")] - public Task DeleteTransformAsync(string transformId, DeleteDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, Url($"_data_frame/transforms/{transformId:transformId}"), ctx, null, RequestParams(requestParameters)); - ///GET on /_data_frame/transforms/{transform_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html - ///The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse GetTransform(string transformId, GetDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_data_frame/transforms/{transformId:transformId}"), null, RequestParams(requestParameters)); - ///GET on /_data_frame/transforms/{transform_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html - ///The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.get_data_frame_transform", "transform_id")] - public Task GetTransformAsync(string transformId, GetDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_data_frame/transforms/{transformId:transformId}"), ctx, null, RequestParams(requestParameters)); - ///GET on /_data_frame/transforms https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse GetTransform(GetDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_data_frame/transforms", null, RequestParams(requestParameters)); - ///GET on /_data_frame/transforms https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.get_data_frame_transform", "")] - public Task GetTransformAsync(GetDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_data_frame/transforms", ctx, null, RequestParams(requestParameters)); - ///GET on /_data_frame/transforms/{transform_id}/_stats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html - ///The id of the transform for which to get stats. '_all' or '*' implies all transforms - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse GetTransformStats(string transformId, GetDataFrameTransformStatsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_data_frame/transforms/{transformId:transformId}/_stats"), null, RequestParams(requestParameters)); - ///GET on /_data_frame/transforms/{transform_id}/_stats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html - ///The id of the transform for which to get stats. '_all' or '*' implies all transforms - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.get_data_frame_transform_stats", "transform_id")] - public Task GetTransformStatsAsync(string transformId, GetDataFrameTransformStatsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_data_frame/transforms/{transformId:transformId}/_stats"), ctx, null, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/_preview https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html - ///The definition for the data_frame transform to preview - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse PreviewTransform(PostData body, PreviewDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_data_frame/transforms/_preview", body, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/_preview https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html - ///The definition for the data_frame transform to preview - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.preview_data_frame_transform", "body")] - public Task PreviewTransformAsync(PostData body, PreviewDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_data_frame/transforms/_preview", ctx, body, RequestParams(requestParameters)); - ///PUT on /_data_frame/transforms/{transform_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html - ///The id of the new transform. - ///The data frame transform definition - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse PutTransform(string transformId, PostData body, PutDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(PUT, Url($"_data_frame/transforms/{transformId:transformId}"), body, RequestParams(requestParameters)); - ///PUT on /_data_frame/transforms/{transform_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html - ///The id of the new transform. - ///The data frame transform definition - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.put_data_frame_transform", "transform_id, body")] - public Task PutTransformAsync(string transformId, PostData body, PutDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_data_frame/transforms/{transformId:transformId}"), ctx, body, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/{transform_id}/_start https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html - ///The id of the transform to start - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse StartTransform(string transformId, StartDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_data_frame/transforms/{transformId:transformId}/_start"), null, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/{transform_id}/_start https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html - ///The id of the transform to start - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.start_data_frame_transform", "transform_id")] - public Task StartTransformAsync(string transformId, StartDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_data_frame/transforms/{transformId:transformId}/_start"), ctx, null, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/{transform_id}/_stop https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html - ///The id of the transform to stop - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse StopTransform(string transformId, StopDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_data_frame/transforms/{transformId:transformId}/_stop"), null, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/{transform_id}/_stop https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html - ///The id of the transform to stop - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.stop_data_frame_transform", "transform_id")] - public Task StopTransformAsync(string transformId, StopDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_data_frame/transforms/{transformId:transformId}/_stop"), ctx, null, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/{transform_id}/_update https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html - ///The id of the transform. - ///The update data frame transform definition - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - public TResponse UpdateTransform(string transformId, PostData body, UpdateDataFrameTransformRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_data_frame/transforms/{transformId:transformId}/_update"), body, RequestParams(requestParameters)); - ///POST on /_data_frame/transforms/{transform_id}/_update https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html - ///The id of the transform. - ///The update data frame transform definition - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. - [MapsApi("data_frame.update_data_frame_transform", "transform_id, body")] - public Task UpdateTransformAsync(string transformId, PostData body, UpdateDataFrameTransformRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_data_frame/transforms/{transformId:transformId}/_update"), ctx, body, RequestParams(requestParameters)); - } -} \ No newline at end of file diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs index 7f95680eb3b..5a9abba9394 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs @@ -174,32 +174,6 @@ public TResponse DeleteModelSnapshot(string jobId, string snapshotId, [MapsApi("ml.delete_model_snapshot", "job_id, snapshot_id")] public Task DeleteModelSnapshotAsync(string jobId, string snapshotId, DeleteModelSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, Url($"_ml/anomaly_detectors/{jobId:jobId}/model_snapshots/{snapshotId:snapshotId}"), ctx, null, RequestParams(requestParameters)); - ///DELETE on /_ml/inference/{model_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html - ///The ID of the trained model to delete - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse DeleteTrainedModel(string modelId, DeleteTrainedModelRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(DELETE, Url($"_ml/inference/{modelId:modelId}"), null, RequestParams(requestParameters)); - ///DELETE on /_ml/inference/{model_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html - ///The ID of the trained model to delete - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.delete_trained_model", "model_id")] - public Task DeleteTrainedModelAsync(string modelId, DeleteTrainedModelRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, Url($"_ml/inference/{modelId:modelId}"), ctx, null, RequestParams(requestParameters)); - ///POST on /_ml/data_frame/analytics/_estimate_memory_usage https://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html - ///Memory usage estimation definition - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse EstimateMemoryUsage(PostData body, EstimateMemoryUsageRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_ml/data_frame/analytics/_estimate_memory_usage", body, RequestParams(requestParameters)); - ///POST on /_ml/data_frame/analytics/_estimate_memory_usage https://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html - ///Memory usage estimation definition - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.estimate_memory_usage", "body")] - public Task EstimateMemoryUsageAsync(PostData body, EstimateMemoryUsageRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_ml/data_frame/analytics/_estimate_memory_usage", ctx, body, RequestParams(requestParameters)); ///POST on /_ml/data_frame/_evaluate https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html ///The evaluation definition ///Request specific configuration such as querystring parameters & request specific connection settings. @@ -213,34 +187,6 @@ public TResponse EvaluateDataFrame(PostData body, EvaluateDataFrameRe [MapsApi("ml.evaluate_data_frame", "body")] public Task EvaluateDataFrameAsync(PostData body, EvaluateDataFrameRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_ml/data_frame/_evaluate", ctx, body, RequestParams(requestParameters)); - ///POST on /_ml/data_frame/analytics/_explain https://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html - ///The data frame analytics config to explain - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse ExplainDataFrameAnalytics(PostData body, ExplainDataFrameAnalyticsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_ml/data_frame/analytics/_explain", body, RequestParams(requestParameters)); - ///POST on /_ml/data_frame/analytics/_explain https://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html - ///The data frame analytics config to explain - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.explain_data_frame_analytics", "body")] - public Task ExplainDataFrameAnalyticsAsync(PostData body, ExplainDataFrameAnalyticsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_ml/data_frame/analytics/_explain", ctx, body, RequestParams(requestParameters)); - ///POST on /_ml/data_frame/analytics/{id}/_explain https://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html - ///The ID of the data frame analytics to explain - ///The data frame analytics config to explain - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse ExplainDataFrameAnalytics(string id, PostData body, ExplainDataFrameAnalyticsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_ml/data_frame/analytics/{id:id}/_explain"), body, RequestParams(requestParameters)); - ///POST on /_ml/data_frame/analytics/{id}/_explain https://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html - ///The ID of the data frame analytics to explain - ///The data frame analytics config to explain - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.explain_data_frame_analytics", "id, body")] - public Task ExplainDataFrameAnalyticsAsync(string id, PostData body, ExplainDataFrameAnalyticsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_ml/data_frame/analytics/{id:id}/_explain"), ctx, body, RequestParams(requestParameters)); ///POST on /_ml/find_file_structure https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html ///The contents of the file to be analyzed ///Request specific configuration such as querystring parameters & request specific connection settings. @@ -584,54 +530,6 @@ public TResponse GetAnomalyRecords(string jobId, PostData body, GetAn [MapsApi("ml.get_records", "job_id, body")] public Task GetAnomalyRecordsAsync(string jobId, PostData body, GetAnomalyRecordsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_ml/anomaly_detectors/{jobId:jobId}/results/records"), ctx, body, RequestParams(requestParameters)); - ///GET on /_ml/inference/{model_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html - ///The ID of the trained models to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse GetTrainedModels(string modelId, GetTrainedModelsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_ml/inference/{modelId:modelId}"), null, RequestParams(requestParameters)); - ///GET on /_ml/inference/{model_id} https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html - ///The ID of the trained models to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.get_trained_models", "model_id")] - public Task GetTrainedModelsAsync(string modelId, GetTrainedModelsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_ml/inference/{modelId:modelId}"), ctx, null, RequestParams(requestParameters)); - ///GET on /_ml/inference https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse GetTrainedModels(GetTrainedModelsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_ml/inference", null, RequestParams(requestParameters)); - ///GET on /_ml/inference https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.get_trained_models", "")] - public Task GetTrainedModelsAsync(GetTrainedModelsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_ml/inference", ctx, null, RequestParams(requestParameters)); - ///GET on /_ml/inference/{model_id}/_stats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html - ///The ID of the trained models stats to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse GetTrainedModelsStats(string modelId, GetTrainedModelsStatsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_ml/inference/{modelId:modelId}/_stats"), null, RequestParams(requestParameters)); - ///GET on /_ml/inference/{model_id}/_stats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html - ///The ID of the trained models stats to fetch - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.get_trained_models_stats", "model_id")] - public Task GetTrainedModelsStatsAsync(string modelId, GetTrainedModelsStatsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_ml/inference/{modelId:modelId}/_stats"), ctx, null, RequestParams(requestParameters)); - ///GET on /_ml/inference/_stats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse GetTrainedModelsStats(GetTrainedModelsStatsRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_ml/inference/_stats", null, RequestParams(requestParameters)); - ///GET on /_ml/inference/_stats https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.get_trained_models_stats", "")] - public Task GetTrainedModelsStatsAsync(GetTrainedModelsStatsRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_ml/inference/_stats", ctx, null, RequestParams(requestParameters)); ///GET on /_ml/info ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Info(MachineLearningInfoRequestParameters requestParameters = null) @@ -769,21 +667,6 @@ public TResponse PutJob(string jobId, PostData body, PutJobRequestPar [MapsApi("ml.put_job", "job_id, body")] public Task PutJobAsync(string jobId, PostData body, PutJobRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_ml/anomaly_detectors/{jobId:jobId}"), ctx, body, RequestParams(requestParameters)); - ///PUT on /_ml/inference/{model_id} TODO - ///The ID of the trained models to store - ///The trained model configuration - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse PutTrainedModel(string modelId, PostData body, PutTrainedModelRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(PUT, Url($"_ml/inference/{modelId:modelId}"), body, RequestParams(requestParameters)); - ///PUT on /_ml/inference/{model_id} TODO - ///The ID of the trained models to store - ///The trained model configuration - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("ml.put_trained_model", "model_id, body")] - public Task PutTrainedModelAsync(string modelId, PostData body, PutTrainedModelRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_ml/inference/{modelId:modelId}"), ctx, body, RequestParams(requestParameters)); ///POST on /_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert https://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 diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs index e0407f5c64d..846b39b77a9 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs @@ -26,7 +26,6 @@ using Elasticsearch.Net.Specification.CatApi; using Elasticsearch.Net.Specification.ClusterApi; using Elasticsearch.Net.Specification.CrossClusterReplicationApi; -using Elasticsearch.Net.Specification.DataFrameApi; using Elasticsearch.Net.Specification.EnrichApi; using Elasticsearch.Net.Specification.GraphApi; using Elasticsearch.Net.Specification.IndexLifecycleManagementApi; @@ -74,12 +73,6 @@ public LowLevelCrossClusterReplicationNamespace CrossClusterReplication private set; } - public LowLevelDataFrameNamespace DataFrame - { - get; - private set; - } - public LowLevelEnrichNamespace Enrich { get; @@ -193,7 +186,6 @@ partial void SetupNamespaces() Cat = new LowLevelCatNamespace(this); Cluster = new LowLevelClusterNamespace(this); CrossClusterReplication = new LowLevelCrossClusterReplicationNamespace(this); - DataFrame = new LowLevelDataFrameNamespace(this); Enrich = new LowLevelEnrichNamespace(this); Graph = new LowLevelGraphNamespace(this); IndexLifecycleManagement = new LowLevelIndexLifecycleManagementNamespace(this); @@ -965,17 +957,6 @@ public TResponse RenderSearchTemplate(string id, PostData body, Rende [MapsApi("render_search_template", "id, body")] public Task RenderSearchTemplateAsync(string id, PostData body, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_render/template/{id:id}"), ctx, body, RequestParams(requestParameters)); - ///GET on /_scripts/painless/_context - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - public TResponse ScriptsPainlessContext(ScriptsPainlessContextRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_scripts/painless/_context", null, RequestParams(requestParameters)); - ///GET on /_scripts/painless/_context - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - [MapsApi("scripts_painless_context", "")] - public Task ScriptsPainlessContextAsync(ScriptsPainlessContextRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_scripts/painless/_context", ctx, null, RequestParams(requestParameters)); ///POST on /_scripts/painless/_execute https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html ///The script to execute ///Request specific configuration such as querystring parameters & request specific connection settings. diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs index bb34d6e48e1..2f030ab90cd 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs @@ -109,13 +109,13 @@ public TResponse CreateApiKey(PostData body, CreateApiKeyRequestParam [MapsApi("security.create_api_key", "body")] public Task CreateApiKeyAsync(PostData body, CreateApiKeyRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, "_security/api_key", ctx, body, RequestParams(requestParameters)); - ///DELETE on /_security/privilege/{application}/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html + ///DELETE on /_security/privilege/{application}/{name} TODO ///Application name ///Privilege name ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse DeletePrivileges(string application, string name, DeletePrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(DELETE, Url($"_security/privilege/{application:application}/{name:name}"), null, RequestParams(requestParameters)); - ///DELETE on /_security/privilege/{application}/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html + ///DELETE on /_security/privilege/{application}/{name} TODO ///Application name ///Privilege name ///Request specific configuration such as querystring parameters & request specific connection settings. @@ -354,12 +354,12 @@ public TResponse InvalidateUserAccessToken(PostData body, InvalidateU [MapsApi("security.invalidate_token", "body")] public Task InvalidateUserAccessTokenAsync(PostData body, InvalidateUserAccessTokenRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, "_security/oauth2/token", ctx, body, RequestParams(requestParameters)); - ///PUT on /_security/privilege/ https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html + ///PUT on /_security/privilege/ TODO ///The privilege(s) to add ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse PutPrivileges(PostData body, PutPrivilegesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(PUT, "_security/privilege/", body, RequestParams(requestParameters)); - ///PUT on /_security/privilege/ https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html + ///PUT on /_security/privilege/ TODO ///The privilege(s) to add ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("security.put_privileges", "body")] diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.SnapshotLifecycleManagement.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.SnapshotLifecycleManagement.cs index 8d1f8239034..54d91733a5f 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.SnapshotLifecycleManagement.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.SnapshotLifecycleManagement.cs @@ -54,12 +54,12 @@ public TResponse DeleteSnapshotLifecycle(string policyId, DeleteSnaps [MapsApi("slm.delete_lifecycle", "policy_id")] public Task DeleteSnapshotLifecycleAsync(string policyId, DeleteSnapshotLifecycleRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, Url($"_slm/policy/{policyId:policyId}"), ctx, null, RequestParams(requestParameters)); - ///POST on /_slm/policy/{policy_id}/_execute https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-policy.html + ///POST on /_slm/policy/{policy_id}/_execute https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html ///The id of the snapshot lifecycle policy to be executed ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse ExecuteSnapshotLifecycle(string policyId, ExecuteSnapshotLifecycleRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_slm/policy/{policyId:policyId}/_execute"), null, RequestParams(requestParameters)); - ///POST on /_slm/policy/{policy_id}/_execute https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-policy.html + ///POST on /_slm/policy/{policy_id}/_execute https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html ///The id of the snapshot lifecycle policy to be executed ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("slm.execute_lifecycle", "policy_id")] @@ -103,11 +103,11 @@ public TResponse GetSnapshotLifecycleStats(GetSnapshotLifecycleStatsR [MapsApi("slm.get_stats", "")] public Task GetSnapshotLifecycleStatsAsync(GetSnapshotLifecycleStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_slm/stats", ctx, null, RequestParams(requestParameters)); - ///GET on /_slm/status https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + ///GET on /_slm/status https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse GetStatus(GetSnapshotLifecycleManagementStatusRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_slm/status", null, RequestParams(requestParameters)); - ///GET on /_slm/status https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + ///GET on /_slm/status https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("slm.get_status", "")] public Task GetStatusAsync(GetSnapshotLifecycleManagementStatusRequestParameters requestParameters = null, CancellationToken ctx = default) @@ -125,20 +125,20 @@ public TResponse PutSnapshotLifecycle(string policyId, PostData body, [MapsApi("slm.put_lifecycle", "policy_id, body")] public Task PutSnapshotLifecycleAsync(string policyId, PostData body, PutSnapshotLifecycleRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_slm/policy/{policyId:policyId}"), ctx, body, RequestParams(requestParameters)); - ///POST on /_slm/start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + ///POST on /_slm/start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Start(StartSnapshotLifecycleManagementRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_slm/start", null, RequestParams(requestParameters)); - ///POST on /_slm/start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + ///POST on /_slm/start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("slm.start", "")] public Task StartAsync(StartSnapshotLifecycleManagementRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_slm/start", ctx, null, RequestParams(requestParameters)); - ///POST on /_slm/stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + ///POST on /_slm/stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Stop(StopSnapshotLifecycleManagementRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_slm/stop", null, RequestParams(requestParameters)); - ///POST on /_slm/stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + ///POST on /_slm/stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("slm.stop", "")] public Task StopAsync(StopSnapshotLifecycleManagementRequestParameters requestParameters = null, CancellationToken ctx = default) diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Sql.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Sql.cs index 881ce945818..2870fa9dd54 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Sql.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Sql.cs @@ -43,23 +43,23 @@ internal LowLevelSqlNamespace(ElasticLowLevelClient client): base(client) { } - ///POST on /_sql/close https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html + ///POST on /_sql/close Clear SQL cursor ///Specify the cursor value in the `cursor` element to clean the cursor. ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse ClearCursor(PostData body, ClearSqlCursorRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_sql/close", body, RequestParams(requestParameters)); - ///POST on /_sql/close https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html + ///POST on /_sql/close Clear SQL cursor ///Specify the cursor value in the `cursor` element to clean the cursor. ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("sql.clear_cursor", "body")] public Task ClearCursorAsync(PostData body, ClearSqlCursorRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_sql/close", ctx, body, RequestParams(requestParameters)); - ///POST on /_sql https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html + ///POST on /_sql Execute SQL ///Use the `query` element to start a query. Use the `cursor` element to continue a query. ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Query(PostData body, QuerySqlRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_sql", body, RequestParams(requestParameters)); - ///POST on /_sql https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html + ///POST on /_sql Execute SQL ///Use the `query` element to start a query. Use the `cursor` element to continue a query. ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("sql.query", "body")] diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.XPack.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.XPack.cs index e19a742e038..7e0aeb3a166 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.XPack.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.XPack.cs @@ -52,11 +52,11 @@ public TResponse Info(XPackInfoRequestParameters requestParameters = [MapsApi("xpack.info", "")] public Task InfoAsync(XPackInfoRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_xpack", ctx, null, RequestParams(requestParameters)); - ///GET on /_xpack/usage Retrieve information about xpack features usage + ///GET on /_xpack/usage https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Usage(XPackUsageRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_xpack/usage", null, RequestParams(requestParameters)); - ///GET on /_xpack/usage Retrieve information about xpack features usage + ///GET on /_xpack/usage https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("xpack.usage", "")] public Task UsageAsync(XPackUsageRequestParameters requestParameters = null, CancellationToken ctx = default) diff --git a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs index ab60fb51e86..ad0a61da1f1 100644 --- a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs @@ -26,7 +26,6 @@ using Elasticsearch.Net.Specification.CatApi; using Elasticsearch.Net.Specification.ClusterApi; using Elasticsearch.Net.Specification.CrossClusterReplicationApi; -using Elasticsearch.Net.Specification.DataFrameApi; using Elasticsearch.Net.Specification.EnrichApi; using Elasticsearch.Net.Specification.GraphApi; using Elasticsearch.Net.Specification.IndexLifecycleManagementApi; @@ -71,12 +70,6 @@ LowLevelCrossClusterReplicationNamespace CrossClusterReplication get; } - ///Data Frame APIs - LowLevelDataFrameNamespace DataFrame - { - get; - } - ///Enrich APIs LowLevelEnrichNamespace Enrich { @@ -827,16 +820,6 @@ TResponse RenderSearchTemplate(string id, PostData body, RenderSearch ///Request specific configuration such as querystring parameters & request specific connection settings. Task RenderSearchTemplateAsync(string id, PostData body, RenderSearchTemplateRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_scripts/painless/_context - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - TResponse ScriptsPainlessContext(ScriptsPainlessContextRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new(); - ///GET on /_scripts/painless/_context - ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - Task ScriptsPainlessContextAsync(ScriptsPainlessContextRequestParameters requestParameters = null, CancellationToken ctx = default) - 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 ///Request specific configuration such as querystring parameters & request specific connection settings. diff --git a/src/Nest/Descriptors.Cat.cs b/src/Nest/Descriptors.Cat.cs index aecda4bb11f..0637d0bca5c 100644 --- a/src/Nest/Descriptors.Cat.cs +++ b/src/Nest/Descriptors.Cat.cs @@ -330,7 +330,7 @@ public partial class CatNodesDescriptor : RequestDescriptorBase Qs("h", headers); ///Return help information public CatNodesDescriptor Help(bool? help = true) => Qs("help", help); - ///Return local information, do not retrieve the state from master node (default: false) + ///Calculate the selected nodes using the local cluster state rather than the state from master node (default: false) public CatNodesDescriptor Local(bool? local = true) => Qs("local", local); ///Explicit operation timeout for connection to master node public CatNodesDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout); diff --git a/src/Nest/Descriptors.CrossClusterReplication.cs b/src/Nest/Descriptors.CrossClusterReplication.cs index edd8e182dc3..a2f733e04d1 100644 --- a/src/Nest/Descriptors.CrossClusterReplication.cs +++ b/src/Nest/Descriptors.CrossClusterReplication.cs @@ -135,7 +135,7 @@ public FollowIndexStatsDescriptor Index() // Request parameters } - ///Descriptor for ForgetFollowerIndex http://www.elastic.co/guide/en/elasticsearch/reference/current + ///Descriptor for ForgetFollowerIndex https://www.elastic.co/guide/en/elasticsearch/reference/current public partial class ForgetFollowerIndexDescriptor : RequestDescriptorBase, IForgetFollowerIndexRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationForgetFollowerIndex; @@ -306,7 +306,7 @@ public partial class CcrStatsDescriptor : RequestDescriptorBaseDescriptor for UnfollowIndex http://www.elastic.co/guide/en/elasticsearch/reference/current + ///Descriptor for UnfollowIndex https://www.elastic.co/guide/en/elasticsearch/reference/current public partial class UnfollowIndexDescriptor : RequestDescriptorBase, IUnfollowIndexRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationUnfollowIndex; diff --git a/src/Nest/Descriptors.License.cs b/src/Nest/Descriptors.License.cs index 89058620b7c..fdd261f30f4 100644 --- a/src/Nest/Descriptors.License.cs +++ b/src/Nest/Descriptors.License.cs @@ -44,6 +44,8 @@ public partial class GetLicenseDescriptor : RequestDescriptorBase ApiUrlsLookups.LicenseGet; // values part of the url path // Request parameters + ///If the active license is an enterprise license, return type as 'enterprise' (default: false) + public GetLicenseDescriptor AcceptEnterprise(bool? acceptenterprise = true) => Qs("accept_enterprise", acceptenterprise); ///Return local information, do not retrieve the state from master node (default: false) public GetLicenseDescriptor Local(bool? local = true) => Qs("local", local); } diff --git a/src/Nest/Descriptors.MachineLearning.cs b/src/Nest/Descriptors.MachineLearning.cs index 73164d1ae35..c070aca29fd 100644 --- a/src/Nest/Descriptors.MachineLearning.cs +++ b/src/Nest/Descriptors.MachineLearning.cs @@ -30,7 +30,7 @@ // ReSharper disable RedundantNameQualifier namespace Nest { - ///Descriptor for CloseJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html + ///Descriptor for CloseJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html public partial class CloseJobDescriptor : RequestDescriptorBase, ICloseJobRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningCloseJob; @@ -124,7 +124,7 @@ protected DeleteCalendarJobDescriptor(): base() // Request parameters } - ///Descriptor for DeleteDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html + ///Descriptor for DeleteDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html public partial class DeleteDatafeedDescriptor : RequestDescriptorBase, IDeleteDatafeedRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteDatafeed; @@ -176,7 +176,7 @@ protected DeleteFilterDescriptor(): base() // Request parameters } - ///Descriptor for DeleteForecast http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html + ///Descriptor for DeleteForecast https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html public partial class DeleteForecastDescriptor : RequestDescriptorBase, IDeleteForecastRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteForecast; @@ -203,7 +203,7 @@ protected DeleteForecastDescriptor(): base() public DeleteForecastDescriptor Timeout(Time timeout) => Qs("timeout", timeout); } - ///Descriptor for DeleteJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html + ///Descriptor for DeleteJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html public partial class DeleteJobDescriptor : RequestDescriptorBase, IDeleteJobRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteJob; @@ -228,7 +228,7 @@ protected DeleteJobDescriptor(): base() public DeleteJobDescriptor WaitForCompletion(bool? waitforcompletion = true) => Qs("wait_for_completion", waitforcompletion); } - ///Descriptor for DeleteModelSnapshot http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html + ///Descriptor for DeleteModelSnapshot https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html public partial class DeleteModelSnapshotDescriptor : RequestDescriptorBase, IDeleteModelSnapshotRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningDeleteModelSnapshot; @@ -251,7 +251,7 @@ protected DeleteModelSnapshotDescriptor(): base() // Request parameters } - ///Descriptor for FlushJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html + ///Descriptor for FlushJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html public partial class FlushJobDescriptor : RequestDescriptorBase, IFlushJobRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningFlushJob; @@ -295,7 +295,7 @@ protected ForecastJobDescriptor(): base() // Request parameters } - ///Descriptor for GetBuckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html + ///Descriptor for GetBuckets https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html public partial class GetBucketsDescriptor : RequestDescriptorBase, IGetBucketsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetBuckets; @@ -375,7 +375,7 @@ public GetCalendarsDescriptor(Id calendarId): base(r => r.Optional("calendar_id" // Request parameters } - ///Descriptor for GetCategories http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html + ///Descriptor for GetCategories https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html public partial class GetCategoriesDescriptor : RequestDescriptorBase, IGetCategoriesRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetCategories; @@ -406,7 +406,7 @@ protected GetCategoriesDescriptor(): base() // Request parameters } - ///Descriptor for GetDatafeedStats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + ///Descriptor for GetDatafeedStats https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html public partial class GetDatafeedStatsDescriptor : RequestDescriptorBase, IGetDatafeedStatsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDatafeedStats; @@ -430,7 +430,7 @@ public GetDatafeedStatsDescriptor(): base() public GetDatafeedStatsDescriptor AllowNoDatafeeds(bool? allownodatafeeds = true) => Qs("allow_no_datafeeds", allownodatafeeds); } - ///Descriptor for GetDatafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html + ///Descriptor for GetDatafeeds https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html public partial class GetDatafeedsDescriptor : RequestDescriptorBase, IGetDatafeedsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetDatafeeds; @@ -480,7 +480,7 @@ public GetFiltersDescriptor(Id filterId): base(r => r.Optional("filter_id", filt public GetFiltersDescriptor Size(int? size) => Qs("size", size); } - ///Descriptor for GetInfluencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html + ///Descriptor for GetInfluencers https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html public partial class GetInfluencersDescriptor : RequestDescriptorBase, IGetInfluencersRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetInfluencers; @@ -501,7 +501,7 @@ protected GetInfluencersDescriptor(): base() // Request parameters } - ///Descriptor for GetJobStats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + ///Descriptor for GetJobStats https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html public partial class GetJobStatsDescriptor : RequestDescriptorBase, IGetJobStatsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetJobStats; @@ -525,7 +525,7 @@ public GetJobStatsDescriptor(Id jobId): base(r => r.Optional("job_id", jobId)) public GetJobStatsDescriptor AllowNoJobs(bool? allownojobs = true) => Qs("allow_no_jobs", allownojobs); } - ///Descriptor for GetJobs http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + ///Descriptor for GetJobs https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html public partial class GetJobsDescriptor : RequestDescriptorBase, IGetJobsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetJobs; @@ -549,7 +549,7 @@ public GetJobsDescriptor(): base() public GetJobsDescriptor AllowNoJobs(bool? allownojobs = true) => Qs("allow_no_jobs", allownojobs); } - ///Descriptor for GetModelSnapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html + ///Descriptor for GetModelSnapshots https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html public partial class GetModelSnapshotsDescriptor : RequestDescriptorBase, IGetModelSnapshotsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetModelSnapshots; @@ -580,7 +580,7 @@ protected GetModelSnapshotsDescriptor(): base() // Request parameters } - ///Descriptor for GetOverallBuckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html + ///Descriptor for GetOverallBuckets https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html public partial class GetOverallBucketsDescriptor : RequestDescriptorBase, IGetOverallBucketsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetOverallBuckets; @@ -601,7 +601,7 @@ protected GetOverallBucketsDescriptor(): base() // Request parameters } - ///Descriptor for GetAnomalyRecords http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html + ///Descriptor for GetAnomalyRecords https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html public partial class GetAnomalyRecordsDescriptor : RequestDescriptorBase, IGetAnomalyRecordsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningGetAnomalyRecords; @@ -630,7 +630,7 @@ public partial class MachineLearningInfoDescriptor : RequestDescriptorBaseDescriptor for OpenJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html + ///Descriptor for OpenJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html public partial class OpenJobDescriptor : RequestDescriptorBase, IOpenJobRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningOpenJob; @@ -672,7 +672,7 @@ protected PostCalendarEventsDescriptor(): base() // Request parameters } - ///Descriptor for PostJobData http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html + ///Descriptor for PostJobData https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html public partial class PostJobDataDescriptor : RequestDescriptorBase, IPostJobDataRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPostJobData; @@ -697,7 +697,7 @@ protected PostJobDataDescriptor(): base() public PostJobDataDescriptor ResetStart(DateTimeOffset? resetstart) => Qs("reset_start", resetstart); } - ///Descriptor for PreviewDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html + ///Descriptor for PreviewDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html public partial class PreviewDatafeedDescriptor : RequestDescriptorBase, IPreviewDatafeedRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPreviewDatafeed; @@ -762,7 +762,7 @@ protected PutCalendarJobDescriptor(): base() // Request parameters } - ///Descriptor for PutDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html + ///Descriptor for PutDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html public partial class PutDatafeedDescriptor : RequestDescriptorBase, PutDatafeedRequestParameters, IPutDatafeedRequest>, IPutDatafeedRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutDatafeed; @@ -804,7 +804,7 @@ protected PutFilterDescriptor(): base() // Request parameters } - ///Descriptor for PutJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html + ///Descriptor for PutJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html public partial class PutJobDescriptor : RequestDescriptorBase, PutJobRequestParameters, IPutJobRequest>, IPutJobRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningPutJob; @@ -825,7 +825,7 @@ protected PutJobDescriptor(): base() // Request parameters } - ///Descriptor for RevertModelSnapshot http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html + ///Descriptor for RevertModelSnapshot https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html public partial class RevertModelSnapshotDescriptor : RequestDescriptorBase, IRevertModelSnapshotRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningRevertModelSnapshot; @@ -848,7 +848,7 @@ protected RevertModelSnapshotDescriptor(): base() // Request parameters } - ///Descriptor for StartDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html + ///Descriptor for StartDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html public partial class StartDatafeedDescriptor : RequestDescriptorBase, IStartDatafeedRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStartDatafeed; @@ -869,7 +869,7 @@ protected StartDatafeedDescriptor(): base() // Request parameters } - ///Descriptor for StopDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html + ///Descriptor for StopDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html public partial class StopDatafeedDescriptor : RequestDescriptorBase, IStopDatafeedRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningStopDatafeed; @@ -892,7 +892,7 @@ protected StopDatafeedDescriptor(): base() public StopDatafeedDescriptor AllowNoDatafeeds(bool? allownodatafeeds = true) => Qs("allow_no_datafeeds", allownodatafeeds); } - ///Descriptor for UpdateDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html + ///Descriptor for UpdateDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html public partial class UpdateDatafeedDescriptor : RequestDescriptorBase, UpdateDatafeedRequestParameters, IUpdateDatafeedRequest>, IUpdateDatafeedRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateDatafeed; @@ -934,7 +934,7 @@ protected UpdateFilterDescriptor(): base() // Request parameters } - ///Descriptor for UpdateJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html + ///Descriptor for UpdateJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html public partial class UpdateJobDescriptor : RequestDescriptorBase, UpdateJobRequestParameters, IUpdateJobRequest>, IUpdateJobRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateJob; @@ -955,7 +955,7 @@ protected UpdateJobDescriptor(): base() // Request parameters } - ///Descriptor for UpdateModelSnapshot http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html + ///Descriptor for UpdateModelSnapshot https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html public partial class UpdateModelSnapshotDescriptor : RequestDescriptorBase, IUpdateModelSnapshotRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MachineLearningUpdateModelSnapshot; diff --git a/src/Nest/Descriptors.Migration.cs b/src/Nest/Descriptors.Migration.cs index f7316d43ef8..192d593d176 100644 --- a/src/Nest/Descriptors.Migration.cs +++ b/src/Nest/Descriptors.Migration.cs @@ -30,7 +30,7 @@ // ReSharper disable RedundantNameQualifier namespace Nest { - ///Descriptor for DeprecationInfo http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html + ///Descriptor for DeprecationInfo https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html public partial class DeprecationInfoDescriptor : RequestDescriptorBase, IDeprecationInfoRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.MigrationDeprecationInfo; diff --git a/src/Nest/Descriptors.NoNamespace.cs b/src/Nest/Descriptors.NoNamespace.cs index 67580bda7e3..329e6747efd 100644 --- a/src/Nest/Descriptors.NoNamespace.cs +++ b/src/Nest/Descriptors.NoNamespace.cs @@ -54,7 +54,7 @@ public BulkDescriptor Index() // Request parameters ///The pipeline id to preprocess incoming documents with public BulkDescriptor Pipeline(string pipeline) => Qs("pipeline", pipeline); - ///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. + ///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 BulkDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); /// /// A document is routed to a particular shard in an index using the following formula @@ -251,7 +251,7 @@ public DeleteDescriptor Index() public DeleteDescriptor IfPrimaryTerm(long? ifprimaryterm) => Qs("if_primary_term", ifprimaryterm); ///only perform the delete operation if the last operation that has changed the document has the specified sequence number public DeleteDescriptor IfSequenceNumber(long? ifsequencenumber) => Qs("if_seq_no", ifsequencenumber); - ///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. + ///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 DeleteDescriptor Refresh(Refresh? refresh) => Qs("refresh", refresh); /// /// A document is routed to a particular shard in an index using the following formula @@ -344,7 +344,7 @@ public DeleteByQueryDescriptor Index() public DeleteByQueryDescriptor SearchType(SearchType? searchtype) => Qs("search_type", searchtype); ///Deprecated, please use `max_docs` instead public DeleteByQueryDescriptor Size(long? size) => Qs("size", size); - ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. + ///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); ///A comma-separated list of : pairs public DeleteByQueryDescriptor Sort(params string[] sort) => Qs("sort", sort); @@ -1138,7 +1138,7 @@ public partial class ReindexOnServerDescriptor : RequestDescriptorBase ApiUrlsLookups.NoNamespaceReindexOnServer; // values part of the url path // Request parameters - ///Should the effected indexes be refreshed? + ///Should the affected indexes be refreshed? public ReindexOnServerDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); ///The throttle to set on this request in sub-requests per second. -1 means no throttle. public ReindexOnServerDescriptor RequestsPerSecond(long? requestspersecond) => Qs("requests_per_second", requestspersecond); @@ -1529,7 +1529,7 @@ public UpdateDescriptor Index() public UpdateDescriptor IfSequenceNumber(long? ifsequencenumber) => Qs("if_seq_no", ifsequencenumber); ///The script language (default: painless) public UpdateDescriptor Lang(string lang) => Qs("lang", lang); - ///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. + ///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 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); @@ -1600,7 +1600,7 @@ public UpdateByQueryDescriptor Index() public UpdateByQueryDescriptor Preference(string preference) => Qs("preference", preference); ///Query in the Lucene query string syntax public UpdateByQueryDescriptor QueryOnQueryString(string queryonquerystring) => Qs("q", queryonquerystring); - ///Should the effected indexes be refreshed? + ///Should the affected indexes be refreshed? public UpdateByQueryDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); ///Specify if request cache should be used for this request or not, defaults to index level setting public UpdateByQueryDescriptor RequestCache(bool? requestcache = true) => Qs("request_cache", requestcache); diff --git a/src/Nest/Descriptors.SnapshotLifecycleManagement.cs b/src/Nest/Descriptors.SnapshotLifecycleManagement.cs index f360c53f713..423a9c54c62 100644 --- a/src/Nest/Descriptors.SnapshotLifecycleManagement.cs +++ b/src/Nest/Descriptors.SnapshotLifecycleManagement.cs @@ -30,7 +30,7 @@ // ReSharper disable RedundantNameQualifier namespace Nest { - ///Descriptor for DeleteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html + ///Descriptor for DeleteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html public partial class DeleteSnapshotLifecycleDescriptor : RequestDescriptorBase, IDeleteSnapshotLifecycleRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementDeleteSnapshotLifecycle; @@ -51,7 +51,7 @@ protected DeleteSnapshotLifecycleDescriptor(): base() // Request parameters } - ///Descriptor for ExecuteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html + ///Descriptor for ExecuteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html public partial class ExecuteSnapshotLifecycleDescriptor : RequestDescriptorBase, IExecuteSnapshotLifecycleRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementExecuteSnapshotLifecycle; @@ -80,7 +80,7 @@ public partial class ExecuteRetentionDescriptor : RequestDescriptorBaseDescriptor for GetSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get.html + ///Descriptor for GetSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html public partial class GetSnapshotLifecycleDescriptor : RequestDescriptorBase, IGetSnapshotLifecycleRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetSnapshotLifecycle; @@ -102,7 +102,7 @@ public GetSnapshotLifecycleDescriptor(): base() // Request parameters } - ///Descriptor for GetSnapshotLifecycleStats https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-get-stats.html + ///Descriptor for GetSnapshotLifecycleStats https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html public partial class GetSnapshotLifecycleStatsDescriptor : RequestDescriptorBase, IGetSnapshotLifecycleStatsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetSnapshotLifecycleStats; @@ -110,7 +110,7 @@ public partial class GetSnapshotLifecycleStatsDescriptor : RequestDescriptorBase // Request parameters } - ///Descriptor for GetStatus https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + ///Descriptor for GetStatus https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html public partial class GetSnapshotLifecycleManagementStatusDescriptor : RequestDescriptorBase, IGetSnapshotLifecycleManagementStatusRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementGetStatus; @@ -118,7 +118,7 @@ public partial class GetSnapshotLifecycleManagementStatusDescriptor : RequestDes // Request parameters } - ///Descriptor for PutSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html + ///Descriptor for PutSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html public partial class PutSnapshotLifecycleDescriptor : RequestDescriptorBase, IPutSnapshotLifecycleRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementPutSnapshotLifecycle; @@ -139,7 +139,7 @@ protected PutSnapshotLifecycleDescriptor(): base() // Request parameters } - ///Descriptor for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + ///Descriptor for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html public partial class StartSnapshotLifecycleManagementDescriptor : RequestDescriptorBase, IStartSnapshotLifecycleManagementRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementStart; @@ -147,7 +147,7 @@ public partial class StartSnapshotLifecycleManagementDescriptor : RequestDescrip // Request parameters } - ///Descriptor for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + ///Descriptor for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html public partial class StopSnapshotLifecycleManagementDescriptor : RequestDescriptorBase, IStopSnapshotLifecycleManagementRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.SnapshotLifecycleManagementStop; diff --git a/src/Nest/Descriptors.Watcher.cs b/src/Nest/Descriptors.Watcher.cs index 1de32638a90..150afa4f607 100644 --- a/src/Nest/Descriptors.Watcher.cs +++ b/src/Nest/Descriptors.Watcher.cs @@ -30,7 +30,7 @@ // ReSharper disable RedundantNameQualifier namespace Nest { - ///Descriptor for Acknowledge http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + ///Descriptor for Acknowledge https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html public partial class AcknowledgeWatchDescriptor : RequestDescriptorBase, IAcknowledgeWatchRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherAcknowledge; @@ -103,7 +103,7 @@ protected DeactivateWatchDescriptor(): base() // Request parameters } - ///Descriptor for Delete http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + ///Descriptor for Delete https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html public partial class DeleteWatchDescriptor : RequestDescriptorBase, IDeleteWatchRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherDelete; @@ -124,7 +124,7 @@ protected DeleteWatchDescriptor(): base() // Request parameters } - ///Descriptor for Execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + ///Descriptor for Execute https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html public partial class ExecuteWatchDescriptor : RequestDescriptorBase, IExecuteWatchRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherExecute; @@ -148,7 +148,7 @@ public ExecuteWatchDescriptor(): base() public ExecuteWatchDescriptor Debug(bool? debug = true) => Qs("debug", debug); } - ///Descriptor for Get http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + ///Descriptor for Get https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html public partial class GetWatchDescriptor : RequestDescriptorBase, IGetWatchRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherGet; @@ -169,7 +169,7 @@ protected GetWatchDescriptor(): base() // Request parameters } - ///Descriptor for Put http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + ///Descriptor for Put https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html public partial class PutWatchDescriptor : RequestDescriptorBase, IPutWatchRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherPut; @@ -198,7 +198,7 @@ protected PutWatchDescriptor(): base() public PutWatchDescriptor Version(long? version) => Qs("version", version); } - ///Descriptor for Start http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + ///Descriptor for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html public partial class StartWatcherDescriptor : RequestDescriptorBase, IStartWatcherRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherStart; @@ -206,7 +206,7 @@ public partial class StartWatcherDescriptor : RequestDescriptorBaseDescriptor for Stats http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + ///Descriptor for Stats https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html public partial class WatcherStatsDescriptor : RequestDescriptorBase, IWatcherStatsRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherStats; @@ -230,7 +230,7 @@ public WatcherStatsDescriptor(Metrics metric): base(r => r.Optional("metric", me public WatcherStatsDescriptor EmitStacktraces(bool? emitstacktraces = true) => Qs("emit_stacktraces", emitstacktraces); } - ///Descriptor for Stop http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + ///Descriptor for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html public partial class StopWatcherDescriptor : RequestDescriptorBase, IStopWatcherRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.WatcherStop; diff --git a/src/Nest/Descriptors.XPack.cs b/src/Nest/Descriptors.XPack.cs index fcc46ca1a1d..2dea178e62f 100644 --- a/src/Nest/Descriptors.XPack.cs +++ b/src/Nest/Descriptors.XPack.cs @@ -40,7 +40,7 @@ public partial class XPackInfoDescriptor : RequestDescriptorBase Qs("categories", categories); } - ///Descriptor for Usage Retrieve information about xpack features usage + ///Descriptor for Usage https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html public partial class XPackUsageDescriptor : RequestDescriptorBase, IXPackUsageRequest { internal override ApiUrls ApiUrls => ApiUrlsLookups.XPackUsage; diff --git a/src/Nest/ElasticClient.CrossClusterReplication.cs b/src/Nest/ElasticClient.CrossClusterReplication.cs index b513aa43dd3..b2079d54a39 100644 --- a/src/Nest/ElasticClient.CrossClusterReplication.cs +++ b/src/Nest/ElasticClient.CrossClusterReplication.cs @@ -135,25 +135,25 @@ internal CrossClusterReplicationNamespace(ElasticClient client): base(client) /// /// POST request to the ccr.forget_follower API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public ForgetFollowerIndexResponse ForgetFollowerIndex(IndexName index, Func selector) => ForgetFollowerIndex(selector.InvokeOrDefault(new ForgetFollowerIndexDescriptor(index: index))); /// /// POST request to the ccr.forget_follower API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public Task ForgetFollowerIndexAsync(IndexName index, Func selector, CancellationToken ct = default) => ForgetFollowerIndexAsync(selector.InvokeOrDefault(new ForgetFollowerIndexDescriptor(index: index)), ct); /// /// POST request to the ccr.forget_follower API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public ForgetFollowerIndexResponse ForgetFollowerIndex(IForgetFollowerIndexRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ccr.forget_follower API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public Task ForgetFollowerIndexAsync(IForgetFollowerIndexRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -327,25 +327,25 @@ internal CrossClusterReplicationNamespace(ElasticClient client): base(client) /// /// POST request to the ccr.unfollow API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public UnfollowIndexResponse UnfollowIndex(IndexName index, Func selector = null) => UnfollowIndex(selector.InvokeOrDefault(new UnfollowIndexDescriptor(index: index))); /// /// POST request to the ccr.unfollow API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public Task UnfollowIndexAsync(IndexName index, Func selector = null, CancellationToken ct = default) => UnfollowIndexAsync(selector.InvokeOrDefault(new UnfollowIndexDescriptor(index: index)), ct); /// /// POST request to the ccr.unfollow API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public UnfollowIndexResponse UnfollowIndex(IUnfollowIndexRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ccr.unfollow API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current + /// https://www.elastic.co/guide/en/elasticsearch/reference/current /// public Task UnfollowIndexAsync(IUnfollowIndexRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); } diff --git a/src/Nest/ElasticClient.MachineLearning.cs b/src/Nest/ElasticClient.MachineLearning.cs index 84858ba38dc..94a42f46f94 100644 --- a/src/Nest/ElasticClient.MachineLearning.cs +++ b/src/Nest/ElasticClient.MachineLearning.cs @@ -39,25 +39,25 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// POST request to the ml.close_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// public CloseJobResponse CloseJob(Id jobId, Func selector = null) => CloseJob(selector.InvokeOrDefault(new CloseJobDescriptor(jobId: jobId))); /// /// POST request to the ml.close_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// public Task CloseJobAsync(Id jobId, Func selector = null, CancellationToken ct = default) => CloseJobAsync(selector.InvokeOrDefault(new CloseJobDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.close_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// public CloseJobResponse CloseJob(ICloseJobRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.close_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html /// public Task CloseJobAsync(ICloseJobRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -135,25 +135,25 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// DELETE request to the ml.delete_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// public DeleteDatafeedResponse DeleteDatafeed(Id datafeedId, Func selector = null) => DeleteDatafeed(selector.InvokeOrDefault(new DeleteDatafeedDescriptor(datafeedId: datafeedId))); /// /// DELETE request to the ml.delete_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// public Task DeleteDatafeedAsync(Id datafeedId, Func selector = null, CancellationToken ct = default) => DeleteDatafeedAsync(selector.InvokeOrDefault(new DeleteDatafeedDescriptor(datafeedId: datafeedId)), ct); /// /// DELETE request to the ml.delete_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// public DeleteDatafeedResponse DeleteDatafeed(IDeleteDatafeedRequest request) => DoRequest(request, request.RequestParameters); /// /// DELETE request to the ml.delete_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html /// public Task DeleteDatafeedAsync(IDeleteDatafeedRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -207,97 +207,97 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// DELETE request to the ml.delete_forecast API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html /// public DeleteForecastResponse DeleteForecast(Id jobId, Ids forecastId, Func selector = null) => DeleteForecast(selector.InvokeOrDefault(new DeleteForecastDescriptor(jobId: jobId, forecastId: forecastId))); /// /// DELETE request to the ml.delete_forecast API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html /// public Task DeleteForecastAsync(Id jobId, Ids forecastId, Func selector = null, CancellationToken ct = default) => DeleteForecastAsync(selector.InvokeOrDefault(new DeleteForecastDescriptor(jobId: jobId, forecastId: forecastId)), ct); /// /// DELETE request to the ml.delete_forecast API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html /// public DeleteForecastResponse DeleteForecast(IDeleteForecastRequest request) => DoRequest(request, request.RequestParameters); /// /// DELETE request to the ml.delete_forecast API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html /// public Task DeleteForecastAsync(IDeleteForecastRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// DELETE request to the ml.delete_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// public DeleteJobResponse DeleteJob(Id jobId, Func selector = null) => DeleteJob(selector.InvokeOrDefault(new DeleteJobDescriptor(jobId: jobId))); /// /// DELETE request to the ml.delete_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// public Task DeleteJobAsync(Id jobId, Func selector = null, CancellationToken ct = default) => DeleteJobAsync(selector.InvokeOrDefault(new DeleteJobDescriptor(jobId: jobId)), ct); /// /// DELETE request to the ml.delete_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// public DeleteJobResponse DeleteJob(IDeleteJobRequest request) => DoRequest(request, request.RequestParameters); /// /// DELETE request to the ml.delete_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html /// public Task DeleteJobAsync(IDeleteJobRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// DELETE request to the ml.delete_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// public DeleteModelSnapshotResponse DeleteModelSnapshot(Id jobId, Id snapshotId, Func selector = null) => DeleteModelSnapshot(selector.InvokeOrDefault(new DeleteModelSnapshotDescriptor(jobId: jobId, snapshotId: snapshotId))); /// /// DELETE request to the ml.delete_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// public Task DeleteModelSnapshotAsync(Id jobId, Id snapshotId, Func selector = null, CancellationToken ct = default) => DeleteModelSnapshotAsync(selector.InvokeOrDefault(new DeleteModelSnapshotDescriptor(jobId: jobId, snapshotId: snapshotId)), ct); /// /// DELETE request to the ml.delete_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// public DeleteModelSnapshotResponse DeleteModelSnapshot(IDeleteModelSnapshotRequest request) => DoRequest(request, request.RequestParameters); /// /// DELETE request to the ml.delete_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html /// public Task DeleteModelSnapshotAsync(IDeleteModelSnapshotRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.flush_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// public FlushJobResponse FlushJob(Id jobId, Func selector = null) => FlushJob(selector.InvokeOrDefault(new FlushJobDescriptor(jobId: jobId))); /// /// POST request to the ml.flush_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// public Task FlushJobAsync(Id jobId, Func selector = null, CancellationToken ct = default) => FlushJobAsync(selector.InvokeOrDefault(new FlushJobDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.flush_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// public FlushJobResponse FlushJob(IFlushJobRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.flush_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html /// public Task FlushJobAsync(IFlushJobRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -327,25 +327,25 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// POST request to the ml.get_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// public GetBucketsResponse GetBuckets(Id jobId, Func selector = null) => GetBuckets(selector.InvokeOrDefault(new GetBucketsDescriptor(jobId: jobId))); /// /// POST request to the ml.get_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// public Task GetBucketsAsync(Id jobId, Func selector = null, CancellationToken ct = default) => GetBucketsAsync(selector.InvokeOrDefault(new GetBucketsDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.get_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// public GetBucketsResponse GetBuckets(IGetBucketsRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.get_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html /// public Task GetBucketsAsync(IGetBucketsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -399,73 +399,73 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// POST request to the ml.get_categories API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// public GetCategoriesResponse GetCategories(Id jobId, Func selector = null) => GetCategories(selector.InvokeOrDefault(new GetCategoriesDescriptor(jobId: jobId))); /// /// POST request to the ml.get_categories API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// public Task GetCategoriesAsync(Id jobId, Func selector = null, CancellationToken ct = default) => GetCategoriesAsync(selector.InvokeOrDefault(new GetCategoriesDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.get_categories API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// public GetCategoriesResponse GetCategories(IGetCategoriesRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.get_categories API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html /// public Task GetCategoriesAsync(IGetCategoriesRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the ml.get_datafeed_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// public GetDatafeedStatsResponse GetDatafeedStats(Func selector = null) => GetDatafeedStats(selector.InvokeOrDefault(new GetDatafeedStatsDescriptor())); /// /// GET request to the ml.get_datafeed_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// public Task GetDatafeedStatsAsync(Func selector = null, CancellationToken ct = default) => GetDatafeedStatsAsync(selector.InvokeOrDefault(new GetDatafeedStatsDescriptor()), ct); /// /// GET request to the ml.get_datafeed_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// public GetDatafeedStatsResponse GetDatafeedStats(IGetDatafeedStatsRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the ml.get_datafeed_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html /// public Task GetDatafeedStatsAsync(IGetDatafeedStatsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the ml.get_datafeeds API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// public GetDatafeedsResponse GetDatafeeds(Func selector = null) => GetDatafeeds(selector.InvokeOrDefault(new GetDatafeedsDescriptor())); /// /// GET request to the ml.get_datafeeds API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// public Task GetDatafeedsAsync(Func selector = null, CancellationToken ct = default) => GetDatafeedsAsync(selector.InvokeOrDefault(new GetDatafeedsDescriptor()), ct); /// /// GET request to the ml.get_datafeeds API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// public GetDatafeedsResponse GetDatafeeds(IGetDatafeedsRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the ml.get_datafeeds API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html /// public Task GetDatafeedsAsync(IGetDatafeedsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -495,145 +495,145 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// POST request to the ml.get_influencers API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// public GetInfluencersResponse GetInfluencers(Id jobId, Func selector = null) => GetInfluencers(selector.InvokeOrDefault(new GetInfluencersDescriptor(jobId: jobId))); /// /// POST request to the ml.get_influencers API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// public Task GetInfluencersAsync(Id jobId, Func selector = null, CancellationToken ct = default) => GetInfluencersAsync(selector.InvokeOrDefault(new GetInfluencersDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.get_influencers API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// public GetInfluencersResponse GetInfluencers(IGetInfluencersRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.get_influencers API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html /// public Task GetInfluencersAsync(IGetInfluencersRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the ml.get_job_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// public GetJobStatsResponse GetJobStats(Func selector = null) => GetJobStats(selector.InvokeOrDefault(new GetJobStatsDescriptor())); /// /// GET request to the ml.get_job_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// public Task GetJobStatsAsync(Func selector = null, CancellationToken ct = default) => GetJobStatsAsync(selector.InvokeOrDefault(new GetJobStatsDescriptor()), ct); /// /// GET request to the ml.get_job_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// public GetJobStatsResponse GetJobStats(IGetJobStatsRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the ml.get_job_stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html /// public Task GetJobStatsAsync(IGetJobStatsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the ml.get_jobs API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// public GetJobsResponse GetJobs(Func selector = null) => GetJobs(selector.InvokeOrDefault(new GetJobsDescriptor())); /// /// GET request to the ml.get_jobs API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// public Task GetJobsAsync(Func selector = null, CancellationToken ct = default) => GetJobsAsync(selector.InvokeOrDefault(new GetJobsDescriptor()), ct); /// /// GET request to the ml.get_jobs API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// public GetJobsResponse GetJobs(IGetJobsRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the ml.get_jobs API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html /// public Task GetJobsAsync(IGetJobsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.get_model_snapshots API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// public GetModelSnapshotsResponse GetModelSnapshots(Id jobId, Func selector = null) => GetModelSnapshots(selector.InvokeOrDefault(new GetModelSnapshotsDescriptor(jobId: jobId))); /// /// POST request to the ml.get_model_snapshots API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// public Task GetModelSnapshotsAsync(Id jobId, Func selector = null, CancellationToken ct = default) => GetModelSnapshotsAsync(selector.InvokeOrDefault(new GetModelSnapshotsDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.get_model_snapshots API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// public GetModelSnapshotsResponse GetModelSnapshots(IGetModelSnapshotsRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.get_model_snapshots API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html /// public Task GetModelSnapshotsAsync(IGetModelSnapshotsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.get_overall_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html /// public GetOverallBucketsResponse GetOverallBuckets(Id jobId, Func selector = null) => GetOverallBuckets(selector.InvokeOrDefault(new GetOverallBucketsDescriptor(jobId: jobId))); /// /// POST request to the ml.get_overall_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html /// public Task GetOverallBucketsAsync(Id jobId, Func selector = null, CancellationToken ct = default) => GetOverallBucketsAsync(selector.InvokeOrDefault(new GetOverallBucketsDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.get_overall_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html /// public GetOverallBucketsResponse GetOverallBuckets(IGetOverallBucketsRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.get_overall_buckets API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html /// public Task GetOverallBucketsAsync(IGetOverallBucketsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.get_records API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// public GetAnomalyRecordsResponse GetAnomalyRecords(Id jobId, Func selector = null) => GetAnomalyRecords(selector.InvokeOrDefault(new GetAnomalyRecordsDescriptor(jobId: jobId))); /// /// POST request to the ml.get_records API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// public Task GetAnomalyRecordsAsync(Id jobId, Func selector = null, CancellationToken ct = default) => GetAnomalyRecordsAsync(selector.InvokeOrDefault(new GetAnomalyRecordsDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.get_records API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// public GetAnomalyRecordsResponse GetAnomalyRecords(IGetAnomalyRecordsRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.get_records API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html /// public Task GetAnomalyRecordsAsync(IGetAnomalyRecordsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -663,25 +663,25 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// POST request to the ml.open_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// public OpenJobResponse OpenJob(Id jobId, Func selector = null) => OpenJob(selector.InvokeOrDefault(new OpenJobDescriptor(jobId: jobId))); /// /// POST request to the ml.open_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// public Task OpenJobAsync(Id jobId, Func selector = null, CancellationToken ct = default) => OpenJobAsync(selector.InvokeOrDefault(new OpenJobDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.open_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// public OpenJobResponse OpenJob(IOpenJobRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.open_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html /// public Task OpenJobAsync(IOpenJobRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -711,52 +711,52 @@ internal MachineLearningNamespace(ElasticClient client): base(client) /// /// POST request to the ml.post_data API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// public PostJobDataResponse PostJobData(Id jobId, Func selector) => PostJobData(selector.InvokeOrDefault(new PostJobDataDescriptor(jobId: jobId))); /// /// POST request to the ml.post_data API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// public Task PostJobDataAsync(Id jobId, Func selector, CancellationToken ct = default) => PostJobDataAsync(selector.InvokeOrDefault(new PostJobDataDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.post_data API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// public PostJobDataResponse PostJobData(IPostJobDataRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.post_data API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html /// public Task PostJobDataAsync(IPostJobDataRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the ml.preview_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// public PreviewDatafeedResponse PreviewDatafeed(Id datafeedId, Func selector = null) where TDocument : class => PreviewDatafeed(selector.InvokeOrDefault(new PreviewDatafeedDescriptor(datafeedId: datafeedId))); /// /// GET request to the ml.preview_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// public Task> PreviewDatafeedAsync(Id datafeedId, Func selector = null, CancellationToken ct = default) where TDocument : class => PreviewDatafeedAsync(selector.InvokeOrDefault(new PreviewDatafeedDescriptor(datafeedId: datafeedId)), ct); /// /// GET request to the ml.preview_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// public PreviewDatafeedResponse PreviewDatafeed(IPreviewDatafeedRequest request) where TDocument : class => DoRequest>(request, ResponseBuilder(request.RequestParameters, PreviewDatafeedResponseBuilder.Instance)); /// /// GET request to the ml.preview_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html /// public Task> PreviewDatafeedAsync(IPreviewDatafeedRequest request, CancellationToken ct = default) where TDocument : class => DoRequestAsync>(request, ResponseBuilder(request.RequestParameters, PreviewDatafeedResponseBuilder.Instance), ct); @@ -811,27 +811,27 @@ public Task> PreviewDatafeedAsync( /// /// PUT request to the ml.put_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// public PutDatafeedResponse PutDatafeed(Id datafeedId, Func, IPutDatafeedRequest> selector) where TDocument : class => PutDatafeed(selector.InvokeOrDefault(new PutDatafeedDescriptor(datafeedId: datafeedId))); /// /// PUT request to the ml.put_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// public Task PutDatafeedAsync(Id datafeedId, Func, IPutDatafeedRequest> selector, CancellationToken ct = default) where TDocument : class => PutDatafeedAsync(selector.InvokeOrDefault(new PutDatafeedDescriptor(datafeedId: datafeedId)), ct); /// /// PUT request to the ml.put_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// public PutDatafeedResponse PutDatafeed(IPutDatafeedRequest request) => DoRequest(request, request.RequestParameters); /// /// PUT request to the ml.put_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html /// public Task PutDatafeedAsync(IPutDatafeedRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -861,125 +861,125 @@ public Task PutDatafeedAsync(Id datafeedId, Func /// /// PUT request to the ml.put_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// public PutJobResponse PutJob(Id jobId, Func, IPutJobRequest> selector) where TDocument : class => PutJob(selector.InvokeOrDefault(new PutJobDescriptor(jobId: jobId))); /// /// PUT request to the ml.put_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// public Task PutJobAsync(Id jobId, Func, IPutJobRequest> selector, CancellationToken ct = default) where TDocument : class => PutJobAsync(selector.InvokeOrDefault(new PutJobDescriptor(jobId: jobId)), ct); /// /// PUT request to the ml.put_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// public PutJobResponse PutJob(IPutJobRequest request) => DoRequest(request, request.RequestParameters); /// /// PUT request to the ml.put_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html /// public Task PutJobAsync(IPutJobRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.revert_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// public RevertModelSnapshotResponse RevertModelSnapshot(Id jobId, Id snapshotId, Func selector = null) => RevertModelSnapshot(selector.InvokeOrDefault(new RevertModelSnapshotDescriptor(jobId: jobId, snapshotId: snapshotId))); /// /// POST request to the ml.revert_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// public Task RevertModelSnapshotAsync(Id jobId, Id snapshotId, Func selector = null, CancellationToken ct = default) => RevertModelSnapshotAsync(selector.InvokeOrDefault(new RevertModelSnapshotDescriptor(jobId: jobId, snapshotId: snapshotId)), ct); /// /// POST request to the ml.revert_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// public RevertModelSnapshotResponse RevertModelSnapshot(IRevertModelSnapshotRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.revert_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html /// public Task RevertModelSnapshotAsync(IRevertModelSnapshotRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.start_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// public StartDatafeedResponse StartDatafeed(Id datafeedId, Func selector = null) => StartDatafeed(selector.InvokeOrDefault(new StartDatafeedDescriptor(datafeedId: datafeedId))); /// /// POST request to the ml.start_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// public Task StartDatafeedAsync(Id datafeedId, Func selector = null, CancellationToken ct = default) => StartDatafeedAsync(selector.InvokeOrDefault(new StartDatafeedDescriptor(datafeedId: datafeedId)), ct); /// /// POST request to the ml.start_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// public StartDatafeedResponse StartDatafeed(IStartDatafeedRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.start_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html /// public Task StartDatafeedAsync(IStartDatafeedRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.stop_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// public StopDatafeedResponse StopDatafeed(Id datafeedId, Func selector = null) => StopDatafeed(selector.InvokeOrDefault(new StopDatafeedDescriptor(datafeedId: datafeedId))); /// /// POST request to the ml.stop_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// public Task StopDatafeedAsync(Id datafeedId, Func selector = null, CancellationToken ct = default) => StopDatafeedAsync(selector.InvokeOrDefault(new StopDatafeedDescriptor(datafeedId: datafeedId)), ct); /// /// POST request to the ml.stop_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// public StopDatafeedResponse StopDatafeed(IStopDatafeedRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.stop_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html /// public Task StopDatafeedAsync(IStopDatafeedRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.update_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// public UpdateDatafeedResponse UpdateDatafeed(Id datafeedId, Func, IUpdateDatafeedRequest> selector) where TDocument : class => UpdateDatafeed(selector.InvokeOrDefault(new UpdateDatafeedDescriptor(datafeedId: datafeedId))); /// /// POST request to the ml.update_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// public Task UpdateDatafeedAsync(Id datafeedId, Func, IUpdateDatafeedRequest> selector, CancellationToken ct = default) where TDocument : class => UpdateDatafeedAsync(selector.InvokeOrDefault(new UpdateDatafeedDescriptor(datafeedId: datafeedId)), ct); /// /// POST request to the ml.update_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// public UpdateDatafeedResponse UpdateDatafeed(IUpdateDatafeedRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.update_datafeed API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html /// public Task UpdateDatafeedAsync(IUpdateDatafeedRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -1009,51 +1009,51 @@ public Task UpdateDatafeedAsync(Id datafeedId /// /// POST request to the ml.update_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// public UpdateJobResponse UpdateJob(Id jobId, Func, IUpdateJobRequest> selector) where TDocument : class => UpdateJob(selector.InvokeOrDefault(new UpdateJobDescriptor(jobId: jobId))); /// /// POST request to the ml.update_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// public Task UpdateJobAsync(Id jobId, Func, IUpdateJobRequest> selector, CancellationToken ct = default) where TDocument : class => UpdateJobAsync(selector.InvokeOrDefault(new UpdateJobDescriptor(jobId: jobId)), ct); /// /// POST request to the ml.update_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// public UpdateJobResponse UpdateJob(IUpdateJobRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.update_job API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html /// public Task UpdateJobAsync(IUpdateJobRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the ml.update_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// public UpdateModelSnapshotResponse UpdateModelSnapshot(Id jobId, Id snapshotId, Func selector) => UpdateModelSnapshot(selector.InvokeOrDefault(new UpdateModelSnapshotDescriptor(jobId: jobId, snapshotId: snapshotId))); /// /// POST request to the ml.update_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// public Task UpdateModelSnapshotAsync(Id jobId, Id snapshotId, Func selector, CancellationToken ct = default) => UpdateModelSnapshotAsync(selector.InvokeOrDefault(new UpdateModelSnapshotDescriptor(jobId: jobId, snapshotId: snapshotId)), ct); /// /// POST request to the ml.update_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// public UpdateModelSnapshotResponse UpdateModelSnapshot(IUpdateModelSnapshotRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the ml.update_model_snapshot API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html /// public Task UpdateModelSnapshotAsync(IUpdateModelSnapshotRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// diff --git a/src/Nest/ElasticClient.Migration.cs b/src/Nest/ElasticClient.Migration.cs index a65d44df6c0..2240abd0e67 100644 --- a/src/Nest/ElasticClient.Migration.cs +++ b/src/Nest/ElasticClient.Migration.cs @@ -39,25 +39,25 @@ internal MigrationNamespace(ElasticClient client): base(client) /// /// GET request to the migration.deprecations API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html /// public DeprecationInfoResponse DeprecationInfo(Func selector = null) => DeprecationInfo(selector.InvokeOrDefault(new DeprecationInfoDescriptor())); /// /// GET request to the migration.deprecations API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html /// public Task DeprecationInfoAsync(Func selector = null, CancellationToken ct = default) => DeprecationInfoAsync(selector.InvokeOrDefault(new DeprecationInfoDescriptor()), ct); /// /// GET request to the migration.deprecations API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html /// public DeprecationInfoResponse DeprecationInfo(IDeprecationInfoRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the migration.deprecations API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html /// public Task DeprecationInfoAsync(IDeprecationInfoRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); } diff --git a/src/Nest/ElasticClient.SnapshotLifecycleManagement.cs b/src/Nest/ElasticClient.SnapshotLifecycleManagement.cs index 0b0279b8892..4ffff26d615 100644 --- a/src/Nest/ElasticClient.SnapshotLifecycleManagement.cs +++ b/src/Nest/ElasticClient.SnapshotLifecycleManagement.cs @@ -39,49 +39,49 @@ internal SnapshotLifecycleManagementNamespace(ElasticClient client): base(client /// /// DELETE request to the slm.delete_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html /// public DeleteSnapshotLifecycleResponse DeleteSnapshotLifecycle(Id policyId, Func selector = null) => DeleteSnapshotLifecycle(selector.InvokeOrDefault(new DeleteSnapshotLifecycleDescriptor(policyId: policyId))); /// /// DELETE request to the slm.delete_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html /// public Task DeleteSnapshotLifecycleAsync(Id policyId, Func selector = null, CancellationToken ct = default) => DeleteSnapshotLifecycleAsync(selector.InvokeOrDefault(new DeleteSnapshotLifecycleDescriptor(policyId: policyId)), ct); /// /// DELETE request to the slm.delete_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html /// public DeleteSnapshotLifecycleResponse DeleteSnapshotLifecycle(IDeleteSnapshotLifecycleRequest request) => DoRequest(request, request.RequestParameters); /// /// DELETE request to the slm.delete_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html /// public Task DeleteSnapshotLifecycleAsync(IDeleteSnapshotLifecycleRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the slm.execute_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html /// public ExecuteSnapshotLifecycleResponse ExecuteSnapshotLifecycle(Id policyId, Func selector = null) => ExecuteSnapshotLifecycle(selector.InvokeOrDefault(new ExecuteSnapshotLifecycleDescriptor(policyId: policyId))); /// /// POST request to the slm.execute_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html /// public Task ExecuteSnapshotLifecycleAsync(Id policyId, Func selector = null, CancellationToken ct = default) => ExecuteSnapshotLifecycleAsync(selector.InvokeOrDefault(new ExecuteSnapshotLifecycleDescriptor(policyId: policyId)), ct); /// /// POST request to the slm.execute_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html /// public ExecuteSnapshotLifecycleResponse ExecuteSnapshotLifecycle(IExecuteSnapshotLifecycleRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the slm.execute_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html /// public Task ExecuteSnapshotLifecycleAsync(IExecuteSnapshotLifecycleRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -111,145 +111,145 @@ internal SnapshotLifecycleManagementNamespace(ElasticClient client): base(client /// /// GET request to the slm.get_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html /// public GetSnapshotLifecycleResponse GetSnapshotLifecycle(Func selector = null) => GetSnapshotLifecycle(selector.InvokeOrDefault(new GetSnapshotLifecycleDescriptor())); /// /// GET request to the slm.get_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html /// public Task GetSnapshotLifecycleAsync(Func selector = null, CancellationToken ct = default) => GetSnapshotLifecycleAsync(selector.InvokeOrDefault(new GetSnapshotLifecycleDescriptor()), ct); /// /// GET request to the slm.get_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html /// public GetSnapshotLifecycleResponse GetSnapshotLifecycle(IGetSnapshotLifecycleRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the slm.get_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html /// public Task GetSnapshotLifecycleAsync(IGetSnapshotLifecycleRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the slm.get_stats API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-get-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html /// public GetSnapshotLifecycleStatsResponse GetSnapshotLifecycleStats(Func selector = null) => GetSnapshotLifecycleStats(selector.InvokeOrDefault(new GetSnapshotLifecycleStatsDescriptor())); /// /// GET request to the slm.get_stats API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-get-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html /// public Task GetSnapshotLifecycleStatsAsync(Func selector = null, CancellationToken ct = default) => GetSnapshotLifecycleStatsAsync(selector.InvokeOrDefault(new GetSnapshotLifecycleStatsDescriptor()), ct); /// /// GET request to the slm.get_stats API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-get-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html /// public GetSnapshotLifecycleStatsResponse GetSnapshotLifecycleStats(IGetSnapshotLifecycleStatsRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the slm.get_stats API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-get-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html /// public Task GetSnapshotLifecycleStatsAsync(IGetSnapshotLifecycleStatsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the slm.get_status API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html /// public GetSnapshotLifecycleManagementStatusResponse GetStatus(Func selector = null) => GetStatus(selector.InvokeOrDefault(new GetSnapshotLifecycleManagementStatusDescriptor())); /// /// GET request to the slm.get_status API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html /// public Task GetStatusAsync(Func selector = null, CancellationToken ct = default) => GetStatusAsync(selector.InvokeOrDefault(new GetSnapshotLifecycleManagementStatusDescriptor()), ct); /// /// GET request to the slm.get_status API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html /// public GetSnapshotLifecycleManagementStatusResponse GetStatus(IGetSnapshotLifecycleManagementStatusRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the slm.get_status API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html /// public Task GetStatusAsync(IGetSnapshotLifecycleManagementStatusRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// PUT request to the slm.put_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html /// public PutSnapshotLifecycleResponse PutSnapshotLifecycle(Id policyId, Func selector = null) => PutSnapshotLifecycle(selector.InvokeOrDefault(new PutSnapshotLifecycleDescriptor(policyId: policyId))); /// /// PUT request to the slm.put_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html /// public Task PutSnapshotLifecycleAsync(Id policyId, Func selector = null, CancellationToken ct = default) => PutSnapshotLifecycleAsync(selector.InvokeOrDefault(new PutSnapshotLifecycleDescriptor(policyId: policyId)), ct); /// /// PUT request to the slm.put_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html /// public PutSnapshotLifecycleResponse PutSnapshotLifecycle(IPutSnapshotLifecycleRequest request) => DoRequest(request, request.RequestParameters); /// /// PUT request to the slm.put_lifecycle API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html /// public Task PutSnapshotLifecycleAsync(IPutSnapshotLifecycleRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the slm.start API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html /// public StartSnapshotLifecycleManagementResponse Start(Func selector = null) => Start(selector.InvokeOrDefault(new StartSnapshotLifecycleManagementDescriptor())); /// /// POST request to the slm.start API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html /// public Task StartAsync(Func selector = null, CancellationToken ct = default) => StartAsync(selector.InvokeOrDefault(new StartSnapshotLifecycleManagementDescriptor()), ct); /// /// POST request to the slm.start API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html /// public StartSnapshotLifecycleManagementResponse Start(IStartSnapshotLifecycleManagementRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the slm.start API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html /// public Task StartAsync(IStartSnapshotLifecycleManagementRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the slm.stop API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html /// public StopSnapshotLifecycleManagementResponse Stop(Func selector = null) => Stop(selector.InvokeOrDefault(new StopSnapshotLifecycleManagementDescriptor())); /// /// POST request to the slm.stop API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html /// public Task StopAsync(Func selector = null, CancellationToken ct = default) => StopAsync(selector.InvokeOrDefault(new StopSnapshotLifecycleManagementDescriptor()), ct); /// /// POST request to the slm.stop API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html /// public StopSnapshotLifecycleManagementResponse Stop(IStopSnapshotLifecycleManagementRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the slm.stop API, read more about this API online: /// - /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html /// public Task StopAsync(IStopSnapshotLifecycleManagementRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); } diff --git a/src/Nest/ElasticClient.Watcher.cs b/src/Nest/ElasticClient.Watcher.cs index 06e35ea9459..0ba60134d0e 100644 --- a/src/Nest/ElasticClient.Watcher.cs +++ b/src/Nest/ElasticClient.Watcher.cs @@ -39,25 +39,25 @@ internal WatcherNamespace(ElasticClient client): base(client) /// /// PUT request to the watcher.ack_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// public AcknowledgeWatchResponse Acknowledge(Id watchId, Func selector = null) => Acknowledge(selector.InvokeOrDefault(new AcknowledgeWatchDescriptor(watchId: watchId))); /// /// PUT request to the watcher.ack_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// public Task AcknowledgeAsync(Id watchId, Func selector = null, CancellationToken ct = default) => AcknowledgeAsync(selector.InvokeOrDefault(new AcknowledgeWatchDescriptor(watchId: watchId)), ct); /// /// PUT request to the watcher.ack_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// public AcknowledgeWatchResponse Acknowledge(IAcknowledgeWatchRequest request) => DoRequest(request, request.RequestParameters); /// /// PUT request to the watcher.ack_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html /// public Task AcknowledgeAsync(IAcknowledgeWatchRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// @@ -111,169 +111,169 @@ internal WatcherNamespace(ElasticClient client): base(client) /// /// DELETE request to the watcher.delete_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// public DeleteWatchResponse Delete(Id id, Func selector = null) => Delete(selector.InvokeOrDefault(new DeleteWatchDescriptor(id: id))); /// /// DELETE request to the watcher.delete_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// public Task DeleteAsync(Id id, Func selector = null, CancellationToken ct = default) => DeleteAsync(selector.InvokeOrDefault(new DeleteWatchDescriptor(id: id)), ct); /// /// DELETE request to the watcher.delete_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// public DeleteWatchResponse Delete(IDeleteWatchRequest request) => DoRequest(request, request.RequestParameters); /// /// DELETE request to the watcher.delete_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html /// public Task DeleteAsync(IDeleteWatchRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// PUT request to the watcher.execute_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// public ExecuteWatchResponse Execute(Func selector = null) => Execute(selector.InvokeOrDefault(new ExecuteWatchDescriptor())); /// /// PUT request to the watcher.execute_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// public Task ExecuteAsync(Func selector = null, CancellationToken ct = default) => ExecuteAsync(selector.InvokeOrDefault(new ExecuteWatchDescriptor()), ct); /// /// PUT request to the watcher.execute_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// public ExecuteWatchResponse Execute(IExecuteWatchRequest request) => DoRequest(request, request.RequestParameters); /// /// PUT request to the watcher.execute_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html /// public Task ExecuteAsync(IExecuteWatchRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the watcher.get_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// public GetWatchResponse Get(Id id, Func selector = null) => Get(selector.InvokeOrDefault(new GetWatchDescriptor(id: id))); /// /// GET request to the watcher.get_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// public Task GetAsync(Id id, Func selector = null, CancellationToken ct = default) => GetAsync(selector.InvokeOrDefault(new GetWatchDescriptor(id: id)), ct); /// /// GET request to the watcher.get_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// public GetWatchResponse Get(IGetWatchRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the watcher.get_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html /// public Task GetAsync(IGetWatchRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// PUT request to the watcher.put_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// public PutWatchResponse Put(Id id, Func selector = null) => Put(selector.InvokeOrDefault(new PutWatchDescriptor(id: id))); /// /// PUT request to the watcher.put_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// public Task PutAsync(Id id, Func selector = null, CancellationToken ct = default) => PutAsync(selector.InvokeOrDefault(new PutWatchDescriptor(id: id)), ct); /// /// PUT request to the watcher.put_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// public PutWatchResponse Put(IPutWatchRequest request) => DoRequest(request, request.RequestParameters); /// /// PUT request to the watcher.put_watch API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html /// public Task PutAsync(IPutWatchRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the watcher.start API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// public StartWatcherResponse Start(Func selector = null) => Start(selector.InvokeOrDefault(new StartWatcherDescriptor())); /// /// POST request to the watcher.start API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// public Task StartAsync(Func selector = null, CancellationToken ct = default) => StartAsync(selector.InvokeOrDefault(new StartWatcherDescriptor()), ct); /// /// POST request to the watcher.start API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// public StartWatcherResponse Start(IStartWatcherRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the watcher.start API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html /// public Task StartAsync(IStartWatcherRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the watcher.stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// public WatcherStatsResponse Stats(Func selector = null) => Stats(selector.InvokeOrDefault(new WatcherStatsDescriptor())); /// /// GET request to the watcher.stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// public Task StatsAsync(Func selector = null, CancellationToken ct = default) => StatsAsync(selector.InvokeOrDefault(new WatcherStatsDescriptor()), ct); /// /// GET request to the watcher.stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// public WatcherStatsResponse Stats(IWatcherStatsRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the watcher.stats API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html /// public Task StatsAsync(IWatcherStatsRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the watcher.stop API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// public StopWatcherResponse Stop(Func selector = null) => Stop(selector.InvokeOrDefault(new StopWatcherDescriptor())); /// /// POST request to the watcher.stop API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// public Task StopAsync(Func selector = null, CancellationToken ct = default) => StopAsync(selector.InvokeOrDefault(new StopWatcherDescriptor()), ct); /// /// POST request to the watcher.stop API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// public StopWatcherResponse Stop(IStopWatcherRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the watcher.stop API, read more about this API online: /// - /// http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html /// public Task StopAsync(IStopWatcherRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); } diff --git a/src/Nest/ElasticClient.XPack.cs b/src/Nest/ElasticClient.XPack.cs index 5638346de31..648ad0d971b 100644 --- a/src/Nest/ElasticClient.XPack.cs +++ b/src/Nest/ElasticClient.XPack.cs @@ -63,25 +63,25 @@ internal XPackNamespace(ElasticClient client): base(client) /// /// GET request to the xpack.usage API, read more about this API online: /// - /// Retrieve information about xpack features usage + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html /// public XPackUsageResponse Usage(Func selector = null) => Usage(selector.InvokeOrDefault(new XPackUsageDescriptor())); /// /// GET request to the xpack.usage API, read more about this API online: /// - /// Retrieve information about xpack features usage + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html /// public Task UsageAsync(Func selector = null, CancellationToken ct = default) => UsageAsync(selector.InvokeOrDefault(new XPackUsageDescriptor()), ct); /// /// GET request to the xpack.usage API, read more about this API online: /// - /// Retrieve information about xpack features usage + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html /// public XPackUsageResponse Usage(IXPackUsageRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the xpack.usage API, read more about this API online: /// - /// Retrieve information about xpack features usage + /// https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html /// public Task UsageAsync(IXPackUsageRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); } diff --git a/src/Nest/Requests.Cat.cs b/src/Nest/Requests.Cat.cs index ed074d7b251..46167577e88 100644 --- a/src/Nest/Requests.Cat.cs +++ b/src/Nest/Requests.Cat.cs @@ -776,7 +776,7 @@ public bool? Help set => Q("help", value); } - ///Return local information, do not retrieve the state from master node (default: false) + ///Calculate the selected nodes using the local cluster state rather than the state from master node (default: false) public bool? Local { get => Q("local"); diff --git a/src/Nest/Requests.CrossClusterReplication.cs b/src/Nest/Requests.CrossClusterReplication.cs index fdb2bcd2d77..40f61750658 100644 --- a/src/Nest/Requests.CrossClusterReplication.cs +++ b/src/Nest/Requests.CrossClusterReplication.cs @@ -182,7 +182,7 @@ IndexName Index } } - ///Request for ForgetFollowerIndex http://www.elastic.co/guide/en/elasticsearch/reference/current + ///Request for ForgetFollowerIndex https://www.elastic.co/guide/en/elasticsearch/reference/current public partial class ForgetFollowerIndexRequest : PlainRequestBase, IForgetFollowerIndexRequest { protected IForgetFollowerIndexRequest Self => this; @@ -426,7 +426,7 @@ IndexName Index } } - ///Request for UnfollowIndex http://www.elastic.co/guide/en/elasticsearch/reference/current + ///Request for UnfollowIndex https://www.elastic.co/guide/en/elasticsearch/reference/current public partial class UnfollowIndexRequest : PlainRequestBase, IUnfollowIndexRequest { protected IUnfollowIndexRequest Self => this; diff --git a/src/Nest/Requests.License.cs b/src/Nest/Requests.License.cs index 4d86ed7ad1f..8aaa8bc3ccc 100644 --- a/src/Nest/Requests.License.cs +++ b/src/Nest/Requests.License.cs @@ -57,6 +57,13 @@ public partial class GetLicenseRequest : PlainRequestBase ApiUrlsLookups.LicenseGet; // values part of the url path // Request parameters + ///If the active license is an enterprise license, return type as 'enterprise' (default: false) + public bool? AcceptEnterprise + { + get => Q("accept_enterprise"); + set => Q("accept_enterprise", value); + } + ///Return local information, do not retrieve the state from master node (default: false) public bool? Local { diff --git a/src/Nest/Requests.MachineLearning.cs b/src/Nest/Requests.MachineLearning.cs index 19599c01fe7..b1bc9ee015a 100644 --- a/src/Nest/Requests.MachineLearning.cs +++ b/src/Nest/Requests.MachineLearning.cs @@ -41,7 +41,7 @@ Id JobId } } - ///Request for CloseJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html + ///Request for CloseJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html public partial class CloseJobRequest : PlainRequestBase, ICloseJobRequest { protected ICloseJobRequest Self => this; @@ -211,7 +211,7 @@ Id DatafeedId } } - ///Request for DeleteDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html + ///Request for DeleteDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html public partial class DeleteDatafeedRequest : PlainRequestBase, IDeleteDatafeedRequest { protected IDeleteDatafeedRequest Self => this; @@ -303,7 +303,7 @@ Ids ForecastId } } - ///Request for DeleteForecast http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html + ///Request for DeleteForecast https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html public partial class DeleteForecastRequest : PlainRequestBase, IDeleteForecastRequest { protected IDeleteForecastRequest Self => this; @@ -352,7 +352,7 @@ Id JobId } } - ///Request for DeleteJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html + ///Request for DeleteJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html public partial class DeleteJobRequest : PlainRequestBase, IDeleteJobRequest { protected IDeleteJobRequest Self => this; @@ -404,7 +404,7 @@ Id SnapshotId } } - ///Request for DeleteModelSnapshot http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html + ///Request for DeleteModelSnapshot https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html public partial class DeleteModelSnapshotRequest : PlainRequestBase, IDeleteModelSnapshotRequest { protected IDeleteModelSnapshotRequest Self => this; @@ -440,7 +440,7 @@ Id JobId } } - ///Request for FlushJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html + ///Request for FlushJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html public partial class FlushJobRequest : PlainRequestBase, IFlushJobRequest { protected IFlushJobRequest Self => this; @@ -518,7 +518,7 @@ Timestamp Timestamp } } - ///Request for GetBuckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html + ///Request for GetBuckets https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html public partial class GetBucketsRequest : PlainRequestBase, IGetBucketsRequest { protected IGetBucketsRequest Self => this; @@ -651,7 +651,7 @@ LongId CategoryId } } - ///Request for GetCategories http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html + ///Request for GetCategories https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html public partial class GetCategoriesRequest : PlainRequestBase, IGetCategoriesRequest { protected IGetCategoriesRequest Self => this; @@ -693,7 +693,7 @@ Id DatafeedId } } - ///Request for GetDatafeedStats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + ///Request for GetDatafeedStats https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html public partial class GetDatafeedStatsRequest : PlainRequestBase, IGetDatafeedStatsRequest { protected IGetDatafeedStatsRequest Self => this; @@ -731,7 +731,7 @@ Id DatafeedId } } - ///Request for GetDatafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html + ///Request for GetDatafeeds https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html public partial class GetDatafeedsRequest : PlainRequestBase, IGetDatafeedsRequest { protected IGetDatafeedsRequest Self => this; @@ -814,7 +814,7 @@ Id JobId } } - ///Request for GetInfluencers http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html + ///Request for GetInfluencers https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html public partial class GetInfluencersRequest : PlainRequestBase, IGetInfluencersRequest { protected IGetInfluencersRequest Self => this; @@ -847,7 +847,7 @@ Id JobId } } - ///Request for GetJobStats http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + ///Request for GetJobStats https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html public partial class GetJobStatsRequest : PlainRequestBase, IGetJobStatsRequest { protected IGetJobStatsRequest Self => this; @@ -885,7 +885,7 @@ Id JobId } } - ///Request for GetJobs http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + ///Request for GetJobs https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html public partial class GetJobsRequest : PlainRequestBase, IGetJobsRequest { protected IGetJobsRequest Self => this; @@ -929,7 +929,7 @@ Id SnapshotId } } - ///Request for GetModelSnapshots http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html + ///Request for GetModelSnapshots https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html public partial class GetModelSnapshotsRequest : PlainRequestBase, IGetModelSnapshotsRequest { protected IGetModelSnapshotsRequest Self => this; @@ -971,7 +971,7 @@ Id JobId } } - ///Request for GetOverallBuckets http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html + ///Request for GetOverallBuckets https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html public partial class GetOverallBucketsRequest : PlainRequestBase, IGetOverallBucketsRequest { protected IGetOverallBucketsRequest Self => this; @@ -1004,7 +1004,7 @@ Id JobId } } - ///Request for GetAnomalyRecords http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html + ///Request for GetAnomalyRecords https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html public partial class GetAnomalyRecordsRequest : PlainRequestBase, IGetAnomalyRecordsRequest { protected IGetAnomalyRecordsRequest Self => this; @@ -1051,7 +1051,7 @@ Id JobId } } - ///Request for OpenJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html + ///Request for OpenJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html public partial class OpenJobRequest : PlainRequestBase, IOpenJobRequest { protected IOpenJobRequest Self => this; @@ -1117,7 +1117,7 @@ Id JobId } } - ///Request for PostJobData http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html + ///Request for PostJobData https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html public partial class PostJobDataRequest : PlainRequestBase, IPostJobDataRequest { protected IPostJobDataRequest Self => this; @@ -1163,7 +1163,7 @@ Id DatafeedId } } - ///Request for PreviewDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html + ///Request for PreviewDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html public partial class PreviewDatafeedRequest : PlainRequestBase, IPreviewDatafeedRequest { protected IPreviewDatafeedRequest Self => this; @@ -1271,7 +1271,7 @@ Id DatafeedId } } - ///Request for PutDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html + ///Request for PutDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html public partial class PutDatafeedRequest : PlainRequestBase, IPutDatafeedRequest { protected IPutDatafeedRequest Self => this; @@ -1337,7 +1337,7 @@ Id JobId } } - ///Request for PutJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html + ///Request for PutJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html public partial class PutJobRequest : PlainRequestBase, IPutJobRequest { protected IPutJobRequest Self => this; @@ -1376,7 +1376,7 @@ Id SnapshotId } } - ///Request for RevertModelSnapshot http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html + ///Request for RevertModelSnapshot https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html public partial class RevertModelSnapshotRequest : PlainRequestBase, IRevertModelSnapshotRequest { protected IRevertModelSnapshotRequest Self => this; @@ -1412,7 +1412,7 @@ Id DatafeedId } } - ///Request for StartDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html + ///Request for StartDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html public partial class StartDatafeedRequest : PlainRequestBase, IStartDatafeedRequest { protected IStartDatafeedRequest Self => this; @@ -1445,7 +1445,7 @@ Id DatafeedId } } - ///Request for StopDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html + ///Request for StopDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html public partial class StopDatafeedRequest : PlainRequestBase, IStopDatafeedRequest { protected IStopDatafeedRequest Self => this; @@ -1484,7 +1484,7 @@ Id DatafeedId } } - ///Request for UpdateDatafeed http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html + ///Request for UpdateDatafeed https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html public partial class UpdateDatafeedRequest : PlainRequestBase, IUpdateDatafeedRequest { protected IUpdateDatafeedRequest Self => this; @@ -1550,7 +1550,7 @@ Id JobId } } - ///Request for UpdateJob http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html + ///Request for UpdateJob https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html public partial class UpdateJobRequest : PlainRequestBase, IUpdateJobRequest { protected IUpdateJobRequest Self => this; @@ -1589,7 +1589,7 @@ Id SnapshotId } } - ///Request for UpdateModelSnapshot http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html + ///Request for UpdateModelSnapshot https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html public partial class UpdateModelSnapshotRequest : PlainRequestBase, IUpdateModelSnapshotRequest { protected IUpdateModelSnapshotRequest Self => this; diff --git a/src/Nest/Requests.Migration.cs b/src/Nest/Requests.Migration.cs index 5913fc50f18..0b22471403e 100644 --- a/src/Nest/Requests.Migration.cs +++ b/src/Nest/Requests.Migration.cs @@ -41,7 +41,7 @@ IndexName Index } } - ///Request for DeprecationInfo http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html + ///Request for DeprecationInfo https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html public partial class DeprecationInfoRequest : PlainRequestBase, IDeprecationInfoRequest { protected IDeprecationInfoRequest Self => this; diff --git a/src/Nest/Requests.NoNamespace.cs b/src/Nest/Requests.NoNamespace.cs index bfe2b2c78f4..9561fc186fb 100644 --- a/src/Nest/Requests.NoNamespace.cs +++ b/src/Nest/Requests.NoNamespace.cs @@ -68,7 +68,7 @@ public string Pipeline } /// - /// 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 + /// 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 Refresh? Refresh @@ -483,7 +483,7 @@ public long? IfSequenceNumber } /// - /// 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 + /// 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 Refresh? Refresh @@ -758,7 +758,7 @@ public long? Size set => Q("size", value); } - ///The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. + ///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"); @@ -2409,7 +2409,7 @@ public partial class ReindexOnServerRequest : PlainRequestBase ApiUrlsLookups.NoNamespaceReindexOnServer; // values part of the url path // Request parameters - ///Should the effected indexes be refreshed? + ///Should the affected indexes be refreshed? public bool? Refresh { get => Q("refresh"); @@ -3303,7 +3303,7 @@ public string Lang } /// - /// 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 + /// 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 Refresh? Refresh @@ -3488,7 +3488,7 @@ public string QueryOnQueryString set => Q("q", value); } - ///Should the effected indexes be refreshed? + ///Should the affected indexes be refreshed? public bool? Refresh { get => Q("refresh"); diff --git a/src/Nest/Requests.SnapshotLifecycleManagement.cs b/src/Nest/Requests.SnapshotLifecycleManagement.cs index c349401b218..63fb947fdc4 100644 --- a/src/Nest/Requests.SnapshotLifecycleManagement.cs +++ b/src/Nest/Requests.SnapshotLifecycleManagement.cs @@ -41,7 +41,7 @@ Id PolicyId } } - ///Request for DeleteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html + ///Request for DeleteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html public partial class DeleteSnapshotLifecycleRequest : PlainRequestBase, IDeleteSnapshotLifecycleRequest { protected IDeleteSnapshotLifecycleRequest Self => this; @@ -74,7 +74,7 @@ Id PolicyId } } - ///Request for ExecuteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html + ///Request for ExecuteSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html public partial class ExecuteSnapshotLifecycleRequest : PlainRequestBase, IExecuteSnapshotLifecycleRequest { protected IExecuteSnapshotLifecycleRequest Self => this; @@ -121,7 +121,7 @@ Ids PolicyId } } - ///Request for GetSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get.html + ///Request for GetSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html public partial class GetSnapshotLifecycleRequest : PlainRequestBase, IGetSnapshotLifecycleRequest { protected IGetSnapshotLifecycleRequest Self => this; @@ -148,7 +148,7 @@ public partial interface IGetSnapshotLifecycleStatsRequest : IRequestRequest for GetSnapshotLifecycleStats https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-get-stats.html + ///Request for GetSnapshotLifecycleStats https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html public partial class GetSnapshotLifecycleStatsRequest : PlainRequestBase, IGetSnapshotLifecycleStatsRequest { protected IGetSnapshotLifecycleStatsRequest Self => this; @@ -162,7 +162,7 @@ public partial interface IGetSnapshotLifecycleManagementStatusRequest : IRequest { } - ///Request for GetStatus https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html + ///Request for GetStatus https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html public partial class GetSnapshotLifecycleManagementStatusRequest : PlainRequestBase, IGetSnapshotLifecycleManagementStatusRequest { protected IGetSnapshotLifecycleManagementStatusRequest Self => this; @@ -181,7 +181,7 @@ Id PolicyId } } - ///Request for PutSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put.html + ///Request for PutSnapshotLifecycle https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html public partial class PutSnapshotLifecycleRequest : PlainRequestBase, IPutSnapshotLifecycleRequest { protected IPutSnapshotLifecycleRequest Self => this; @@ -209,7 +209,7 @@ public partial interface IStartSnapshotLifecycleManagementRequest : IRequestRequest for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html + ///Request for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html public partial class StartSnapshotLifecycleManagementRequest : PlainRequestBase, IStartSnapshotLifecycleManagementRequest { protected IStartSnapshotLifecycleManagementRequest Self => this; @@ -223,7 +223,7 @@ public partial interface IStopSnapshotLifecycleManagementRequest : IRequestRequest for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html + ///Request for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html public partial class StopSnapshotLifecycleManagementRequest : PlainRequestBase, IStopSnapshotLifecycleManagementRequest { protected IStopSnapshotLifecycleManagementRequest Self => this; diff --git a/src/Nest/Requests.Watcher.cs b/src/Nest/Requests.Watcher.cs index d81506752a5..17573005784 100644 --- a/src/Nest/Requests.Watcher.cs +++ b/src/Nest/Requests.Watcher.cs @@ -47,7 +47,7 @@ Ids ActionId } } - ///Request for Acknowledge http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + ///Request for Acknowledge https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html public partial class AcknowledgeWatchRequest : PlainRequestBase, IAcknowledgeWatchRequest { protected IAcknowledgeWatchRequest Self => this; @@ -155,7 +155,7 @@ Id Id } } - ///Request for Delete http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + ///Request for Delete https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html public partial class DeleteWatchRequest : PlainRequestBase, IDeleteWatchRequest { protected IDeleteWatchRequest Self => this; @@ -188,7 +188,7 @@ Id Id } } - ///Request for Execute http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + ///Request for Execute https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html public partial class ExecuteWatchRequest : PlainRequestBase, IExecuteWatchRequest { protected IExecuteWatchRequest Self => this; @@ -226,7 +226,7 @@ Id Id } } - ///Request for Get http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + ///Request for Get https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html public partial class GetWatchRequest : PlainRequestBase, IGetWatchRequest { protected IGetWatchRequest Self => this; @@ -259,7 +259,7 @@ Id Id } } - ///Request for Put http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + ///Request for Put https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html public partial class PutWatchRequest : PlainRequestBase, IPutWatchRequest { protected IPutWatchRequest Self => this; @@ -314,7 +314,7 @@ public partial interface IStartWatcherRequest : IRequestRequest for Start http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + ///Request for Start https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html public partial class StartWatcherRequest : PlainRequestBase, IStartWatcherRequest { protected IStartWatcherRequest Self => this; @@ -333,7 +333,7 @@ Metrics Metric } } - ///Request for Stats http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + ///Request for Stats https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html public partial class WatcherStatsRequest : PlainRequestBase, IWatcherStatsRequest { protected IWatcherStatsRequest Self => this; @@ -366,7 +366,7 @@ public partial interface IStopWatcherRequest : IRequestRequest for Stop http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + ///Request for Stop https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html public partial class StopWatcherRequest : PlainRequestBase, IStopWatcherRequest { protected IStopWatcherRequest Self => this; diff --git a/src/Nest/Requests.XPack.cs b/src/Nest/Requests.XPack.cs index 22982d8201a..8ca47ba4331 100644 --- a/src/Nest/Requests.XPack.cs +++ b/src/Nest/Requests.XPack.cs @@ -56,7 +56,7 @@ public partial interface IXPackUsageRequest : IRequestRequest for Usage Retrieve information about xpack features usage + ///Request for Usage https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html public partial class XPackUsageRequest : PlainRequestBase, IXPackUsageRequest { protected IXPackUsageRequest Self => this; diff --git a/src/Nest/Requests.cs b/src/Nest/Requests.cs index 53889d6a062..68b43e3d811 100644 --- a/src/Nest/Requests.cs +++ b/src/Nest/Requests.cs @@ -41,6 +41,7 @@ using Elasticsearch.Net.Specification.SnapshotLifecycleManagementApi; using Elasticsearch.Net.Specification.SqlApi; using Elasticsearch.Net.Specification.TasksApi; +using Elasticsearch.Net.Specification.TransformApi; using Elasticsearch.Net.Specification.WatcherApi; using Elasticsearch.Net.Specification.XPackApi; diff --git a/src/Nest/_Generated/ApiUrlsLookup.generated.cs b/src/Nest/_Generated/ApiUrlsLookup.generated.cs index 5851fb49c41..40d6e77ef16 100644 --- a/src/Nest/_Generated/ApiUrlsLookup.generated.cs +++ b/src/Nest/_Generated/ApiUrlsLookup.generated.cs @@ -79,6 +79,8 @@ internal static class ApiUrlsLookups internal static ApiUrls NoNamespaceFieldCapabilities = new ApiUrls(new[]{"_field_caps", "{index}/_field_caps"}); internal static ApiUrls NoNamespaceGet = new ApiUrls(new[]{"{index}/_doc/{id}"}); internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[]{"_scripts/{id}"}); + internal static ApiUrls NoNamespaceGetScriptContext = new ApiUrls(new[]{"_script_context"}); + internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[]{"_script_language"}); internal static ApiUrls NoNamespaceSource = new ApiUrls(new[]{"{index}/_source/{id}"}); internal static ApiUrls GraphExplore = new ApiUrls(new[]{"{index}/_graph/explore"}); internal static ApiUrls IndexLifecycleManagementDeleteLifecycle = new ApiUrls(new[]{"_ilm/policy/{policy_id}"}); @@ -149,18 +151,23 @@ internal static class ApiUrlsLookups internal static ApiUrls MachineLearningDeleteCalendar = new ApiUrls(new[]{"_ml/calendars/{calendar_id}"}); internal static ApiUrls MachineLearningDeleteCalendarEvent = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/events/{event_id}"}); internal static ApiUrls MachineLearningDeleteCalendarJob = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/jobs/{job_id}"}); + internal static ApiUrls MachineLearningDeleteDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}"}); internal static ApiUrls MachineLearningDeleteDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}"}); internal static ApiUrls MachineLearningDeleteExpiredData = new ApiUrls(new[]{"_ml/_delete_expired_data"}); internal static ApiUrls MachineLearningDeleteFilter = new ApiUrls(new[]{"_ml/filters/{filter_id}"}); internal static ApiUrls MachineLearningDeleteForecast = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}"}); internal static ApiUrls MachineLearningDeleteJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}"}); internal static ApiUrls MachineLearningDeleteModelSnapshot = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}"}); + internal static ApiUrls MachineLearningEvaluateDataFrame = new ApiUrls(new[]{"_ml/data_frame/_evaluate"}); + internal static ApiUrls MachineLearningFindFileStructure = new ApiUrls(new[]{"_ml/find_file_structure"}); internal static ApiUrls MachineLearningFlushJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_flush"}); internal static ApiUrls MachineLearningForecastJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_forecast"}); internal static ApiUrls MachineLearningGetBuckets = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", "_ml/anomaly_detectors/{job_id}/results/buckets"}); internal static ApiUrls MachineLearningGetCalendarEvents = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/events"}); internal static ApiUrls MachineLearningGetCalendars = new ApiUrls(new[]{"_ml/calendars", "_ml/calendars/{calendar_id}"}); internal static ApiUrls MachineLearningGetCategories = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/results/categories/{category_id}", "_ml/anomaly_detectors/{job_id}/results/categories/"}); + internal static ApiUrls MachineLearningGetDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}", "_ml/data_frame/analytics"}); + internal static ApiUrls MachineLearningGetDataFrameAnalyticsStats = new ApiUrls(new[]{"_ml/data_frame/analytics/_stats", "_ml/data_frame/analytics/{id}/_stats"}); internal static ApiUrls MachineLearningGetDatafeedStats = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_stats", "_ml/datafeeds/_stats"}); internal static ApiUrls MachineLearningGetDatafeeds = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}", "_ml/datafeeds"}); internal static ApiUrls MachineLearningGetFilters = new ApiUrls(new[]{"_ml/filters", "_ml/filters/{filter_id}"}); @@ -177,11 +184,15 @@ internal static class ApiUrlsLookups internal static ApiUrls MachineLearningPreviewDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_preview"}); internal static ApiUrls MachineLearningPutCalendar = new ApiUrls(new[]{"_ml/calendars/{calendar_id}"}); internal static ApiUrls MachineLearningPutCalendarJob = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/jobs/{job_id}"}); + internal static ApiUrls MachineLearningPutDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}"}); internal static ApiUrls MachineLearningPutDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}"}); internal static ApiUrls MachineLearningPutFilter = new ApiUrls(new[]{"_ml/filters/{filter_id}"}); internal static ApiUrls MachineLearningPutJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}"}); internal static ApiUrls MachineLearningRevertModelSnapshot = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert"}); + internal static ApiUrls MachineLearningSetUpgradeMode = new ApiUrls(new[]{"_ml/set_upgrade_mode"}); + internal static ApiUrls MachineLearningStartDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}/_start"}); internal static ApiUrls MachineLearningStartDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_start"}); + internal static ApiUrls MachineLearningStopDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}/_stop"}); internal static ApiUrls MachineLearningStopDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_stop"}); internal static ApiUrls MachineLearningUpdateDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_update"}); internal static ApiUrls MachineLearningUpdateFilter = new ApiUrls(new[]{"_ml/filters/{filter_id}/_update"}); @@ -227,6 +238,7 @@ internal static class ApiUrlsLookups internal static ApiUrls SecurityDisableUser = new ApiUrls(new[]{"_security/user/{username}/_disable"}); internal static ApiUrls SecurityEnableUser = new ApiUrls(new[]{"_security/user/{username}/_enable"}); internal static ApiUrls SecurityGetApiKey = new ApiUrls(new[]{"_security/api_key"}); + internal static ApiUrls SecurityGetBuiltinPrivileges = new ApiUrls(new[]{"_security/privilege/_builtin"}); internal static ApiUrls SecurityGetPrivileges = new ApiUrls(new[]{"_security/privilege", "_security/privilege/{application}", "_security/privilege/{application}/{name}"}); internal static ApiUrls SecurityGetRole = new ApiUrls(new[]{"_security/role/{name}", "_security/role"}); internal static ApiUrls SecurityGetRoleMapping = new ApiUrls(new[]{"_security/role_mapping/{name}", "_security/role_mapping"}); @@ -267,6 +279,14 @@ internal static class ApiUrlsLookups internal static ApiUrls TasksGetTask = new ApiUrls(new[]{"_tasks/{task_id}"}); internal static ApiUrls TasksList = new ApiUrls(new[]{"_tasks"}); internal static ApiUrls NoNamespaceTermVectors = new ApiUrls(new[]{"{index}/_termvectors/{id}", "{index}/_termvectors"}); + internal static ApiUrls TransformDelete = new ApiUrls(new[]{"_transform/{transform_id}"}); + internal static ApiUrls TransformGet = new ApiUrls(new[]{"_transform/{transform_id}", "_transform"}); + internal static ApiUrls TransformGetStats = new ApiUrls(new[]{"_transform/{transform_id}/_stats"}); + internal static ApiUrls TransformPreview = new ApiUrls(new[]{"_transform/_preview"}); + internal static ApiUrls TransformPut = new ApiUrls(new[]{"_transform/{transform_id}"}); + internal static ApiUrls TransformStart = new ApiUrls(new[]{"_transform/{transform_id}/_start"}); + internal static ApiUrls TransformStop = new ApiUrls(new[]{"_transform/{transform_id}/_stop"}); + internal static ApiUrls TransformUpdate = new ApiUrls(new[]{"_transform/{transform_id}/_update"}); internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[]{"{index}/_update/{id}"}); internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[]{"{index}/_update_by_query"}); internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[]{"_update_by_query/{task_id}/_rethrottle"});