diff --git a/src/ApiGenerator/Domain/Specification/Documentation.cs b/src/ApiGenerator/Domain/Specification/Documentation.cs index c5aa43fc40b..208e79c86a0 100644 --- a/src/ApiGenerator/Domain/Specification/Documentation.cs +++ b/src/ApiGenerator/Domain/Specification/Documentation.cs @@ -8,7 +8,13 @@ namespace ApiGenerator.Domain.Specification public class Documentation { public string Description { get; set; } - public string Url { get; set; } + + private string _url; + public string Url + { + get => _url; + set => _url = value?.Replace("http://", "https://"); + } } public class DocumentationConverter : JsonConverter diff --git a/src/ApiGenerator/RestSpecification/Core/root.html b/src/ApiGenerator/RestSpecification/Core/root.html index 18af002f31d..65711f667ce 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,6 +409,11 @@

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

Conne + @@ -429,7 +435,7 @@

Conne -
+
+ +
@@ -596,10 +604,10 @@

- +
- - Fetching latest commit… + + Fetching latest commit…
Cannot retrieve the latest commit at this time. @@ -608,7 +616,7 @@

- Permalink + Permalink @@ -643,10 +651,23 @@

@@ -659,10 +680,15 @@

@@ -691,10 +717,59 @@

@@ -707,10 +782,11 @@

@@ -723,10 +799,11 @@

@@ -739,10 +816,11 @@

@@ -755,10 +833,59 @@

@@ -771,10 +898,25 @@

@@ -787,10 +929,59 @@

@@ -803,10 +994,59 @@

@@ -835,10 +1075,25 @@

@@ -851,10 +1106,59 @@

@@ -867,10 +1171,25 @@

@@ -883,10 +1202,59 @@

@@ -899,10 +1267,59 @@

@@ -915,10 +1332,25 @@

@@ -931,10 +1363,25 @@

@@ -947,10 +1394,25 @@

@@ -963,10 +1425,59 @@

@@ -979,10 +1490,59 @@

@@ -995,10 +1555,15 @@

@@ -1011,10 +1576,59 @@

@@ -1027,10 +1641,59 @@

@@ -1043,10 +1706,59 @@

- + @@ -1059,10 +1771,59 @@

@@ -1075,10 +1836,59 @@

@@ -1091,10 +1901,59 @@

@@ -1107,10 +1966,59 @@

@@ -1123,10 +2031,59 @@

@@ -1139,10 +2096,59 @@

@@ -1155,10 +2161,59 @@

@@ -1171,10 +2226,21 @@

@@ -1187,10 +2253,15 @@

@@ -1203,10 +2274,17 @@

@@ -1219,10 +2297,59 @@

@@ -1235,10 +2362,59 @@

@@ -1251,10 +2427,15 @@

@@ -1267,10 +2448,15 @@

@@ -1283,10 +2469,21 @@

@@ -1299,10 +2496,59 @@

@@ -1315,10 +2561,15 @@

@@ -1331,10 +2582,59 @@

@@ -1347,10 +2647,41 @@

@@ -1363,10 +2694,95 @@

- + @@ -1379,10 +2795,15 @@

@@ -1395,10 +2816,16 @@

@@ -1411,26 +2838,124 @@

- - - - + Update the schema for the REST API specification (#42346) + + + + + + @@ -1443,10 +2968,15 @@

@@ -1459,10 +2989,59 @@

@@ -1475,10 +3054,17 @@

@@ -1491,10 +3077,59 @@

@@ -1507,10 +3142,59 @@

@@ -1523,10 +3207,59 @@

@@ -1539,10 +3272,59 @@

@@ -1555,10 +3337,59 @@

@@ -1571,10 +3402,59 @@

@@ -1587,10 +3467,59 @@

@@ -1603,10 +3532,59 @@

@@ -1619,10 +3597,59 @@

@@ -1635,10 +3662,17 @@

@@ -1651,10 +3685,59 @@

@@ -1667,10 +3750,17 @@

@@ -1683,10 +3773,15 @@

@@ -1699,10 +3794,59 @@

@@ -1715,10 +3859,17 @@

@@ -1731,10 +3882,35 @@

@@ -1747,10 +3923,59 @@

@@ -1763,10 +3988,59 @@

@@ -1779,10 +4053,11 @@

@@ -1795,10 +4070,59 @@

@@ -1811,10 +4135,17 @@

@@ -1827,10 +4158,59 @@

@@ -1843,10 +4223,59 @@

@@ -1859,10 +4288,17 @@

@@ -1875,10 +4311,59 @@

@@ -1891,10 +4376,59 @@

@@ -1907,10 +4441,59 @@

@@ -1923,10 +4506,59 @@

@@ -1939,10 +4571,59 @@

@@ -1955,10 +4636,59 @@

@@ -1971,10 +4701,35 @@

@@ -1987,10 +4742,59 @@

@@ -2003,10 +4807,15 @@

@@ -2035,10 +4844,59 @@

@@ -2051,10 +4909,59 @@

@@ -2067,10 +4974,59 @@

@@ -2083,10 +5039,59 @@

@@ -2099,10 +5104,21 @@

@@ -2115,10 +5131,59 @@

@@ -2131,10 +5196,59 @@

@@ -2147,10 +5261,15 @@

@@ -2163,10 +5282,59 @@

@@ -2179,10 +5347,59 @@

@@ -2195,10 +5412,59 @@

@@ -2211,10 +5477,59 @@

@@ -2227,10 +5542,59 @@

@@ -2243,10 +5607,15 @@

@@ -2259,10 +5628,59 @@

@@ -2275,10 +5693,25 @@

@@ -2291,10 +5724,13 @@

@@ -2307,10 +5743,59 @@

@@ -2339,10 +5824,59 @@

@@ -2355,10 +5889,59 @@

@@ -2371,10 +5954,59 @@

@@ -2387,10 +6019,59 @@

@@ -2403,10 +6084,59 @@

@@ -2419,10 +6149,15 @@

@@ -2435,10 +6170,59 @@

@@ -2451,10 +6235,59 @@

@@ -2467,10 +6300,59 @@

@@ -2483,10 +6365,59 @@

@@ -2499,10 +6430,59 @@

@@ -2515,10 +6495,59 @@

@@ -2531,10 +6560,59 @@

@@ -2547,10 +6625,59 @@

@@ -2563,10 +6690,59 @@

@@ -2579,10 +6755,59 @@

@@ -2595,10 +6820,59 @@

@@ -2611,10 +6885,59 @@

@@ -2627,10 +6950,15 @@

@@ -2643,10 +6971,15 @@

@@ -2659,10 +6992,13 @@

@@ -2675,10 +7011,59 @@

@@ -2744,9 +7129,9 @@

- + - + @@ -2773,9 +7158,6 @@

- - -
diff --git a/src/ApiGenerator/RestSpecification/XPack/cat.ml_data_frame_analytics.json b/src/ApiGenerator/RestSpecification/XPack/cat.ml_data_frame_analytics.json new file mode 100644 index 00000000000..f8e3f4c46ea --- /dev/null +++ b/src/ApiGenerator/RestSpecification/XPack/cat.ml_data_frame_analytics.json @@ -0,0 +1,89 @@ +{ + "cat.ml_data_frame_analytics":{ + "documentation":{ + "url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html" + }, + "stability":"stable", + "url":{ + "paths":[ + { + "path":"/_cat/ml/data_frame/analytics", + "methods":[ + "GET" + ] + }, + { + "path":"/_cat/ml/data_frame/analytics/{id}", + "methods":[ + "GET" + ], + "parts":{ + "id":{ + "type":"string", + "description":"The ID of the data frame analytics to fetch" + } + } + } + ] + }, + "params":{ + "allow_no_match":{ + "type":"boolean", + "required":false, + "description":"Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs 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/root.html b/src/ApiGenerator/RestSpecification/XPack/root.html index 0d07728aae3..bdf2ba249ab 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,6 +409,11 @@

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

Conne + @@ -429,7 +435,7 @@

Conne -
+
+ +
@@ -596,10 +604,10 @@

- +
- - Fetching latest commit… + + Fetching latest commit…
Cannot retrieve the latest commit at this time. @@ -608,7 +616,7 @@

- Permalink + Permalink

+ update _common.json format (#46872) - + Sep 23, 2019
+ [DOCS] Fix typos in several REST API specs (#51197) - + Jan 22, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ [DOCS] Remove unsupported `local` and `master_timeout` parms from cat… - + Oct 14, 2019
+ [DOCS] Remove unsupported `local` and `master_timeout` parms from cat… - + Oct 14, 2019
+ [DOCS] Remove unsupported `local` and `master_timeout` parms from cat… - + Oct 14, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Time parameter includes description (#49368) - + Feb 6, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Time parameter includes description (#49368) - + Feb 6, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Time parameter includes description (#49368) - + Feb 6, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Time parameter includes description (#49368) - + Feb 6, 2020
+ Time parameter includes description (#49368) - + Feb 6, 2020
+ Time parameter includes description (#49368) - + Feb 6, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Fixes for API specification (#46522) - + Sep 16, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
- - - + Update the schema for the REST API specification (#42346) + + + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Use optype CREATE for single auto-id index requests (#47353) - + Oct 2, 2019
+ [DOCS] Fix typos in several REST API specs (#51197) - + Jan 22, 2020
+ Fix the type for "slices" in the Delete By Query REST API specificati… - + Feb 2, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove force from version_type enum in rest-spec (#49370) - + Nov 26, 2019
+ Remove force from version_type enum in rest-spec (#49370) - + Nov 26, 2019
+ Remove types from explain API (#46926) - + Sep 23, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove force from version_type enum in rest-spec (#49370) - + Nov 26, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Scripting: get context names REST API (#48026) - + Oct 16, 2019
- - - + Scripting: add available languages & contexts API (#49652) + + + Dec 4, 2019
+ Remove force from version_type enum in rest-spec (#49370) - + Nov 26, 2019
+ Remove type field from DocWriteRequest and associated Response objects ( - + Oct 11, 2019
- - - -
- - - + Aug 15, 2019 +
+ + + indices.clear_cache.json + Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Fixes for API specification (#46522) - + Sep 16, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove include_type_name from the REST API spec and docs. (#48828) - + Nov 12, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove include_type_name from the REST API spec and docs. (#48828) - + Nov 12, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove include_type_name from the REST API spec and docs. (#48828) - + Nov 12, 2019
+ Removes typed URLs from mapping APIs (#41676) - + Sep 23, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove include_type_name from the REST API spec and docs. (#48828) - + Nov 12, 2019
+ Deprecates _upgrade API (#47678) (#50484) - + Jan 17, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Slash miss in indices.put_mapping url - + Nov 21, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove include_type_name from the REST API spec and docs. (#48828) - + Nov 12, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove include_type_name from the REST API spec and docs. (#48828) - + Nov 12, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Deprecates _upgrade API (#47678) (#50484) - + Jan 17, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Fixes for API specification (#46522) - + Sep 16, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove types from Get/MultiGet (#46587) - + Sep 20, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove force from version_type enum in rest-spec (#49370) - + Nov 26, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Fixes for API specification (#46522) - + Sep 16, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Support `search_type` in Rank Evaluation API (#48542) - + Oct 29, 2019
+ Fix the type for "slices" in the Reindex and Update By Query REST API… - + Feb 5, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Fixes for API specification (#46522) - + Sep 16, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
+ Remove force from version_type enum in rest-spec (#49370) - + Nov 26, 2019
+ [DOCS] Fix typos in several REST API specs (#51197) - + Jan 22, 2020
+ Fix the type for "slices" in the Reindex and Update By Query REST API… - + Feb 5, 2020
+ Update the schema for the REST API specification (#42346) - + Aug 15, 2019
@@ -649,6 +657,22 @@

+

+ + + + +
+ + + + cat.ml_data_frame_analytics.json + + + + + +
@@ -3560,9 +3584,9 @@

- + - + @@ -3589,9 +3613,6 @@

- - -
diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs index ae087b88017..6c156d54e75 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cat.cs @@ -464,7 +464,66 @@ public bool? Verbose } } - ///Request options for MlDatafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + ///Request options for MlDataFrameAnalytics https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html + public class MlDataFrameAnalyticsRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; + public override bool SupportsBody => false; + ///Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified) + public bool? AllowNoMatch + { + get => Q("allow_no_match"); + set => Q("allow_no_match", 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 MlDatafeeds https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html public class MlDatafeedsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; @@ -516,7 +575,7 @@ public bool? Verbose } } - ///Request options for MlJobs http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + ///Request options for MlJobs https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html public class MlJobsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs index cb51d343184..b60d9b773d6 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs @@ -166,7 +166,7 @@ public class DeleteTrainedModelRequestParameters : RequestParameters false; } - ///Request options for EstimateMemoryUsage http://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html + ///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; @@ -180,7 +180,7 @@ public class EvaluateDataFrameRequestParameters : RequestParameters true; } - ///Request options for ExplainDataFrameAnalytics http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html + ///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; diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs index 8ac477ad24a..16b24548c12 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Cat.cs @@ -176,41 +176,61 @@ 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 http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + ///GET on /_cat/ml/data_frame/analytics https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html + ///Request specific configuration such as querystring parameters & request specific connection settings. + public TResponse MlDataFrameAnalytics(MlDataFrameAnalyticsRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_cat/ml/data_frame/analytics", null, RequestParams(requestParameters)); + ///GET on /_cat/ml/data_frame/analytics https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html + ///Request specific configuration such as querystring parameters & request specific connection settings. + [MapsApi("cat.ml_data_frame_analytics", "")] + public Task MlDataFrameAnalyticsAsync(MlDataFrameAnalyticsRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_cat/ml/data_frame/analytics", ctx, null, RequestParams(requestParameters)); + ///GET on /_cat/ml/data_frame/analytics/{id} https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html + ///The ID of the data frame analytics to fetch + ///Request specific configuration such as querystring parameters & request specific connection settings. + public TResponse MlDataFrameAnalytics(string id, MlDataFrameAnalyticsRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_cat/ml/data_frame/analytics/{id:id}"), null, RequestParams(requestParameters)); + ///GET on /_cat/ml/data_frame/analytics/{id} https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html + ///The ID of the data frame analytics to fetch + ///Request specific configuration such as querystring parameters & request specific connection settings. + [MapsApi("cat.ml_data_frame_analytics", "id")] + public Task MlDataFrameAnalyticsAsync(string id, MlDataFrameAnalyticsRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_cat/ml/data_frame/analytics/{id:id}"), 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 MlDatafeeds(MlDatafeedsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_cat/ml/datafeeds", null, RequestParams(requestParameters)); - ///GET on /_cat/ml/datafeeds http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + ///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.ml_datafeeds", "")] public Task MlDatafeedsAsync(MlDatafeedsRequestParameters 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} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + ///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 MlDatafeeds(string datafeedId, MlDatafeedsRequestParameters 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} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + ///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.ml_datafeeds", "datafeed_id")] public Task MlDatafeedsAsync(string datafeedId, MlDatafeedsRequestParameters 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 http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + ///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 MlJobs(MlJobsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_cat/ml/anomaly_detectors", null, RequestParams(requestParameters)); - ///GET on /_cat/ml/anomaly_detectors http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + ///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.ml_jobs", "")] public Task MlJobsAsync(MlJobsRequestParameters 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} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + ///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 MlJobs(string jobId, MlJobsRequestParameters 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} http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + ///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.ml_jobs", "job_id")] diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs index 896762937bf..7f95680eb3b 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.MachineLearning.cs @@ -187,13 +187,13 @@ public TResponse DeleteTrainedModel(string modelId, DeleteTrainedMode [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 http://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html + ///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 http://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html + ///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. @@ -213,27 +213,27 @@ 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 http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html + ///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 http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html + ///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 http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html + ///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 http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html + ///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.