From 23abe0ab7209214060c180f790fca0abcf4252c0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2020 12:14:36 +1000 Subject: [PATCH] Add must_exist to alias remove (#4914) (#4930) Relates: elastic/elasticsearch#58100 Co-authored-by: Russ Cam --- .../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; } } }