From 45096385467510aded3097f96d747e460bb1e8a2 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Mon, 1 Oct 2018 15:32:37 +0200 Subject: [PATCH 1/2] cluster_uuid is now also returned at the root of the cluster_state response --- src/Nest/Cluster/ClusterState/ClusterStateResponse.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs b/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs index 1eb593da67d..da927c935f1 100644 --- a/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs +++ b/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs @@ -14,6 +14,10 @@ public interface IClusterStateResponse : IResponse [JsonProperty("state_uuid")] string StateUUID { get; } + /// NOTE: While the cluster is still forming, it is possible for the `cluster_uuid` to be `_na_`. + [JsonProperty("cluster_uuid")] + string ClusterUUID { get; } + [JsonProperty("version")] long Version { get; } @@ -42,6 +46,9 @@ public class ClusterStateResponse : ResponseBase, IClusterStateResponse public string StateUUID { get; internal set; } + /// + public string ClusterUUID { get; internal set; } + public long Version { get; internal set; } public IReadOnlyDictionary Nodes { get; internal set; } = EmptyReadOnly.Dictionary; From f0d1d1e48f2b3483ff92f81956c75aef2bddd65a Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Wed, 17 Oct 2018 15:43:26 +1000 Subject: [PATCH 2/2] Move comment to remarks --- src/Nest/Cluster/ClusterState/ClusterStateResponse.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs b/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs index da927c935f1..ea640c12623 100644 --- a/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs +++ b/src/Nest/Cluster/ClusterState/ClusterStateResponse.cs @@ -14,7 +14,8 @@ public interface IClusterStateResponse : IResponse [JsonProperty("state_uuid")] string StateUUID { get; } - /// NOTE: While the cluster is still forming, it is possible for the `cluster_uuid` to be `_na_`. + /// The Universally Unique Identifier for the cluster. + /// While the cluster is still forming, it is possible for the `cluster_uuid` to be `_na_`. [JsonProperty("cluster_uuid")] string ClusterUUID { get; }