Skip to content

Commit e1026fb

Browse files
fix(specs): returns an response [skip-bc] (generated)
algolia/api-clients-automation#4107 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 6b48089 commit e1026fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

algoliasearch/Clients/SearchClient.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ public partial interface ISearchClient
514514
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
515515
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
516516
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
517-
/// <returns>Task of DeletedAtResponse</returns>
518-
Task<DeletedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);
517+
/// <returns>Task of UpdatedAtResponse</returns>
518+
Task<UpdatedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);
519519

520520
/// <summary>
521521
/// 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
530530
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
531531
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
532532
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
533-
/// <returns>DeletedAtResponse</returns>
534-
DeletedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);
533+
/// <returns>UpdatedAtResponse</returns>
534+
UpdatedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default);
535535

536536
/// <summary>
537537
/// 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
23742374

23752375

23762376
/// <inheritdoc />
2377-
public async Task<DeletedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default)
2377+
public async Task<UpdatedAtResponse> DeleteByAsync(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default)
23782378
{
23792379

23802380
if (indexName == null)
@@ -2389,12 +2389,12 @@ public async Task<DeletedAtResponse> DeleteByAsync(string indexName, DeleteByPar
23892389
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
23902390

23912391
requestOptions.Data = deleteByParams;
2392-
return await _transport.ExecuteRequestAsync<DeletedAtResponse>(new HttpMethod("POST"), "/1/indexes/{indexName}/deleteByQuery", requestOptions, cancellationToken).ConfigureAwait(false);
2392+
return await _transport.ExecuteRequestAsync<UpdatedAtResponse>(new HttpMethod("POST"), "/1/indexes/{indexName}/deleteByQuery", requestOptions, cancellationToken).ConfigureAwait(false);
23932393
}
23942394

23952395

23962396
/// <inheritdoc />
2397-
public DeletedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) =>
2397+
public UpdatedAtResponse DeleteBy(string indexName, DeleteByParams deleteByParams, RequestOptions options = null, CancellationToken cancellationToken = default) =>
23982398
AsyncHelper.RunSync(() => DeleteByAsync(indexName, deleteByParams, options, cancellationToken));
23992399

24002400

0 commit comments

Comments
 (0)