From d0fc1c2a2290065006d398699e43f9639b53a6bc Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Tue, 4 Aug 2020 11:53:32 +1000 Subject: [PATCH] Add must_exist to alias remove Relates: elastic/elasticsearch#58100 --- .../Alias/Actions/AliasRemoveOperation.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Nest/Indices/AliasManagement/Alias/Actions/AliasRemoveOperation.cs b/src/Nest/Indices/AliasManagement/Alias/Actions/AliasRemoveOperation.cs index 9890613ffb3..d57e3cd06ff 100644 --- a/src/Nest/Indices/AliasManagement/Alias/Actions/AliasRemoveOperation.cs +++ b/src/Nest/Indices/AliasManagement/Alias/Actions/AliasRemoveOperation.cs @@ -24,17 +24,25 @@ public class AliasRemoveOperation public IEnumerable Aliases { get; set; } /// - /// The index to which to add the alias. + /// The index to which to remove the alias. /// Multiple indices can be specified with /// [DataMember(Name ="index")] public IndexName Index { get; set; } /// - /// The indices to which to add the alias + /// The indices to which to remove the alias /// [DataMember(Name = "indices")] [JsonFormatter(typeof(IndicesFormatter))] public Indices Indices { get; set; } + + /// + /// If true, the alias to remove must exist. Defaults to false. + /// + /// Valid in Elasticsearch 7.9.0+ + /// + [DataMember(Name = "must_exist")] + public bool? MustExist { get; set; } } }