Skip to content

Commit 1f50760

Browse files
fix(specs): saveRule response type [skip-bc] (generated)
algolia/api-clients-automation#4170 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 474482e commit 1f50760

File tree

2 files changed

+7
-130
lines changed

2 files changed

+7
-130
lines changed

algoliasearch/Clients/SearchClient.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,8 +1494,8 @@ public partial interface ISearchClient
14941494
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
14951495
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
14961496
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1497-
/// <returns>Task of UpdatedRuleResponse</returns>
1498-
Task<UpdatedRuleResponse> SaveRuleAsync(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default);
1497+
/// <returns>Task of UpdatedAtResponse</returns>
1498+
Task<UpdatedAtResponse> SaveRuleAsync(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default);
14991499

15001500
/// <summary>
15011501
/// If a rule with the specified object ID doesn't exist, it's created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules). (Synchronous version)
@@ -1512,8 +1512,8 @@ public partial interface ISearchClient
15121512
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
15131513
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
15141514
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1515-
/// <returns>UpdatedRuleResponse</returns>
1516-
UpdatedRuleResponse SaveRule(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default);
1515+
/// <returns>UpdatedAtResponse</returns>
1516+
UpdatedAtResponse SaveRule(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default);
15171517

15181518
/// <summary>
15191519
/// Create or update multiple rules. If a rule with the specified object ID doesn't exist, Algolia creates a new one. Otherwise, existing rules are replaced. This operation is subject to [indexing rate limits](https://support.algolia.com/hc/en-us/articles/4406975251089-Is-there-a-rate-limit-for-indexing-on-Algolia).
@@ -3032,7 +3032,7 @@ public SaveObjectResponse SaveObject(string indexName, object body, RequestOptio
30323032

30333033

30343034
/// <inheritdoc />
3035-
public async Task<UpdatedRuleResponse> SaveRuleAsync(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default)
3035+
public async Task<UpdatedAtResponse> SaveRuleAsync(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default)
30363036
{
30373037

30383038
if (indexName == null)
@@ -3053,12 +3053,12 @@ public async Task<UpdatedRuleResponse> SaveRuleAsync(string indexName, string ob
30533053

30543054
requestOptions.AddQueryParameter("forwardToReplicas", forwardToReplicas);
30553055
requestOptions.Data = rule;
3056-
return await _transport.ExecuteRequestAsync<UpdatedRuleResponse>(new HttpMethod("PUT"), "/1/indexes/{indexName}/rules/{objectID}", requestOptions, cancellationToken).ConfigureAwait(false);
3056+
return await _transport.ExecuteRequestAsync<UpdatedAtResponse>(new HttpMethod("PUT"), "/1/indexes/{indexName}/rules/{objectID}", requestOptions, cancellationToken).ConfigureAwait(false);
30573057
}
30583058

30593059

30603060
/// <inheritdoc />
3061-
public UpdatedRuleResponse SaveRule(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
3061+
public UpdatedAtResponse SaveRule(string indexName, string objectID, Rule rule, bool? forwardToReplicas = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
30623062
AsyncHelper.RunSync(() => SaveRuleAsync(indexName, objectID, rule, forwardToReplicas, options, cancellationToken));
30633063

30643064

algoliasearch/Models/Search/UpdatedRuleResponse.cs

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)