Skip to content

Commit 2493dce

Browse files
algolia-botkai687shortcuts
committed
chore: deprecate mcm methods (generated)
algolia/api-clients-automation#4694 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent 75f740c commit 2493dce

File tree

1 file changed

+84
-68
lines changed

1 file changed

+84
-68
lines changed

Sources/Search/SearchClient.swift

+84-68
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ open class SearchClient {
223223
/// - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
224224
/// - parameter assignUserIdParams: (body)
225225
/// - returns: CreatedAtResponse
226+
@available(*, deprecated, message: "This operation is deprecated.")
226227
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
227228
open func assignUserId(
228229
xAlgoliaUserID: String,
@@ -242,15 +243,16 @@ open class SearchClient {
242243
return body
243244
}
244245

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.")
254256

255257
open func assignUserIdWithHTTPInfo(
256258
xAlgoliaUserID: String,
@@ -350,6 +352,7 @@ open class SearchClient {
350352
/// - parameter xAlgoliaUserID: (header) Unique identifier of the user who makes the search request.
351353
/// - parameter batchAssignUserIdsParams: (body)
352354
/// - returns: CreatedAtResponse
355+
@available(*, deprecated, message: "This operation is deprecated.")
353356
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
354357
open func batchAssignUserIds(
355358
xAlgoliaUserID: String,
@@ -369,14 +372,15 @@ open class SearchClient {
369372
return body
370373
}
371374

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.")
380384

381385
open func batchAssignUserIdsWithHTTPInfo(
382386
xAlgoliaUserID: String,
@@ -2294,6 +2298,7 @@ open class SearchClient {
22942298
}
22952299

22962300
/// - returns: GetTopUserIdsResponse
2301+
@available(*, deprecated, message: "This operation is deprecated.")
22972302
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
22982303
open func getTopUserIds(requestOptions: RequestOptions? = nil) async throws -> GetTopUserIdsResponse {
22992304
let response: Response<GetTopUserIdsResponse> =
@@ -2306,11 +2311,12 @@ open class SearchClient {
23062311
return body
23072312
}
23082313

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.")
23142320

23152321
open func getTopUserIdsWithHTTPInfo(requestOptions userRequestOptions: RequestOptions? = nil) async throws
23162322
-> Response<GetTopUserIdsResponse> {
@@ -2335,6 +2341,7 @@ open class SearchClient {
23352341

23362342
/// - parameter userID: (path) Unique identifier of the user who makes the search request.
23372343
/// - returns: UserId
2344+
@available(*, deprecated, message: "This operation is deprecated.")
23382345
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
23392346
open func getUserId(userID: String, requestOptions: RequestOptions? = nil) async throws -> UserId {
23402347
let response: Response<UserId> = try await getUserIdWithHTTPInfo(userID: userID, requestOptions: requestOptions)
@@ -2346,13 +2353,14 @@ open class SearchClient {
23462353
return body
23472354
}
23482355

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.")
23562364

23572365
open func getUserIdWithHTTPInfo(
23582366
userID: String,
@@ -2393,6 +2401,7 @@ open class SearchClient {
23932401
/// - parameter getClusters: (query) Whether to include the cluster's pending mapping state in the response.
23942402
/// (optional)
23952403
/// - returns: HasPendingMappingsResponse
2404+
@available(*, deprecated, message: "This operation is deprecated.")
23962405
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
23972406
open func hasPendingMappings(
23982407
getClusters: Bool? = nil,
@@ -2410,14 +2419,15 @@ open class SearchClient {
24102419
return body
24112420
}
24122421

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.")
24212431

24222432
open func hasPendingMappingsWithHTTPInfo(
24232433
getClusters: Bool? = nil,
@@ -2483,6 +2493,7 @@ open class SearchClient {
24832493
}
24842494

24852495
/// - returns: ListClustersResponse
2496+
@available(*, deprecated, message: "This operation is deprecated.")
24862497
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
24872498
open func listClusters(requestOptions: RequestOptions? = nil) async throws -> ListClustersResponse {
24882499
let response: Response<ListClustersResponse> =
@@ -2495,10 +2506,11 @@ open class SearchClient {
24952506
return body
24962507
}
24972508

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.")
25022514

25032515
open func listClustersWithHTTPInfo(requestOptions userRequestOptions: RequestOptions? = nil) async throws
25042516
-> Response<ListClustersResponse> {
@@ -2586,6 +2598,7 @@ open class SearchClient {
25862598
/// (optional)
25872599
/// - parameter hitsPerPage: (query) Number of hits per page. (optional, default to 100)
25882600
/// - returns: ListUserIdsResponse
2601+
@available(*, deprecated, message: "This operation is deprecated.")
25892602
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
25902603
open func listUserIds(
25912604
page: Int? = nil,
@@ -2605,16 +2618,17 @@ open class SearchClient {
26052618
return body
26062619
}
26072620

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.")
26182632

26192633
open func listUserIdsWithHTTPInfo(
26202634
page: Int? = nil,
@@ -2894,6 +2908,7 @@ open class SearchClient {
28942908

28952909
/// - parameter userID: (path) Unique identifier of the user who makes the search request.
28962910
/// - returns: RemoveUserIdResponse
2911+
@available(*, deprecated, message: "This operation is deprecated.")
28972912
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
28982913
open func removeUserId(userID: String, requestOptions: RequestOptions? = nil) async throws -> RemoveUserIdResponse {
28992914
let response: Response<RemoveUserIdResponse> = try await removeUserIdWithHTTPInfo(
@@ -2908,12 +2923,13 @@ open class SearchClient {
29082923
return body
29092924
}
29102925

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.")
29172933

29182934
open func removeUserIdWithHTTPInfo(
29192935
userID: String,
@@ -3924,6 +3940,7 @@ open class SearchClient {
39243940

39253941
/// - parameter searchUserIdsParams: (body)
39263942
/// - returns: SearchUserIdsResponse
3943+
@available(*, deprecated, message: "This operation is deprecated.")
39273944
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
39283945
open func searchUserIds(
39293946
searchUserIdsParams: SearchUserIdsParams,
@@ -3941,17 +3958,16 @@ open class SearchClient {
39413958
return body
39423959
}
39433960

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.")
39553971

39563972
open func searchUserIdsWithHTTPInfo(
39573973
searchUserIdsParams: SearchUserIdsParams,

0 commit comments

Comments
 (0)