@@ -142,8 +142,8 @@ public interface IUsageClient
142142 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
143143 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
144144 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
145- /// <returns>Task of GetUsage200Response </returns>
146- Task < GetUsage200Response > GetIndexUsageAsync ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
145+ /// <returns>Task of IndexUsage </returns>
146+ Task < IndexUsage > GetIndexUsageAsync ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
147147
148148 /// <summary>
149149 /// Retrieves the selected usage statistics for one index. (Synchronous version)
@@ -158,8 +158,8 @@ public interface IUsageClient
158158 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
159159 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
160160 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
161- /// <returns>GetUsage200Response </returns>
162- GetUsage200Response GetIndexUsage ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
161+ /// <returns>IndexUsage </returns>
162+ IndexUsage GetIndexUsage ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
163163
164164 /// <summary>
165165 /// Retrieves usage statistics evaluated over a specified period.
@@ -173,8 +173,8 @@ public interface IUsageClient
173173 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
174174 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
175175 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
176- /// <returns>Task of GetUsage200Response </returns>
177- Task < GetUsage200Response > GetUsageAsync ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
176+ /// <returns>Task of IndexUsage </returns>
177+ Task < IndexUsage > GetUsageAsync ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
178178
179179 /// <summary>
180180 /// Retrieves usage statistics evaluated over a specified period. (Synchronous version)
@@ -188,8 +188,8 @@ public interface IUsageClient
188188 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
189189 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
190190 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
191- /// <returns>GetUsage200Response </returns>
192- GetUsage200Response GetUsage ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
191+ /// <returns>IndexUsage </returns>
192+ IndexUsage GetUsage ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
193193
194194}
195195
@@ -438,8 +438,8 @@ public object CustomPut(string path, Dictionary<string, object> parameters = def
438438 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
439439 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
440440 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
441- /// <returns>Task of GetUsage200Response </returns>
442- public async Task < GetUsage200Response > GetIndexUsageAsync ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default )
441+ /// <returns>Task of IndexUsage </returns>
442+ public async Task < IndexUsage > GetIndexUsageAsync ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default )
443443 {
444444
445445
@@ -462,7 +462,7 @@ public async Task<GetUsage200Response> GetIndexUsageAsync(Statistic statistic, s
462462 requestOptions . AddQueryParameter ( "startDate" , startDate ) ;
463463 requestOptions . AddQueryParameter ( "endDate" , endDate ) ;
464464 requestOptions . AddQueryParameter ( "granularity" , granularity ) ;
465- return await _transport . ExecuteRequestAsync < GetUsage200Response > ( new HttpMethod ( "GET" ) , "/1/usage/{statistic}/{indexName}" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
465+ return await _transport . ExecuteRequestAsync < IndexUsage > ( new HttpMethod ( "GET" ) , "/1/usage/{statistic}/{indexName}" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
466466 }
467467
468468
@@ -479,8 +479,8 @@ public async Task<GetUsage200Response> GetIndexUsageAsync(Statistic statistic, s
479479 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
480480 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
481481 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
482- /// <returns>GetUsage200Response </returns>
483- public GetUsage200Response GetIndexUsage ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
482+ /// <returns>IndexUsage </returns>
483+ public IndexUsage GetIndexUsage ( Statistic statistic , string indexName , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
484484 AsyncHelper . RunSync ( ( ) => GetIndexUsageAsync ( statistic , indexName , startDate , endDate , granularity , options , cancellationToken ) ) ;
485485
486486
@@ -496,8 +496,8 @@ public GetUsage200Response GetIndexUsage(Statistic statistic, string indexName,
496496 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
497497 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
498498 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
499- /// <returns>Task of GetUsage200Response </returns>
500- public async Task < GetUsage200Response > GetUsageAsync ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default )
499+ /// <returns>Task of IndexUsage </returns>
500+ public async Task < IndexUsage > GetUsageAsync ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default )
501501 {
502502
503503
@@ -515,7 +515,7 @@ public async Task<GetUsage200Response> GetUsageAsync(Statistic statistic, string
515515 requestOptions . AddQueryParameter ( "startDate" , startDate ) ;
516516 requestOptions . AddQueryParameter ( "endDate" , endDate ) ;
517517 requestOptions . AddQueryParameter ( "granularity" , granularity ) ;
518- return await _transport . ExecuteRequestAsync < GetUsage200Response > ( new HttpMethod ( "GET" ) , "/1/usage/{statistic}" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
518+ return await _transport . ExecuteRequestAsync < IndexUsage > ( new HttpMethod ( "GET" ) , "/1/usage/{statistic}" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
519519 }
520520
521521
@@ -531,8 +531,8 @@ public async Task<GetUsage200Response> GetUsageAsync(Statistic statistic, string
531531 /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
532532 /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
533533 /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
534- /// <returns>GetUsage200Response </returns>
535- public GetUsage200Response GetUsage ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
534+ /// <returns>IndexUsage </returns>
535+ public IndexUsage GetUsage ( Statistic statistic , string startDate , string endDate , Granularity ? granularity = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
536536 AsyncHelper . RunSync ( ( ) => GetUsageAsync ( statistic , startDate , endDate , granularity , options , cancellationToken ) ) ;
537537
538538}
0 commit comments