@@ -35,6 +35,7 @@ class Ccr extends AbstractEndpoint
35
35
*
36
36
* @param array{
37
37
* name: string, // (REQUIRED) The name of the auto follow pattern.
38
+ * master_timeout: time, // Explicit operation timeout for connection to master node
38
39
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
39
40
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
40
41
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -55,7 +56,7 @@ public function deleteAutoFollowPattern(array $params = [])
55
56
$ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]);
56
57
$ method = 'DELETE ' ;
57
58
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 ' ]);
59
60
$ headers = [
60
61
'Accept ' => 'application/json ' ,
61
62
];
@@ -71,6 +72,7 @@ public function deleteAutoFollowPattern(array $params = [])
71
72
* @param array{
72
73
* index: string, // (REQUIRED) The name of the follower index
73
74
* 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
74
76
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
75
77
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
76
78
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -92,7 +94,7 @@ public function follow(array $params = [])
92
94
$ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/follow ' ;
93
95
$ method = 'PUT ' ;
94
96
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 ' ]);
96
98
$ headers = [
97
99
'Accept ' => 'application/json ' ,
98
100
'Content-Type ' => 'application/json ' ,
@@ -108,6 +110,7 @@ public function follow(array $params = [])
108
110
*
109
111
* @param array{
110
112
* 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
111
114
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
112
115
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
113
116
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -128,7 +131,7 @@ public function followInfo(array $params = [])
128
131
$ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/info ' ;
129
132
$ method = 'GET ' ;
130
133
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 ' ]);
132
135
$ headers = [
133
136
'Accept ' => 'application/json ' ,
134
137
];
@@ -143,6 +146,7 @@ public function followInfo(array $params = [])
143
146
*
144
147
* @param array{
145
148
* 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
146
150
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
147
151
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
148
152
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -163,7 +167,7 @@ public function followStats(array $params = [])
163
167
$ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/stats ' ;
164
168
$ method = 'GET ' ;
165
169
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 ' ]);
167
171
$ headers = [
168
172
'Accept ' => 'application/json ' ,
169
173
];
@@ -178,6 +182,7 @@ public function followStats(array $params = [])
178
182
*
179
183
* @param array{
180
184
* index: string, // (REQUIRED) the name of the leader index for which specified follower retention leases should be removed
185
+ * timeout: time, // Explicit operation timeout
181
186
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
182
187
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
183
188
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -199,7 +204,7 @@ public function forgetFollower(array $params = [])
199
204
$ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/forget_follower ' ;
200
205
$ method = 'POST ' ;
201
206
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 ' ]);
203
208
$ headers = [
204
209
'Accept ' => 'application/json ' ,
205
210
'Content-Type ' => 'application/json ' ,
@@ -215,6 +220,7 @@ public function forgetFollower(array $params = [])
215
220
*
216
221
* @param array{
217
222
* name: string, // The name of the auto follow pattern.
223
+ * master_timeout: time, // Explicit operation timeout for connection to master node
218
224
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
219
225
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
220
226
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -237,7 +243,7 @@ public function getAutoFollowPattern(array $params = [])
237
243
$ url = '/_ccr/auto_follow ' ;
238
244
$ method = 'GET ' ;
239
245
}
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 ' ]);
241
247
$ headers = [
242
248
'Accept ' => 'application/json ' ,
243
249
];
@@ -252,6 +258,7 @@ public function getAutoFollowPattern(array $params = [])
252
258
*
253
259
* @param array{
254
260
* 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
255
262
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
256
263
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
257
264
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -272,7 +279,7 @@ public function pauseAutoFollowPattern(array $params = [])
272
279
$ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]) . '/pause ' ;
273
280
$ method = 'POST ' ;
274
281
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 ' ]);
276
283
$ headers = [
277
284
'Accept ' => 'application/json ' ,
278
285
];
@@ -287,6 +294,7 @@ public function pauseAutoFollowPattern(array $params = [])
287
294
*
288
295
* @param array{
289
296
* 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
290
298
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
291
299
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
292
300
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -307,7 +315,7 @@ public function pauseFollow(array $params = [])
307
315
$ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/pause_follow ' ;
308
316
$ method = 'POST ' ;
309
317
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 ' ]);
311
319
$ headers = [
312
320
'Accept ' => 'application/json ' ,
313
321
];
@@ -322,6 +330,7 @@ public function pauseFollow(array $params = [])
322
330
*
323
331
* @param array{
324
332
* name: string, // (REQUIRED) The name of the auto follow pattern.
333
+ * master_timeout: time, // Explicit operation timeout for connection to master node
325
334
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
326
335
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
327
336
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -343,7 +352,7 @@ public function putAutoFollowPattern(array $params = [])
343
352
$ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]);
344
353
$ method = 'PUT ' ;
345
354
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 ' ]);
347
356
$ headers = [
348
357
'Accept ' => 'application/json ' ,
349
358
'Content-Type ' => 'application/json ' ,
@@ -359,6 +368,7 @@ public function putAutoFollowPattern(array $params = [])
359
368
*
360
369
* @param array{
361
370
* 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
362
372
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
363
373
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
364
374
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -379,7 +389,7 @@ public function resumeAutoFollowPattern(array $params = [])
379
389
$ url = '/_ccr/auto_follow/ ' . $ this ->encode ($ params ['name ' ]) . '/resume ' ;
380
390
$ method = 'POST ' ;
381
391
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 ' ]);
383
393
$ headers = [
384
394
'Accept ' => 'application/json ' ,
385
395
];
@@ -394,6 +404,7 @@ public function resumeAutoFollowPattern(array $params = [])
394
404
*
395
405
* @param array{
396
406
* index: string, // (REQUIRED) The name of the follow index to resume following.
407
+ * master_timeout: time, // Explicit operation timeout for connection to master node
397
408
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
398
409
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
399
410
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -415,7 +426,7 @@ public function resumeFollow(array $params = [])
415
426
$ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/resume_follow ' ;
416
427
$ method = 'POST ' ;
417
428
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 ' ]);
419
430
$ headers = [
420
431
'Accept ' => 'application/json ' ,
421
432
'Content-Type ' => 'application/json ' ,
@@ -430,6 +441,8 @@ public function resumeFollow(array $params = [])
430
441
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html
431
442
*
432
443
* @param array{
444
+ * timeout: time, // Explicit operation timeout
445
+ * master_timeout: time, // Explicit operation timeout for connection to master node
433
446
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
434
447
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
435
448
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -448,7 +461,7 @@ public function stats(array $params = [])
448
461
$ url = '/_ccr/stats ' ;
449
462
$ method = 'GET ' ;
450
463
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 ' ]);
452
465
$ headers = [
453
466
'Accept ' => 'application/json ' ,
454
467
];
@@ -463,6 +476,7 @@ public function stats(array $params = [])
463
476
*
464
477
* @param array{
465
478
* 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
466
480
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
467
481
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
468
482
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -483,7 +497,7 @@ public function unfollow(array $params = [])
483
497
$ url = '/ ' . $ this ->encode ($ params ['index ' ]) . '/_ccr/unfollow ' ;
484
498
$ method = 'POST ' ;
485
499
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 ' ]);
487
501
$ headers = [
488
502
'Accept ' => 'application/json ' ,
489
503
];
0 commit comments