|
3 | 3 |
|
4 | 4 | namespace Nest |
5 | 5 | { |
6 | | - public interface IClusterStateResponse : IResponse |
7 | | - { |
8 | | - string ClusterName { get; } |
9 | | - string MasterNode { get; } |
10 | | - Dictionary<string, NodeState> Nodes { get; } |
11 | | - MetadataState Metadata { get; } |
12 | | - RoutingTableState RoutingTable { get; } |
13 | | - RoutingNodesState RoutingNodes { get; } |
14 | | - BlockState Blocks { get; } |
15 | | - } |
| 6 | + public interface IClusterStateResponse : IResponse |
| 7 | + { |
| 8 | + string ClusterName { get; } |
| 9 | + string MasterNode { get; } |
| 10 | + Dictionary<string, NodeState> Nodes { get; } |
| 11 | + MetadataState Metadata { get; } |
| 12 | + RoutingTableState RoutingTable { get; } |
| 13 | + RoutingNodesState RoutingNodes { get; } |
| 14 | + BlockState Blocks { get; } |
| 15 | + } |
16 | 16 |
|
17 | | - [JsonObject] |
18 | | - public class ClusterStateResponse : BaseResponse, IClusterStateResponse |
19 | | - { |
20 | | - public ClusterStateResponse() |
21 | | - { |
22 | | - this.IsValid = true; |
23 | | - } |
24 | | - [JsonProperty("cluster_name")] |
25 | | - public string ClusterName { get; internal set; } |
26 | | - [JsonProperty("master_node")] |
27 | | - public string MasterNode { get; internal set; } |
| 17 | + [JsonObject] |
| 18 | + public class ClusterStateResponse : BaseResponse, IClusterStateResponse |
| 19 | + { |
| 20 | + public ClusterStateResponse() |
| 21 | + { |
| 22 | + this.IsValid = true; |
| 23 | + } |
| 24 | + [JsonProperty("cluster_name")] |
| 25 | + public string ClusterName { get; internal set; } |
| 26 | + [JsonProperty("master_node")] |
| 27 | + public string MasterNode { get; internal set; } |
28 | 28 |
|
29 | | - [JsonProperty("nodes")] |
| 29 | + [JsonProperty("nodes")] |
30 | 30 | [JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))] |
31 | 31 | public Dictionary<string, NodeState> Nodes { get; internal set; } |
32 | 32 |
|
33 | | - [JsonProperty("metadata")] |
34 | | - public MetadataState Metadata { get; internal set; } |
| 33 | + [JsonProperty("metadata")] |
| 34 | + public MetadataState Metadata { get; internal set; } |
35 | 35 |
|
36 | | - [JsonProperty("routing_table")] |
37 | | - public RoutingTableState RoutingTable { get; internal set; } |
38 | | - |
39 | | - [JsonProperty("routing_nodes")] |
40 | | - public RoutingNodesState RoutingNodes { get; internal set; } |
| 36 | + [JsonProperty("routing_table")] |
| 37 | + public RoutingTableState RoutingTable { get; internal set; } |
41 | 38 |
|
42 | | - [JsonProperty("blocks")] |
43 | | - public BlockState Blocks { get; internal set; } |
44 | | - } |
| 39 | + [JsonProperty("routing_nodes")] |
| 40 | + public RoutingNodesState RoutingNodes { get; internal set; } |
| 41 | + |
| 42 | + [JsonProperty("blocks")] |
| 43 | + public BlockState Blocks { get; internal set; } |
| 44 | + } |
45 | 45 | } |
0 commit comments