Skip to content

Commit 4bd9cb2

Browse files
algolia-botmillotp
andcommitted
fix(specs): add getVersion parameter to getSettings (generated)
algolia/api-clients-automation#5254 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 63c42e1 commit 4bd9cb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Api/SearchClient.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,11 +1463,12 @@ public function getRule($indexName, $objectID, $requestOptions = [])
14631463
* - settings
14641464
*
14651465
* @param string $indexName Name of the index on which to perform the operation. (required)
1466+
* @param int $getVersion When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility. (optional, default to 1)
14661467
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
14671468
*
14681469
* @return array<string, mixed>|SettingsResponse
14691470
*/
1470-
public function getSettings($indexName, $requestOptions = [])
1471+
public function getSettings($indexName, $getVersion = null, $requestOptions = [])
14711472
{
14721473
// verify the required parameter 'indexName' is set
14731474
if (!isset($indexName)) {
@@ -1481,6 +1482,10 @@ public function getSettings($indexName, $requestOptions = [])
14811482
$headers = [];
14821483
$httpBody = null;
14831484

1485+
if (null !== $getVersion) {
1486+
$queryParameters['getVersion'] = $getVersion;
1487+
}
1488+
14841489
// path params
14851490
if (null !== $indexName) {
14861491
$resourcePath = str_replace(

0 commit comments

Comments
 (0)