Skip to content

Commit f3d55ea

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 3fece49 commit f3d55ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/src/commonMain/kotlin/com/algolia/client/api/SearchClient.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,13 +699,17 @@ public class SearchClient(
699699
* Required API Key ACLs:
700700
* - settings
701701
* @param indexName Name of the index on which to perform the operation.
702+
* @param getVersion When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility. (default to 1)
702703
* @param requestOptions additional request configuration.
703704
*/
704-
public suspend fun getSettings(indexName: String, requestOptions: RequestOptions? = null): SettingsResponse {
705+
public suspend fun getSettings(indexName: String, getVersion: Int? = null, requestOptions: RequestOptions? = null): SettingsResponse {
705706
require(indexName.isNotBlank()) { "Parameter `indexName` is required when calling `getSettings`." }
706707
val requestConfig = RequestConfig(
707708
method = RequestMethod.GET,
708709
path = listOf("1", "indexes", "$indexName", "settings"),
710+
query = buildMap {
711+
getVersion?.let { put("getVersion", it) }
712+
},
709713
)
710714
return requester.execute(
711715
requestConfig = requestConfig,

0 commit comments

Comments
 (0)