@azure/arm-redisenterprisecache 3.0.1-alpha.20240709.1 → 3.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -13
- package/README.md +1 -1
- package/dist/index.js +1028 -721
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +11 -10
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/databasesExportSample.js +3 -3
- package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesFlushSample.js +4 -4
- package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js +51 -0
- package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js +4 -4
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +1 -1
- package/dist-esm/samples-dev/databasesImportSample.js +4 -4
- package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/databasesListKeysSample.js +1 -1
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js +2 -2
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/databasesUpdateSample.js +3 -3
- package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js +39 -0
- package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/operationsStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +8 -8
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +3 -3
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +72 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +481 -389
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +62 -52
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts +78 -40
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +337 -145
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/operationsStatus.js +5 -5
- package/dist-esm/src/operations/operationsStatus.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +7 -7
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +42 -42
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
- package/dist-esm/src/operations/privateLinkResources.js +8 -8
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts +7 -7
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +66 -66
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/databases.d.ts +76 -38
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +6 -6
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +7 -7
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js +9 -9
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
- package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +1 -1
- package/dist-esm/test/redisenterprisecache_test.spec.js +0 -3
- package/dist-esm/test/redisenterprisecache_test.spec.js.map +1 -1
- package/package.json +6 -6
- package/review/arm-redisenterprisecache.api.md +54 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +105 -18
- package/src/models/mappers.ts +539 -437
- package/src/models/parameters.ts +65 -53
- package/src/operations/databases.ts +527 -272
- package/src/operations/operations.ts +16 -16
- package/src/operations/operationsStatus.ts +9 -10
- package/src/operations/privateEndpointConnections.ts +78 -83
- package/src/operations/privateLinkResources.ts +18 -19
- package/src/operations/redisEnterprise.ts +121 -130
- package/src/operationsInterfaces/databases.ts +132 -57
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/operationsStatus.ts +2 -2
- package/src/operationsInterfaces/privateEndpointConnections.ts +13 -13
- package/src/operationsInterfaces/privateLinkResources.ts +3 -3
- package/src/operationsInterfaces/redisEnterprise.ts +17 -17
- package/src/pagingHelper.ts +1 -1
- package/src/redisEnterpriseManagementClient.ts +18 -17
- package/types/arm-redisenterprisecache.d.ts +170 -51
|
@@ -16,7 +16,7 @@ import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementCli
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -43,9 +43,14 @@ import {
|
|
|
43
43
|
DatabasesExportOptionalParams,
|
|
44
44
|
ForceUnlinkParameters,
|
|
45
45
|
DatabasesForceUnlinkOptionalParams,
|
|
46
|
+
ForceLinkParameters,
|
|
47
|
+
DatabasesForceLinkToReplicationGroupOptionalParams,
|
|
48
|
+
DatabasesForceLinkToReplicationGroupResponse,
|
|
46
49
|
FlushParameters,
|
|
47
50
|
DatabasesFlushOptionalParams,
|
|
48
|
-
|
|
51
|
+
DatabasesUpgradeDBRedisVersionOptionalParams,
|
|
52
|
+
DatabasesUpgradeDBRedisVersionResponse,
|
|
53
|
+
DatabasesListByClusterNextResponse,
|
|
49
54
|
} from "../models";
|
|
50
55
|
|
|
51
56
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -64,18 +69,18 @@ export class DatabasesImpl implements Databases {
|
|
|
64
69
|
/**
|
|
65
70
|
* Gets all databases in the specified RedisEnterprise cluster.
|
|
66
71
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
67
|
-
* @param clusterName The name of the
|
|
72
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
68
73
|
* @param options The options parameters.
|
|
69
74
|
*/
|
|
70
75
|
public listByCluster(
|
|
71
76
|
resourceGroupName: string,
|
|
72
77
|
clusterName: string,
|
|
73
|
-
options?: DatabasesListByClusterOptionalParams
|
|
78
|
+
options?: DatabasesListByClusterOptionalParams,
|
|
74
79
|
): PagedAsyncIterableIterator<Database> {
|
|
75
80
|
const iter = this.listByClusterPagingAll(
|
|
76
81
|
resourceGroupName,
|
|
77
82
|
clusterName,
|
|
78
|
-
options
|
|
83
|
+
options,
|
|
79
84
|
);
|
|
80
85
|
return {
|
|
81
86
|
next() {
|
|
@@ -92,9 +97,9 @@ export class DatabasesImpl implements Databases {
|
|
|
92
97
|
resourceGroupName,
|
|
93
98
|
clusterName,
|
|
94
99
|
options,
|
|
95
|
-
settings
|
|
100
|
+
settings,
|
|
96
101
|
);
|
|
97
|
-
}
|
|
102
|
+
},
|
|
98
103
|
};
|
|
99
104
|
}
|
|
100
105
|
|
|
@@ -102,7 +107,7 @@ export class DatabasesImpl implements Databases {
|
|
|
102
107
|
resourceGroupName: string,
|
|
103
108
|
clusterName: string,
|
|
104
109
|
options?: DatabasesListByClusterOptionalParams,
|
|
105
|
-
settings?: PageSettings
|
|
110
|
+
settings?: PageSettings,
|
|
106
111
|
): AsyncIterableIterator<Database[]> {
|
|
107
112
|
let result: DatabasesListByClusterResponse;
|
|
108
113
|
let continuationToken = settings?.continuationToken;
|
|
@@ -110,7 +115,7 @@ export class DatabasesImpl implements Databases {
|
|
|
110
115
|
result = await this._listByCluster(
|
|
111
116
|
resourceGroupName,
|
|
112
117
|
clusterName,
|
|
113
|
-
options
|
|
118
|
+
options,
|
|
114
119
|
);
|
|
115
120
|
let page = result.value || [];
|
|
116
121
|
continuationToken = result.nextLink;
|
|
@@ -122,7 +127,7 @@ export class DatabasesImpl implements Databases {
|
|
|
122
127
|
resourceGroupName,
|
|
123
128
|
clusterName,
|
|
124
129
|
continuationToken,
|
|
125
|
-
options
|
|
130
|
+
options,
|
|
126
131
|
);
|
|
127
132
|
continuationToken = result.nextLink;
|
|
128
133
|
let page = result.value || [];
|
|
@@ -134,12 +139,12 @@ export class DatabasesImpl implements Databases {
|
|
|
134
139
|
private async *listByClusterPagingAll(
|
|
135
140
|
resourceGroupName: string,
|
|
136
141
|
clusterName: string,
|
|
137
|
-
options?: DatabasesListByClusterOptionalParams
|
|
142
|
+
options?: DatabasesListByClusterOptionalParams,
|
|
138
143
|
): AsyncIterableIterator<Database> {
|
|
139
144
|
for await (const page of this.listByClusterPagingPage(
|
|
140
145
|
resourceGroupName,
|
|
141
146
|
clusterName,
|
|
142
|
-
options
|
|
147
|
+
options,
|
|
143
148
|
)) {
|
|
144
149
|
yield* page;
|
|
145
150
|
}
|
|
@@ -148,25 +153,25 @@ export class DatabasesImpl implements Databases {
|
|
|
148
153
|
/**
|
|
149
154
|
* Gets all databases in the specified RedisEnterprise cluster.
|
|
150
155
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
151
|
-
* @param clusterName The name of the
|
|
156
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
152
157
|
* @param options The options parameters.
|
|
153
158
|
*/
|
|
154
159
|
private _listByCluster(
|
|
155
160
|
resourceGroupName: string,
|
|
156
161
|
clusterName: string,
|
|
157
|
-
options?: DatabasesListByClusterOptionalParams
|
|
162
|
+
options?: DatabasesListByClusterOptionalParams,
|
|
158
163
|
): Promise<DatabasesListByClusterResponse> {
|
|
159
164
|
return this.client.sendOperationRequest(
|
|
160
165
|
{ resourceGroupName, clusterName, options },
|
|
161
|
-
listByClusterOperationSpec
|
|
166
|
+
listByClusterOperationSpec,
|
|
162
167
|
);
|
|
163
168
|
}
|
|
164
169
|
|
|
165
170
|
/**
|
|
166
171
|
* Creates a database
|
|
167
172
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
168
|
-
* @param clusterName The name of the
|
|
169
|
-
* @param databaseName The name of the database.
|
|
173
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
174
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
170
175
|
* @param parameters Parameters supplied to the create or update database operation.
|
|
171
176
|
* @param options The options parameters.
|
|
172
177
|
*/
|
|
@@ -175,7 +180,7 @@ export class DatabasesImpl implements Databases {
|
|
|
175
180
|
clusterName: string,
|
|
176
181
|
databaseName: string,
|
|
177
182
|
parameters: Database,
|
|
178
|
-
options?: DatabasesCreateOptionalParams
|
|
183
|
+
options?: DatabasesCreateOptionalParams,
|
|
179
184
|
): Promise<
|
|
180
185
|
SimplePollerLike<
|
|
181
186
|
OperationState<DatabasesCreateResponse>,
|
|
@@ -184,21 +189,20 @@ export class DatabasesImpl implements Databases {
|
|
|
184
189
|
> {
|
|
185
190
|
const directSendOperation = async (
|
|
186
191
|
args: coreClient.OperationArguments,
|
|
187
|
-
spec: coreClient.OperationSpec
|
|
192
|
+
spec: coreClient.OperationSpec,
|
|
188
193
|
): Promise<DatabasesCreateResponse> => {
|
|
189
194
|
return this.client.sendOperationRequest(args, spec);
|
|
190
195
|
};
|
|
191
196
|
const sendOperationFn = async (
|
|
192
197
|
args: coreClient.OperationArguments,
|
|
193
|
-
spec: coreClient.OperationSpec
|
|
198
|
+
spec: coreClient.OperationSpec,
|
|
194
199
|
) => {
|
|
195
|
-
let currentRawResponse:
|
|
196
|
-
|
|
197
|
-
| undefined = undefined;
|
|
200
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
201
|
+
undefined;
|
|
198
202
|
const providedCallback = args.options?.onResponse;
|
|
199
203
|
const callback: coreClient.RawResponseCallback = (
|
|
200
204
|
rawResponse: coreClient.FullOperationResponse,
|
|
201
|
-
flatResponse: unknown
|
|
205
|
+
flatResponse: unknown,
|
|
202
206
|
) => {
|
|
203
207
|
currentRawResponse = rawResponse;
|
|
204
208
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -207,8 +211,8 @@ export class DatabasesImpl implements Databases {
|
|
|
207
211
|
...args,
|
|
208
212
|
options: {
|
|
209
213
|
...args.options,
|
|
210
|
-
onResponse: callback
|
|
211
|
-
}
|
|
214
|
+
onResponse: callback,
|
|
215
|
+
},
|
|
212
216
|
};
|
|
213
217
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
214
218
|
return {
|
|
@@ -216,8 +220,8 @@ export class DatabasesImpl implements Databases {
|
|
|
216
220
|
rawResponse: {
|
|
217
221
|
statusCode: currentRawResponse!.status,
|
|
218
222
|
body: currentRawResponse!.parsedBody,
|
|
219
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
220
|
-
}
|
|
223
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
224
|
+
},
|
|
221
225
|
};
|
|
222
226
|
};
|
|
223
227
|
|
|
@@ -228,9 +232,9 @@ export class DatabasesImpl implements Databases {
|
|
|
228
232
|
clusterName,
|
|
229
233
|
databaseName,
|
|
230
234
|
parameters,
|
|
231
|
-
options
|
|
235
|
+
options,
|
|
232
236
|
},
|
|
233
|
-
spec: createOperationSpec
|
|
237
|
+
spec: createOperationSpec,
|
|
234
238
|
});
|
|
235
239
|
const poller = await createHttpPoller<
|
|
236
240
|
DatabasesCreateResponse,
|
|
@@ -238,7 +242,7 @@ export class DatabasesImpl implements Databases {
|
|
|
238
242
|
>(lro, {
|
|
239
243
|
restoreFrom: options?.resumeFrom,
|
|
240
244
|
intervalInMs: options?.updateIntervalInMs,
|
|
241
|
-
resourceLocationConfig: "original-uri"
|
|
245
|
+
resourceLocationConfig: "original-uri",
|
|
242
246
|
});
|
|
243
247
|
await poller.poll();
|
|
244
248
|
return poller;
|
|
@@ -247,8 +251,8 @@ export class DatabasesImpl implements Databases {
|
|
|
247
251
|
/**
|
|
248
252
|
* Creates a database
|
|
249
253
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
250
|
-
* @param clusterName The name of the
|
|
251
|
-
* @param databaseName The name of the database.
|
|
254
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
255
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
252
256
|
* @param parameters Parameters supplied to the create or update database operation.
|
|
253
257
|
* @param options The options parameters.
|
|
254
258
|
*/
|
|
@@ -257,14 +261,14 @@ export class DatabasesImpl implements Databases {
|
|
|
257
261
|
clusterName: string,
|
|
258
262
|
databaseName: string,
|
|
259
263
|
parameters: Database,
|
|
260
|
-
options?: DatabasesCreateOptionalParams
|
|
264
|
+
options?: DatabasesCreateOptionalParams,
|
|
261
265
|
): Promise<DatabasesCreateResponse> {
|
|
262
266
|
const poller = await this.beginCreate(
|
|
263
267
|
resourceGroupName,
|
|
264
268
|
clusterName,
|
|
265
269
|
databaseName,
|
|
266
270
|
parameters,
|
|
267
|
-
options
|
|
271
|
+
options,
|
|
268
272
|
);
|
|
269
273
|
return poller.pollUntilDone();
|
|
270
274
|
}
|
|
@@ -272,8 +276,8 @@ export class DatabasesImpl implements Databases {
|
|
|
272
276
|
/**
|
|
273
277
|
* Updates a database
|
|
274
278
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
275
|
-
* @param clusterName The name of the
|
|
276
|
-
* @param databaseName The name of the database.
|
|
279
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
280
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
277
281
|
* @param parameters Parameters supplied to the create or update database operation.
|
|
278
282
|
* @param options The options parameters.
|
|
279
283
|
*/
|
|
@@ -282,7 +286,7 @@ export class DatabasesImpl implements Databases {
|
|
|
282
286
|
clusterName: string,
|
|
283
287
|
databaseName: string,
|
|
284
288
|
parameters: DatabaseUpdate,
|
|
285
|
-
options?: DatabasesUpdateOptionalParams
|
|
289
|
+
options?: DatabasesUpdateOptionalParams,
|
|
286
290
|
): Promise<
|
|
287
291
|
SimplePollerLike<
|
|
288
292
|
OperationState<DatabasesUpdateResponse>,
|
|
@@ -291,21 +295,20 @@ export class DatabasesImpl implements Databases {
|
|
|
291
295
|
> {
|
|
292
296
|
const directSendOperation = async (
|
|
293
297
|
args: coreClient.OperationArguments,
|
|
294
|
-
spec: coreClient.OperationSpec
|
|
298
|
+
spec: coreClient.OperationSpec,
|
|
295
299
|
): Promise<DatabasesUpdateResponse> => {
|
|
296
300
|
return this.client.sendOperationRequest(args, spec);
|
|
297
301
|
};
|
|
298
302
|
const sendOperationFn = async (
|
|
299
303
|
args: coreClient.OperationArguments,
|
|
300
|
-
spec: coreClient.OperationSpec
|
|
304
|
+
spec: coreClient.OperationSpec,
|
|
301
305
|
) => {
|
|
302
|
-
let currentRawResponse:
|
|
303
|
-
|
|
304
|
-
| undefined = undefined;
|
|
306
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
307
|
+
undefined;
|
|
305
308
|
const providedCallback = args.options?.onResponse;
|
|
306
309
|
const callback: coreClient.RawResponseCallback = (
|
|
307
310
|
rawResponse: coreClient.FullOperationResponse,
|
|
308
|
-
flatResponse: unknown
|
|
311
|
+
flatResponse: unknown,
|
|
309
312
|
) => {
|
|
310
313
|
currentRawResponse = rawResponse;
|
|
311
314
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -314,8 +317,8 @@ export class DatabasesImpl implements Databases {
|
|
|
314
317
|
...args,
|
|
315
318
|
options: {
|
|
316
319
|
...args.options,
|
|
317
|
-
onResponse: callback
|
|
318
|
-
}
|
|
320
|
+
onResponse: callback,
|
|
321
|
+
},
|
|
319
322
|
};
|
|
320
323
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
321
324
|
return {
|
|
@@ -323,8 +326,8 @@ export class DatabasesImpl implements Databases {
|
|
|
323
326
|
rawResponse: {
|
|
324
327
|
statusCode: currentRawResponse!.status,
|
|
325
328
|
body: currentRawResponse!.parsedBody,
|
|
326
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
327
|
-
}
|
|
329
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
330
|
+
},
|
|
328
331
|
};
|
|
329
332
|
};
|
|
330
333
|
|
|
@@ -335,9 +338,9 @@ export class DatabasesImpl implements Databases {
|
|
|
335
338
|
clusterName,
|
|
336
339
|
databaseName,
|
|
337
340
|
parameters,
|
|
338
|
-
options
|
|
341
|
+
options,
|
|
339
342
|
},
|
|
340
|
-
spec: updateOperationSpec
|
|
343
|
+
spec: updateOperationSpec,
|
|
341
344
|
});
|
|
342
345
|
const poller = await createHttpPoller<
|
|
343
346
|
DatabasesUpdateResponse,
|
|
@@ -345,7 +348,7 @@ export class DatabasesImpl implements Databases {
|
|
|
345
348
|
>(lro, {
|
|
346
349
|
restoreFrom: options?.resumeFrom,
|
|
347
350
|
intervalInMs: options?.updateIntervalInMs,
|
|
348
|
-
resourceLocationConfig: "azure-async-operation"
|
|
351
|
+
resourceLocationConfig: "azure-async-operation",
|
|
349
352
|
});
|
|
350
353
|
await poller.poll();
|
|
351
354
|
return poller;
|
|
@@ -354,8 +357,8 @@ export class DatabasesImpl implements Databases {
|
|
|
354
357
|
/**
|
|
355
358
|
* Updates a database
|
|
356
359
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
357
|
-
* @param clusterName The name of the
|
|
358
|
-
* @param databaseName The name of the database.
|
|
360
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
361
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
359
362
|
* @param parameters Parameters supplied to the create or update database operation.
|
|
360
363
|
* @param options The options parameters.
|
|
361
364
|
*/
|
|
@@ -364,14 +367,14 @@ export class DatabasesImpl implements Databases {
|
|
|
364
367
|
clusterName: string,
|
|
365
368
|
databaseName: string,
|
|
366
369
|
parameters: DatabaseUpdate,
|
|
367
|
-
options?: DatabasesUpdateOptionalParams
|
|
370
|
+
options?: DatabasesUpdateOptionalParams,
|
|
368
371
|
): Promise<DatabasesUpdateResponse> {
|
|
369
372
|
const poller = await this.beginUpdate(
|
|
370
373
|
resourceGroupName,
|
|
371
374
|
clusterName,
|
|
372
375
|
databaseName,
|
|
373
376
|
parameters,
|
|
374
|
-
options
|
|
377
|
+
options,
|
|
375
378
|
);
|
|
376
379
|
return poller.pollUntilDone();
|
|
377
380
|
}
|
|
@@ -379,52 +382,51 @@ export class DatabasesImpl implements Databases {
|
|
|
379
382
|
/**
|
|
380
383
|
* Gets information about a database in a RedisEnterprise cluster.
|
|
381
384
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
382
|
-
* @param clusterName The name of the
|
|
383
|
-
* @param databaseName The name of the database.
|
|
385
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
386
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
384
387
|
* @param options The options parameters.
|
|
385
388
|
*/
|
|
386
389
|
get(
|
|
387
390
|
resourceGroupName: string,
|
|
388
391
|
clusterName: string,
|
|
389
392
|
databaseName: string,
|
|
390
|
-
options?: DatabasesGetOptionalParams
|
|
393
|
+
options?: DatabasesGetOptionalParams,
|
|
391
394
|
): Promise<DatabasesGetResponse> {
|
|
392
395
|
return this.client.sendOperationRequest(
|
|
393
396
|
{ resourceGroupName, clusterName, databaseName, options },
|
|
394
|
-
getOperationSpec
|
|
397
|
+
getOperationSpec,
|
|
395
398
|
);
|
|
396
399
|
}
|
|
397
400
|
|
|
398
401
|
/**
|
|
399
402
|
* Deletes a single database
|
|
400
403
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
401
|
-
* @param clusterName The name of the
|
|
402
|
-
* @param databaseName The name of the database.
|
|
404
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
405
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
403
406
|
* @param options The options parameters.
|
|
404
407
|
*/
|
|
405
408
|
async beginDelete(
|
|
406
409
|
resourceGroupName: string,
|
|
407
410
|
clusterName: string,
|
|
408
411
|
databaseName: string,
|
|
409
|
-
options?: DatabasesDeleteOptionalParams
|
|
412
|
+
options?: DatabasesDeleteOptionalParams,
|
|
410
413
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
411
414
|
const directSendOperation = async (
|
|
412
415
|
args: coreClient.OperationArguments,
|
|
413
|
-
spec: coreClient.OperationSpec
|
|
416
|
+
spec: coreClient.OperationSpec,
|
|
414
417
|
): Promise<void> => {
|
|
415
418
|
return this.client.sendOperationRequest(args, spec);
|
|
416
419
|
};
|
|
417
420
|
const sendOperationFn = async (
|
|
418
421
|
args: coreClient.OperationArguments,
|
|
419
|
-
spec: coreClient.OperationSpec
|
|
422
|
+
spec: coreClient.OperationSpec,
|
|
420
423
|
) => {
|
|
421
|
-
let currentRawResponse:
|
|
422
|
-
|
|
423
|
-
| undefined = undefined;
|
|
424
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
425
|
+
undefined;
|
|
424
426
|
const providedCallback = args.options?.onResponse;
|
|
425
427
|
const callback: coreClient.RawResponseCallback = (
|
|
426
428
|
rawResponse: coreClient.FullOperationResponse,
|
|
427
|
-
flatResponse: unknown
|
|
429
|
+
flatResponse: unknown,
|
|
428
430
|
) => {
|
|
429
431
|
currentRawResponse = rawResponse;
|
|
430
432
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -433,8 +435,8 @@ export class DatabasesImpl implements Databases {
|
|
|
433
435
|
...args,
|
|
434
436
|
options: {
|
|
435
437
|
...args.options,
|
|
436
|
-
onResponse: callback
|
|
437
|
-
}
|
|
438
|
+
onResponse: callback,
|
|
439
|
+
},
|
|
438
440
|
};
|
|
439
441
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
440
442
|
return {
|
|
@@ -442,20 +444,20 @@ export class DatabasesImpl implements Databases {
|
|
|
442
444
|
rawResponse: {
|
|
443
445
|
statusCode: currentRawResponse!.status,
|
|
444
446
|
body: currentRawResponse!.parsedBody,
|
|
445
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
446
|
-
}
|
|
447
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
448
|
+
},
|
|
447
449
|
};
|
|
448
450
|
};
|
|
449
451
|
|
|
450
452
|
const lro = createLroSpec({
|
|
451
453
|
sendOperationFn,
|
|
452
454
|
args: { resourceGroupName, clusterName, databaseName, options },
|
|
453
|
-
spec: deleteOperationSpec
|
|
455
|
+
spec: deleteOperationSpec,
|
|
454
456
|
});
|
|
455
457
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
456
458
|
restoreFrom: options?.resumeFrom,
|
|
457
459
|
intervalInMs: options?.updateIntervalInMs,
|
|
458
|
-
resourceLocationConfig: "azure-async-operation"
|
|
460
|
+
resourceLocationConfig: "azure-async-operation",
|
|
459
461
|
});
|
|
460
462
|
await poller.poll();
|
|
461
463
|
return poller;
|
|
@@ -464,21 +466,21 @@ export class DatabasesImpl implements Databases {
|
|
|
464
466
|
/**
|
|
465
467
|
* Deletes a single database
|
|
466
468
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
467
|
-
* @param clusterName The name of the
|
|
468
|
-
* @param databaseName The name of the database.
|
|
469
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
470
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
469
471
|
* @param options The options parameters.
|
|
470
472
|
*/
|
|
471
473
|
async beginDeleteAndWait(
|
|
472
474
|
resourceGroupName: string,
|
|
473
475
|
clusterName: string,
|
|
474
476
|
databaseName: string,
|
|
475
|
-
options?: DatabasesDeleteOptionalParams
|
|
477
|
+
options?: DatabasesDeleteOptionalParams,
|
|
476
478
|
): Promise<void> {
|
|
477
479
|
const poller = await this.beginDelete(
|
|
478
480
|
resourceGroupName,
|
|
479
481
|
clusterName,
|
|
480
482
|
databaseName,
|
|
481
|
-
options
|
|
483
|
+
options,
|
|
482
484
|
);
|
|
483
485
|
return poller.pollUntilDone();
|
|
484
486
|
}
|
|
@@ -486,27 +488,27 @@ export class DatabasesImpl implements Databases {
|
|
|
486
488
|
/**
|
|
487
489
|
* Retrieves the access keys for the RedisEnterprise database.
|
|
488
490
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
489
|
-
* @param clusterName The name of the
|
|
490
|
-
* @param databaseName The name of the database.
|
|
491
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
492
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
491
493
|
* @param options The options parameters.
|
|
492
494
|
*/
|
|
493
495
|
listKeys(
|
|
494
496
|
resourceGroupName: string,
|
|
495
497
|
clusterName: string,
|
|
496
498
|
databaseName: string,
|
|
497
|
-
options?: DatabasesListKeysOptionalParams
|
|
499
|
+
options?: DatabasesListKeysOptionalParams,
|
|
498
500
|
): Promise<DatabasesListKeysResponse> {
|
|
499
501
|
return this.client.sendOperationRequest(
|
|
500
502
|
{ resourceGroupName, clusterName, databaseName, options },
|
|
501
|
-
listKeysOperationSpec
|
|
503
|
+
listKeysOperationSpec,
|
|
502
504
|
);
|
|
503
505
|
}
|
|
504
506
|
|
|
505
507
|
/**
|
|
506
508
|
* Regenerates the RedisEnterprise database's access keys.
|
|
507
509
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
508
|
-
* @param clusterName The name of the
|
|
509
|
-
* @param databaseName The name of the database.
|
|
510
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
511
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
510
512
|
* @param parameters Specifies which key to regenerate.
|
|
511
513
|
* @param options The options parameters.
|
|
512
514
|
*/
|
|
@@ -515,7 +517,7 @@ export class DatabasesImpl implements Databases {
|
|
|
515
517
|
clusterName: string,
|
|
516
518
|
databaseName: string,
|
|
517
519
|
parameters: RegenerateKeyParameters,
|
|
518
|
-
options?: DatabasesRegenerateKeyOptionalParams
|
|
520
|
+
options?: DatabasesRegenerateKeyOptionalParams,
|
|
519
521
|
): Promise<
|
|
520
522
|
SimplePollerLike<
|
|
521
523
|
OperationState<DatabasesRegenerateKeyResponse>,
|
|
@@ -524,21 +526,20 @@ export class DatabasesImpl implements Databases {
|
|
|
524
526
|
> {
|
|
525
527
|
const directSendOperation = async (
|
|
526
528
|
args: coreClient.OperationArguments,
|
|
527
|
-
spec: coreClient.OperationSpec
|
|
529
|
+
spec: coreClient.OperationSpec,
|
|
528
530
|
): Promise<DatabasesRegenerateKeyResponse> => {
|
|
529
531
|
return this.client.sendOperationRequest(args, spec);
|
|
530
532
|
};
|
|
531
533
|
const sendOperationFn = async (
|
|
532
534
|
args: coreClient.OperationArguments,
|
|
533
|
-
spec: coreClient.OperationSpec
|
|
535
|
+
spec: coreClient.OperationSpec,
|
|
534
536
|
) => {
|
|
535
|
-
let currentRawResponse:
|
|
536
|
-
|
|
537
|
-
| undefined = undefined;
|
|
537
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
538
|
+
undefined;
|
|
538
539
|
const providedCallback = args.options?.onResponse;
|
|
539
540
|
const callback: coreClient.RawResponseCallback = (
|
|
540
541
|
rawResponse: coreClient.FullOperationResponse,
|
|
541
|
-
flatResponse: unknown
|
|
542
|
+
flatResponse: unknown,
|
|
542
543
|
) => {
|
|
543
544
|
currentRawResponse = rawResponse;
|
|
544
545
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -547,8 +548,8 @@ export class DatabasesImpl implements Databases {
|
|
|
547
548
|
...args,
|
|
548
549
|
options: {
|
|
549
550
|
...args.options,
|
|
550
|
-
onResponse: callback
|
|
551
|
-
}
|
|
551
|
+
onResponse: callback,
|
|
552
|
+
},
|
|
552
553
|
};
|
|
553
554
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
554
555
|
return {
|
|
@@ -556,8 +557,8 @@ export class DatabasesImpl implements Databases {
|
|
|
556
557
|
rawResponse: {
|
|
557
558
|
statusCode: currentRawResponse!.status,
|
|
558
559
|
body: currentRawResponse!.parsedBody,
|
|
559
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
560
|
-
}
|
|
560
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
561
|
+
},
|
|
561
562
|
};
|
|
562
563
|
};
|
|
563
564
|
|
|
@@ -568,9 +569,9 @@ export class DatabasesImpl implements Databases {
|
|
|
568
569
|
clusterName,
|
|
569
570
|
databaseName,
|
|
570
571
|
parameters,
|
|
571
|
-
options
|
|
572
|
+
options,
|
|
572
573
|
},
|
|
573
|
-
spec: regenerateKeyOperationSpec
|
|
574
|
+
spec: regenerateKeyOperationSpec,
|
|
574
575
|
});
|
|
575
576
|
const poller = await createHttpPoller<
|
|
576
577
|
DatabasesRegenerateKeyResponse,
|
|
@@ -578,7 +579,7 @@ export class DatabasesImpl implements Databases {
|
|
|
578
579
|
>(lro, {
|
|
579
580
|
restoreFrom: options?.resumeFrom,
|
|
580
581
|
intervalInMs: options?.updateIntervalInMs,
|
|
581
|
-
resourceLocationConfig: "azure-async-operation"
|
|
582
|
+
resourceLocationConfig: "azure-async-operation",
|
|
582
583
|
});
|
|
583
584
|
await poller.poll();
|
|
584
585
|
return poller;
|
|
@@ -587,8 +588,8 @@ export class DatabasesImpl implements Databases {
|
|
|
587
588
|
/**
|
|
588
589
|
* Regenerates the RedisEnterprise database's access keys.
|
|
589
590
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
590
|
-
* @param clusterName The name of the
|
|
591
|
-
* @param databaseName The name of the database.
|
|
591
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
592
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
592
593
|
* @param parameters Specifies which key to regenerate.
|
|
593
594
|
* @param options The options parameters.
|
|
594
595
|
*/
|
|
@@ -597,14 +598,14 @@ export class DatabasesImpl implements Databases {
|
|
|
597
598
|
clusterName: string,
|
|
598
599
|
databaseName: string,
|
|
599
600
|
parameters: RegenerateKeyParameters,
|
|
600
|
-
options?: DatabasesRegenerateKeyOptionalParams
|
|
601
|
+
options?: DatabasesRegenerateKeyOptionalParams,
|
|
601
602
|
): Promise<DatabasesRegenerateKeyResponse> {
|
|
602
603
|
const poller = await this.beginRegenerateKey(
|
|
603
604
|
resourceGroupName,
|
|
604
605
|
clusterName,
|
|
605
606
|
databaseName,
|
|
606
607
|
parameters,
|
|
607
|
-
options
|
|
608
|
+
options,
|
|
608
609
|
);
|
|
609
610
|
return poller.pollUntilDone();
|
|
610
611
|
}
|
|
@@ -612,8 +613,8 @@ export class DatabasesImpl implements Databases {
|
|
|
612
613
|
/**
|
|
613
614
|
* Imports database files to target database.
|
|
614
615
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
615
|
-
* @param clusterName The name of the
|
|
616
|
-
* @param databaseName The name of the database.
|
|
616
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
617
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
617
618
|
* @param parameters Storage information for importing into the cluster
|
|
618
619
|
* @param options The options parameters.
|
|
619
620
|
*/
|
|
@@ -622,25 +623,24 @@ export class DatabasesImpl implements Databases {
|
|
|
622
623
|
clusterName: string,
|
|
623
624
|
databaseName: string,
|
|
624
625
|
parameters: ImportClusterParameters,
|
|
625
|
-
options?: DatabasesImportOptionalParams
|
|
626
|
+
options?: DatabasesImportOptionalParams,
|
|
626
627
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
627
628
|
const directSendOperation = async (
|
|
628
629
|
args: coreClient.OperationArguments,
|
|
629
|
-
spec: coreClient.OperationSpec
|
|
630
|
+
spec: coreClient.OperationSpec,
|
|
630
631
|
): Promise<void> => {
|
|
631
632
|
return this.client.sendOperationRequest(args, spec);
|
|
632
633
|
};
|
|
633
634
|
const sendOperationFn = async (
|
|
634
635
|
args: coreClient.OperationArguments,
|
|
635
|
-
spec: coreClient.OperationSpec
|
|
636
|
+
spec: coreClient.OperationSpec,
|
|
636
637
|
) => {
|
|
637
|
-
let currentRawResponse:
|
|
638
|
-
|
|
639
|
-
| undefined = undefined;
|
|
638
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
639
|
+
undefined;
|
|
640
640
|
const providedCallback = args.options?.onResponse;
|
|
641
641
|
const callback: coreClient.RawResponseCallback = (
|
|
642
642
|
rawResponse: coreClient.FullOperationResponse,
|
|
643
|
-
flatResponse: unknown
|
|
643
|
+
flatResponse: unknown,
|
|
644
644
|
) => {
|
|
645
645
|
currentRawResponse = rawResponse;
|
|
646
646
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -649,8 +649,8 @@ export class DatabasesImpl implements Databases {
|
|
|
649
649
|
...args,
|
|
650
650
|
options: {
|
|
651
651
|
...args.options,
|
|
652
|
-
onResponse: callback
|
|
653
|
-
}
|
|
652
|
+
onResponse: callback,
|
|
653
|
+
},
|
|
654
654
|
};
|
|
655
655
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
656
656
|
return {
|
|
@@ -658,8 +658,8 @@ export class DatabasesImpl implements Databases {
|
|
|
658
658
|
rawResponse: {
|
|
659
659
|
statusCode: currentRawResponse!.status,
|
|
660
660
|
body: currentRawResponse!.parsedBody,
|
|
661
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
662
|
-
}
|
|
661
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
662
|
+
},
|
|
663
663
|
};
|
|
664
664
|
};
|
|
665
665
|
|
|
@@ -670,14 +670,14 @@ export class DatabasesImpl implements Databases {
|
|
|
670
670
|
clusterName,
|
|
671
671
|
databaseName,
|
|
672
672
|
parameters,
|
|
673
|
-
options
|
|
673
|
+
options,
|
|
674
674
|
},
|
|
675
|
-
spec: importOperationSpec
|
|
675
|
+
spec: importOperationSpec,
|
|
676
676
|
});
|
|
677
677
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
678
678
|
restoreFrom: options?.resumeFrom,
|
|
679
679
|
intervalInMs: options?.updateIntervalInMs,
|
|
680
|
-
resourceLocationConfig: "azure-async-operation"
|
|
680
|
+
resourceLocationConfig: "azure-async-operation",
|
|
681
681
|
});
|
|
682
682
|
await poller.poll();
|
|
683
683
|
return poller;
|
|
@@ -686,8 +686,8 @@ export class DatabasesImpl implements Databases {
|
|
|
686
686
|
/**
|
|
687
687
|
* Imports database files to target database.
|
|
688
688
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
689
|
-
* @param clusterName The name of the
|
|
690
|
-
* @param databaseName The name of the database.
|
|
689
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
690
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
691
691
|
* @param parameters Storage information for importing into the cluster
|
|
692
692
|
* @param options The options parameters.
|
|
693
693
|
*/
|
|
@@ -696,14 +696,14 @@ export class DatabasesImpl implements Databases {
|
|
|
696
696
|
clusterName: string,
|
|
697
697
|
databaseName: string,
|
|
698
698
|
parameters: ImportClusterParameters,
|
|
699
|
-
options?: DatabasesImportOptionalParams
|
|
699
|
+
options?: DatabasesImportOptionalParams,
|
|
700
700
|
): Promise<void> {
|
|
701
701
|
const poller = await this.beginImport(
|
|
702
702
|
resourceGroupName,
|
|
703
703
|
clusterName,
|
|
704
704
|
databaseName,
|
|
705
705
|
parameters,
|
|
706
|
-
options
|
|
706
|
+
options,
|
|
707
707
|
);
|
|
708
708
|
return poller.pollUntilDone();
|
|
709
709
|
}
|
|
@@ -711,8 +711,8 @@ export class DatabasesImpl implements Databases {
|
|
|
711
711
|
/**
|
|
712
712
|
* Exports a database file from target database.
|
|
713
713
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
714
|
-
* @param clusterName The name of the
|
|
715
|
-
* @param databaseName The name of the database.
|
|
714
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
715
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
716
716
|
* @param parameters Storage information for exporting into the cluster
|
|
717
717
|
* @param options The options parameters.
|
|
718
718
|
*/
|
|
@@ -721,25 +721,24 @@ export class DatabasesImpl implements Databases {
|
|
|
721
721
|
clusterName: string,
|
|
722
722
|
databaseName: string,
|
|
723
723
|
parameters: ExportClusterParameters,
|
|
724
|
-
options?: DatabasesExportOptionalParams
|
|
724
|
+
options?: DatabasesExportOptionalParams,
|
|
725
725
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
726
726
|
const directSendOperation = async (
|
|
727
727
|
args: coreClient.OperationArguments,
|
|
728
|
-
spec: coreClient.OperationSpec
|
|
728
|
+
spec: coreClient.OperationSpec,
|
|
729
729
|
): Promise<void> => {
|
|
730
730
|
return this.client.sendOperationRequest(args, spec);
|
|
731
731
|
};
|
|
732
732
|
const sendOperationFn = async (
|
|
733
733
|
args: coreClient.OperationArguments,
|
|
734
|
-
spec: coreClient.OperationSpec
|
|
734
|
+
spec: coreClient.OperationSpec,
|
|
735
735
|
) => {
|
|
736
|
-
let currentRawResponse:
|
|
737
|
-
|
|
738
|
-
| undefined = undefined;
|
|
736
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
737
|
+
undefined;
|
|
739
738
|
const providedCallback = args.options?.onResponse;
|
|
740
739
|
const callback: coreClient.RawResponseCallback = (
|
|
741
740
|
rawResponse: coreClient.FullOperationResponse,
|
|
742
|
-
flatResponse: unknown
|
|
741
|
+
flatResponse: unknown,
|
|
743
742
|
) => {
|
|
744
743
|
currentRawResponse = rawResponse;
|
|
745
744
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -748,8 +747,8 @@ export class DatabasesImpl implements Databases {
|
|
|
748
747
|
...args,
|
|
749
748
|
options: {
|
|
750
749
|
...args.options,
|
|
751
|
-
onResponse: callback
|
|
752
|
-
}
|
|
750
|
+
onResponse: callback,
|
|
751
|
+
},
|
|
753
752
|
};
|
|
754
753
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
755
754
|
return {
|
|
@@ -757,8 +756,8 @@ export class DatabasesImpl implements Databases {
|
|
|
757
756
|
rawResponse: {
|
|
758
757
|
statusCode: currentRawResponse!.status,
|
|
759
758
|
body: currentRawResponse!.parsedBody,
|
|
760
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
761
|
-
}
|
|
759
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
760
|
+
},
|
|
762
761
|
};
|
|
763
762
|
};
|
|
764
763
|
|
|
@@ -769,14 +768,14 @@ export class DatabasesImpl implements Databases {
|
|
|
769
768
|
clusterName,
|
|
770
769
|
databaseName,
|
|
771
770
|
parameters,
|
|
772
|
-
options
|
|
771
|
+
options,
|
|
773
772
|
},
|
|
774
|
-
spec: exportOperationSpec
|
|
773
|
+
spec: exportOperationSpec,
|
|
775
774
|
});
|
|
776
775
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
777
776
|
restoreFrom: options?.resumeFrom,
|
|
778
777
|
intervalInMs: options?.updateIntervalInMs,
|
|
779
|
-
resourceLocationConfig: "azure-async-operation"
|
|
778
|
+
resourceLocationConfig: "azure-async-operation",
|
|
780
779
|
});
|
|
781
780
|
await poller.poll();
|
|
782
781
|
return poller;
|
|
@@ -785,8 +784,8 @@ export class DatabasesImpl implements Databases {
|
|
|
785
784
|
/**
|
|
786
785
|
* Exports a database file from target database.
|
|
787
786
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
788
|
-
* @param clusterName The name of the
|
|
789
|
-
* @param databaseName The name of the database.
|
|
787
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
788
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
790
789
|
* @param parameters Storage information for exporting into the cluster
|
|
791
790
|
* @param options The options parameters.
|
|
792
791
|
*/
|
|
@@ -795,14 +794,14 @@ export class DatabasesImpl implements Databases {
|
|
|
795
794
|
clusterName: string,
|
|
796
795
|
databaseName: string,
|
|
797
796
|
parameters: ExportClusterParameters,
|
|
798
|
-
options?: DatabasesExportOptionalParams
|
|
797
|
+
options?: DatabasesExportOptionalParams,
|
|
799
798
|
): Promise<void> {
|
|
800
799
|
const poller = await this.beginExport(
|
|
801
800
|
resourceGroupName,
|
|
802
801
|
clusterName,
|
|
803
802
|
databaseName,
|
|
804
803
|
parameters,
|
|
805
|
-
options
|
|
804
|
+
options,
|
|
806
805
|
);
|
|
807
806
|
return poller.pollUntilDone();
|
|
808
807
|
}
|
|
@@ -810,8 +809,8 @@ export class DatabasesImpl implements Databases {
|
|
|
810
809
|
/**
|
|
811
810
|
* Forcibly removes the link to the specified database resource.
|
|
812
811
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
813
|
-
* @param clusterName The name of the
|
|
814
|
-
* @param databaseName The name of the database.
|
|
812
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
813
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
815
814
|
* @param parameters Information identifying the database to be unlinked.
|
|
816
815
|
* @param options The options parameters.
|
|
817
816
|
*/
|
|
@@ -820,25 +819,24 @@ export class DatabasesImpl implements Databases {
|
|
|
820
819
|
clusterName: string,
|
|
821
820
|
databaseName: string,
|
|
822
821
|
parameters: ForceUnlinkParameters,
|
|
823
|
-
options?: DatabasesForceUnlinkOptionalParams
|
|
822
|
+
options?: DatabasesForceUnlinkOptionalParams,
|
|
824
823
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
825
824
|
const directSendOperation = async (
|
|
826
825
|
args: coreClient.OperationArguments,
|
|
827
|
-
spec: coreClient.OperationSpec
|
|
826
|
+
spec: coreClient.OperationSpec,
|
|
828
827
|
): Promise<void> => {
|
|
829
828
|
return this.client.sendOperationRequest(args, spec);
|
|
830
829
|
};
|
|
831
830
|
const sendOperationFn = async (
|
|
832
831
|
args: coreClient.OperationArguments,
|
|
833
|
-
spec: coreClient.OperationSpec
|
|
832
|
+
spec: coreClient.OperationSpec,
|
|
834
833
|
) => {
|
|
835
|
-
let currentRawResponse:
|
|
836
|
-
|
|
837
|
-
| undefined = undefined;
|
|
834
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
835
|
+
undefined;
|
|
838
836
|
const providedCallback = args.options?.onResponse;
|
|
839
837
|
const callback: coreClient.RawResponseCallback = (
|
|
840
838
|
rawResponse: coreClient.FullOperationResponse,
|
|
841
|
-
flatResponse: unknown
|
|
839
|
+
flatResponse: unknown,
|
|
842
840
|
) => {
|
|
843
841
|
currentRawResponse = rawResponse;
|
|
844
842
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -847,8 +845,8 @@ export class DatabasesImpl implements Databases {
|
|
|
847
845
|
...args,
|
|
848
846
|
options: {
|
|
849
847
|
...args.options,
|
|
850
|
-
onResponse: callback
|
|
851
|
-
}
|
|
848
|
+
onResponse: callback,
|
|
849
|
+
},
|
|
852
850
|
};
|
|
853
851
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
854
852
|
return {
|
|
@@ -856,8 +854,8 @@ export class DatabasesImpl implements Databases {
|
|
|
856
854
|
rawResponse: {
|
|
857
855
|
statusCode: currentRawResponse!.status,
|
|
858
856
|
body: currentRawResponse!.parsedBody,
|
|
859
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
860
|
-
}
|
|
857
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
858
|
+
},
|
|
861
859
|
};
|
|
862
860
|
};
|
|
863
861
|
|
|
@@ -868,14 +866,14 @@ export class DatabasesImpl implements Databases {
|
|
|
868
866
|
clusterName,
|
|
869
867
|
databaseName,
|
|
870
868
|
parameters,
|
|
871
|
-
options
|
|
869
|
+
options,
|
|
872
870
|
},
|
|
873
|
-
spec: forceUnlinkOperationSpec
|
|
871
|
+
spec: forceUnlinkOperationSpec,
|
|
874
872
|
});
|
|
875
873
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
876
874
|
restoreFrom: options?.resumeFrom,
|
|
877
875
|
intervalInMs: options?.updateIntervalInMs,
|
|
878
|
-
resourceLocationConfig: "azure-async-operation"
|
|
876
|
+
resourceLocationConfig: "azure-async-operation",
|
|
879
877
|
});
|
|
880
878
|
await poller.poll();
|
|
881
879
|
return poller;
|
|
@@ -884,8 +882,8 @@ export class DatabasesImpl implements Databases {
|
|
|
884
882
|
/**
|
|
885
883
|
* Forcibly removes the link to the specified database resource.
|
|
886
884
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
887
|
-
* @param clusterName The name of the
|
|
888
|
-
* @param databaseName The name of the database.
|
|
885
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
886
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
889
887
|
* @param parameters Information identifying the database to be unlinked.
|
|
890
888
|
* @param options The options parameters.
|
|
891
889
|
*/
|
|
@@ -894,14 +892,124 @@ export class DatabasesImpl implements Databases {
|
|
|
894
892
|
clusterName: string,
|
|
895
893
|
databaseName: string,
|
|
896
894
|
parameters: ForceUnlinkParameters,
|
|
897
|
-
options?: DatabasesForceUnlinkOptionalParams
|
|
895
|
+
options?: DatabasesForceUnlinkOptionalParams,
|
|
898
896
|
): Promise<void> {
|
|
899
897
|
const poller = await this.beginForceUnlink(
|
|
900
898
|
resourceGroupName,
|
|
901
899
|
clusterName,
|
|
902
900
|
databaseName,
|
|
903
901
|
parameters,
|
|
904
|
-
options
|
|
902
|
+
options,
|
|
903
|
+
);
|
|
904
|
+
return poller.pollUntilDone();
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
|
|
909
|
+
* replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
|
|
910
|
+
* will temporarily be unavailable while rejoining the replication group.
|
|
911
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
912
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
913
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
914
|
+
* @param parameters Information identifying the database to be unlinked.
|
|
915
|
+
* @param options The options parameters.
|
|
916
|
+
*/
|
|
917
|
+
async beginForceLinkToReplicationGroup(
|
|
918
|
+
resourceGroupName: string,
|
|
919
|
+
clusterName: string,
|
|
920
|
+
databaseName: string,
|
|
921
|
+
parameters: ForceLinkParameters,
|
|
922
|
+
options?: DatabasesForceLinkToReplicationGroupOptionalParams,
|
|
923
|
+
): Promise<
|
|
924
|
+
SimplePollerLike<
|
|
925
|
+
OperationState<DatabasesForceLinkToReplicationGroupResponse>,
|
|
926
|
+
DatabasesForceLinkToReplicationGroupResponse
|
|
927
|
+
>
|
|
928
|
+
> {
|
|
929
|
+
const directSendOperation = async (
|
|
930
|
+
args: coreClient.OperationArguments,
|
|
931
|
+
spec: coreClient.OperationSpec,
|
|
932
|
+
): Promise<DatabasesForceLinkToReplicationGroupResponse> => {
|
|
933
|
+
return this.client.sendOperationRequest(args, spec);
|
|
934
|
+
};
|
|
935
|
+
const sendOperationFn = async (
|
|
936
|
+
args: coreClient.OperationArguments,
|
|
937
|
+
spec: coreClient.OperationSpec,
|
|
938
|
+
) => {
|
|
939
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
940
|
+
undefined;
|
|
941
|
+
const providedCallback = args.options?.onResponse;
|
|
942
|
+
const callback: coreClient.RawResponseCallback = (
|
|
943
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
944
|
+
flatResponse: unknown,
|
|
945
|
+
) => {
|
|
946
|
+
currentRawResponse = rawResponse;
|
|
947
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
948
|
+
};
|
|
949
|
+
const updatedArgs = {
|
|
950
|
+
...args,
|
|
951
|
+
options: {
|
|
952
|
+
...args.options,
|
|
953
|
+
onResponse: callback,
|
|
954
|
+
},
|
|
955
|
+
};
|
|
956
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
957
|
+
return {
|
|
958
|
+
flatResponse,
|
|
959
|
+
rawResponse: {
|
|
960
|
+
statusCode: currentRawResponse!.status,
|
|
961
|
+
body: currentRawResponse!.parsedBody,
|
|
962
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
963
|
+
},
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
const lro = createLroSpec({
|
|
968
|
+
sendOperationFn,
|
|
969
|
+
args: {
|
|
970
|
+
resourceGroupName,
|
|
971
|
+
clusterName,
|
|
972
|
+
databaseName,
|
|
973
|
+
parameters,
|
|
974
|
+
options,
|
|
975
|
+
},
|
|
976
|
+
spec: forceLinkToReplicationGroupOperationSpec,
|
|
977
|
+
});
|
|
978
|
+
const poller = await createHttpPoller<
|
|
979
|
+
DatabasesForceLinkToReplicationGroupResponse,
|
|
980
|
+
OperationState<DatabasesForceLinkToReplicationGroupResponse>
|
|
981
|
+
>(lro, {
|
|
982
|
+
restoreFrom: options?.resumeFrom,
|
|
983
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
984
|
+
resourceLocationConfig: "azure-async-operation",
|
|
985
|
+
});
|
|
986
|
+
await poller.poll();
|
|
987
|
+
return poller;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
|
|
992
|
+
* replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
|
|
993
|
+
* will temporarily be unavailable while rejoining the replication group.
|
|
994
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
995
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
996
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
997
|
+
* @param parameters Information identifying the database to be unlinked.
|
|
998
|
+
* @param options The options parameters.
|
|
999
|
+
*/
|
|
1000
|
+
async beginForceLinkToReplicationGroupAndWait(
|
|
1001
|
+
resourceGroupName: string,
|
|
1002
|
+
clusterName: string,
|
|
1003
|
+
databaseName: string,
|
|
1004
|
+
parameters: ForceLinkParameters,
|
|
1005
|
+
options?: DatabasesForceLinkToReplicationGroupOptionalParams,
|
|
1006
|
+
): Promise<DatabasesForceLinkToReplicationGroupResponse> {
|
|
1007
|
+
const poller = await this.beginForceLinkToReplicationGroup(
|
|
1008
|
+
resourceGroupName,
|
|
1009
|
+
clusterName,
|
|
1010
|
+
databaseName,
|
|
1011
|
+
parameters,
|
|
1012
|
+
options,
|
|
905
1013
|
);
|
|
906
1014
|
return poller.pollUntilDone();
|
|
907
1015
|
}
|
|
@@ -909,8 +1017,8 @@ export class DatabasesImpl implements Databases {
|
|
|
909
1017
|
/**
|
|
910
1018
|
* Flushes all the keys in this database and also from its linked databases.
|
|
911
1019
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
912
|
-
* @param clusterName The name of the
|
|
913
|
-
* @param databaseName The name of the database.
|
|
1020
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
1021
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
914
1022
|
* @param parameters Information identifying the databases to be flushed
|
|
915
1023
|
* @param options The options parameters.
|
|
916
1024
|
*/
|
|
@@ -919,25 +1027,24 @@ export class DatabasesImpl implements Databases {
|
|
|
919
1027
|
clusterName: string,
|
|
920
1028
|
databaseName: string,
|
|
921
1029
|
parameters: FlushParameters,
|
|
922
|
-
options?: DatabasesFlushOptionalParams
|
|
1030
|
+
options?: DatabasesFlushOptionalParams,
|
|
923
1031
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
924
1032
|
const directSendOperation = async (
|
|
925
1033
|
args: coreClient.OperationArguments,
|
|
926
|
-
spec: coreClient.OperationSpec
|
|
1034
|
+
spec: coreClient.OperationSpec,
|
|
927
1035
|
): Promise<void> => {
|
|
928
1036
|
return this.client.sendOperationRequest(args, spec);
|
|
929
1037
|
};
|
|
930
1038
|
const sendOperationFn = async (
|
|
931
1039
|
args: coreClient.OperationArguments,
|
|
932
|
-
spec: coreClient.OperationSpec
|
|
1040
|
+
spec: coreClient.OperationSpec,
|
|
933
1041
|
) => {
|
|
934
|
-
let currentRawResponse:
|
|
935
|
-
|
|
936
|
-
| undefined = undefined;
|
|
1042
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1043
|
+
undefined;
|
|
937
1044
|
const providedCallback = args.options?.onResponse;
|
|
938
1045
|
const callback: coreClient.RawResponseCallback = (
|
|
939
1046
|
rawResponse: coreClient.FullOperationResponse,
|
|
940
|
-
flatResponse: unknown
|
|
1047
|
+
flatResponse: unknown,
|
|
941
1048
|
) => {
|
|
942
1049
|
currentRawResponse = rawResponse;
|
|
943
1050
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -946,8 +1053,8 @@ export class DatabasesImpl implements Databases {
|
|
|
946
1053
|
...args,
|
|
947
1054
|
options: {
|
|
948
1055
|
...args.options,
|
|
949
|
-
onResponse: callback
|
|
950
|
-
}
|
|
1056
|
+
onResponse: callback,
|
|
1057
|
+
},
|
|
951
1058
|
};
|
|
952
1059
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
953
1060
|
return {
|
|
@@ -955,8 +1062,8 @@ export class DatabasesImpl implements Databases {
|
|
|
955
1062
|
rawResponse: {
|
|
956
1063
|
statusCode: currentRawResponse!.status,
|
|
957
1064
|
body: currentRawResponse!.parsedBody,
|
|
958
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
959
|
-
}
|
|
1065
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1066
|
+
},
|
|
960
1067
|
};
|
|
961
1068
|
};
|
|
962
1069
|
|
|
@@ -967,14 +1074,14 @@ export class DatabasesImpl implements Databases {
|
|
|
967
1074
|
clusterName,
|
|
968
1075
|
databaseName,
|
|
969
1076
|
parameters,
|
|
970
|
-
options
|
|
1077
|
+
options,
|
|
971
1078
|
},
|
|
972
|
-
spec: flushOperationSpec
|
|
1079
|
+
spec: flushOperationSpec,
|
|
973
1080
|
});
|
|
974
1081
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
975
1082
|
restoreFrom: options?.resumeFrom,
|
|
976
1083
|
intervalInMs: options?.updateIntervalInMs,
|
|
977
|
-
resourceLocationConfig: "location"
|
|
1084
|
+
resourceLocationConfig: "location",
|
|
978
1085
|
});
|
|
979
1086
|
await poller.poll();
|
|
980
1087
|
return poller;
|
|
@@ -983,8 +1090,8 @@ export class DatabasesImpl implements Databases {
|
|
|
983
1090
|
/**
|
|
984
1091
|
* Flushes all the keys in this database and also from its linked databases.
|
|
985
1092
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
986
|
-
* @param clusterName The name of the
|
|
987
|
-
* @param databaseName The name of the database.
|
|
1093
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
1094
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
988
1095
|
* @param parameters Information identifying the databases to be flushed
|
|
989
1096
|
* @param options The options parameters.
|
|
990
1097
|
*/
|
|
@@ -993,14 +1100,109 @@ export class DatabasesImpl implements Databases {
|
|
|
993
1100
|
clusterName: string,
|
|
994
1101
|
databaseName: string,
|
|
995
1102
|
parameters: FlushParameters,
|
|
996
|
-
options?: DatabasesFlushOptionalParams
|
|
1103
|
+
options?: DatabasesFlushOptionalParams,
|
|
997
1104
|
): Promise<void> {
|
|
998
1105
|
const poller = await this.beginFlush(
|
|
999
1106
|
resourceGroupName,
|
|
1000
1107
|
clusterName,
|
|
1001
1108
|
databaseName,
|
|
1002
1109
|
parameters,
|
|
1003
|
-
options
|
|
1110
|
+
options,
|
|
1111
|
+
);
|
|
1112
|
+
return poller.pollUntilDone();
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Upgrades the database Redis version to the latest available.
|
|
1117
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1118
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
1119
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
1120
|
+
* @param options The options parameters.
|
|
1121
|
+
*/
|
|
1122
|
+
async beginUpgradeDBRedisVersion(
|
|
1123
|
+
resourceGroupName: string,
|
|
1124
|
+
clusterName: string,
|
|
1125
|
+
databaseName: string,
|
|
1126
|
+
options?: DatabasesUpgradeDBRedisVersionOptionalParams,
|
|
1127
|
+
): Promise<
|
|
1128
|
+
SimplePollerLike<
|
|
1129
|
+
OperationState<DatabasesUpgradeDBRedisVersionResponse>,
|
|
1130
|
+
DatabasesUpgradeDBRedisVersionResponse
|
|
1131
|
+
>
|
|
1132
|
+
> {
|
|
1133
|
+
const directSendOperation = async (
|
|
1134
|
+
args: coreClient.OperationArguments,
|
|
1135
|
+
spec: coreClient.OperationSpec,
|
|
1136
|
+
): Promise<DatabasesUpgradeDBRedisVersionResponse> => {
|
|
1137
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1138
|
+
};
|
|
1139
|
+
const sendOperationFn = async (
|
|
1140
|
+
args: coreClient.OperationArguments,
|
|
1141
|
+
spec: coreClient.OperationSpec,
|
|
1142
|
+
) => {
|
|
1143
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
1144
|
+
undefined;
|
|
1145
|
+
const providedCallback = args.options?.onResponse;
|
|
1146
|
+
const callback: coreClient.RawResponseCallback = (
|
|
1147
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
1148
|
+
flatResponse: unknown,
|
|
1149
|
+
) => {
|
|
1150
|
+
currentRawResponse = rawResponse;
|
|
1151
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1152
|
+
};
|
|
1153
|
+
const updatedArgs = {
|
|
1154
|
+
...args,
|
|
1155
|
+
options: {
|
|
1156
|
+
...args.options,
|
|
1157
|
+
onResponse: callback,
|
|
1158
|
+
},
|
|
1159
|
+
};
|
|
1160
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1161
|
+
return {
|
|
1162
|
+
flatResponse,
|
|
1163
|
+
rawResponse: {
|
|
1164
|
+
statusCode: currentRawResponse!.status,
|
|
1165
|
+
body: currentRawResponse!.parsedBody,
|
|
1166
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
1167
|
+
},
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
const lro = createLroSpec({
|
|
1172
|
+
sendOperationFn,
|
|
1173
|
+
args: { resourceGroupName, clusterName, databaseName, options },
|
|
1174
|
+
spec: upgradeDBRedisVersionOperationSpec,
|
|
1175
|
+
});
|
|
1176
|
+
const poller = await createHttpPoller<
|
|
1177
|
+
DatabasesUpgradeDBRedisVersionResponse,
|
|
1178
|
+
OperationState<DatabasesUpgradeDBRedisVersionResponse>
|
|
1179
|
+
>(lro, {
|
|
1180
|
+
restoreFrom: options?.resumeFrom,
|
|
1181
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1182
|
+
resourceLocationConfig: "location",
|
|
1183
|
+
});
|
|
1184
|
+
await poller.poll();
|
|
1185
|
+
return poller;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Upgrades the database Redis version to the latest available.
|
|
1190
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1191
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
1192
|
+
* @param databaseName The name of the Redis Enterprise database.
|
|
1193
|
+
* @param options The options parameters.
|
|
1194
|
+
*/
|
|
1195
|
+
async beginUpgradeDBRedisVersionAndWait(
|
|
1196
|
+
resourceGroupName: string,
|
|
1197
|
+
clusterName: string,
|
|
1198
|
+
databaseName: string,
|
|
1199
|
+
options?: DatabasesUpgradeDBRedisVersionOptionalParams,
|
|
1200
|
+
): Promise<DatabasesUpgradeDBRedisVersionResponse> {
|
|
1201
|
+
const poller = await this.beginUpgradeDBRedisVersion(
|
|
1202
|
+
resourceGroupName,
|
|
1203
|
+
clusterName,
|
|
1204
|
+
databaseName,
|
|
1205
|
+
options,
|
|
1004
1206
|
);
|
|
1005
1207
|
return poller.pollUntilDone();
|
|
1006
1208
|
}
|
|
@@ -1008,7 +1210,7 @@ export class DatabasesImpl implements Databases {
|
|
|
1008
1210
|
/**
|
|
1009
1211
|
* ListByClusterNext
|
|
1010
1212
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1011
|
-
* @param clusterName The name of the
|
|
1213
|
+
* @param clusterName The name of the Redis Enterprise cluster.
|
|
1012
1214
|
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
1013
1215
|
* @param options The options parameters.
|
|
1014
1216
|
*/
|
|
@@ -1016,11 +1218,11 @@ export class DatabasesImpl implements Databases {
|
|
|
1016
1218
|
resourceGroupName: string,
|
|
1017
1219
|
clusterName: string,
|
|
1018
1220
|
nextLink: string,
|
|
1019
|
-
options?: DatabasesListByClusterNextOptionalParams
|
|
1221
|
+
options?: DatabasesListByClusterNextOptionalParams,
|
|
1020
1222
|
): Promise<DatabasesListByClusterNextResponse> {
|
|
1021
1223
|
return this.client.sendOperationRequest(
|
|
1022
1224
|
{ resourceGroupName, clusterName, nextLink, options },
|
|
1023
|
-
listByClusterNextOperationSpec
|
|
1225
|
+
listByClusterNextOperationSpec,
|
|
1024
1226
|
);
|
|
1025
1227
|
}
|
|
1026
1228
|
}
|
|
@@ -1028,47 +1230,45 @@ export class DatabasesImpl implements Databases {
|
|
|
1028
1230
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1029
1231
|
|
|
1030
1232
|
const listByClusterOperationSpec: coreClient.OperationSpec = {
|
|
1031
|
-
path:
|
|
1032
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
1233
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
1033
1234
|
httpMethod: "GET",
|
|
1034
1235
|
responses: {
|
|
1035
1236
|
200: {
|
|
1036
|
-
bodyMapper: Mappers.DatabaseList
|
|
1237
|
+
bodyMapper: Mappers.DatabaseList,
|
|
1037
1238
|
},
|
|
1038
1239
|
default: {
|
|
1039
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1040
|
-
}
|
|
1240
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1241
|
+
},
|
|
1041
1242
|
},
|
|
1042
1243
|
queryParameters: [Parameters.apiVersion],
|
|
1043
1244
|
urlParameters: [
|
|
1044
1245
|
Parameters.$host,
|
|
1045
1246
|
Parameters.subscriptionId,
|
|
1046
1247
|
Parameters.resourceGroupName,
|
|
1047
|
-
Parameters.clusterName
|
|
1248
|
+
Parameters.clusterName,
|
|
1048
1249
|
],
|
|
1049
1250
|
headerParameters: [Parameters.accept],
|
|
1050
|
-
serializer
|
|
1251
|
+
serializer,
|
|
1051
1252
|
};
|
|
1052
1253
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
1053
|
-
path:
|
|
1054
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1254
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1055
1255
|
httpMethod: "PUT",
|
|
1056
1256
|
responses: {
|
|
1057
1257
|
200: {
|
|
1058
|
-
bodyMapper: Mappers.Database
|
|
1258
|
+
bodyMapper: Mappers.Database,
|
|
1059
1259
|
},
|
|
1060
1260
|
201: {
|
|
1061
|
-
bodyMapper: Mappers.Database
|
|
1261
|
+
bodyMapper: Mappers.Database,
|
|
1062
1262
|
},
|
|
1063
1263
|
202: {
|
|
1064
|
-
bodyMapper: Mappers.Database
|
|
1264
|
+
bodyMapper: Mappers.Database,
|
|
1065
1265
|
},
|
|
1066
1266
|
204: {
|
|
1067
|
-
bodyMapper: Mappers.Database
|
|
1267
|
+
bodyMapper: Mappers.Database,
|
|
1068
1268
|
},
|
|
1069
1269
|
default: {
|
|
1070
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1071
|
-
}
|
|
1270
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1271
|
+
},
|
|
1072
1272
|
},
|
|
1073
1273
|
requestBody: Parameters.parameters2,
|
|
1074
1274
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1077,32 +1277,31 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
1077
1277
|
Parameters.subscriptionId,
|
|
1078
1278
|
Parameters.resourceGroupName,
|
|
1079
1279
|
Parameters.clusterName,
|
|
1080
|
-
Parameters.databaseName
|
|
1280
|
+
Parameters.databaseName,
|
|
1081
1281
|
],
|
|
1082
1282
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1083
1283
|
mediaType: "json",
|
|
1084
|
-
serializer
|
|
1284
|
+
serializer,
|
|
1085
1285
|
};
|
|
1086
1286
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1087
|
-
path:
|
|
1088
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1287
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1089
1288
|
httpMethod: "PATCH",
|
|
1090
1289
|
responses: {
|
|
1091
1290
|
200: {
|
|
1092
|
-
bodyMapper: Mappers.Database
|
|
1291
|
+
bodyMapper: Mappers.Database,
|
|
1093
1292
|
},
|
|
1094
1293
|
201: {
|
|
1095
|
-
bodyMapper: Mappers.Database
|
|
1294
|
+
bodyMapper: Mappers.Database,
|
|
1096
1295
|
},
|
|
1097
1296
|
202: {
|
|
1098
|
-
bodyMapper: Mappers.Database
|
|
1297
|
+
bodyMapper: Mappers.Database,
|
|
1099
1298
|
},
|
|
1100
1299
|
204: {
|
|
1101
|
-
bodyMapper: Mappers.Database
|
|
1300
|
+
bodyMapper: Mappers.Database,
|
|
1102
1301
|
},
|
|
1103
1302
|
default: {
|
|
1104
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1105
|
-
}
|
|
1303
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1304
|
+
},
|
|
1106
1305
|
},
|
|
1107
1306
|
requestBody: Parameters.parameters3,
|
|
1108
1307
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1111,23 +1310,22 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
1111
1310
|
Parameters.subscriptionId,
|
|
1112
1311
|
Parameters.resourceGroupName,
|
|
1113
1312
|
Parameters.clusterName,
|
|
1114
|
-
Parameters.databaseName
|
|
1313
|
+
Parameters.databaseName,
|
|
1115
1314
|
],
|
|
1116
1315
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1117
1316
|
mediaType: "json",
|
|
1118
|
-
serializer
|
|
1317
|
+
serializer,
|
|
1119
1318
|
};
|
|
1120
1319
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
1121
|
-
path:
|
|
1122
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1320
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1123
1321
|
httpMethod: "GET",
|
|
1124
1322
|
responses: {
|
|
1125
1323
|
200: {
|
|
1126
|
-
bodyMapper: Mappers.Database
|
|
1324
|
+
bodyMapper: Mappers.Database,
|
|
1127
1325
|
},
|
|
1128
1326
|
default: {
|
|
1129
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1130
|
-
}
|
|
1327
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1328
|
+
},
|
|
1131
1329
|
},
|
|
1132
1330
|
queryParameters: [Parameters.apiVersion],
|
|
1133
1331
|
urlParameters: [
|
|
@@ -1135,14 +1333,13 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
1135
1333
|
Parameters.subscriptionId,
|
|
1136
1334
|
Parameters.resourceGroupName,
|
|
1137
1335
|
Parameters.clusterName,
|
|
1138
|
-
Parameters.databaseName
|
|
1336
|
+
Parameters.databaseName,
|
|
1139
1337
|
],
|
|
1140
1338
|
headerParameters: [Parameters.accept],
|
|
1141
|
-
serializer
|
|
1339
|
+
serializer,
|
|
1142
1340
|
};
|
|
1143
1341
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1144
|
-
path:
|
|
1145
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1342
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
1146
1343
|
httpMethod: "DELETE",
|
|
1147
1344
|
responses: {
|
|
1148
1345
|
200: {},
|
|
@@ -1150,8 +1347,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
1150
1347
|
202: {},
|
|
1151
1348
|
204: {},
|
|
1152
1349
|
default: {
|
|
1153
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1154
|
-
}
|
|
1350
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1351
|
+
},
|
|
1155
1352
|
},
|
|
1156
1353
|
queryParameters: [Parameters.apiVersion],
|
|
1157
1354
|
urlParameters: [
|
|
@@ -1159,22 +1356,21 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
1159
1356
|
Parameters.subscriptionId,
|
|
1160
1357
|
Parameters.resourceGroupName,
|
|
1161
1358
|
Parameters.clusterName,
|
|
1162
|
-
Parameters.databaseName
|
|
1359
|
+
Parameters.databaseName,
|
|
1163
1360
|
],
|
|
1164
1361
|
headerParameters: [Parameters.accept],
|
|
1165
|
-
serializer
|
|
1362
|
+
serializer,
|
|
1166
1363
|
};
|
|
1167
1364
|
const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
1168
|
-
path:
|
|
1169
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
1365
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
1170
1366
|
httpMethod: "POST",
|
|
1171
1367
|
responses: {
|
|
1172
1368
|
200: {
|
|
1173
|
-
bodyMapper: Mappers.AccessKeys
|
|
1369
|
+
bodyMapper: Mappers.AccessKeys,
|
|
1174
1370
|
},
|
|
1175
1371
|
default: {
|
|
1176
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1177
|
-
}
|
|
1372
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1373
|
+
},
|
|
1178
1374
|
},
|
|
1179
1375
|
queryParameters: [Parameters.apiVersion],
|
|
1180
1376
|
urlParameters: [
|
|
@@ -1182,31 +1378,30 @@ const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
|
1182
1378
|
Parameters.subscriptionId,
|
|
1183
1379
|
Parameters.resourceGroupName,
|
|
1184
1380
|
Parameters.clusterName,
|
|
1185
|
-
Parameters.databaseName
|
|
1381
|
+
Parameters.databaseName,
|
|
1186
1382
|
],
|
|
1187
1383
|
headerParameters: [Parameters.accept],
|
|
1188
|
-
serializer
|
|
1384
|
+
serializer,
|
|
1189
1385
|
};
|
|
1190
1386
|
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
1191
|
-
path:
|
|
1192
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
1387
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
1193
1388
|
httpMethod: "POST",
|
|
1194
1389
|
responses: {
|
|
1195
1390
|
200: {
|
|
1196
|
-
bodyMapper: Mappers.AccessKeys
|
|
1391
|
+
bodyMapper: Mappers.AccessKeys,
|
|
1197
1392
|
},
|
|
1198
1393
|
201: {
|
|
1199
|
-
bodyMapper: Mappers.AccessKeys
|
|
1394
|
+
bodyMapper: Mappers.AccessKeys,
|
|
1200
1395
|
},
|
|
1201
1396
|
202: {
|
|
1202
|
-
bodyMapper: Mappers.AccessKeys
|
|
1397
|
+
bodyMapper: Mappers.AccessKeys,
|
|
1203
1398
|
},
|
|
1204
1399
|
204: {
|
|
1205
|
-
bodyMapper: Mappers.AccessKeys
|
|
1400
|
+
bodyMapper: Mappers.AccessKeys,
|
|
1206
1401
|
},
|
|
1207
1402
|
default: {
|
|
1208
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1209
|
-
}
|
|
1403
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1404
|
+
},
|
|
1210
1405
|
},
|
|
1211
1406
|
requestBody: Parameters.parameters4,
|
|
1212
1407
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1215,15 +1410,14 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
|
1215
1410
|
Parameters.subscriptionId,
|
|
1216
1411
|
Parameters.resourceGroupName,
|
|
1217
1412
|
Parameters.clusterName,
|
|
1218
|
-
Parameters.databaseName
|
|
1413
|
+
Parameters.databaseName,
|
|
1219
1414
|
],
|
|
1220
1415
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1221
1416
|
mediaType: "json",
|
|
1222
|
-
serializer
|
|
1417
|
+
serializer,
|
|
1223
1418
|
};
|
|
1224
1419
|
const importOperationSpec: coreClient.OperationSpec = {
|
|
1225
|
-
path:
|
|
1226
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
1420
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
1227
1421
|
httpMethod: "POST",
|
|
1228
1422
|
responses: {
|
|
1229
1423
|
200: {},
|
|
@@ -1231,8 +1425,8 @@ const importOperationSpec: coreClient.OperationSpec = {
|
|
|
1231
1425
|
202: {},
|
|
1232
1426
|
204: {},
|
|
1233
1427
|
default: {
|
|
1234
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1235
|
-
}
|
|
1428
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1429
|
+
},
|
|
1236
1430
|
},
|
|
1237
1431
|
requestBody: Parameters.parameters5,
|
|
1238
1432
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1241,15 +1435,14 @@ const importOperationSpec: coreClient.OperationSpec = {
|
|
|
1241
1435
|
Parameters.subscriptionId,
|
|
1242
1436
|
Parameters.resourceGroupName,
|
|
1243
1437
|
Parameters.clusterName,
|
|
1244
|
-
Parameters.databaseName
|
|
1438
|
+
Parameters.databaseName,
|
|
1245
1439
|
],
|
|
1246
1440
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1247
1441
|
mediaType: "json",
|
|
1248
|
-
serializer
|
|
1442
|
+
serializer,
|
|
1249
1443
|
};
|
|
1250
1444
|
const exportOperationSpec: coreClient.OperationSpec = {
|
|
1251
|
-
path:
|
|
1252
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
1445
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
1253
1446
|
httpMethod: "POST",
|
|
1254
1447
|
responses: {
|
|
1255
1448
|
200: {},
|
|
@@ -1257,8 +1450,8 @@ const exportOperationSpec: coreClient.OperationSpec = {
|
|
|
1257
1450
|
202: {},
|
|
1258
1451
|
204: {},
|
|
1259
1452
|
default: {
|
|
1260
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1261
|
-
}
|
|
1453
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1454
|
+
},
|
|
1262
1455
|
},
|
|
1263
1456
|
requestBody: Parameters.parameters6,
|
|
1264
1457
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1267,15 +1460,14 @@ const exportOperationSpec: coreClient.OperationSpec = {
|
|
|
1267
1460
|
Parameters.subscriptionId,
|
|
1268
1461
|
Parameters.resourceGroupName,
|
|
1269
1462
|
Parameters.clusterName,
|
|
1270
|
-
Parameters.databaseName
|
|
1463
|
+
Parameters.databaseName,
|
|
1271
1464
|
],
|
|
1272
1465
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1273
1466
|
mediaType: "json",
|
|
1274
|
-
serializer
|
|
1467
|
+
serializer,
|
|
1275
1468
|
};
|
|
1276
1469
|
const forceUnlinkOperationSpec: coreClient.OperationSpec = {
|
|
1277
|
-
path:
|
|
1278
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
|
|
1470
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
|
|
1279
1471
|
httpMethod: "POST",
|
|
1280
1472
|
responses: {
|
|
1281
1473
|
200: {},
|
|
@@ -1283,8 +1475,8 @@ const forceUnlinkOperationSpec: coreClient.OperationSpec = {
|
|
|
1283
1475
|
202: {},
|
|
1284
1476
|
204: {},
|
|
1285
1477
|
default: {
|
|
1286
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1287
|
-
}
|
|
1478
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1479
|
+
},
|
|
1288
1480
|
},
|
|
1289
1481
|
requestBody: Parameters.parameters7,
|
|
1290
1482
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1293,15 +1485,47 @@ const forceUnlinkOperationSpec: coreClient.OperationSpec = {
|
|
|
1293
1485
|
Parameters.subscriptionId,
|
|
1294
1486
|
Parameters.resourceGroupName,
|
|
1295
1487
|
Parameters.clusterName,
|
|
1296
|
-
Parameters.databaseName
|
|
1488
|
+
Parameters.databaseName,
|
|
1489
|
+
],
|
|
1490
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1491
|
+
mediaType: "json",
|
|
1492
|
+
serializer,
|
|
1493
|
+
};
|
|
1494
|
+
const forceLinkToReplicationGroupOperationSpec: coreClient.OperationSpec = {
|
|
1495
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup",
|
|
1496
|
+
httpMethod: "POST",
|
|
1497
|
+
responses: {
|
|
1498
|
+
200: {
|
|
1499
|
+
headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
|
|
1500
|
+
},
|
|
1501
|
+
201: {
|
|
1502
|
+
headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
|
|
1503
|
+
},
|
|
1504
|
+
202: {
|
|
1505
|
+
headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
|
|
1506
|
+
},
|
|
1507
|
+
204: {
|
|
1508
|
+
headersMapper: Mappers.DatabasesForceLinkToReplicationGroupHeaders,
|
|
1509
|
+
},
|
|
1510
|
+
default: {
|
|
1511
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1512
|
+
},
|
|
1513
|
+
},
|
|
1514
|
+
requestBody: Parameters.parameters8,
|
|
1515
|
+
queryParameters: [Parameters.apiVersion],
|
|
1516
|
+
urlParameters: [
|
|
1517
|
+
Parameters.$host,
|
|
1518
|
+
Parameters.subscriptionId,
|
|
1519
|
+
Parameters.resourceGroupName,
|
|
1520
|
+
Parameters.clusterName,
|
|
1521
|
+
Parameters.databaseName,
|
|
1297
1522
|
],
|
|
1298
1523
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1299
1524
|
mediaType: "json",
|
|
1300
|
-
serializer
|
|
1525
|
+
serializer,
|
|
1301
1526
|
};
|
|
1302
1527
|
const flushOperationSpec: coreClient.OperationSpec = {
|
|
1303
|
-
path:
|
|
1304
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush",
|
|
1528
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush",
|
|
1305
1529
|
httpMethod: "POST",
|
|
1306
1530
|
responses: {
|
|
1307
1531
|
200: {},
|
|
@@ -1309,40 +1533,71 @@ const flushOperationSpec: coreClient.OperationSpec = {
|
|
|
1309
1533
|
202: {},
|
|
1310
1534
|
204: {},
|
|
1311
1535
|
default: {
|
|
1312
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1313
|
-
}
|
|
1536
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1537
|
+
},
|
|
1314
1538
|
},
|
|
1315
|
-
requestBody: Parameters.
|
|
1539
|
+
requestBody: Parameters.parameters9,
|
|
1316
1540
|
queryParameters: [Parameters.apiVersion],
|
|
1317
1541
|
urlParameters: [
|
|
1318
1542
|
Parameters.$host,
|
|
1319
1543
|
Parameters.subscriptionId,
|
|
1320
1544
|
Parameters.resourceGroupName,
|
|
1321
1545
|
Parameters.clusterName,
|
|
1322
|
-
Parameters.databaseName
|
|
1546
|
+
Parameters.databaseName,
|
|
1323
1547
|
],
|
|
1324
1548
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1325
1549
|
mediaType: "json",
|
|
1326
|
-
serializer
|
|
1550
|
+
serializer,
|
|
1551
|
+
};
|
|
1552
|
+
const upgradeDBRedisVersionOperationSpec: coreClient.OperationSpec = {
|
|
1553
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion",
|
|
1554
|
+
httpMethod: "POST",
|
|
1555
|
+
responses: {
|
|
1556
|
+
200: {
|
|
1557
|
+
headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
|
|
1558
|
+
},
|
|
1559
|
+
201: {
|
|
1560
|
+
headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
|
|
1561
|
+
},
|
|
1562
|
+
202: {
|
|
1563
|
+
headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
|
|
1564
|
+
},
|
|
1565
|
+
204: {
|
|
1566
|
+
headersMapper: Mappers.DatabasesUpgradeDBRedisVersionHeaders,
|
|
1567
|
+
},
|
|
1568
|
+
default: {
|
|
1569
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1570
|
+
},
|
|
1571
|
+
},
|
|
1572
|
+
queryParameters: [Parameters.apiVersion],
|
|
1573
|
+
urlParameters: [
|
|
1574
|
+
Parameters.$host,
|
|
1575
|
+
Parameters.subscriptionId,
|
|
1576
|
+
Parameters.resourceGroupName,
|
|
1577
|
+
Parameters.clusterName,
|
|
1578
|
+
Parameters.databaseName,
|
|
1579
|
+
],
|
|
1580
|
+
headerParameters: [Parameters.accept],
|
|
1581
|
+
serializer,
|
|
1327
1582
|
};
|
|
1328
1583
|
const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
1329
1584
|
path: "{nextLink}",
|
|
1330
1585
|
httpMethod: "GET",
|
|
1331
1586
|
responses: {
|
|
1332
1587
|
200: {
|
|
1333
|
-
bodyMapper: Mappers.DatabaseList
|
|
1588
|
+
bodyMapper: Mappers.DatabaseList,
|
|
1334
1589
|
},
|
|
1335
1590
|
default: {
|
|
1336
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1337
|
-
}
|
|
1591
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1592
|
+
},
|
|
1338
1593
|
},
|
|
1339
1594
|
urlParameters: [
|
|
1340
1595
|
Parameters.$host,
|
|
1341
1596
|
Parameters.nextLink,
|
|
1342
1597
|
Parameters.subscriptionId,
|
|
1343
1598
|
Parameters.resourceGroupName,
|
|
1344
|
-
Parameters.clusterName
|
|
1599
|
+
Parameters.clusterName,
|
|
1345
1600
|
],
|
|
1346
1601
|
headerParameters: [Parameters.accept],
|
|
1347
|
-
serializer
|
|
1602
|
+
serializer,
|
|
1348
1603
|
};
|