Skip to content

Commit 260b4a5

Browse files
russcamgithub-actions[bot]
authored andcommitted
Add must_exist to alias remove (#4914)
Relates: elastic/elasticsearch#58100
1 parent 5ab0732 commit 260b4a5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/Nest/Indices/AliasManagement/Alias/Actions/AliasRemoveOperation.cs

+10-2
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,25 @@ public class AliasRemoveOperation
2424
public IEnumerable<string> Aliases { get; set; }
2525

2626
/// <summary>
27-
/// The index to which to add the alias.
27+
/// The index to which to remove the alias.
2828
/// Multiple indices can be specified with <see cref="Indices"/>
2929
/// </summary>
3030
[DataMember(Name ="index")]
3131
public IndexName Index { get; set; }
3232

3333
/// <summary>
34-
/// The indices to which to add the alias
34+
/// The indices to which to remove the alias
3535
/// </summary>
3636
[DataMember(Name = "indices")]
3737
[JsonFormatter(typeof(IndicesFormatter))]
3838
public Indices Indices { get; set; }
39+
40+
/// <summary>
41+
/// If <c>true</c>, the alias to remove must exist. Defaults to <c>false</c>.
42+
/// <para />
43+
/// Valid in Elasticsearch 7.9.0+
44+
/// </summary>
45+
[DataMember(Name = "must_exist")]
46+
public bool? MustExist { get; set; }
3947
}
4048
}

0 commit comments

Comments
 (0)