@@ -223,6 +223,7 @@ open class SearchClient {
223
223
/// - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
224
224
/// - parameter assignUserIdParams: (body)
225
225
/// - returns: CreatedAtResponse
226
+ @available ( * , deprecated, message: " This operation is deprecated. " )
226
227
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
227
228
open func assignUserId(
228
229
xAlgoliaUserID: String ,
@@ -242,15 +243,16 @@ open class SearchClient {
242
243
return body
243
244
}
244
245
245
- // Assigns or moves a user ID to a cluster. The time it takes to move a user is proportional to the amount of data
246
- // linked to the user ID.
247
- // Required API Key ACLs:
248
- // - admin
249
- //
250
- // - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
251
- //
252
- // - parameter assignUserIdParams: (body)
253
- // - returns: RequestBuilder<CreatedAtResponse>
246
+ /// Assigns or moves a user ID to a cluster. The time it takes to move a user is proportional to the amount of data
247
+ /// linked to the user ID.
248
+ /// Required API Key ACLs:
249
+ /// - admin
250
+ ///
251
+ /// - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
252
+ ///
253
+ /// - parameter assignUserIdParams: (body)
254
+ /// - returns: RequestBuilder<CreatedAtResponse>
255
+ @available ( * , deprecated, message: " This operation is deprecated. " )
254
256
255
257
open func assignUserIdWithHTTPInfo(
256
258
xAlgoliaUserID: String ,
@@ -350,6 +352,7 @@ open class SearchClient {
350
352
/// - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
351
353
/// - parameter batchAssignUserIdsParams: (body)
352
354
/// - returns: CreatedAtResponse
355
+ @available ( * , deprecated, message: " This operation is deprecated. " )
353
356
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
354
357
open func batchAssignUserIds(
355
358
xAlgoliaUserID: String ,
@@ -369,14 +372,15 @@ open class SearchClient {
369
372
return body
370
373
}
371
374
372
- // Assigns multiple user IDs to a cluster. **You can't move users with this operation**.
373
- // Required API Key ACLs:
374
- // - admin
375
- //
376
- // - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
377
- //
378
- // - parameter batchAssignUserIdsParams: (body)
379
- // - returns: RequestBuilder<CreatedAtResponse>
375
+ /// Assigns multiple user IDs to a cluster. **You can't move users with this operation**.
376
+ /// Required API Key ACLs:
377
+ /// - admin
378
+ ///
379
+ /// - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
380
+ ///
381
+ /// - parameter batchAssignUserIdsParams: (body)
382
+ /// - returns: RequestBuilder<CreatedAtResponse>
383
+ @available ( * , deprecated, message: " This operation is deprecated. " )
380
384
381
385
open func batchAssignUserIdsWithHTTPInfo(
382
386
xAlgoliaUserID: String ,
@@ -2294,6 +2298,7 @@ open class SearchClient {
2294
2298
}
2295
2299
2296
2300
/// - returns: GetTopUserIdsResponse
2301
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2297
2302
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2298
2303
open func getTopUserIds( requestOptions: RequestOptions ? = nil ) async throws -> GetTopUserIdsResponse {
2299
2304
let response : Response < GetTopUserIdsResponse > =
@@ -2306,11 +2311,12 @@ open class SearchClient {
2306
2311
return body
2307
2312
}
2308
2313
2309
- // Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to
2310
- // get the data from the different clusters, the response isn't real-time.
2311
- // Required API Key ACLs:
2312
- // - admin
2313
- // - returns: RequestBuilder<GetTopUserIdsResponse>
2314
+ /// Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to
2315
+ /// get the data from the different clusters, the response isn't real-time.
2316
+ /// Required API Key ACLs:
2317
+ /// - admin
2318
+ /// - returns: RequestBuilder<GetTopUserIdsResponse>
2319
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2314
2320
2315
2321
open func getTopUserIdsWithHTTPInfo( requestOptions userRequestOptions: RequestOptions ? = nil ) async throws
2316
2322
-> Response < GetTopUserIdsResponse > {
@@ -2335,6 +2341,7 @@ open class SearchClient {
2335
2341
2336
2342
/// - parameter userID: (path) Unique identifier of the user who makes the search request.
2337
2343
/// - returns: UserId
2344
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2338
2345
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2339
2346
open func getUserId( userID: String , requestOptions: RequestOptions ? = nil ) async throws -> UserId {
2340
2347
let response : Response < UserId > = try await getUserIdWithHTTPInfo ( userID: userID, requestOptions: requestOptions)
@@ -2346,13 +2353,14 @@ open class SearchClient {
2346
2353
return body
2347
2354
}
2348
2355
2349
- // Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the
2350
- // different clusters, the response isn't real-time.
2351
- // Required API Key ACLs:
2352
- // - admin
2353
- //
2354
- // - parameter userID: (path) Unique identifier of the user who makes the search request.
2355
- // - returns: RequestBuilder<UserId>
2356
+ /// Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the
2357
+ /// different clusters, the response isn't real-time.
2358
+ /// Required API Key ACLs:
2359
+ /// - admin
2360
+ ///
2361
+ /// - parameter userID: (path) Unique identifier of the user who makes the search request.
2362
+ /// - returns: RequestBuilder<UserId>
2363
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2356
2364
2357
2365
open func getUserIdWithHTTPInfo(
2358
2366
userID: String ,
@@ -2393,6 +2401,7 @@ open class SearchClient {
2393
2401
/// - parameter getClusters: (query) Whether to include the cluster's pending mapping state in the response.
2394
2402
/// (optional)
2395
2403
/// - returns: HasPendingMappingsResponse
2404
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2396
2405
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2397
2406
open func hasPendingMappings(
2398
2407
getClusters: Bool ? = nil ,
@@ -2410,14 +2419,15 @@ open class SearchClient {
2410
2419
return body
2411
2420
}
2412
2421
2413
- // To determine when the time-consuming process of creating a large batch of users or migrating users from one
2414
- // cluster to another is complete, this operation retrieves the status of the process.
2415
- // Required API Key ACLs:
2416
- // - admin
2417
- //
2418
- // - parameter getClusters: (query) Whether to include the cluster's pending mapping state in the response.
2419
- // (optional)
2420
- // - returns: RequestBuilder<HasPendingMappingsResponse>
2422
+ /// To determine when the time-consuming process of creating a large batch of users or migrating users from one
2423
+ /// cluster to another is complete, this operation retrieves the status of the process.
2424
+ /// Required API Key ACLs:
2425
+ /// - admin
2426
+ ///
2427
+ /// - parameter getClusters: (query) Whether to include the cluster's pending mapping state in the response.
2428
+ /// (optional)
2429
+ /// - returns: RequestBuilder<HasPendingMappingsResponse>
2430
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2421
2431
2422
2432
open func hasPendingMappingsWithHTTPInfo(
2423
2433
getClusters: Bool ? = nil ,
@@ -2483,6 +2493,7 @@ open class SearchClient {
2483
2493
}
2484
2494
2485
2495
/// - returns: ListClustersResponse
2496
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2486
2497
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2487
2498
open func listClusters( requestOptions: RequestOptions ? = nil ) async throws -> ListClustersResponse {
2488
2499
let response : Response < ListClustersResponse > =
@@ -2495,10 +2506,11 @@ open class SearchClient {
2495
2506
return body
2496
2507
}
2497
2508
2498
- // Lists the available clusters in a multi-cluster setup.
2499
- // Required API Key ACLs:
2500
- // - admin
2501
- // - returns: RequestBuilder<ListClustersResponse>
2509
+ /// Lists the available clusters in a multi-cluster setup.
2510
+ /// Required API Key ACLs:
2511
+ /// - admin
2512
+ /// - returns: RequestBuilder<ListClustersResponse>
2513
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2502
2514
2503
2515
open func listClustersWithHTTPInfo( requestOptions userRequestOptions: RequestOptions ? = nil ) async throws
2504
2516
-> Response < ListClustersResponse > {
@@ -2586,6 +2598,7 @@ open class SearchClient {
2586
2598
/// (optional)
2587
2599
/// - parameter hitsPerPage: (query) Number of hits per page. (optional, default to 100)
2588
2600
/// - returns: ListUserIdsResponse
2601
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2589
2602
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2590
2603
open func listUserIds(
2591
2604
page: Int ? = nil ,
@@ -2605,16 +2618,17 @@ open class SearchClient {
2605
2618
return body
2606
2619
}
2607
2620
2608
- // Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from
2609
- // the different clusters, the response isn't real-time.
2610
- // Required API Key ACLs:
2611
- // - admin
2612
- //
2613
- // - parameter page: (query) Requested page of the API response. If `null`, the API response is not paginated.
2614
- // (optional)
2615
- //
2616
- // - parameter hitsPerPage: (query) Number of hits per page. (optional, default to 100)
2617
- // - returns: RequestBuilder<ListUserIdsResponse>
2621
+ /// Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from
2622
+ /// the different clusters, the response isn't real-time.
2623
+ /// Required API Key ACLs:
2624
+ /// - admin
2625
+ ///
2626
+ /// - parameter page: (query) Requested page of the API response. If `null`, the API response is not paginated.
2627
+ /// (optional)
2628
+ ///
2629
+ /// - parameter hitsPerPage: (query) Number of hits per page. (optional, default to 100)
2630
+ /// - returns: RequestBuilder<ListUserIdsResponse>
2631
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2618
2632
2619
2633
open func listUserIdsWithHTTPInfo(
2620
2634
page: Int ? = nil ,
@@ -2894,6 +2908,7 @@ open class SearchClient {
2894
2908
2895
2909
/// - parameter userID: (path) Unique identifier of the user who makes the search request.
2896
2910
/// - returns: RemoveUserIdResponse
2911
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2897
2912
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2898
2913
open func removeUserId( userID: String , requestOptions: RequestOptions ? = nil ) async throws -> RemoveUserIdResponse {
2899
2914
let response : Response < RemoveUserIdResponse > = try await removeUserIdWithHTTPInfo (
@@ -2908,12 +2923,13 @@ open class SearchClient {
2908
2923
return body
2909
2924
}
2910
2925
2911
- // Deletes a user ID and its associated data from the clusters.
2912
- // Required API Key ACLs:
2913
- // - admin
2914
- //
2915
- // - parameter userID: (path) Unique identifier of the user who makes the search request.
2916
- // - returns: RequestBuilder<RemoveUserIdResponse>
2926
+ /// Deletes a user ID and its associated data from the clusters.
2927
+ /// Required API Key ACLs:
2928
+ /// - admin
2929
+ ///
2930
+ /// - parameter userID: (path) Unique identifier of the user who makes the search request.
2931
+ /// - returns: RequestBuilder<RemoveUserIdResponse>
2932
+ @available ( * , deprecated, message: " This operation is deprecated. " )
2917
2933
2918
2934
open func removeUserIdWithHTTPInfo(
2919
2935
userID: String ,
@@ -3924,6 +3940,7 @@ open class SearchClient {
3924
3940
3925
3941
/// - parameter searchUserIdsParams: (body)
3926
3942
/// - returns: SearchUserIdsResponse
3943
+ @available ( * , deprecated, message: " This operation is deprecated. " )
3927
3944
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
3928
3945
open func searchUserIds(
3929
3946
searchUserIdsParams: SearchUserIdsParams ,
@@ -3941,17 +3958,16 @@ open class SearchClient {
3941
3958
return body
3942
3959
}
3943
3960
3944
- // Since it can take a few seconds to get the data from the different clusters, the response isn't real-time. To
3945
- // ensure rapid updates, the user IDs index isn't built at the same time as the mapping. Instead, it's built every
3946
- // 12
3947
- // hours, at the same time as the update of user ID usage. For example, if you add or move a user ID, the search
3948
- // will
3949
- // show an old value until the next time the mapping is rebuilt (every 12 hours).
3950
- // Required API Key ACLs:
3951
- // - admin
3952
- //
3953
- // - parameter searchUserIdsParams: (body)
3954
- // - returns: RequestBuilder<SearchUserIdsResponse>
3961
+ /// Since it can take a few seconds to get the data from the different clusters, the response isn't real-time. To
3962
+ /// ensure rapid updates, the user IDs index isn't built at the same time as the mapping. Instead, it's built every
3963
+ /// 12 hours, at the same time as the update of user ID usage. For example, if you add or move a user ID, the search
3964
+ /// will show an old value until the next time the mapping is rebuilt (every 12 hours).
3965
+ /// Required API Key ACLs:
3966
+ /// - admin
3967
+ ///
3968
+ /// - parameter searchUserIdsParams: (body)
3969
+ /// - returns: RequestBuilder<SearchUserIdsResponse>
3970
+ @available ( * , deprecated, message: " This operation is deprecated. " )
3955
3971
3956
3972
open func searchUserIdsWithHTTPInfo(
3957
3973
searchUserIdsParams: SearchUserIdsParams ,
0 commit comments