@@ -2457,9 +2457,9 @@ pub struct ClusterStats<'a, 'b> {
2457
2457
parts : ClusterStatsParts < ' b > ,
2458
2458
error_trace : Option < bool > ,
2459
2459
filter_path : Option < & ' b [ & ' b str ] > ,
2460
- flat_settings : Option < bool > ,
2461
2460
headers : HeaderMap ,
2462
2461
human : Option < bool > ,
2462
+ include_remotes : Option < bool > ,
2463
2463
pretty : Option < bool > ,
2464
2464
request_timeout : Option < Duration > ,
2465
2465
source : Option < & ' b str > ,
@@ -2475,8 +2475,8 @@ impl<'a, 'b> ClusterStats<'a, 'b> {
2475
2475
headers,
2476
2476
error_trace : None ,
2477
2477
filter_path : None ,
2478
- flat_settings : None ,
2479
2478
human : None ,
2479
+ include_remotes : None ,
2480
2480
pretty : None ,
2481
2481
request_timeout : None ,
2482
2482
source : None ,
@@ -2493,11 +2493,6 @@ impl<'a, 'b> ClusterStats<'a, 'b> {
2493
2493
self . filter_path = Some ( filter_path) ;
2494
2494
self
2495
2495
}
2496
- #[ doc = "Return settings in flat format (default: false)" ]
2497
- pub fn flat_settings ( mut self , flat_settings : bool ) -> Self {
2498
- self . flat_settings = Some ( flat_settings) ;
2499
- self
2500
- }
2501
2496
#[ doc = "Adds a HTTP header" ]
2502
2497
pub fn header ( mut self , key : HeaderName , value : HeaderValue ) -> Self {
2503
2498
self . headers . insert ( key, value) ;
@@ -2508,6 +2503,11 @@ impl<'a, 'b> ClusterStats<'a, 'b> {
2508
2503
self . human = Some ( human) ;
2509
2504
self
2510
2505
}
2506
+ #[ doc = "Include remote cluster data into the response (default: false)" ]
2507
+ pub fn include_remotes ( mut self , include_remotes : bool ) -> Self {
2508
+ self . include_remotes = Some ( include_remotes) ;
2509
+ self
2510
+ }
2511
2511
#[ doc = "Pretty format the returned JSON response." ]
2512
2512
pub fn pretty ( mut self , pretty : bool ) -> Self {
2513
2513
self . pretty = Some ( pretty) ;
@@ -2541,17 +2541,17 @@ impl<'a, 'b> ClusterStats<'a, 'b> {
2541
2541
error_trace : Option < bool > ,
2542
2542
#[ serde( serialize_with = "crate::client::serialize_coll_qs" ) ]
2543
2543
filter_path : Option < & ' b [ & ' b str ] > ,
2544
- flat_settings : Option < bool > ,
2545
2544
human : Option < bool > ,
2545
+ include_remotes : Option < bool > ,
2546
2546
pretty : Option < bool > ,
2547
2547
source : Option < & ' b str > ,
2548
2548
timeout : Option < & ' b str > ,
2549
2549
}
2550
2550
let query_params = QueryParams {
2551
2551
error_trace : self . error_trace ,
2552
2552
filter_path : self . filter_path ,
2553
- flat_settings : self . flat_settings ,
2554
2553
human : self . human ,
2554
+ include_remotes : self . include_remotes ,
2555
2555
pretty : self . pretty ,
2556
2556
source : self . source ,
2557
2557
timeout : self . timeout ,
0 commit comments