From e1026fb2b3172ae556c46ddcf9ea983f8d668f65 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Fri, 15 Nov 2024 12:04:57 +0000 Subject: [PATCH] fix(specs): returns an response [skip-bc] (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4107 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- algoliasearch/Clients/SearchClient.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/algoliasearch/Clients/SearchClient.cs b/algoliasearch/Clients/SearchClient.cs index 741961bf..04e538f0 100644 --- a/algoliasearch/Clients/SearchClient.cs +++ b/algoliasearch/Clients/SearchClient.cs @@ -514,8 +514,8 @@ public partial interface ISearchClient /// Thrown when arguments are not correct /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint - /// Task of DeletedAtResponse - Task DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default); + /// Task of UpdatedAtResponse + Task DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default); /// /// This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch). (Synchronous version) @@ -530,8 +530,8 @@ public partial interface ISearchClient /// Thrown when arguments are not correct /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint - /// DeletedAtResponse - DeletedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default); + /// UpdatedAtResponse + UpdatedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default); /// /// Deletes an index and all its settings. - Deleting an index doesn't delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/). @@ -2374,7 +2374,7 @@ public DeleteApiKeyResponse DeleteApiKey(string key, RequestOptions options = nu /// - public async Task DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) + public async Task DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) { if (indexName == null) @@ -2389,12 +2389,12 @@ public async Task DeleteByAsync(string indexName, DeleteByPar requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName)); requestOptions.Data = deleteByParams; - return await _transport.ExecuteRequestAsync(new HttpMethod("POST"), "/1/indexes/{indexName}/deleteByQuery", requestOptions, cancellationToken).ConfigureAwait(false); + return await _transport.ExecuteRequestAsync(new HttpMethod("POST"), "/1/indexes/{indexName}/deleteByQuery", requestOptions, cancellationToken).ConfigureAwait(false); } /// - public DeletedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) => + public UpdatedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) => AsyncHelper.RunSync(() => DeleteByAsync(indexName, deleteByParams, options, cancellationToken));