Skip to content

Commit 2713196

Browse files
algolia-botkai687
andcommitted
chore: generated code for commit 200f07e9. [skip ci]
algolia/api-clients-automation@200f07e Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent 1420996 commit 2713196

File tree

3 files changed

+903
-9
lines changed

3 files changed

+903
-9
lines changed

algoliasearch/Clients/SearchClient.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,8 @@ public interface ISearchClient
800800
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
801801
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
802802
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
803-
/// <returns>Task of IndexSettings</returns>
804-
Task<IndexSettings> GetSettingsAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
803+
/// <returns>Task of SettingsResponse</returns>
804+
Task<SettingsResponse> GetSettingsAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
805805

806806
/// <summary>
807807
/// Retrieves an object with non-null index settings. (Synchronous version)
@@ -812,8 +812,8 @@ public interface ISearchClient
812812
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
813813
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
814814
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
815-
/// <returns>IndexSettings</returns>
816-
IndexSettings GetSettings(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
815+
/// <returns>SettingsResponse</returns>
816+
SettingsResponse GetSettings(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default);
817817

818818
/// <summary>
819819
/// Retrieves all allowed IP addresses with access to your application.
@@ -3077,8 +3077,8 @@ public Rule GetRule(string indexName, string objectID, RequestOptions options =
30773077
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
30783078
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
30793079
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
3080-
/// <returns>Task of IndexSettings</returns>
3081-
public async Task<IndexSettings> GetSettingsAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
3080+
/// <returns>Task of SettingsResponse</returns>
3081+
public async Task<SettingsResponse> GetSettingsAsync(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default)
30823082
{
30833083

30843084
if (indexName == null)
@@ -3088,7 +3088,7 @@ public async Task<IndexSettings> GetSettingsAsync(string indexName, RequestOptio
30883088

30893089
requestOptions.PathParameters.Add("indexName", QueryStringHelper.ParameterToString(indexName));
30903090

3091-
return await _transport.ExecuteRequestAsync<IndexSettings>(new HttpMethod("GET"), "/1/indexes/{indexName}/settings", requestOptions, cancellationToken).ConfigureAwait(false);
3091+
return await _transport.ExecuteRequestAsync<SettingsResponse>(new HttpMethod("GET"), "/1/indexes/{indexName}/settings", requestOptions, cancellationToken).ConfigureAwait(false);
30923092
}
30933093

30943094

@@ -3104,8 +3104,8 @@ public async Task<IndexSettings> GetSettingsAsync(string indexName, RequestOptio
31043104
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
31053105
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
31063106
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
3107-
/// <returns>IndexSettings</returns>
3108-
public IndexSettings GetSettings(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
3107+
/// <returns>SettingsResponse</returns>
3108+
public SettingsResponse GetSettings(string indexName, RequestOptions options = null, CancellationToken cancellationToken = default) =>
31093109
AsyncHelper.RunSync(() => GetSettingsAsync(indexName, options, cancellationToken));
31103110

31113111

0 commit comments

Comments
 (0)