|
5 | 5 |
|
6 | 6 | namespace Nest |
7 | 7 | { |
8 | | - public class SettingNames |
| 8 | + public class UpdatableSettings |
9 | 9 | { |
10 | 10 | public const string NumberOfReplicas = "index.number_of_replicas"; |
11 | 11 | public const string AutoExpandReplicas = "index.auto_expand_replicas"; |
@@ -46,109 +46,109 @@ public class SettingNames |
46 | 46 |
|
47 | 47 | public interface IUpdateSettingsRequest : IIndexOptionalPath<UpdateSettingsRequestParameters> |
48 | 48 | { |
49 | | - [JsonProperty(SettingNames.NumberOfReplicas)] |
| 49 | + [JsonProperty(UpdatableSettings.NumberOfReplicas)] |
50 | 50 | int? NumberOfReplicas { get; set; } |
51 | 51 |
|
52 | | - [JsonProperty(SettingNames.AutoExpandReplicas)] |
| 52 | + [JsonProperty(UpdatableSettings.AutoExpandReplicas)] |
53 | 53 | object AutoExpandReplicas { get; set; } |
54 | 54 |
|
55 | | - [JsonProperty(SettingNames.BlocksReadOnly)] |
| 55 | + [JsonProperty(UpdatableSettings.BlocksReadOnly)] |
56 | 56 | bool? BlocksReadOnly { get; set; } |
57 | 57 |
|
58 | | - [JsonProperty(SettingNames.BlocksRead)] |
| 58 | + [JsonProperty(UpdatableSettings.BlocksRead)] |
59 | 59 | bool? BlocksRead { get; set; } |
60 | 60 |
|
61 | | - [JsonProperty(SettingNames.BlocksWrite)] |
| 61 | + [JsonProperty(UpdatableSettings.BlocksWrite)] |
62 | 62 | bool? BlocksWrite { get; set; } |
63 | 63 |
|
64 | | - [JsonProperty(SettingNames.BlocksMetadata)] |
| 64 | + [JsonProperty(UpdatableSettings.BlocksMetadata)] |
65 | 65 | bool? BlocksMetadata { get; set; } |
66 | 66 |
|
67 | | - [JsonProperty(SettingNames.RefreshInterval)] |
| 67 | + [JsonProperty(UpdatableSettings.RefreshInterval)] |
68 | 68 | string RefreshInterval { get; set; } |
69 | 69 |
|
70 | | - [JsonProperty(SettingNames.IndexConcurrency)] |
| 70 | + [JsonProperty(UpdatableSettings.IndexConcurrency)] |
71 | 71 | int? IndexConcurrency { get; set; } |
72 | 72 |
|
73 | | - [JsonProperty(SettingNames.Codec)] |
| 73 | + [JsonProperty(UpdatableSettings.Codec)] |
74 | 74 | string Codec { get; set; } |
75 | 75 |
|
76 | | - [JsonProperty(SettingNames.CodecBloomLoad)] |
| 76 | + [JsonProperty(UpdatableSettings.CodecBloomLoad)] |
77 | 77 | bool? CodecBloomLoad { get; set; } |
78 | 78 |
|
79 | | - [JsonProperty(SettingNames.FailOnMergeFailure)] |
| 79 | + [JsonProperty(UpdatableSettings.FailOnMergeFailure)] |
80 | 80 | bool? FailOnMergeFailure { get; set; } |
81 | 81 |
|
82 | | - [JsonProperty(SettingNames.TranslogFlushTreshHoldOps)] |
| 82 | + [JsonProperty(UpdatableSettings.TranslogFlushTreshHoldOps)] |
83 | 83 | string TranslogFlushTreshHoldOps { get; set; } |
84 | 84 |
|
85 | | - [JsonProperty(SettingNames.TranslogFlushThresholdSize)] |
| 85 | + [JsonProperty(UpdatableSettings.TranslogFlushThresholdSize)] |
86 | 86 | string TranslogFlushThresholdSize { get; set; } |
87 | 87 |
|
88 | | - [JsonProperty(SettingNames.TranslogFlushThresholdPeriod)] |
| 88 | + [JsonProperty(UpdatableSettings.TranslogFlushThresholdPeriod)] |
89 | 89 | string TranslogFlushThresholdPeriod { get; set; } |
90 | 90 |
|
91 | | - [JsonProperty(SettingNames.TranslogDisableFlush)] |
| 91 | + [JsonProperty(UpdatableSettings.TranslogDisableFlush)] |
92 | 92 | bool? TranslogDisableFlush { get; set; } |
93 | 93 |
|
94 | | - [JsonProperty(SettingNames.CacheFilterMaxSize)] |
| 94 | + [JsonProperty(UpdatableSettings.CacheFilterMaxSize)] |
95 | 95 | string CacheFilterMaxSize { get; set; } |
96 | 96 |
|
97 | | - [JsonProperty(SettingNames.CacheFilterExpire)] |
| 97 | + [JsonProperty(UpdatableSettings.CacheFilterExpire)] |
98 | 98 | string CacheFilterExpire { get; set; } |
99 | 99 |
|
100 | | - [JsonProperty(SettingNames.CacheQueryEnable)] |
| 100 | + [JsonProperty(UpdatableSettings.CacheQueryEnable)] |
101 | 101 | bool? CacheQueryEnable { get; set; } |
102 | 102 |
|
103 | | - [JsonProperty(SettingNames.GatewaySnapshotInterval)] |
| 103 | + [JsonProperty(UpdatableSettings.GatewaySnapshotInterval)] |
104 | 104 | string GatewaySnapshotInterval { get; set; } |
105 | 105 |
|
106 | | - [JsonProperty(SettingNames.RoutingAllocationInclude)] |
| 106 | + [JsonProperty(UpdatableSettings.RoutingAllocationInclude)] |
107 | 107 | IDictionary<string, object> RoutingAllocationInclude { get; set; } |
108 | 108 |
|
109 | | - [JsonProperty(SettingNames.RoutingAllocationExclude)] |
| 109 | + [JsonProperty(UpdatableSettings.RoutingAllocationExclude)] |
110 | 110 | IDictionary<string, object> RoutingAllocationExclude { get; set; } |
111 | 111 |
|
112 | | - [JsonProperty(SettingNames.RoutingAllocationRequire)] |
| 112 | + [JsonProperty(UpdatableSettings.RoutingAllocationRequire)] |
113 | 113 | IDictionary<string, object> RoutingAllocationRequire { get; set; } |
114 | 114 |
|
115 | | - [JsonProperty(SettingNames.RoutingAllocationEnable)] |
| 115 | + [JsonProperty(UpdatableSettings.RoutingAllocationEnable)] |
116 | 116 | RoutingAllocationEnableOption? RoutingAllocationEnable { get; set; } |
117 | 117 |
|
118 | | - [JsonProperty(SettingNames.RoutingAllocationDisableAllication)] |
| 118 | + [JsonProperty(UpdatableSettings.RoutingAllocationDisableAllication)] |
119 | 119 | bool? RoutingAllocationDisableAllication { get; set; } |
120 | 120 |
|
121 | | - [JsonProperty(SettingNames.RoutingAllocationDisableNewAllocation)] |
| 121 | + [JsonProperty(UpdatableSettings.RoutingAllocationDisableNewAllocation)] |
122 | 122 | bool? RoutingAllocationDisableNewAllocation { get; set; } |
123 | 123 |
|
124 | | - [JsonProperty(SettingNames.RoutingAllocationDisableReplicaAllocation)] |
| 124 | + [JsonProperty(UpdatableSettings.RoutingAllocationDisableReplicaAllocation)] |
125 | 125 | bool? RoutingAllocationDisableReplicaAllocation { get; set; } |
126 | 126 |
|
127 | | - [JsonProperty(SettingNames.RoutingAllocationTotalShardsPerNode)] |
| 127 | + [JsonProperty(UpdatableSettings.RoutingAllocationTotalShardsPerNode)] |
128 | 128 | int? RoutingAllocationTotalShardsPerNode { get; set; } |
129 | 129 |
|
130 | | - [JsonProperty(SettingNames.RecoveryInitialShards)] |
| 130 | + [JsonProperty(UpdatableSettings.RecoveryInitialShards)] |
131 | 131 | string RecoveryInitialShards { get; set; } |
132 | 132 |
|
133 | | - [JsonProperty(SettingNames.GcDeletes)] |
| 133 | + [JsonProperty(UpdatableSettings.GcDeletes)] |
134 | 134 | bool? GcDeletes { get; set; } |
135 | 135 |
|
136 | | - [JsonProperty(SettingNames.TtlDisablePurge)] |
| 136 | + [JsonProperty(UpdatableSettings.TtlDisablePurge)] |
137 | 137 | bool? TtlDisablePurge { get; set; } |
138 | 138 |
|
139 | | - [JsonProperty(SettingNames.TranslogFsType)] |
| 139 | + [JsonProperty(UpdatableSettings.TranslogFsType)] |
140 | 140 | string TranslogFsType { get; set; } |
141 | 141 |
|
142 | | - [JsonProperty(SettingNames.CompoundFormat)] |
| 142 | + [JsonProperty(UpdatableSettings.CompoundFormat)] |
143 | 143 | bool? CompoundFormat { get; set; } |
144 | 144 |
|
145 | | - [JsonProperty(SettingNames.CompoundOnFlush)] |
| 145 | + [JsonProperty(UpdatableSettings.CompoundOnFlush)] |
146 | 146 | bool? CompoundOnFlush { get; set; } |
147 | 147 |
|
148 | | - [JsonProperty(SettingNames.WarmersEnabled)] |
| 148 | + [JsonProperty(UpdatableSettings.WarmersEnabled)] |
149 | 149 | bool? WarmersEnabled { get; set; } |
150 | 150 |
|
151 | | - [JsonProperty(SettingNames.Analysis)] |
| 151 | + [JsonProperty(UpdatableSettings.Analysis)] |
152 | 152 | AnalysisSettings Analysis { get; set; } |
153 | 153 | } |
154 | 154 |
|
|
0 commit comments