@@ -293,6 +293,8 @@ public function create(array $params = [])
293
293
*
294
294
* @param array{
295
295
* name: string, // (REQUIRED) The name of the data stream
296
+ * timeout: time, // Specify timeout for acknowledging the cluster state update
297
+ * master_timeout: time, // Specify timeout for connection to master
296
298
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
297
299
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
298
300
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -313,7 +315,7 @@ public function createDataStream(array $params = [])
313
315
$ url = '/_data_stream/ ' . $ this ->encode ($ params ['name ' ]);
314
316
$ method = 'PUT ' ;
315
317
316
- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
318
+ $ url = $ this ->addQueryString ($ url , $ params , ['timeout ' , ' master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
317
319
$ headers = [
318
320
'Accept ' => 'application/json ' ,
319
321
];
@@ -448,7 +450,6 @@ public function deleteAlias(array $params = [])
448
450
* Deletes the data stream lifecycle of the selected data streams.
449
451
*
450
452
* @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-delete-lifecycle.html
451
- * @internal This API is EXPERIMENTAL and may be changed or removed completely in a future release
452
453
*
453
454
* @param array{
454
455
* name: list, // (REQUIRED) A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams
@@ -493,6 +494,7 @@ public function deleteDataLifecycle(array $params = [])
493
494
* @param array{
494
495
* name: list, // (REQUIRED) A comma-separated list of data streams to delete; use `*` to delete all data streams
495
496
* expand_wildcards: enum, // Whether wildcard expressions should get expanded to open or closed indices (default: open)
497
+ * master_timeout: time, // Specify timeout for connection to master
496
498
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
497
499
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
498
500
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -513,7 +515,7 @@ public function deleteDataStream(array $params = [])
513
515
$ url = '/_data_stream/ ' . $ this ->encode ($ params ['name ' ]);
514
516
$ method = 'DELETE ' ;
515
517
516
- $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
518
+ $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
517
519
$ headers = [
518
520
'Accept ' => 'application/json ' ,
519
521
];
@@ -858,7 +860,6 @@ public function existsTemplate(array $params = [])
858
860
* Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.
859
861
*
860
862
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html
861
- * @internal This API is EXPERIMENTAL and may be changed or removed completely in a future release
862
863
*
863
864
* @param array{
864
865
* index: string, // (REQUIRED) The name of the index to explain
@@ -1125,12 +1126,12 @@ public function getAlias(array $params = [])
1125
1126
* Returns the data stream lifecycle of the selected data streams.
1126
1127
*
1127
1128
* @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle.html
1128
- * @internal This API is EXPERIMENTAL and may be changed or removed completely in a future release
1129
1129
*
1130
1130
* @param array{
1131
1131
* name: list, // (REQUIRED) A comma-separated list of data streams to get; use `*` to get all data streams
1132
1132
* expand_wildcards: enum, // Whether wildcard expressions should get expanded to open or closed indices (default: open)
1133
1133
* include_defaults: boolean, // Return all relevant default configurations for the data stream (default: false)
1134
+ * master_timeout: time, // Specify timeout for connection to master
1134
1135
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
1135
1136
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
1136
1137
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -1151,7 +1152,7 @@ public function getDataLifecycle(array $params = [])
1151
1152
$ url = '/_data_stream/ ' . $ this ->encode ($ params ['name ' ]) . '/_lifecycle ' ;
1152
1153
$ method = 'GET ' ;
1153
1154
1154
- $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'include_defaults ' ,'pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1155
+ $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'include_defaults ' ,'master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1155
1156
$ headers = [
1156
1157
'Accept ' => 'application/json ' ,
1157
1158
];
@@ -1170,6 +1171,8 @@ public function getDataLifecycle(array $params = [])
1170
1171
* name: list, // A comma-separated list of data streams to get; use `*` to get all data streams
1171
1172
* expand_wildcards: enum, // Whether wildcard expressions should get expanded to open or closed indices (default: open)
1172
1173
* include_defaults: boolean, // Return all relevant default configurations for the data stream (default: false)
1174
+ * master_timeout: time, // Specify timeout for connection to master
1175
+ * verbose: boolean, // Whether the maximum timestamp for each data stream should be calculated and returned (default: false)
1173
1176
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
1174
1177
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
1175
1178
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -1192,7 +1195,7 @@ public function getDataStream(array $params = [])
1192
1195
$ url = '/_data_stream ' ;
1193
1196
$ method = 'GET ' ;
1194
1197
}
1195
- $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'include_defaults ' ,'pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1198
+ $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'include_defaults ' ,'master_timeout ' , ' verbose ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1196
1199
$ headers = [
1197
1200
'Accept ' => 'application/json ' ,
1198
1201
];
@@ -1438,6 +1441,8 @@ public function getTemplate(array $params = [])
1438
1441
*
1439
1442
* @param array{
1440
1443
* name: string, // (REQUIRED) The name of the alias to migrate
1444
+ * timeout: time, // Specify timeout for acknowledging the cluster state update
1445
+ * master_timeout: time, // Specify timeout for connection to master
1441
1446
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
1442
1447
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
1443
1448
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -1458,7 +1463,7 @@ public function migrateToDataStream(array $params = [])
1458
1463
$ url = '/_data_stream/_migrate/ ' . $ this ->encode ($ params ['name ' ]);
1459
1464
$ method = 'POST ' ;
1460
1465
1461
- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1466
+ $ url = $ this ->addQueryString ($ url , $ params , ['timeout ' , ' master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1462
1467
$ headers = [
1463
1468
'Accept ' => 'application/json ' ,
1464
1469
];
@@ -1555,6 +1560,7 @@ public function open(array $params = [])
1555
1560
*
1556
1561
* @param array{
1557
1562
* name: string, // (REQUIRED) The name of the data stream
1563
+ * master_timeout: time, // Specify timeout for connection to master
1558
1564
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
1559
1565
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
1560
1566
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -1575,7 +1581,7 @@ public function promoteDataStream(array $params = [])
1575
1581
$ url = '/_data_stream/_promote/ ' . $ this ->encode ($ params ['name ' ]);
1576
1582
$ method = 'POST ' ;
1577
1583
1578
- $ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1584
+ $ url = $ this ->addQueryString ($ url , $ params , ['master_timeout ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
1579
1585
$ headers = [
1580
1586
'Accept ' => 'application/json ' ,
1581
1587
];
@@ -1631,7 +1637,6 @@ public function putAlias(array $params = [])
1631
1637
* Updates the data stream lifecycle of the selected data streams.
1632
1638
*
1633
1639
* @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-put-lifecycle.html
1634
- * @internal This API is EXPERIMENTAL and may be changed or removed completely in a future release
1635
1640
*
1636
1641
* @param array{
1637
1642
* name: list, // (REQUIRED) A comma-separated list of data streams whose lifecycle will be updated; use `*` to set the lifecycle to all data streams
@@ -2021,6 +2026,8 @@ public function resolveCluster(array $params = [])
2021
2026
* @param array{
2022
2027
* name: list, // (REQUIRED) A comma-separated list of names or wildcard expressions
2023
2028
* expand_wildcards: enum, // Whether wildcard expressions should get expanded to open or closed indices (default: open)
2029
+ * ignore_unavailable: boolean, // Whether specified concrete indices should be ignored when unavailable (missing or closed)
2030
+ * allow_no_indices: boolean, // Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
2024
2031
* pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false)
2025
2032
* human: boolean, // Return human readable values for statistics. (DEFAULT: true)
2026
2033
* error_trace: boolean, // Include the stack trace of returned errors. (DEFAULT: false)
@@ -2041,7 +2048,7 @@ public function resolveIndex(array $params = [])
2041
2048
$ url = '/_resolve/index/ ' . $ this ->encode ($ params ['name ' ]);
2042
2049
$ method = 'GET ' ;
2043
2050
2044
- $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
2051
+ $ url = $ this ->addQueryString ($ url , $ params , ['expand_wildcards ' ,'ignore_unavailable ' , ' allow_no_indices ' , ' pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
2045
2052
$ headers = [
2046
2053
'Accept ' => 'application/json ' ,
2047
2054
];
0 commit comments