From f890877351b4b100ae2793da8c42a9c829d34905 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Mon, 13 Aug 2018 11:41:47 +0200 Subject: [PATCH] Fix #3315 obsolete the update_all_types querystring parameter --- src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs | 3 ++- .../Domain/RequestParameters/RequestParameters.Generated.cs | 2 ++ src/Nest/_Generated/_Descriptors.generated.cs | 2 ++ src/Nest/_Generated/_Requests.generated.cs | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs b/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs index 84dfd4ebc11..0e8296547b2 100644 --- a/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs +++ b/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs @@ -28,7 +28,8 @@ public class GlobalOverrides : EndpointOverridesBase public override IDictionary ObsoleteQueryStringParams { get; set; } = new Dictionary { - { "parent", "the parent parameter has been deprecated from elasticsearch, please use routing instead directly."} + { "parent", "the parent parameter has been deprecated from elasticsearch, please use routing instead directly."}, + { "update_all_types", "Elasticsearch 6.x only allows a single type per index so this parameter is now useless"} }; public override IEnumerable SkipQueryStringParams { get; } = new[] diff --git a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs index cde78595e10..e86adefa12b 100644 --- a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs @@ -1000,6 +1000,7 @@ public partial class CreateIndexRequestParameters : RequestParametersSpecify timeout for connection to master public TimeSpan MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public bool? UpdateAllTypes { get => Q("update_all_types"); set => Q("update_all_types", value); } } ///Request options for IndicesDelete
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html
@@ -1312,6 +1313,7 @@ public partial class PutMappingRequestParameters : RequestParametersWhether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public bool? UpdateAllTypes { get => Q("update_all_types"); set => Q("update_all_types", value); } } ///Request options for IndicesPutSettingsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html
diff --git a/src/Nest/_Generated/_Descriptors.generated.cs b/src/Nest/_Generated/_Descriptors.generated.cs index 509aa2e9ee0..b24794a85fd 100644 --- a/src/Nest/_Generated/_Descriptors.generated.cs +++ b/src/Nest/_Generated/_Descriptors.generated.cs @@ -1681,6 +1681,7 @@ public CreateIndexDescriptor(IndexName index) : base(r=>r.Required("index", inde ///Specify timeout for connection to master public CreateIndexDescriptor MasterTimeout(Time masterTimeout) => Qs("master_timeout", masterTimeout); ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public CreateIndexDescriptor UpdateAllTypes(bool? updateAllTypes = true) => Qs("update_all_types", updateAllTypes); } ///descriptor for IndicesDelete
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html
@@ -2291,6 +2292,7 @@ public PutMappingDescriptor(TypeName type) : base(r=>r.Required("type", type)){} ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public PutMappingDescriptor ExpandWildcards(ExpandWildcards? expandWildcards) => Qs("expand_wildcards", expandWildcards); ///Whether to update the mapping for all fields with the same name across all types or not + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.x only allows a single type per index so this parameter is now useless")] public PutMappingDescriptor UpdateAllTypes(bool? updateAllTypes = true) => Qs("update_all_types", updateAllTypes); } ///descriptor for IndicesPutSettingsForAll
http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html
diff --git a/src/Nest/_Generated/_Requests.generated.cs b/src/Nest/_Generated/_Requests.generated.cs index dd491cfdd77..52f79d0e033 100644 --- a/src/Nest/_Generated/_Requests.generated.cs +++ b/src/Nest/_Generated/_Requests.generated.cs @@ -1351,6 +1351,7 @@ public CreateIndexRequest(IndexName index) : base(r=>r.Required("index", index)) ///Specify timeout for connection to master public Time MasterTimeout { get => Q