@@ -800,8 +800,8 @@ public interface ISearchClient
800
800
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
801
801
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
802
802
/// <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 ) ;
805
805
806
806
/// <summary>
807
807
/// Retrieves an object with non-null index settings. (Synchronous version)
@@ -812,8 +812,8 @@ public interface ISearchClient
812
812
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
813
813
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
814
814
/// <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 ) ;
817
817
818
818
/// <summary>
819
819
/// Retrieves all allowed IP addresses with access to your application.
@@ -3077,8 +3077,8 @@ public Rule GetRule(string indexName, string objectID, RequestOptions options =
3077
3077
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
3078
3078
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
3079
3079
/// <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 )
3082
3082
{
3083
3083
3084
3084
if ( indexName == null )
@@ -3088,7 +3088,7 @@ public async Task<IndexSettings> GetSettingsAsync(string indexName, RequestOptio
3088
3088
3089
3089
requestOptions . PathParameters . Add ( "indexName" , QueryStringHelper . ParameterToString ( indexName ) ) ;
3090
3090
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 ) ;
3092
3092
}
3093
3093
3094
3094
@@ -3104,8 +3104,8 @@ public async Task<IndexSettings> GetSettingsAsync(string indexName, RequestOptio
3104
3104
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
3105
3105
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
3106
3106
/// <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 ) =>
3109
3109
AsyncHelper . RunSync ( ( ) => GetSettingsAsync ( indexName , options , cancellationToken ) ) ;
3110
3110
3111
3111
0 commit comments