diff --git a/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs b/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs index b9c8dc65733..b11d09cf4fe 100644 --- a/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs +++ b/src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs @@ -35,7 +35,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."}, - { "update_all_types", "Elasticsearch 6.x only allows a single type per index so this parameter is now useless"} + { "update_all_types", "Elasticsearch 6.x only allows a single type per index so this parameter is now useless"}, + { "copy_settings", "Elasticsearch 6.4 will throw an exception if this is turned off see elastic/elasticsearch#30404"} }; 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 3f86f39ccb6..f50f3e873b5 100644 --- a/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs @@ -1434,6 +1434,7 @@ public partial class ShrinkIndexRequestParameters : RequestParameters HttpMethod.PUT; ///whether or not to copy settings from the source index (defaults to false) + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.4 will throw an exception if this is turned off see elastic/elasticsearch#30404")] public bool? CopySettings { get => Q("copy_settings"); set => Q("copy_settings", value); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -1447,6 +1448,7 @@ public partial class SplitIndexRequestParameters : RequestParameters HttpMethod.PUT; ///whether or not to copy settings from the source index (defaults to false) + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.4 will throw an exception if this is turned off see elastic/elasticsearch#30404")] public bool? CopySettings { get => Q("copy_settings"); set => Q("copy_settings", value); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } diff --git a/src/Nest/_Generated/_Descriptors.generated.cs b/src/Nest/_Generated/_Descriptors.generated.cs index b91790e96be..34e39b3880d 100644 --- a/src/Nest/_Generated/_Descriptors.generated.cs +++ b/src/Nest/_Generated/_Descriptors.generated.cs @@ -2513,6 +2513,7 @@ public ShrinkIndexDescriptor(IndexName index, IndexName target) : base(r=>r.Requ // Request parameters ///whether or not to copy settings from the source index (defaults to false) + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.4 will throw an exception if this is turned off see elastic/elasticsearch#30404")] public ShrinkIndexDescriptor CopySettings(bool? copySettings = true) => Qs("copy_settings", copySettings); ///Explicit operation timeout public ShrinkIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); @@ -2541,6 +2542,7 @@ public SplitIndexDescriptor(IndexName index, IndexName target) : base(r=>r.Requi // Request parameters ///whether or not to copy settings from the source index (defaults to false) + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.4 will throw an exception if this is turned off see elastic/elasticsearch#30404")] public SplitIndexDescriptor CopySettings(bool? copySettings = true) => Qs("copy_settings", copySettings); ///Explicit operation timeout public SplitIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); diff --git a/src/Nest/_Generated/_Requests.generated.cs b/src/Nest/_Generated/_Requests.generated.cs index 76723a042f2..1ec33cedad1 100644 --- a/src/Nest/_Generated/_Requests.generated.cs +++ b/src/Nest/_Generated/_Requests.generated.cs @@ -4931,6 +4931,7 @@ public ShrinkIndexRequest(IndexName index, IndexName target) : base(r=>r.Require // Request parameters ///whether or not to copy settings from the source index (defaults to false) + [Obsolete("Scheduled to be removed in 7.0, Elasticsearch 6.4 will throw an exception if this is turned off see elastic/elasticsearch#30404")] public bool? CopySettings { get => Q("copy_settings"); set => Q("copy_settings", value); } ///Explicit operation timeout public Time Timeout { get => Q