66
77namespace Nest
88{
9- public interface IUpdateSettingsRequest : IIndexOptionalPath < UpdateSettingsRequestParameters >
10- {
9+ public interface IUpdateSettingsRequest : IIndexOptionalPath < UpdateSettingsRequestParameters >
10+ {
1111 [ JsonProperty ( "index.number_of_replicas" ) ]
1212 int ? NumberOfReplicas { get ; set ; }
1313
@@ -94,10 +94,10 @@ public interface IUpdateSettingsRequest : IIndexOptionalPath<UpdateSettingsReque
9494
9595 [ JsonProperty ( "index.gc_deletes" ) ]
9696 bool ? GcDeletes { get ; set ; }
97-
97+
9898 [ JsonProperty ( "index.ttl.disable_purge" ) ]
9999 bool ? TtlDisablePurge { get ; set ; }
100-
100+
101101 [ JsonProperty ( "index.translog.fs.type" ) ]
102102 string TranslogFsType { get ; set ; }
103103
@@ -112,97 +112,97 @@ public interface IUpdateSettingsRequest : IIndexOptionalPath<UpdateSettingsReque
112112
113113 [ JsonProperty ( "analysis" ) ]
114114 AnalysisSettings Analysis { get ; set ; }
115- }
115+ }
116+
117+ internal static class UpdateSettingsPathInfo
118+ {
119+ public static void Update ( IConnectionSettingsValues settings , ElasticsearchPathInfo < UpdateSettingsRequestParameters > pathInfo )
120+ {
121+ pathInfo . HttpMethod = PathInfoHttpMethod . PUT ;
122+ }
123+ }
116124
117- internal static class UpdateSettingsPathInfo
118- {
119- public static void Update ( IConnectionSettingsValues settings , ElasticsearchPathInfo < UpdateSettingsRequestParameters > pathInfo )
120- {
121- pathInfo . HttpMethod = PathInfoHttpMethod . PUT ;
122- }
123- }
125+ public partial class UpdateSettingsRequest : IndexOptionalPathBase < UpdateSettingsRequestParameters > , IUpdateSettingsRequest
126+ {
127+ public int ? NumberOfReplicas { get ; set ; }
124128
125- public partial class UpdateSettingsRequest : IndexOptionalPathBase < UpdateSettingsRequestParameters > , IUpdateSettingsRequest
126- {
127- public int ? NumberOfReplicas { get ; set ; }
129+ public object AutoExpandReplicas { get ; set ; }
128130
129- public object AutoExpandReplicas { get ; set ; }
131+ public bool ? BlocksReadOnly { get ; set ; }
130132
131- public bool ? BlocksReadOnly { get ; set ; }
133+ public bool ? BlocksRead { get ; set ; }
132134
133- public bool ? BlocksRead { get ; set ; }
135+ public bool ? BlocksWrite { get ; set ; }
134136
135- public bool ? BlocksWrite { get ; set ; }
137+ public bool ? BlocksMetadata { get ; set ; }
136138
137- public bool ? BlocksMetadata { get ; set ; }
139+ public string RefreshInterval { get ; set ; }
138140
139- public string RefreshInterval { get ; set ; }
141+ public int ? IndexConcurrency { get ; set ; }
140142
141- public int ? IndexConcurrency { get ; set ; }
143+ public string Codec { get ; set ; }
142144
143- public string Codec { get ; set ; }
145+ public bool ? CodecBloomLoad { get ; set ; }
144146
145- public bool ? CodecBloomLoad { get ; set ; }
147+ public bool ? FailOnMergeFailure { get ; set ; }
146148
147- public bool ? FailOnMergeFailure { get ; set ; }
149+ public string TranslogFlushTreshHoldOps { get ; set ; }
148150
149- public string TranslogFlushTreshHoldOps { get ; set ; }
151+ public string TranslogFlushThresholdSize { get ; set ; }
150152
151- public string TranslogFlushThresholdSize { get ; set ; }
153+ public string TranslogFlushThresholdPeriod { get ; set ; }
152154
153- public string TranslogFlushThresholdPeriod { get ; set ; }
155+ public bool ? TranslogDisableFlush { get ; set ; }
154156
155- public bool ? TranslogDisableFlush { get ; set ; }
157+ public string CacheFilterMaxSize { get ; set ; }
156158
157- public string CacheFilterMaxSize { get ; set ; }
159+ public string CacheFilterExpire { get ; set ; }
158160
159- public string CacheFilterExpire { get ; set ; }
160-
161161 public bool ? CacheQueryEnable { get ; set ; }
162162
163- public string GatewaySnapshotInterval { get ; set ; }
163+ public string GatewaySnapshotInterval { get ; set ; }
164164
165- public IDictionary < string , object > RoutingAllocationInclude { get ; set ; }
165+ public IDictionary < string , object > RoutingAllocationInclude { get ; set ; }
166166
167- public IDictionary < string , object > RoutingAllocationExclude { get ; set ; }
167+ public IDictionary < string , object > RoutingAllocationExclude { get ; set ; }
168168
169- public IDictionary < string , object > RoutingAllocationRequire { get ; set ; }
169+ public IDictionary < string , object > RoutingAllocationRequire { get ; set ; }
170170
171171 public RoutingAllocationEnableOption ? RoutingAllocationEnable { get ; set ; }
172172
173- public bool ? RoutingAllocationDisableAllication { get ; set ; }
173+ public bool ? RoutingAllocationDisableAllication { get ; set ; }
174174
175- public bool ? RoutingAllocationDisableNewAllocation { get ; set ; }
175+ public bool ? RoutingAllocationDisableNewAllocation { get ; set ; }
176176
177- public bool ? RoutingAllocationDisableReplicaAllocation { get ; set ; }
177+ public bool ? RoutingAllocationDisableReplicaAllocation { get ; set ; }
178178
179- public int ? RoutingAllocationTotalShardsPerNode { get ; set ; }
179+ public int ? RoutingAllocationTotalShardsPerNode { get ; set ; }
180180
181- public string RecoveryInitialShards { get ; set ; }
181+ public string RecoveryInitialShards { get ; set ; }
182182
183- public bool ? GcDeletes { get ; set ; }
183+ public bool ? GcDeletes { get ; set ; }
184184
185- public bool ? TtlDisablePurge { get ; set ; }
185+ public bool ? TtlDisablePurge { get ; set ; }
186186
187- public string TranslogFsType { get ; set ; }
187+ public string TranslogFsType { get ; set ; }
188188
189- public bool ? CompoundFormat { get ; set ; }
189+ public bool ? CompoundFormat { get ; set ; }
190190
191- public bool ? CompoundOnFlush { get ; set ; }
191+ public bool ? CompoundOnFlush { get ; set ; }
192192
193- public bool ? WarmersEnabled { get ; set ; }
193+ public bool ? WarmersEnabled { get ; set ; }
194194
195- public AnalysisSettings Analysis { get ; set ; }
195+ public AnalysisSettings Analysis { get ; set ; }
196196
197- protected override void UpdatePathInfo ( IConnectionSettingsValues settings , ElasticsearchPathInfo < UpdateSettingsRequestParameters > pathInfo )
198- {
199- UpdateSettingsPathInfo . Update ( settings , pathInfo ) ;
200- }
201- }
197+ protected override void UpdatePathInfo ( IConnectionSettingsValues settings , ElasticsearchPathInfo < UpdateSettingsRequestParameters > pathInfo )
198+ {
199+ UpdateSettingsPathInfo . Update ( settings , pathInfo ) ;
200+ }
201+ }
202202
203203 [ DescriptorFor ( "IndicesPutSettings" ) ]
204204 [ JsonObject ( MemberSerialization = MemberSerialization . OptIn ) ]
205- public partial class UpdateSettingsDescriptor
205+ public partial class UpdateSettingsDescriptor
206206 : IndexOptionalPathDescriptorBase < UpdateSettingsDescriptor , UpdateSettingsRequestParameters > , IUpdateSettingsRequest
207207 {
208208 private IUpdateSettingsRequest Self { get { return this ; } }
@@ -401,7 +401,7 @@ public UpdateSettingsDescriptor TranslogFlushThresholdOps(string translogFlushTh
401401 /// </summary>
402402 public UpdateSettingsDescriptor TranslogFlushThresholdSize ( string numberOfReplicas )
403403 {
404- this . Self . TranslogFlushThresholdSize = numberOfReplicas ;
404+ this . Self . TranslogFlushThresholdSize = numberOfReplicas ;
405405 return this ;
406406 }
407407
@@ -410,7 +410,7 @@ public UpdateSettingsDescriptor TranslogFlushThresholdSize(string numberOfReplic
410410 /// </summary>
411411 public UpdateSettingsDescriptor TranslogFlushThresholdPeriod ( string translogFlushThresholdPeriod )
412412 {
413- this . Self . TranslogFlushThresholdPeriod = translogFlushThresholdPeriod ;
413+ this . Self . TranslogFlushThresholdPeriod = translogFlushThresholdPeriod ;
414414 return this ;
415415 }
416416
@@ -419,7 +419,7 @@ public UpdateSettingsDescriptor TranslogFlushThresholdPeriod(string translogFlus
419419 /// </summary>
420420 public UpdateSettingsDescriptor TranslogDisableFlush ( bool translogDisableFlush = true )
421421 {
422- this . Self . TranslogDisableFlush = translogDisableFlush ;
422+ this . Self . TranslogDisableFlush = translogDisableFlush ;
423423 return this ;
424424 }
425425
@@ -428,7 +428,7 @@ public UpdateSettingsDescriptor TranslogDisableFlush(bool translogDisableFlush =
428428 /// </summary>
429429 public UpdateSettingsDescriptor CacheFilterMaxSize ( string cacheFilterMaxSize )
430430 {
431- this . Self . CacheFilterMaxSize = cacheFilterMaxSize ;
431+ this . Self . CacheFilterMaxSize = cacheFilterMaxSize ;
432432 return this ;
433433 }
434434
@@ -437,14 +437,14 @@ public UpdateSettingsDescriptor CacheFilterMaxSize(string cacheFilterMaxSize)
437437 /// </summary>
438438 public UpdateSettingsDescriptor CacheFilterExpire ( string cacheFilterExpire )
439439 {
440- this . Self . CacheFilterExpire = cacheFilterExpire ;
440+ this . Self . CacheFilterExpire = cacheFilterExpire ;
441441 return this ;
442442 }
443443
444444 /// <summary>
445445 /// Enable or disable the query cache.
446446 /// </summary>
447- public UpdateSettingsDescriptor CacheQueryEnable ( bool cacheQueryEnable )
447+ public UpdateSettingsDescriptor CacheQueryEnable ( bool cacheQueryEnable = true )
448448 {
449449 this . Self . CacheQueryEnable = cacheQueryEnable ;
450450 return this ;
@@ -465,7 +465,7 @@ public UpdateSettingsDescriptor GatewaySnapshotInterval(string gatewaySnapshotIn
465465 public UpdateSettingsDescriptor RoutingAllocationInclude (
466466 Func < FluentDictionary < string , object > , FluentDictionary < string , object > > selector )
467467 {
468- this . Self . RoutingAllocationInclude = selector ( new FluentDictionary < string , object > ( ) ) ;
468+ this . Self . RoutingAllocationInclude = selector ( new FluentDictionary < string , object > ( ) ) ;
469469 return this ;
470470 }
471471
@@ -475,7 +475,7 @@ public UpdateSettingsDescriptor RoutingAllocationInclude(
475475 public UpdateSettingsDescriptor RoutingAllocationExclude (
476476 Func < FluentDictionary < string , object > , FluentDictionary < string , object > > selector )
477477 {
478- this . Self . RoutingAllocationExclude = selector ( new FluentDictionary < string , object > ( ) ) ;
478+ this . Self . RoutingAllocationExclude = selector ( new FluentDictionary < string , object > ( ) ) ;
479479 return this ;
480480 }
481481
@@ -485,7 +485,7 @@ public UpdateSettingsDescriptor RoutingAllocationExclude(
485485 public UpdateSettingsDescriptor RoutingAllocationRequire (
486486 Func < FluentDictionary < string , object > , FluentDictionary < string , object > > selector )
487487 {
488- this . Self . RoutingAllocationRequire = selector ( new FluentDictionary < string , object > ( ) ) ;
488+ this . Self . RoutingAllocationRequire = selector ( new FluentDictionary < string , object > ( ) ) ;
489489 return this ;
490490 }
491491
@@ -503,7 +503,7 @@ public UpdateSettingsDescriptor RoutingAllocationEnable(RoutingAllocationEnableO
503503 /// </summary>
504504 public UpdateSettingsDescriptor RoutingAllocationDisableAllocation ( bool disable = true )
505505 {
506- this . Self . RoutingAllocationDisableAllication = disable ;
506+ this . Self . RoutingAllocationDisableAllication = disable ;
507507 return this ;
508508 }
509509
@@ -512,7 +512,7 @@ public UpdateSettingsDescriptor RoutingAllocationDisableAllocation(bool disable
512512 /// </summary>
513513 public UpdateSettingsDescriptor RoutingAllocationDisableNewAllocation ( bool disable = true )
514514 {
515- this . Self . RoutingAllocationDisableNewAllocation = disable ;
515+ this . Self . RoutingAllocationDisableNewAllocation = disable ;
516516 return this ;
517517 }
518518
@@ -530,7 +530,7 @@ public UpdateSettingsDescriptor RoutingAllocationDisableReplicateAllocation(bool
530530 /// </summary>
531531 public UpdateSettingsDescriptor RoutingAllocationTotalShardsPerNode ( int totalShardsPerNode )
532532 {
533- this . Self . RoutingAllocationTotalShardsPerNode = totalShardsPerNode ;
533+ this . Self . RoutingAllocationTotalShardsPerNode = totalShardsPerNode ;
534534 return this ;
535535 }
536536
@@ -545,7 +545,7 @@ public UpdateSettingsDescriptor RoutingAllocationTotalShardsPerNode(int totalSha
545545 ///</summary>
546546 public UpdateSettingsDescriptor RecoveryInitialShards ( string recoveryInitialShards )
547547 {
548- this . Self . RecoveryInitialShards = recoveryInitialShards ;
548+ this . Self . RecoveryInitialShards = recoveryInitialShards ;
549549 return this ;
550550 }
551551
@@ -554,25 +554,25 @@ public UpdateSettingsDescriptor RecoveryInitialShards(string recoveryInitialShar
554554 /// </summary>
555555 public UpdateSettingsDescriptor GcDeletes ( bool gcDeletes = true )
556556 {
557- this . Self . GcDeletes = gcDeletes ;
557+ this . Self . GcDeletes = gcDeletes ;
558558 return this ;
559559 }
560-
560+
561561 /// <summary>
562562 /// Disables temporarily the purge of expired docs.
563563 /// </summary>
564564 public UpdateSettingsDescriptor TtlDisablePurge ( bool ttlDisablePurge = true )
565565 {
566- this . Self . TtlDisablePurge = ttlDisablePurge ;
566+ this . Self . TtlDisablePurge = ttlDisablePurge ;
567567 return this ;
568568 }
569-
569+
570570 /// <summary>
571571 /// Either simple or buffered (default).
572572 /// </summary>
573573 public UpdateSettingsDescriptor TranslogFsType ( string translogFsType )
574574 {
575- this . Self . TranslogFsType = translogFsType ;
575+ this . Self . TranslogFsType = translogFsType ;
576576 return this ;
577577 }
578578
@@ -590,7 +590,7 @@ public UpdateSettingsDescriptor CompoundFormat(bool compoundFormat = true)
590590 /// </summary>
591591 public UpdateSettingsDescriptor CompoundOnFlush ( bool compoundOnFlush = true )
592592 {
593- this . Self . CompoundOnFlush = compoundOnFlush ;
593+ this . Self . CompoundOnFlush = compoundOnFlush ;
594594 return this ;
595595 }
596596
@@ -616,7 +616,7 @@ public UpdateSettingsDescriptor Analysis(Func<AnalysisDescriptor, AnalysisDescri
616616
617617 protected override void UpdatePathInfo ( IConnectionSettingsValues settings , ElasticsearchPathInfo < UpdateSettingsRequestParameters > pathInfo )
618618 {
619- UpdateSettingsPathInfo . Update ( settings , pathInfo ) ;
619+ UpdateSettingsPathInfo . Update ( settings , pathInfo ) ;
620620 }
621621 }
622622}
0 commit comments