Skip to content

Commit a516830

Browse files
kai687shortcuts
andauthored
chore: deprecate mcm methods (#4694)
Co-authored-by: shortcuts <[email protected]>
1 parent 539ba61 commit a516830

File tree

12 files changed

+33
-12
lines changed

12 files changed

+33
-12
lines changed

specs/search/paths/multiclusters/batchAssignUserIds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ post:
22
tags:
33
- Clusters
44
operationId: batchAssignUserIds
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Assign multiple userIDs

specs/search/paths/multiclusters/getTopUserIds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: getTopUserIds
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Get top user IDs

specs/search/paths/multiclusters/hasPendingMappings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: hasPendingMappings
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Get migration and user mapping status

specs/search/paths/multiclusters/listClusters.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: listClusters
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: List clusters

specs/search/paths/multiclusters/searchUserIds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ post:
22
tags:
33
- Clusters
44
operationId: searchUserIds
5+
deprecated: true
56
x-use-read-transporter: true
67
x-cacheable: true
78
x-acl:

specs/search/paths/multiclusters/userId.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ get:
22
tags:
33
- Clusters
44
operationId: getUserId
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Retrieve user ID
@@ -32,6 +33,7 @@ delete:
3233
tags:
3334
- Clusters
3435
operationId: removeUserId
36+
deprecated: true
3537
x-acl:
3638
- admin
3739
summary: Delete user ID

specs/search/paths/multiclusters/userIds.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ post:
22
tags:
33
- Clusters
44
operationId: assignUserId
5+
deprecated: true
56
x-acl:
67
- admin
78
summary: Assign or move a user ID
@@ -41,6 +42,7 @@ get:
4142
tags:
4243
- Clusters
4344
operationId: listUserIds
45+
deprecated: true
4446
x-acl:
4547
- admin
4648
summary: List user IDs

specs/search/spec.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,9 @@ tags:
128128
description: |
129129
Multi-cluster operations.
130130
131-
Algolia no longer offers multi-cluster management.
132-
externalDocs:
133-
url: https://www.algolia.com/doc/guides/scaling/managing-multiple-clusters-mcm/
134-
description: |
135-
Related guide: Multi-cluster management.
131+
Multi-cluster operations are **deprecated**.
132+
If you have issues with your Algolia infrastructure
133+
due to large volumes of data, contact the Algolia support team.
136134
- name: Dictionaries
137135
description: |
138136
Manage your dictionaries.

templates/javascript/clients/client/api/operation/jsdoc.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
{{#x-acl}}
77
* - {{.}}
88
{{/x-acl}}
9+
{{#isDeprecated}}
10+
*
11+
* @deprecated
12+
{{/isDeprecated}}
913
{{#x-create-wrapping-object}}
1014
* @param {{nickname}} - The {{nickname}} object.
1115
{{#allParams}}

templates/kotlin/api.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class {{classname}}(
4949
require(region == null || region in allowedRegions) { "`region` must be one of the following: ${allowedRegions.joinToString()}" }
5050
{{/fallbackToAliasHost}}
5151
val url = {{#fallbackToAliasHost}}if (region == null) "{{{hostWithFallback}}}" else {{/fallbackToAliasHost}} "{{{hostForKotlin}}}"
52-
listOf(Host(url))
52+
listOf(Host(url))
5353
{{/hasRegionalHost}}
5454
{{#hostsWithoutVariables.size}}
5555
listOf(
@@ -70,6 +70,9 @@ public class {{classname}}(
7070
* - {{.}}
7171
{{/x-acl}}
7272
{{/vendorExtensions}}
73+
{{#isDeprecated}}
74+
* @deprecated
75+
{{/isDeprecated}}
7376
{{#allParams}}
7477
* @param {{{paramName}}} {{{description}}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
7578
{{/allParams}}

templates/ruby/api.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ module {{moduleName}}
101101
# - {{.}}
102102
{{/x-acl}}
103103
{{/vendorExtensions}}
104+
{{#isDeprecated}}
105+
# THIS OPERATION IS DEPRECATED
106+
{{/isDeprecated}}
104107
{{#allParams}}
105108
{{#required}}
106109
# @param {{paramName}} [{{{dataType}}}] {{{description}}} (required)

templates/scala/api.mustache

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ object {{classname}} {
3030
* @param apiKey
3131
* api key
3232
{{#hasRegionalHost}} * @param region
33-
* region{{/hasRegionalHost}}
33+
* region{{/hasRegionalHost}}
3434
* @param clientOptions
3535
* client options
3636
*/
@@ -44,7 +44,7 @@ object {{classname}} {
4444
) = new {{classname}}(
4545
appId = appId,
4646
apiKey = apiKey,
47-
{{#hasRegionalHost}}region = region,{{/hasRegionalHost}}
47+
{{#hasRegionalHost}}region = region,{{/hasRegionalHost}}
4848
clientOptions = clientOptions
4949
)
5050

@@ -119,7 +119,7 @@ class {{classname}}(
119119
formats = JsonSupport.format,
120120
options = clientOptions
121121
) {
122-
122+
123123
{{#operation}}
124124
/** {{{notes}}}
125125
{{#vendorExtensions}}
@@ -130,10 +130,14 @@ class {{classname}}(
130130
* - {{.}}
131131
{{/x-acl}}
132132
{{/vendorExtensions}}
133+
{{#isDeprecated}}
134+
*
135+
* @deprecated
136+
{{/isDeprecated}}
133137
*
134138
{{#allParams}}
135139
{{#description}}
136-
* @param {{{paramName}}}
140+
* @param {{{paramName}}}
137141
* {{{.}}}
138142
{{/description}}
139143
{{/allParams}}
@@ -145,9 +149,9 @@ class {{classname}}(
145149

146150
val request = HttpRequest.builder()
147151
.withMethod("{{httpMethod}}")
148-
.withPath({{#vendorExtensions}}{{#x-is-custom-request}}s"{{{path}}}"{{/x-is-custom-request}}{{^x-is-custom-request}}s"{{#lambda.escape-path}}{{{path}}}{{/lambda.escape-path}}"{{/x-is-custom-request}}{{/vendorExtensions}})
152+
.withPath({{#vendorExtensions}}{{#x-is-custom-request}}s"{{{path}}}"{{/x-is-custom-request}}{{^x-is-custom-request}}s"{{#lambda.escape-path}}{{{path}}}{{/lambda.escape-path}}"{{/x-is-custom-request}}{{/vendorExtensions}})
149153
{{#bodyParam}}.withBody({{paramName}}){{/bodyParam}}
150-
{{#headerParams}}.withHeader("{{baseName}}", {{paramName}}){{/headerParams}}
154+
{{#headerParams}}.withHeader("{{baseName}}", {{paramName}}){{/headerParams}}
151155
{{#vendorExtensions.x-use-read-transporter}}.withRead(true){{/vendorExtensions.x-use-read-transporter}}
152156
{{#vendorExtensions}}{{#queryParams}}{{^x-is-custom-request}}.withQueryParameter("{{baseName}}", {{paramName}}){{/x-is-custom-request}}{{#x-is-custom-request}}.withQueryParameters(parameters){{/x-is-custom-request}}{{/queryParams}}{{/vendorExtensions}}
153157
.build()

0 commit comments

Comments
 (0)