@@ -142,8 +142,8 @@ public interface IUsageClient
142
142
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
143
143
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
144
144
/// <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 ) ;
147
147
148
148
/// <summary>
149
149
/// Retrieves the selected usage statistics for one index. (Synchronous version)
@@ -158,8 +158,8 @@ public interface IUsageClient
158
158
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
159
159
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
160
160
/// <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 ) ;
163
163
164
164
/// <summary>
165
165
/// Retrieves usage statistics evaluated over a specified period.
@@ -173,8 +173,8 @@ public interface IUsageClient
173
173
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
174
174
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
175
175
/// <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 ) ;
178
178
179
179
/// <summary>
180
180
/// Retrieves usage statistics evaluated over a specified period. (Synchronous version)
@@ -188,8 +188,8 @@ public interface IUsageClient
188
188
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
189
189
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
190
190
/// <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 ) ;
193
193
194
194
}
195
195
@@ -438,8 +438,8 @@ public object CustomPut(string path, Dictionary<string, object> parameters = def
438
438
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
439
439
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
440
440
/// <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 )
443
443
{
444
444
445
445
@@ -462,7 +462,7 @@ public async Task<GetUsage200Response> GetIndexUsageAsync(Statistic statistic, s
462
462
requestOptions . AddQueryParameter ( "startDate" , startDate ) ;
463
463
requestOptions . AddQueryParameter ( "endDate" , endDate ) ;
464
464
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 ) ;
466
466
}
467
467
468
468
@@ -479,8 +479,8 @@ public async Task<GetUsage200Response> GetIndexUsageAsync(Statistic statistic, s
479
479
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
480
480
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
481
481
/// <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 ) =>
484
484
AsyncHelper . RunSync ( ( ) => GetIndexUsageAsync ( statistic , indexName , startDate , endDate , granularity , options , cancellationToken ) ) ;
485
485
486
486
@@ -496,8 +496,8 @@ public GetUsage200Response GetIndexUsage(Statistic statistic, string indexName,
496
496
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
497
497
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
498
498
/// <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 )
501
501
{
502
502
503
503
@@ -515,7 +515,7 @@ public async Task<GetUsage200Response> GetUsageAsync(Statistic statistic, string
515
515
requestOptions . AddQueryParameter ( "startDate" , startDate ) ;
516
516
requestOptions . AddQueryParameter ( "endDate" , endDate ) ;
517
517
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 ) ;
519
519
}
520
520
521
521
@@ -531,8 +531,8 @@ public async Task<GetUsage200Response> GetUsageAsync(Statistic statistic, string
531
531
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
532
532
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
533
533
/// <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 ) =>
536
536
AsyncHelper . RunSync ( ( ) => GetUsageAsync ( statistic , startDate , endDate , granularity , options , cancellationToken ) ) ;
537
537
538
538
}
0 commit comments