@@ -35,6 +35,7 @@ class Ccr extends AbstractEndpoint
3535 *
3636 * @param array{
3737 * name: string, // (REQUIRED) The name of the auto follow pattern.
38+ * master_timeout: time, // Explicit operation timeout for connection to master node
3839 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
3940 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
4041 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -55,7 +56,7 @@ public function deleteAutoFollowPattern(array $params = [])
5556 $ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]);
5657 $ method = 'DELETE ' ;
5758
58- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
59+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
5960 $ headers = [
6061 'Accept ' => 'application/json ' ,
6162 ];
@@ -71,6 +72,7 @@ public function deleteAutoFollowPattern(array $params = [])
7172 * @param array{
7273 * index: string, // (REQUIRED) The name of the follower index
7374 * wait_for_active_shards: string, // Sets the number of shard copies that must be active before returning. Defaults to 0. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
75+ * master_timeout: time, // Explicit operation timeout for connection to master node
7476 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
7577 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
7678 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -92,7 +94,7 @@ public function follow(array $params = [])
9294 $ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/follow ' ;
9395 $ method = 'PUT ' ;
9496
95- $ url = $ this ->addQueryString ($ url , $ params , ['wait_for_active_shards ' ,'pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
97+ $ url = $ this ->addQueryString ($ url , $ params , ['wait_for_active_shards ' ,'master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
9698 $ headers = [
9799 'Accept ' => 'application/json ' ,
98100 'Content-Type ' => 'application/json ' ,
@@ -108,6 +110,7 @@ public function follow(array $params = [])
108110 *
109111 * @param array{
110112 * index: list, // (REQUIRED) A comma-separated list of index patterns; use `_all` to perform the operation on all indices
113+ * master_timeout: time, // Explicit operation timeout for connection to master node
111114 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
112115 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
113116 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -128,7 +131,7 @@ public function followInfo(array $params = [])
128131 $ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/info ' ;
129132 $ method = 'GET ' ;
130133
131- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
134+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
132135 $ headers = [
133136 'Accept ' => 'application/json ' ,
134137 ];
@@ -143,6 +146,7 @@ public function followInfo(array $params = [])
143146 *
144147 * @param array{
145148 * index: list, // (REQUIRED) A comma-separated list of index patterns; use `_all` to perform the operation on all indices
149+ * timeout: time, // Explicit operation timeout
146150 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
147151 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
148152 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -163,7 +167,7 @@ public function followStats(array $params = [])
163167 $ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/stats ' ;
164168 $ method = 'GET ' ;
165169
166- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
170+ $ url = $ this ->addQueryString ($ url , $ params , ['timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
167171 $ headers = [
168172 'Accept ' => 'application/json ' ,
169173 ];
@@ -178,6 +182,7 @@ public function followStats(array $params = [])
178182 *
179183 * @param array{
180184 * index: string, // (REQUIRED) the name of the leader index for which specified follower retention leases should be removed
185+ * timeout: time, // Explicit operation timeout
181186 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
182187 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
183188 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -199,7 +204,7 @@ public function forgetFollower(array $params = [])
199204 $ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/forget_follower ' ;
200205 $ method = 'POST ' ;
201206
202- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
207+ $ url = $ this ->addQueryString ($ url , $ params , ['timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
203208 $ headers = [
204209 'Accept ' => 'application/json ' ,
205210 'Content-Type ' => 'application/json ' ,
@@ -215,6 +220,7 @@ public function forgetFollower(array $params = [])
215220 *
216221 * @param array{
217222 * name: string, // The name of the auto follow pattern.
223+ * master_timeout: time, // Explicit operation timeout for connection to master node
218224 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
219225 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
220226 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -237,7 +243,7 @@ public function getAutoFollowPattern(array $params = [])
237243 $ url = '/_ccr/auto_follow ' ;
238244 $ method = 'GET ' ;
239245 }
240- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
246+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
241247 $ headers = [
242248 'Accept ' => 'application/json ' ,
243249 ];
@@ -252,6 +258,7 @@ public function getAutoFollowPattern(array $params = [])
252258 *
253259 * @param array{
254260 * name: string, // (REQUIRED) The name of the auto follow pattern that should pause discovering new indices to follow.
261+ * master_timeout: time, // Explicit operation timeout for connection to master node
255262 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
256263 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
257264 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -272,7 +279,7 @@ public function pauseAutoFollowPattern(array $params = [])
272279 $ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]) . '/pause ' ;
273280 $ method = 'POST ' ;
274281
275- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
282+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
276283 $ headers = [
277284 'Accept ' => 'application/json ' ,
278285 ];
@@ -287,6 +294,7 @@ public function pauseAutoFollowPattern(array $params = [])
287294 *
288295 * @param array{
289296 * index: string, // (REQUIRED) The name of the follower index that should pause following its leader index.
297+ * master_timeout: time, // Explicit operation timeout for connection to master node
290298 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
291299 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
292300 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -307,7 +315,7 @@ public function pauseFollow(array $params = [])
307315 $ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/pause_follow ' ;
308316 $ method = 'POST ' ;
309317
310- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
318+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
311319 $ headers = [
312320 'Accept ' => 'application/json ' ,
313321 ];
@@ -322,6 +330,7 @@ public function pauseFollow(array $params = [])
322330 *
323331 * @param array{
324332 * name: string, // (REQUIRED) The name of the auto follow pattern.
333+ * master_timeout: time, // Explicit operation timeout for connection to master node
325334 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
326335 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
327336 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -343,7 +352,7 @@ public function putAutoFollowPattern(array $params = [])
343352 $ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]);
344353 $ method = 'PUT ' ;
345354
346- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
355+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
347356 $ headers = [
348357 'Accept ' => 'application/json ' ,
349358 'Content-Type ' => 'application/json ' ,
@@ -359,6 +368,7 @@ public function putAutoFollowPattern(array $params = [])
359368 *
360369 * @param array{
361370 * name: string, // (REQUIRED) The name of the auto follow pattern to resume discovering new indices to follow.
371+ * master_timeout: time, // Explicit operation timeout for connection to master node
362372 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
363373 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
364374 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -379,7 +389,7 @@ public function resumeAutoFollowPattern(array $params = [])
379389 $ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]) . '/resume ' ;
380390 $ method = 'POST ' ;
381391
382- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
392+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
383393 $ headers = [
384394 'Accept ' => 'application/json ' ,
385395 ];
@@ -394,6 +404,7 @@ public function resumeAutoFollowPattern(array $params = [])
394404 *
395405 * @param array{
396406 * index: string, // (REQUIRED) The name of the follow index to resume following.
407+ * master_timeout: time, // Explicit operation timeout for connection to master node
397408 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
398409 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
399410 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -415,7 +426,7 @@ public function resumeFollow(array $params = [])
415426 $ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/resume_follow ' ;
416427 $ method = 'POST ' ;
417428
418- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
429+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
419430 $ headers = [
420431 'Accept ' => 'application/json ' ,
421432 'Content-Type ' => 'application/json ' ,
@@ -430,6 +441,8 @@ public function resumeFollow(array $params = [])
430441 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html
431442 *
432443 * @param array{
444+ * timeout: time, // Explicit operation timeout
445+ * master_timeout: time, // Explicit operation timeout for connection to master node
433446 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
434447 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
435448 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -448,7 +461,7 @@ public function stats(array $params = [])
448461 $ url = '/_ccr/stats ' ;
449462 $ method = 'GET ' ;
450463
451- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
464+ $ url = $ this ->addQueryString ($ url , $ params , ['timeout ' , ' master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
452465 $ headers = [
453466 'Accept ' => 'application/json ' ,
454467 ];
@@ -463,6 +476,7 @@ public function stats(array $params = [])
463476 *
464477 * @param array{
465478 * index: string, // (REQUIRED) The name of the follower index that should be turned into a regular index.
479+ * master_timeout: time, // Explicit operation timeout for connection to master node
466480 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
467481 * human: boolean, // Return human readable values for statistics. (DEFAULT: true)
468482 * error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -483,7 +497,7 @@ public function unfollow(array $params = [])
483497 $ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/unfollow ' ;
484498 $ method = 'POST ' ;
485499
486- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
500+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
487501 $ headers = [
488502 'Accept ' => 'application/json ' ,
489503 ];
0 commit comments