Skip to content

Commit 959176d

Browse files
algolia-botmillotp
andcommitted
fix(specs): getObject return object (generated)
algolia/api-clients-automation#3446 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 0021742 commit 959176d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

algoliasearch/Clients/SearchClient.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ public interface ISearchClient
724724
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
725725
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
726726
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
727-
/// <returns>Task of Dictionary{string, string}</returns>
728-
Task<Dictionary<string, string>> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
727+
/// <returns>Task of object</returns>
728+
Task<object> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
729729

730730
/// <summary>
731731
/// Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects). (Synchronous version)
@@ -738,8 +738,8 @@ public interface ISearchClient
738738
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
739739
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
740740
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
741-
/// <returns>Dictionary{string, string}</returns>
742-
Dictionary<string, string> GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
741+
/// <returns>object</returns>
742+
object GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default);
743743

744744
/// <summary>
745745
/// Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
@@ -2929,8 +2929,8 @@ public GetLogsResponse GetLogs(int? offset = default, int? length = default, str
29292929
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
29302930
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
29312931
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
2932-
/// <returns>Task of Dictionary{string, string}</returns>
2933-
public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default)
2932+
/// <returns>Task of object</returns>
2933+
public async Task<object> GetObjectAsync(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default)
29342934
{
29352935

29362936
if (indexName == null)
@@ -2946,7 +2946,7 @@ public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, s
29462946
requestOptions.PathParameters.Add("objectID", QueryStringHelper.ParameterToString(objectID));
29472947

29482948
requestOptions.AddQueryParameter("attributesToRetrieve", attributesToRetrieve);
2949-
return await _transport.ExecuteRequestAsync<Dictionary<string, string>>(new HttpMethod("GET"), "/1/indexes/{indexName}/{objectID}", requestOptions, cancellationToken).ConfigureAwait(false);
2949+
return await _transport.ExecuteRequestAsync<object>(new HttpMethod("GET"), "/1/indexes/{indexName}/{objectID}", requestOptions, cancellationToken).ConfigureAwait(false);
29502950
}
29512951

29522952

@@ -2964,8 +2964,8 @@ public async Task<Dictionary<string, string>> GetObjectAsync(string indexName, s
29642964
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
29652965
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
29662966
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
2967-
/// <returns>Dictionary{string, string}</returns>
2968-
public Dictionary<string, string> GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
2967+
/// <returns>object</returns>
2968+
public object GetObject(string indexName, string objectID, List<string> attributesToRetrieve = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
29692969
AsyncHelper.RunSync(() => GetObjectAsync(indexName, objectID, attributesToRetrieve, options, cancellationToken));
29702970

29712971

0 commit comments

Comments
 (0)