Skip to content

Commit

Permalink
Add must_exist to alias remove
Browse files Browse the repository at this point in the history
  • Loading branch information
russcam committed Aug 4, 2020
1 parent e1ef3cd commit d0fc1c2
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,25 @@ public class AliasRemoveOperation
public IEnumerable<string> Aliases { get; set; }

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

/// <summary>
/// The indices to which to add the alias
/// The indices to which to remove the alias
/// </summary>
[DataMember(Name = "indices")]
[JsonFormatter(typeof(IndicesFormatter))]
public Indices Indices { get; set; }

/// <summary>
/// If <c>true</c>, the alias to remove must exist. Defaults to <c>false</c>.
/// <para />
/// Valid in Elasticsearch 7.9.0+
/// </summary>
[DataMember(Name = "must_exist")]
public bool? MustExist { get; set; }
}
}

0 comments on commit d0fc1c2

Please sign in to comment.