@azure/arm-rediscache 8.0.0 → 8.1.0
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 +21 -10
- package/LICENSE +1 -1
- package/dist/index.js +1195 -1218
- 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/accessPolicyAssignmentCreateUpdateSample.js +3 -3
- package/dist-esm/samples-dev/accessPolicyAssignmentCreateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentGetSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js +5 -10
- package/dist-esm/samples-dev/accessPolicyAssignmentListSample.js.map +1 -1
- package/dist-esm/samples-dev/accessPolicyCreateUpdateSample.js +2 -2
- package/dist-esm/samples-dev/accessPolicyCreateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/accessPolicyDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyGetSample.js +1 -1
- package/dist-esm/samples-dev/accessPolicyListSample.js +5 -10
- package/dist-esm/samples-dev/accessPolicyListSample.js.map +1 -1
- package/dist-esm/samples-dev/asyncOperationStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +1 -1
- package/dist-esm/samples-dev/firewallRulesListSample.js +5 -10
- package/dist-esm/samples-dev/firewallRulesListSample.js.map +1 -1
- package/dist-esm/samples-dev/linkedServerCreateSample.js +3 -3
- package/dist-esm/samples-dev/linkedServerCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/linkedServerDeleteSample.js +1 -1
- package/dist-esm/samples-dev/linkedServerGetSample.js +1 -1
- package/dist-esm/samples-dev/linkedServerListSample.js +5 -10
- package/dist-esm/samples-dev/linkedServerListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +5 -10
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/patchSchedulesCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/patchSchedulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/patchSchedulesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/patchSchedulesGetSample.js +1 -1
- package/dist-esm/samples-dev/patchSchedulesListByRedisResourceSample.js +5 -10
- package/dist-esm/samples-dev/patchSchedulesListByRedisResourceSample.js.map +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 +5 -10
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +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/privateLinkResourcesListByRedisCacheSample.js +5 -10
- package/dist-esm/samples-dev/privateLinkResourcesListByRedisCacheSample.js.map +1 -1
- package/dist-esm/samples-dev/redisCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/redisCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/redisCreateSample.js +7 -7
- package/dist-esm/samples-dev/redisCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/redisDeleteSample.js +1 -1
- package/dist-esm/samples-dev/redisExportDataSample.js +3 -3
- package/dist-esm/samples-dev/redisExportDataSample.js.map +1 -1
- package/dist-esm/samples-dev/redisFlushCacheSample.js +1 -1
- package/dist-esm/samples-dev/redisForceRebootSample.js +3 -3
- package/dist-esm/samples-dev/redisForceRebootSample.js.map +1 -1
- package/dist-esm/samples-dev/redisGetSample.js +1 -1
- package/dist-esm/samples-dev/redisImportDataSample.js +3 -3
- package/dist-esm/samples-dev/redisImportDataSample.js.map +1 -1
- package/dist-esm/samples-dev/redisListByResourceGroupSample.js +5 -10
- package/dist-esm/samples-dev/redisListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/redisListBySubscriptionSample.js +5 -10
- package/dist-esm/samples-dev/redisListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/redisListKeysSample.js +1 -1
- package/dist-esm/samples-dev/redisListUpgradeNotificationsSample.js +5 -10
- package/dist-esm/samples-dev/redisListUpgradeNotificationsSample.js.map +1 -1
- package/dist-esm/samples-dev/redisRegenerateKeySample.js +2 -2
- package/dist-esm/samples-dev/redisRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/redisUpdateSample.js +3 -3
- package/dist-esm/samples-dev/redisUpdateSample.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +15 -5
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +700 -667
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +75 -75
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accessPolicy.d.ts.map +1 -1
- package/dist-esm/src/operations/accessPolicy.js +41 -46
- package/dist-esm/src/operations/accessPolicy.js.map +1 -1
- package/dist-esm/src/operations/accessPolicyAssignment.d.ts.map +1 -1
- package/dist-esm/src/operations/accessPolicyAssignment.js +42 -47
- package/dist-esm/src/operations/accessPolicyAssignment.js.map +1 -1
- package/dist-esm/src/operations/asyncOperationStatus.js +5 -5
- package/dist-esm/src/operations/asyncOperationStatus.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +29 -34
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/linkedServer.d.ts.map +1 -1
- package/dist-esm/src/operations/linkedServer.js +40 -45
- package/dist-esm/src/operations/linkedServer.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/patchSchedules.js +29 -34
- package/dist-esm/src/operations/patchSchedules.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +32 -37
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +9 -14
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/redis.d.ts.map +1 -1
- package/dist-esm/src/operations/redis.js +125 -140
- package/dist-esm/src/operations/redis.js.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/src/redisManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisManagementClient.js +9 -9
- package/dist-esm/src/redisManagementClient.js.map +1 -1
- package/dist-esm/test/redis_examples.d.ts.map +1 -1
- package/dist-esm/test/redis_examples.js +47 -51
- package/dist-esm/test/redis_examples.js.map +1 -1
- package/package.json +19 -25
- package/review/arm-rediscache.api.md +5 -0
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +47 -28
- package/src/models/mappers.ts +819 -783
- package/src/models/parameters.ts +79 -77
- package/src/operations/accessPolicy.ts +75 -81
- package/src/operations/accessPolicyAssignment.ts +76 -82
- package/src/operations/asyncOperationStatus.ts +9 -10
- package/src/operations/firewallRules.ts +47 -51
- package/src/operations/linkedServer.ts +73 -79
- package/src/operations/operations.ts +16 -16
- package/src/operations/patchSchedules.ts +49 -53
- package/src/operations/privateEndpointConnections.ts +57 -61
- package/src/operations/privateLinkResources.ts +17 -18
- package/src/operations/redis.ts +228 -247
- package/src/operationsInterfaces/accessPolicy.ts +7 -7
- package/src/operationsInterfaces/accessPolicyAssignment.ts +7 -7
- package/src/operationsInterfaces/asyncOperationStatus.ts +2 -2
- package/src/operationsInterfaces/firewallRules.ts +5 -5
- package/src/operationsInterfaces/linkedServer.ts +7 -7
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/patchSchedules.ts +5 -5
- package/src/operationsInterfaces/privateEndpointConnections.ts +6 -6
- package/src/operationsInterfaces/privateLinkResources.ts +2 -2
- package/src/operationsInterfaces/redis.ts +21 -21
- package/src/pagingHelper.ts +1 -1
- package/src/redisManagementClient.ts +18 -17
- package/types/arm-rediscache.d.ts +15 -5
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
package/src/operations/redis.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { RedisManagementClient } from "../redisManagementClient";
|
|
|
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 {
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
RedisFlushCacheResponse,
|
|
59
59
|
RedisListUpgradeNotificationsNextResponse,
|
|
60
60
|
RedisListByResourceGroupNextResponse,
|
|
61
|
-
RedisListBySubscriptionNextResponse
|
|
61
|
+
RedisListBySubscriptionNextResponse,
|
|
62
62
|
} from "../models";
|
|
63
63
|
|
|
64
64
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -85,13 +85,13 @@ export class RedisImpl implements Redis {
|
|
|
85
85
|
resourceGroupName: string,
|
|
86
86
|
name: string,
|
|
87
87
|
history: number,
|
|
88
|
-
options?: RedisListUpgradeNotificationsOptionalParams
|
|
88
|
+
options?: RedisListUpgradeNotificationsOptionalParams,
|
|
89
89
|
): PagedAsyncIterableIterator<UpgradeNotification> {
|
|
90
90
|
const iter = this.listUpgradeNotificationsPagingAll(
|
|
91
91
|
resourceGroupName,
|
|
92
92
|
name,
|
|
93
93
|
history,
|
|
94
|
-
options
|
|
94
|
+
options,
|
|
95
95
|
);
|
|
96
96
|
return {
|
|
97
97
|
next() {
|
|
@@ -109,9 +109,9 @@ export class RedisImpl implements Redis {
|
|
|
109
109
|
name,
|
|
110
110
|
history,
|
|
111
111
|
options,
|
|
112
|
-
settings
|
|
112
|
+
settings,
|
|
113
113
|
);
|
|
114
|
-
}
|
|
114
|
+
},
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -120,7 +120,7 @@ export class RedisImpl implements Redis {
|
|
|
120
120
|
name: string,
|
|
121
121
|
history: number,
|
|
122
122
|
options?: RedisListUpgradeNotificationsOptionalParams,
|
|
123
|
-
settings?: PageSettings
|
|
123
|
+
settings?: PageSettings,
|
|
124
124
|
): AsyncIterableIterator<UpgradeNotification[]> {
|
|
125
125
|
let result: RedisListUpgradeNotificationsResponse;
|
|
126
126
|
let continuationToken = settings?.continuationToken;
|
|
@@ -129,7 +129,7 @@ export class RedisImpl implements Redis {
|
|
|
129
129
|
resourceGroupName,
|
|
130
130
|
name,
|
|
131
131
|
history,
|
|
132
|
-
options
|
|
132
|
+
options,
|
|
133
133
|
);
|
|
134
134
|
let page = result.value || [];
|
|
135
135
|
continuationToken = result.nextLink;
|
|
@@ -141,7 +141,7 @@ export class RedisImpl implements Redis {
|
|
|
141
141
|
resourceGroupName,
|
|
142
142
|
name,
|
|
143
143
|
continuationToken,
|
|
144
|
-
options
|
|
144
|
+
options,
|
|
145
145
|
);
|
|
146
146
|
continuationToken = result.nextLink;
|
|
147
147
|
let page = result.value || [];
|
|
@@ -154,13 +154,13 @@ export class RedisImpl implements Redis {
|
|
|
154
154
|
resourceGroupName: string,
|
|
155
155
|
name: string,
|
|
156
156
|
history: number,
|
|
157
|
-
options?: RedisListUpgradeNotificationsOptionalParams
|
|
157
|
+
options?: RedisListUpgradeNotificationsOptionalParams,
|
|
158
158
|
): AsyncIterableIterator<UpgradeNotification> {
|
|
159
159
|
for await (const page of this.listUpgradeNotificationsPagingPage(
|
|
160
160
|
resourceGroupName,
|
|
161
161
|
name,
|
|
162
162
|
history,
|
|
163
|
-
options
|
|
163
|
+
options,
|
|
164
164
|
)) {
|
|
165
165
|
yield* page;
|
|
166
166
|
}
|
|
@@ -173,7 +173,7 @@ export class RedisImpl implements Redis {
|
|
|
173
173
|
*/
|
|
174
174
|
public listByResourceGroup(
|
|
175
175
|
resourceGroupName: string,
|
|
176
|
-
options?: RedisListByResourceGroupOptionalParams
|
|
176
|
+
options?: RedisListByResourceGroupOptionalParams,
|
|
177
177
|
): PagedAsyncIterableIterator<RedisResource> {
|
|
178
178
|
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
179
179
|
return {
|
|
@@ -190,16 +190,16 @@ export class RedisImpl implements Redis {
|
|
|
190
190
|
return this.listByResourceGroupPagingPage(
|
|
191
191
|
resourceGroupName,
|
|
192
192
|
options,
|
|
193
|
-
settings
|
|
193
|
+
settings,
|
|
194
194
|
);
|
|
195
|
-
}
|
|
195
|
+
},
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
private async *listByResourceGroupPagingPage(
|
|
200
200
|
resourceGroupName: string,
|
|
201
201
|
options?: RedisListByResourceGroupOptionalParams,
|
|
202
|
-
settings?: PageSettings
|
|
202
|
+
settings?: PageSettings,
|
|
203
203
|
): AsyncIterableIterator<RedisResource[]> {
|
|
204
204
|
let result: RedisListByResourceGroupResponse;
|
|
205
205
|
let continuationToken = settings?.continuationToken;
|
|
@@ -214,7 +214,7 @@ export class RedisImpl implements Redis {
|
|
|
214
214
|
result = await this._listByResourceGroupNext(
|
|
215
215
|
resourceGroupName,
|
|
216
216
|
continuationToken,
|
|
217
|
-
options
|
|
217
|
+
options,
|
|
218
218
|
);
|
|
219
219
|
continuationToken = result.nextLink;
|
|
220
220
|
let page = result.value || [];
|
|
@@ -225,11 +225,11 @@ export class RedisImpl implements Redis {
|
|
|
225
225
|
|
|
226
226
|
private async *listByResourceGroupPagingAll(
|
|
227
227
|
resourceGroupName: string,
|
|
228
|
-
options?: RedisListByResourceGroupOptionalParams
|
|
228
|
+
options?: RedisListByResourceGroupOptionalParams,
|
|
229
229
|
): AsyncIterableIterator<RedisResource> {
|
|
230
230
|
for await (const page of this.listByResourceGroupPagingPage(
|
|
231
231
|
resourceGroupName,
|
|
232
|
-
options
|
|
232
|
+
options,
|
|
233
233
|
)) {
|
|
234
234
|
yield* page;
|
|
235
235
|
}
|
|
@@ -240,7 +240,7 @@ export class RedisImpl implements Redis {
|
|
|
240
240
|
* @param options The options parameters.
|
|
241
241
|
*/
|
|
242
242
|
public listBySubscription(
|
|
243
|
-
options?: RedisListBySubscriptionOptionalParams
|
|
243
|
+
options?: RedisListBySubscriptionOptionalParams,
|
|
244
244
|
): PagedAsyncIterableIterator<RedisResource> {
|
|
245
245
|
const iter = this.listBySubscriptionPagingAll(options);
|
|
246
246
|
return {
|
|
@@ -255,13 +255,13 @@ export class RedisImpl implements Redis {
|
|
|
255
255
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
256
256
|
}
|
|
257
257
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
258
|
-
}
|
|
258
|
+
},
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
private async *listBySubscriptionPagingPage(
|
|
263
263
|
options?: RedisListBySubscriptionOptionalParams,
|
|
264
|
-
settings?: PageSettings
|
|
264
|
+
settings?: PageSettings,
|
|
265
265
|
): AsyncIterableIterator<RedisResource[]> {
|
|
266
266
|
let result: RedisListBySubscriptionResponse;
|
|
267
267
|
let continuationToken = settings?.continuationToken;
|
|
@@ -282,7 +282,7 @@ export class RedisImpl implements Redis {
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
private async *listBySubscriptionPagingAll(
|
|
285
|
-
options?: RedisListBySubscriptionOptionalParams
|
|
285
|
+
options?: RedisListBySubscriptionOptionalParams,
|
|
286
286
|
): AsyncIterableIterator<RedisResource> {
|
|
287
287
|
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
288
288
|
yield* page;
|
|
@@ -297,11 +297,11 @@ export class RedisImpl implements Redis {
|
|
|
297
297
|
*/
|
|
298
298
|
checkNameAvailability(
|
|
299
299
|
parameters: CheckNameAvailabilityParameters,
|
|
300
|
-
options?: RedisCheckNameAvailabilityOptionalParams
|
|
300
|
+
options?: RedisCheckNameAvailabilityOptionalParams,
|
|
301
301
|
): Promise<void> {
|
|
302
302
|
return this.client.sendOperationRequest(
|
|
303
303
|
{ parameters, options },
|
|
304
|
-
checkNameAvailabilityOperationSpec
|
|
304
|
+
checkNameAvailabilityOperationSpec,
|
|
305
305
|
);
|
|
306
306
|
}
|
|
307
307
|
|
|
@@ -316,11 +316,11 @@ export class RedisImpl implements Redis {
|
|
|
316
316
|
resourceGroupName: string,
|
|
317
317
|
name: string,
|
|
318
318
|
history: number,
|
|
319
|
-
options?: RedisListUpgradeNotificationsOptionalParams
|
|
319
|
+
options?: RedisListUpgradeNotificationsOptionalParams,
|
|
320
320
|
): Promise<RedisListUpgradeNotificationsResponse> {
|
|
321
321
|
return this.client.sendOperationRequest(
|
|
322
322
|
{ resourceGroupName, name, history, options },
|
|
323
|
-
listUpgradeNotificationsOperationSpec
|
|
323
|
+
listUpgradeNotificationsOperationSpec,
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
326
|
|
|
@@ -335,27 +335,26 @@ export class RedisImpl implements Redis {
|
|
|
335
335
|
resourceGroupName: string,
|
|
336
336
|
name: string,
|
|
337
337
|
parameters: RedisCreateParameters,
|
|
338
|
-
options?: RedisCreateOptionalParams
|
|
338
|
+
options?: RedisCreateOptionalParams,
|
|
339
339
|
): Promise<
|
|
340
340
|
SimplePollerLike<OperationState<RedisCreateResponse>, RedisCreateResponse>
|
|
341
341
|
> {
|
|
342
342
|
const directSendOperation = async (
|
|
343
343
|
args: coreClient.OperationArguments,
|
|
344
|
-
spec: coreClient.OperationSpec
|
|
344
|
+
spec: coreClient.OperationSpec,
|
|
345
345
|
): Promise<RedisCreateResponse> => {
|
|
346
346
|
return this.client.sendOperationRequest(args, spec);
|
|
347
347
|
};
|
|
348
348
|
const sendOperationFn = async (
|
|
349
349
|
args: coreClient.OperationArguments,
|
|
350
|
-
spec: coreClient.OperationSpec
|
|
350
|
+
spec: coreClient.OperationSpec,
|
|
351
351
|
) => {
|
|
352
|
-
let currentRawResponse:
|
|
353
|
-
|
|
354
|
-
| undefined = undefined;
|
|
352
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
353
|
+
undefined;
|
|
355
354
|
const providedCallback = args.options?.onResponse;
|
|
356
355
|
const callback: coreClient.RawResponseCallback = (
|
|
357
356
|
rawResponse: coreClient.FullOperationResponse,
|
|
358
|
-
flatResponse: unknown
|
|
357
|
+
flatResponse: unknown,
|
|
359
358
|
) => {
|
|
360
359
|
currentRawResponse = rawResponse;
|
|
361
360
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -364,8 +363,8 @@ export class RedisImpl implements Redis {
|
|
|
364
363
|
...args,
|
|
365
364
|
options: {
|
|
366
365
|
...args.options,
|
|
367
|
-
onResponse: callback
|
|
368
|
-
}
|
|
366
|
+
onResponse: callback,
|
|
367
|
+
},
|
|
369
368
|
};
|
|
370
369
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
371
370
|
return {
|
|
@@ -373,22 +372,22 @@ export class RedisImpl implements Redis {
|
|
|
373
372
|
rawResponse: {
|
|
374
373
|
statusCode: currentRawResponse!.status,
|
|
375
374
|
body: currentRawResponse!.parsedBody,
|
|
376
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
377
|
-
}
|
|
375
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
376
|
+
},
|
|
378
377
|
};
|
|
379
378
|
};
|
|
380
379
|
|
|
381
380
|
const lro = createLroSpec({
|
|
382
381
|
sendOperationFn,
|
|
383
382
|
args: { resourceGroupName, name, parameters, options },
|
|
384
|
-
spec: createOperationSpec
|
|
383
|
+
spec: createOperationSpec,
|
|
385
384
|
});
|
|
386
385
|
const poller = await createHttpPoller<
|
|
387
386
|
RedisCreateResponse,
|
|
388
387
|
OperationState<RedisCreateResponse>
|
|
389
388
|
>(lro, {
|
|
390
389
|
restoreFrom: options?.resumeFrom,
|
|
391
|
-
intervalInMs: options?.updateIntervalInMs
|
|
390
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
392
391
|
});
|
|
393
392
|
await poller.poll();
|
|
394
393
|
return poller;
|
|
@@ -405,13 +404,13 @@ export class RedisImpl implements Redis {
|
|
|
405
404
|
resourceGroupName: string,
|
|
406
405
|
name: string,
|
|
407
406
|
parameters: RedisCreateParameters,
|
|
408
|
-
options?: RedisCreateOptionalParams
|
|
407
|
+
options?: RedisCreateOptionalParams,
|
|
409
408
|
): Promise<RedisCreateResponse> {
|
|
410
409
|
const poller = await this.beginCreate(
|
|
411
410
|
resourceGroupName,
|
|
412
411
|
name,
|
|
413
412
|
parameters,
|
|
414
|
-
options
|
|
413
|
+
options,
|
|
415
414
|
);
|
|
416
415
|
return poller.pollUntilDone();
|
|
417
416
|
}
|
|
@@ -427,27 +426,26 @@ export class RedisImpl implements Redis {
|
|
|
427
426
|
resourceGroupName: string,
|
|
428
427
|
name: string,
|
|
429
428
|
parameters: RedisUpdateParameters,
|
|
430
|
-
options?: RedisUpdateOptionalParams
|
|
429
|
+
options?: RedisUpdateOptionalParams,
|
|
431
430
|
): Promise<
|
|
432
431
|
SimplePollerLike<OperationState<RedisUpdateResponse>, RedisUpdateResponse>
|
|
433
432
|
> {
|
|
434
433
|
const directSendOperation = async (
|
|
435
434
|
args: coreClient.OperationArguments,
|
|
436
|
-
spec: coreClient.OperationSpec
|
|
435
|
+
spec: coreClient.OperationSpec,
|
|
437
436
|
): Promise<RedisUpdateResponse> => {
|
|
438
437
|
return this.client.sendOperationRequest(args, spec);
|
|
439
438
|
};
|
|
440
439
|
const sendOperationFn = async (
|
|
441
440
|
args: coreClient.OperationArguments,
|
|
442
|
-
spec: coreClient.OperationSpec
|
|
441
|
+
spec: coreClient.OperationSpec,
|
|
443
442
|
) => {
|
|
444
|
-
let currentRawResponse:
|
|
445
|
-
|
|
446
|
-
| undefined = undefined;
|
|
443
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
444
|
+
undefined;
|
|
447
445
|
const providedCallback = args.options?.onResponse;
|
|
448
446
|
const callback: coreClient.RawResponseCallback = (
|
|
449
447
|
rawResponse: coreClient.FullOperationResponse,
|
|
450
|
-
flatResponse: unknown
|
|
448
|
+
flatResponse: unknown,
|
|
451
449
|
) => {
|
|
452
450
|
currentRawResponse = rawResponse;
|
|
453
451
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -456,8 +454,8 @@ export class RedisImpl implements Redis {
|
|
|
456
454
|
...args,
|
|
457
455
|
options: {
|
|
458
456
|
...args.options,
|
|
459
|
-
onResponse: callback
|
|
460
|
-
}
|
|
457
|
+
onResponse: callback,
|
|
458
|
+
},
|
|
461
459
|
};
|
|
462
460
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
463
461
|
return {
|
|
@@ -465,22 +463,22 @@ export class RedisImpl implements Redis {
|
|
|
465
463
|
rawResponse: {
|
|
466
464
|
statusCode: currentRawResponse!.status,
|
|
467
465
|
body: currentRawResponse!.parsedBody,
|
|
468
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
469
|
-
}
|
|
466
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
467
|
+
},
|
|
470
468
|
};
|
|
471
469
|
};
|
|
472
470
|
|
|
473
471
|
const lro = createLroSpec({
|
|
474
472
|
sendOperationFn,
|
|
475
473
|
args: { resourceGroupName, name, parameters, options },
|
|
476
|
-
spec: updateOperationSpec
|
|
474
|
+
spec: updateOperationSpec,
|
|
477
475
|
});
|
|
478
476
|
const poller = await createHttpPoller<
|
|
479
477
|
RedisUpdateResponse,
|
|
480
478
|
OperationState<RedisUpdateResponse>
|
|
481
479
|
>(lro, {
|
|
482
480
|
restoreFrom: options?.resumeFrom,
|
|
483
|
-
intervalInMs: options?.updateIntervalInMs
|
|
481
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
484
482
|
});
|
|
485
483
|
await poller.poll();
|
|
486
484
|
return poller;
|
|
@@ -497,13 +495,13 @@ export class RedisImpl implements Redis {
|
|
|
497
495
|
resourceGroupName: string,
|
|
498
496
|
name: string,
|
|
499
497
|
parameters: RedisUpdateParameters,
|
|
500
|
-
options?: RedisUpdateOptionalParams
|
|
498
|
+
options?: RedisUpdateOptionalParams,
|
|
501
499
|
): Promise<RedisUpdateResponse> {
|
|
502
500
|
const poller = await this.beginUpdate(
|
|
503
501
|
resourceGroupName,
|
|
504
502
|
name,
|
|
505
503
|
parameters,
|
|
506
|
-
options
|
|
504
|
+
options,
|
|
507
505
|
);
|
|
508
506
|
return poller.pollUntilDone();
|
|
509
507
|
}
|
|
@@ -517,25 +515,24 @@ export class RedisImpl implements Redis {
|
|
|
517
515
|
async beginDelete(
|
|
518
516
|
resourceGroupName: string,
|
|
519
517
|
name: string,
|
|
520
|
-
options?: RedisDeleteOptionalParams
|
|
518
|
+
options?: RedisDeleteOptionalParams,
|
|
521
519
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
522
520
|
const directSendOperation = async (
|
|
523
521
|
args: coreClient.OperationArguments,
|
|
524
|
-
spec: coreClient.OperationSpec
|
|
522
|
+
spec: coreClient.OperationSpec,
|
|
525
523
|
): Promise<void> => {
|
|
526
524
|
return this.client.sendOperationRequest(args, spec);
|
|
527
525
|
};
|
|
528
526
|
const sendOperationFn = async (
|
|
529
527
|
args: coreClient.OperationArguments,
|
|
530
|
-
spec: coreClient.OperationSpec
|
|
528
|
+
spec: coreClient.OperationSpec,
|
|
531
529
|
) => {
|
|
532
|
-
let currentRawResponse:
|
|
533
|
-
|
|
534
|
-
| undefined = undefined;
|
|
530
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
531
|
+
undefined;
|
|
535
532
|
const providedCallback = args.options?.onResponse;
|
|
536
533
|
const callback: coreClient.RawResponseCallback = (
|
|
537
534
|
rawResponse: coreClient.FullOperationResponse,
|
|
538
|
-
flatResponse: unknown
|
|
535
|
+
flatResponse: unknown,
|
|
539
536
|
) => {
|
|
540
537
|
currentRawResponse = rawResponse;
|
|
541
538
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -544,8 +541,8 @@ export class RedisImpl implements Redis {
|
|
|
544
541
|
...args,
|
|
545
542
|
options: {
|
|
546
543
|
...args.options,
|
|
547
|
-
onResponse: callback
|
|
548
|
-
}
|
|
544
|
+
onResponse: callback,
|
|
545
|
+
},
|
|
549
546
|
};
|
|
550
547
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
551
548
|
return {
|
|
@@ -553,19 +550,19 @@ export class RedisImpl implements Redis {
|
|
|
553
550
|
rawResponse: {
|
|
554
551
|
statusCode: currentRawResponse!.status,
|
|
555
552
|
body: currentRawResponse!.parsedBody,
|
|
556
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
557
|
-
}
|
|
553
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
554
|
+
},
|
|
558
555
|
};
|
|
559
556
|
};
|
|
560
557
|
|
|
561
558
|
const lro = createLroSpec({
|
|
562
559
|
sendOperationFn,
|
|
563
560
|
args: { resourceGroupName, name, options },
|
|
564
|
-
spec: deleteOperationSpec
|
|
561
|
+
spec: deleteOperationSpec,
|
|
565
562
|
});
|
|
566
563
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
567
564
|
restoreFrom: options?.resumeFrom,
|
|
568
|
-
intervalInMs: options?.updateIntervalInMs
|
|
565
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
569
566
|
});
|
|
570
567
|
await poller.poll();
|
|
571
568
|
return poller;
|
|
@@ -580,7 +577,7 @@ export class RedisImpl implements Redis {
|
|
|
580
577
|
async beginDeleteAndWait(
|
|
581
578
|
resourceGroupName: string,
|
|
582
579
|
name: string,
|
|
583
|
-
options?: RedisDeleteOptionalParams
|
|
580
|
+
options?: RedisDeleteOptionalParams,
|
|
584
581
|
): Promise<void> {
|
|
585
582
|
const poller = await this.beginDelete(resourceGroupName, name, options);
|
|
586
583
|
return poller.pollUntilDone();
|
|
@@ -595,11 +592,11 @@ export class RedisImpl implements Redis {
|
|
|
595
592
|
get(
|
|
596
593
|
resourceGroupName: string,
|
|
597
594
|
name: string,
|
|
598
|
-
options?: RedisGetOptionalParams
|
|
595
|
+
options?: RedisGetOptionalParams,
|
|
599
596
|
): Promise<RedisGetResponse> {
|
|
600
597
|
return this.client.sendOperationRequest(
|
|
601
598
|
{ resourceGroupName, name, options },
|
|
602
|
-
getOperationSpec
|
|
599
|
+
getOperationSpec,
|
|
603
600
|
);
|
|
604
601
|
}
|
|
605
602
|
|
|
@@ -610,11 +607,11 @@ export class RedisImpl implements Redis {
|
|
|
610
607
|
*/
|
|
611
608
|
private _listByResourceGroup(
|
|
612
609
|
resourceGroupName: string,
|
|
613
|
-
options?: RedisListByResourceGroupOptionalParams
|
|
610
|
+
options?: RedisListByResourceGroupOptionalParams,
|
|
614
611
|
): Promise<RedisListByResourceGroupResponse> {
|
|
615
612
|
return this.client.sendOperationRequest(
|
|
616
613
|
{ resourceGroupName, options },
|
|
617
|
-
listByResourceGroupOperationSpec
|
|
614
|
+
listByResourceGroupOperationSpec,
|
|
618
615
|
);
|
|
619
616
|
}
|
|
620
617
|
|
|
@@ -623,11 +620,11 @@ export class RedisImpl implements Redis {
|
|
|
623
620
|
* @param options The options parameters.
|
|
624
621
|
*/
|
|
625
622
|
private _listBySubscription(
|
|
626
|
-
options?: RedisListBySubscriptionOptionalParams
|
|
623
|
+
options?: RedisListBySubscriptionOptionalParams,
|
|
627
624
|
): Promise<RedisListBySubscriptionResponse> {
|
|
628
625
|
return this.client.sendOperationRequest(
|
|
629
626
|
{ options },
|
|
630
|
-
listBySubscriptionOperationSpec
|
|
627
|
+
listBySubscriptionOperationSpec,
|
|
631
628
|
);
|
|
632
629
|
}
|
|
633
630
|
|
|
@@ -641,11 +638,11 @@ export class RedisImpl implements Redis {
|
|
|
641
638
|
listKeys(
|
|
642
639
|
resourceGroupName: string,
|
|
643
640
|
name: string,
|
|
644
|
-
options?: RedisListKeysOptionalParams
|
|
641
|
+
options?: RedisListKeysOptionalParams,
|
|
645
642
|
): Promise<RedisListKeysResponse> {
|
|
646
643
|
return this.client.sendOperationRequest(
|
|
647
644
|
{ resourceGroupName, name, options },
|
|
648
|
-
listKeysOperationSpec
|
|
645
|
+
listKeysOperationSpec,
|
|
649
646
|
);
|
|
650
647
|
}
|
|
651
648
|
|
|
@@ -661,11 +658,11 @@ export class RedisImpl implements Redis {
|
|
|
661
658
|
resourceGroupName: string,
|
|
662
659
|
name: string,
|
|
663
660
|
parameters: RedisRegenerateKeyParameters,
|
|
664
|
-
options?: RedisRegenerateKeyOptionalParams
|
|
661
|
+
options?: RedisRegenerateKeyOptionalParams,
|
|
665
662
|
): Promise<RedisRegenerateKeyResponse> {
|
|
666
663
|
return this.client.sendOperationRequest(
|
|
667
664
|
{ resourceGroupName, name, parameters, options },
|
|
668
|
-
regenerateKeyOperationSpec
|
|
665
|
+
regenerateKeyOperationSpec,
|
|
669
666
|
);
|
|
670
667
|
}
|
|
671
668
|
|
|
@@ -681,11 +678,11 @@ export class RedisImpl implements Redis {
|
|
|
681
678
|
resourceGroupName: string,
|
|
682
679
|
name: string,
|
|
683
680
|
parameters: RedisRebootParameters,
|
|
684
|
-
options?: RedisForceRebootOptionalParams
|
|
681
|
+
options?: RedisForceRebootOptionalParams,
|
|
685
682
|
): Promise<RedisForceRebootOperationResponse> {
|
|
686
683
|
return this.client.sendOperationRequest(
|
|
687
684
|
{ resourceGroupName, name, parameters, options },
|
|
688
|
-
forceRebootOperationSpec
|
|
685
|
+
forceRebootOperationSpec,
|
|
689
686
|
);
|
|
690
687
|
}
|
|
691
688
|
|
|
@@ -700,25 +697,24 @@ export class RedisImpl implements Redis {
|
|
|
700
697
|
resourceGroupName: string,
|
|
701
698
|
name: string,
|
|
702
699
|
parameters: ImportRDBParameters,
|
|
703
|
-
options?: RedisImportDataOptionalParams
|
|
700
|
+
options?: RedisImportDataOptionalParams,
|
|
704
701
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
705
702
|
const directSendOperation = async (
|
|
706
703
|
args: coreClient.OperationArguments,
|
|
707
|
-
spec: coreClient.OperationSpec
|
|
704
|
+
spec: coreClient.OperationSpec,
|
|
708
705
|
): Promise<void> => {
|
|
709
706
|
return this.client.sendOperationRequest(args, spec);
|
|
710
707
|
};
|
|
711
708
|
const sendOperationFn = async (
|
|
712
709
|
args: coreClient.OperationArguments,
|
|
713
|
-
spec: coreClient.OperationSpec
|
|
710
|
+
spec: coreClient.OperationSpec,
|
|
714
711
|
) => {
|
|
715
|
-
let currentRawResponse:
|
|
716
|
-
|
|
717
|
-
| undefined = undefined;
|
|
712
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
713
|
+
undefined;
|
|
718
714
|
const providedCallback = args.options?.onResponse;
|
|
719
715
|
const callback: coreClient.RawResponseCallback = (
|
|
720
716
|
rawResponse: coreClient.FullOperationResponse,
|
|
721
|
-
flatResponse: unknown
|
|
717
|
+
flatResponse: unknown,
|
|
722
718
|
) => {
|
|
723
719
|
currentRawResponse = rawResponse;
|
|
724
720
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -727,8 +723,8 @@ export class RedisImpl implements Redis {
|
|
|
727
723
|
...args,
|
|
728
724
|
options: {
|
|
729
725
|
...args.options,
|
|
730
|
-
onResponse: callback
|
|
731
|
-
}
|
|
726
|
+
onResponse: callback,
|
|
727
|
+
},
|
|
732
728
|
};
|
|
733
729
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
734
730
|
return {
|
|
@@ -736,19 +732,19 @@ export class RedisImpl implements Redis {
|
|
|
736
732
|
rawResponse: {
|
|
737
733
|
statusCode: currentRawResponse!.status,
|
|
738
734
|
body: currentRawResponse!.parsedBody,
|
|
739
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
740
|
-
}
|
|
735
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
736
|
+
},
|
|
741
737
|
};
|
|
742
738
|
};
|
|
743
739
|
|
|
744
740
|
const lro = createLroSpec({
|
|
745
741
|
sendOperationFn,
|
|
746
742
|
args: { resourceGroupName, name, parameters, options },
|
|
747
|
-
spec: importDataOperationSpec
|
|
743
|
+
spec: importDataOperationSpec,
|
|
748
744
|
});
|
|
749
745
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
750
746
|
restoreFrom: options?.resumeFrom,
|
|
751
|
-
intervalInMs: options?.updateIntervalInMs
|
|
747
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
752
748
|
});
|
|
753
749
|
await poller.poll();
|
|
754
750
|
return poller;
|
|
@@ -765,13 +761,13 @@ export class RedisImpl implements Redis {
|
|
|
765
761
|
resourceGroupName: string,
|
|
766
762
|
name: string,
|
|
767
763
|
parameters: ImportRDBParameters,
|
|
768
|
-
options?: RedisImportDataOptionalParams
|
|
764
|
+
options?: RedisImportDataOptionalParams,
|
|
769
765
|
): Promise<void> {
|
|
770
766
|
const poller = await this.beginImportData(
|
|
771
767
|
resourceGroupName,
|
|
772
768
|
name,
|
|
773
769
|
parameters,
|
|
774
|
-
options
|
|
770
|
+
options,
|
|
775
771
|
);
|
|
776
772
|
return poller.pollUntilDone();
|
|
777
773
|
}
|
|
@@ -787,25 +783,24 @@ export class RedisImpl implements Redis {
|
|
|
787
783
|
resourceGroupName: string,
|
|
788
784
|
name: string,
|
|
789
785
|
parameters: ExportRDBParameters,
|
|
790
|
-
options?: RedisExportDataOptionalParams
|
|
786
|
+
options?: RedisExportDataOptionalParams,
|
|
791
787
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
792
788
|
const directSendOperation = async (
|
|
793
789
|
args: coreClient.OperationArguments,
|
|
794
|
-
spec: coreClient.OperationSpec
|
|
790
|
+
spec: coreClient.OperationSpec,
|
|
795
791
|
): Promise<void> => {
|
|
796
792
|
return this.client.sendOperationRequest(args, spec);
|
|
797
793
|
};
|
|
798
794
|
const sendOperationFn = async (
|
|
799
795
|
args: coreClient.OperationArguments,
|
|
800
|
-
spec: coreClient.OperationSpec
|
|
796
|
+
spec: coreClient.OperationSpec,
|
|
801
797
|
) => {
|
|
802
|
-
let currentRawResponse:
|
|
803
|
-
|
|
804
|
-
| undefined = undefined;
|
|
798
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
799
|
+
undefined;
|
|
805
800
|
const providedCallback = args.options?.onResponse;
|
|
806
801
|
const callback: coreClient.RawResponseCallback = (
|
|
807
802
|
rawResponse: coreClient.FullOperationResponse,
|
|
808
|
-
flatResponse: unknown
|
|
803
|
+
flatResponse: unknown,
|
|
809
804
|
) => {
|
|
810
805
|
currentRawResponse = rawResponse;
|
|
811
806
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -814,8 +809,8 @@ export class RedisImpl implements Redis {
|
|
|
814
809
|
...args,
|
|
815
810
|
options: {
|
|
816
811
|
...args.options,
|
|
817
|
-
onResponse: callback
|
|
818
|
-
}
|
|
812
|
+
onResponse: callback,
|
|
813
|
+
},
|
|
819
814
|
};
|
|
820
815
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
821
816
|
return {
|
|
@@ -823,19 +818,19 @@ export class RedisImpl implements Redis {
|
|
|
823
818
|
rawResponse: {
|
|
824
819
|
statusCode: currentRawResponse!.status,
|
|
825
820
|
body: currentRawResponse!.parsedBody,
|
|
826
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
827
|
-
}
|
|
821
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
822
|
+
},
|
|
828
823
|
};
|
|
829
824
|
};
|
|
830
825
|
|
|
831
826
|
const lro = createLroSpec({
|
|
832
827
|
sendOperationFn,
|
|
833
828
|
args: { resourceGroupName, name, parameters, options },
|
|
834
|
-
spec: exportDataOperationSpec
|
|
829
|
+
spec: exportDataOperationSpec,
|
|
835
830
|
});
|
|
836
831
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
837
832
|
restoreFrom: options?.resumeFrom,
|
|
838
|
-
intervalInMs: options?.updateIntervalInMs
|
|
833
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
839
834
|
});
|
|
840
835
|
await poller.poll();
|
|
841
836
|
return poller;
|
|
@@ -852,13 +847,13 @@ export class RedisImpl implements Redis {
|
|
|
852
847
|
resourceGroupName: string,
|
|
853
848
|
name: string,
|
|
854
849
|
parameters: ExportRDBParameters,
|
|
855
|
-
options?: RedisExportDataOptionalParams
|
|
850
|
+
options?: RedisExportDataOptionalParams,
|
|
856
851
|
): Promise<void> {
|
|
857
852
|
const poller = await this.beginExportData(
|
|
858
853
|
resourceGroupName,
|
|
859
854
|
name,
|
|
860
855
|
parameters,
|
|
861
|
-
options
|
|
856
|
+
options,
|
|
862
857
|
);
|
|
863
858
|
return poller.pollUntilDone();
|
|
864
859
|
}
|
|
@@ -872,7 +867,7 @@ export class RedisImpl implements Redis {
|
|
|
872
867
|
async beginFlushCache(
|
|
873
868
|
resourceGroupName: string,
|
|
874
869
|
cacheName: string,
|
|
875
|
-
options?: RedisFlushCacheOptionalParams
|
|
870
|
+
options?: RedisFlushCacheOptionalParams,
|
|
876
871
|
): Promise<
|
|
877
872
|
SimplePollerLike<
|
|
878
873
|
OperationState<RedisFlushCacheResponse>,
|
|
@@ -881,21 +876,20 @@ export class RedisImpl implements Redis {
|
|
|
881
876
|
> {
|
|
882
877
|
const directSendOperation = async (
|
|
883
878
|
args: coreClient.OperationArguments,
|
|
884
|
-
spec: coreClient.OperationSpec
|
|
879
|
+
spec: coreClient.OperationSpec,
|
|
885
880
|
): Promise<RedisFlushCacheResponse> => {
|
|
886
881
|
return this.client.sendOperationRequest(args, spec);
|
|
887
882
|
};
|
|
888
883
|
const sendOperationFn = async (
|
|
889
884
|
args: coreClient.OperationArguments,
|
|
890
|
-
spec: coreClient.OperationSpec
|
|
885
|
+
spec: coreClient.OperationSpec,
|
|
891
886
|
) => {
|
|
892
|
-
let currentRawResponse:
|
|
893
|
-
|
|
894
|
-
| undefined = undefined;
|
|
887
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
888
|
+
undefined;
|
|
895
889
|
const providedCallback = args.options?.onResponse;
|
|
896
890
|
const callback: coreClient.RawResponseCallback = (
|
|
897
891
|
rawResponse: coreClient.FullOperationResponse,
|
|
898
|
-
flatResponse: unknown
|
|
892
|
+
flatResponse: unknown,
|
|
899
893
|
) => {
|
|
900
894
|
currentRawResponse = rawResponse;
|
|
901
895
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -904,8 +898,8 @@ export class RedisImpl implements Redis {
|
|
|
904
898
|
...args,
|
|
905
899
|
options: {
|
|
906
900
|
...args.options,
|
|
907
|
-
onResponse: callback
|
|
908
|
-
}
|
|
901
|
+
onResponse: callback,
|
|
902
|
+
},
|
|
909
903
|
};
|
|
910
904
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
911
905
|
return {
|
|
@@ -913,15 +907,15 @@ export class RedisImpl implements Redis {
|
|
|
913
907
|
rawResponse: {
|
|
914
908
|
statusCode: currentRawResponse!.status,
|
|
915
909
|
body: currentRawResponse!.parsedBody,
|
|
916
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
917
|
-
}
|
|
910
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
911
|
+
},
|
|
918
912
|
};
|
|
919
913
|
};
|
|
920
914
|
|
|
921
915
|
const lro = createLroSpec({
|
|
922
916
|
sendOperationFn,
|
|
923
917
|
args: { resourceGroupName, cacheName, options },
|
|
924
|
-
spec: flushCacheOperationSpec
|
|
918
|
+
spec: flushCacheOperationSpec,
|
|
925
919
|
});
|
|
926
920
|
const poller = await createHttpPoller<
|
|
927
921
|
RedisFlushCacheResponse,
|
|
@@ -929,7 +923,7 @@ export class RedisImpl implements Redis {
|
|
|
929
923
|
>(lro, {
|
|
930
924
|
restoreFrom: options?.resumeFrom,
|
|
931
925
|
intervalInMs: options?.updateIntervalInMs,
|
|
932
|
-
resourceLocationConfig: "location"
|
|
926
|
+
resourceLocationConfig: "location",
|
|
933
927
|
});
|
|
934
928
|
await poller.poll();
|
|
935
929
|
return poller;
|
|
@@ -944,12 +938,12 @@ export class RedisImpl implements Redis {
|
|
|
944
938
|
async beginFlushCacheAndWait(
|
|
945
939
|
resourceGroupName: string,
|
|
946
940
|
cacheName: string,
|
|
947
|
-
options?: RedisFlushCacheOptionalParams
|
|
941
|
+
options?: RedisFlushCacheOptionalParams,
|
|
948
942
|
): Promise<RedisFlushCacheResponse> {
|
|
949
943
|
const poller = await this.beginFlushCache(
|
|
950
944
|
resourceGroupName,
|
|
951
945
|
cacheName,
|
|
952
|
-
options
|
|
946
|
+
options,
|
|
953
947
|
);
|
|
954
948
|
return poller.pollUntilDone();
|
|
955
949
|
}
|
|
@@ -966,11 +960,11 @@ export class RedisImpl implements Redis {
|
|
|
966
960
|
resourceGroupName: string,
|
|
967
961
|
name: string,
|
|
968
962
|
nextLink: string,
|
|
969
|
-
options?: RedisListUpgradeNotificationsNextOptionalParams
|
|
963
|
+
options?: RedisListUpgradeNotificationsNextOptionalParams,
|
|
970
964
|
): Promise<RedisListUpgradeNotificationsNextResponse> {
|
|
971
965
|
return this.client.sendOperationRequest(
|
|
972
966
|
{ resourceGroupName, name, nextLink, options },
|
|
973
|
-
listUpgradeNotificationsNextOperationSpec
|
|
967
|
+
listUpgradeNotificationsNextOperationSpec,
|
|
974
968
|
);
|
|
975
969
|
}
|
|
976
970
|
|
|
@@ -983,11 +977,11 @@ export class RedisImpl implements Redis {
|
|
|
983
977
|
private _listByResourceGroupNext(
|
|
984
978
|
resourceGroupName: string,
|
|
985
979
|
nextLink: string,
|
|
986
|
-
options?: RedisListByResourceGroupNextOptionalParams
|
|
980
|
+
options?: RedisListByResourceGroupNextOptionalParams,
|
|
987
981
|
): Promise<RedisListByResourceGroupNextResponse> {
|
|
988
982
|
return this.client.sendOperationRequest(
|
|
989
983
|
{ resourceGroupName, nextLink, options },
|
|
990
|
-
listByResourceGroupNextOperationSpec
|
|
984
|
+
listByResourceGroupNextOperationSpec,
|
|
991
985
|
);
|
|
992
986
|
}
|
|
993
987
|
|
|
@@ -998,11 +992,11 @@ export class RedisImpl implements Redis {
|
|
|
998
992
|
*/
|
|
999
993
|
private _listBySubscriptionNext(
|
|
1000
994
|
nextLink: string,
|
|
1001
|
-
options?: RedisListBySubscriptionNextOptionalParams
|
|
995
|
+
options?: RedisListBySubscriptionNextOptionalParams,
|
|
1002
996
|
): Promise<RedisListBySubscriptionNextResponse> {
|
|
1003
997
|
return this.client.sendOperationRequest(
|
|
1004
998
|
{ nextLink, options },
|
|
1005
|
-
listBySubscriptionNextOperationSpec
|
|
999
|
+
listBySubscriptionNextOperationSpec,
|
|
1006
1000
|
);
|
|
1007
1001
|
}
|
|
1008
1002
|
}
|
|
@@ -1010,64 +1004,61 @@ export class RedisImpl implements Redis {
|
|
|
1010
1004
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1011
1005
|
|
|
1012
1006
|
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
1013
|
-
path:
|
|
1014
|
-
"/subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability",
|
|
1007
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability",
|
|
1015
1008
|
httpMethod: "POST",
|
|
1016
1009
|
responses: {
|
|
1017
1010
|
200: {},
|
|
1018
1011
|
default: {
|
|
1019
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1020
|
-
}
|
|
1012
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1013
|
+
},
|
|
1021
1014
|
},
|
|
1022
1015
|
requestBody: Parameters.parameters,
|
|
1023
1016
|
queryParameters: [Parameters.apiVersion],
|
|
1024
1017
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1025
1018
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1026
1019
|
mediaType: "json",
|
|
1027
|
-
serializer
|
|
1020
|
+
serializer,
|
|
1028
1021
|
};
|
|
1029
1022
|
const listUpgradeNotificationsOperationSpec: coreClient.OperationSpec = {
|
|
1030
|
-
path:
|
|
1031
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listUpgradeNotifications",
|
|
1023
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listUpgradeNotifications",
|
|
1032
1024
|
httpMethod: "GET",
|
|
1033
1025
|
responses: {
|
|
1034
1026
|
200: {
|
|
1035
|
-
bodyMapper: Mappers.NotificationListResponse
|
|
1027
|
+
bodyMapper: Mappers.NotificationListResponse,
|
|
1036
1028
|
},
|
|
1037
1029
|
default: {
|
|
1038
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1039
|
-
}
|
|
1030
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1031
|
+
},
|
|
1040
1032
|
},
|
|
1041
1033
|
queryParameters: [Parameters.apiVersion, Parameters.history],
|
|
1042
1034
|
urlParameters: [
|
|
1043
1035
|
Parameters.$host,
|
|
1044
1036
|
Parameters.subscriptionId,
|
|
1045
1037
|
Parameters.resourceGroupName,
|
|
1046
|
-
Parameters.name
|
|
1038
|
+
Parameters.name,
|
|
1047
1039
|
],
|
|
1048
1040
|
headerParameters: [Parameters.accept],
|
|
1049
|
-
serializer
|
|
1041
|
+
serializer,
|
|
1050
1042
|
};
|
|
1051
1043
|
const createOperationSpec: coreClient.OperationSpec = {
|
|
1052
|
-
path:
|
|
1053
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1044
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1054
1045
|
httpMethod: "PUT",
|
|
1055
1046
|
responses: {
|
|
1056
1047
|
200: {
|
|
1057
|
-
bodyMapper: Mappers.RedisResource
|
|
1048
|
+
bodyMapper: Mappers.RedisResource,
|
|
1058
1049
|
},
|
|
1059
1050
|
201: {
|
|
1060
|
-
bodyMapper: Mappers.RedisResource
|
|
1051
|
+
bodyMapper: Mappers.RedisResource,
|
|
1061
1052
|
},
|
|
1062
1053
|
202: {
|
|
1063
|
-
bodyMapper: Mappers.RedisResource
|
|
1054
|
+
bodyMapper: Mappers.RedisResource,
|
|
1064
1055
|
},
|
|
1065
1056
|
204: {
|
|
1066
|
-
bodyMapper: Mappers.RedisResource
|
|
1057
|
+
bodyMapper: Mappers.RedisResource,
|
|
1067
1058
|
},
|
|
1068
1059
|
default: {
|
|
1069
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1070
|
-
}
|
|
1060
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1061
|
+
},
|
|
1071
1062
|
},
|
|
1072
1063
|
requestBody: Parameters.parameters1,
|
|
1073
1064
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1075,32 +1066,31 @@ const createOperationSpec: coreClient.OperationSpec = {
|
|
|
1075
1066
|
Parameters.$host,
|
|
1076
1067
|
Parameters.subscriptionId,
|
|
1077
1068
|
Parameters.resourceGroupName,
|
|
1078
|
-
Parameters.name
|
|
1069
|
+
Parameters.name,
|
|
1079
1070
|
],
|
|
1080
1071
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1081
1072
|
mediaType: "json",
|
|
1082
|
-
serializer
|
|
1073
|
+
serializer,
|
|
1083
1074
|
};
|
|
1084
1075
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
1085
|
-
path:
|
|
1086
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1076
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1087
1077
|
httpMethod: "PATCH",
|
|
1088
1078
|
responses: {
|
|
1089
1079
|
200: {
|
|
1090
|
-
bodyMapper: Mappers.RedisResource
|
|
1080
|
+
bodyMapper: Mappers.RedisResource,
|
|
1091
1081
|
},
|
|
1092
1082
|
201: {
|
|
1093
|
-
bodyMapper: Mappers.RedisResource
|
|
1083
|
+
bodyMapper: Mappers.RedisResource,
|
|
1094
1084
|
},
|
|
1095
1085
|
202: {
|
|
1096
|
-
bodyMapper: Mappers.RedisResource
|
|
1086
|
+
bodyMapper: Mappers.RedisResource,
|
|
1097
1087
|
},
|
|
1098
1088
|
204: {
|
|
1099
|
-
bodyMapper: Mappers.RedisResource
|
|
1089
|
+
bodyMapper: Mappers.RedisResource,
|
|
1100
1090
|
},
|
|
1101
1091
|
default: {
|
|
1102
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1103
|
-
}
|
|
1092
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1093
|
+
},
|
|
1104
1094
|
},
|
|
1105
1095
|
requestBody: Parameters.parameters2,
|
|
1106
1096
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1108,15 +1098,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
1108
1098
|
Parameters.$host,
|
|
1109
1099
|
Parameters.subscriptionId,
|
|
1110
1100
|
Parameters.resourceGroupName,
|
|
1111
|
-
Parameters.name
|
|
1101
|
+
Parameters.name,
|
|
1112
1102
|
],
|
|
1113
1103
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1114
1104
|
mediaType: "json",
|
|
1115
|
-
serializer
|
|
1105
|
+
serializer,
|
|
1116
1106
|
};
|
|
1117
1107
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
1118
|
-
path:
|
|
1119
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1108
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1120
1109
|
httpMethod: "DELETE",
|
|
1121
1110
|
responses: {
|
|
1122
1111
|
200: {},
|
|
@@ -1124,111 +1113,107 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
1124
1113
|
202: {},
|
|
1125
1114
|
204: {},
|
|
1126
1115
|
default: {
|
|
1127
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1128
|
-
}
|
|
1116
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1117
|
+
},
|
|
1129
1118
|
},
|
|
1130
1119
|
queryParameters: [Parameters.apiVersion],
|
|
1131
1120
|
urlParameters: [
|
|
1132
1121
|
Parameters.$host,
|
|
1133
1122
|
Parameters.subscriptionId,
|
|
1134
1123
|
Parameters.resourceGroupName,
|
|
1135
|
-
Parameters.name
|
|
1124
|
+
Parameters.name,
|
|
1136
1125
|
],
|
|
1137
1126
|
headerParameters: [Parameters.accept],
|
|
1138
|
-
serializer
|
|
1127
|
+
serializer,
|
|
1139
1128
|
};
|
|
1140
1129
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
1141
|
-
path:
|
|
1142
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1130
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
|
|
1143
1131
|
httpMethod: "GET",
|
|
1144
1132
|
responses: {
|
|
1145
1133
|
200: {
|
|
1146
|
-
bodyMapper: Mappers.RedisResource
|
|
1134
|
+
bodyMapper: Mappers.RedisResource,
|
|
1147
1135
|
},
|
|
1148
1136
|
default: {
|
|
1149
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1150
|
-
}
|
|
1137
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1138
|
+
},
|
|
1151
1139
|
},
|
|
1152
1140
|
queryParameters: [Parameters.apiVersion],
|
|
1153
1141
|
urlParameters: [
|
|
1154
1142
|
Parameters.$host,
|
|
1155
1143
|
Parameters.subscriptionId,
|
|
1156
1144
|
Parameters.resourceGroupName,
|
|
1157
|
-
Parameters.name
|
|
1145
|
+
Parameters.name,
|
|
1158
1146
|
],
|
|
1159
1147
|
headerParameters: [Parameters.accept],
|
|
1160
|
-
serializer
|
|
1148
|
+
serializer,
|
|
1161
1149
|
};
|
|
1162
1150
|
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
1163
|
-
path:
|
|
1164
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis",
|
|
1151
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis",
|
|
1165
1152
|
httpMethod: "GET",
|
|
1166
1153
|
responses: {
|
|
1167
1154
|
200: {
|
|
1168
|
-
bodyMapper: Mappers.RedisListResult
|
|
1155
|
+
bodyMapper: Mappers.RedisListResult,
|
|
1169
1156
|
},
|
|
1170
1157
|
default: {
|
|
1171
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1172
|
-
}
|
|
1158
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1159
|
+
},
|
|
1173
1160
|
},
|
|
1174
1161
|
queryParameters: [Parameters.apiVersion],
|
|
1175
1162
|
urlParameters: [
|
|
1176
1163
|
Parameters.$host,
|
|
1177
1164
|
Parameters.subscriptionId,
|
|
1178
|
-
Parameters.resourceGroupName
|
|
1165
|
+
Parameters.resourceGroupName,
|
|
1179
1166
|
],
|
|
1180
1167
|
headerParameters: [Parameters.accept],
|
|
1181
|
-
serializer
|
|
1168
|
+
serializer,
|
|
1182
1169
|
};
|
|
1183
1170
|
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
1184
1171
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis",
|
|
1185
1172
|
httpMethod: "GET",
|
|
1186
1173
|
responses: {
|
|
1187
1174
|
200: {
|
|
1188
|
-
bodyMapper: Mappers.RedisListResult
|
|
1175
|
+
bodyMapper: Mappers.RedisListResult,
|
|
1189
1176
|
},
|
|
1190
1177
|
default: {
|
|
1191
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1192
|
-
}
|
|
1178
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1179
|
+
},
|
|
1193
1180
|
},
|
|
1194
1181
|
queryParameters: [Parameters.apiVersion],
|
|
1195
1182
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
1196
1183
|
headerParameters: [Parameters.accept],
|
|
1197
|
-
serializer
|
|
1184
|
+
serializer,
|
|
1198
1185
|
};
|
|
1199
1186
|
const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
1200
|
-
path:
|
|
1201
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listKeys",
|
|
1187
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listKeys",
|
|
1202
1188
|
httpMethod: "POST",
|
|
1203
1189
|
responses: {
|
|
1204
1190
|
200: {
|
|
1205
|
-
bodyMapper: Mappers.RedisAccessKeys
|
|
1191
|
+
bodyMapper: Mappers.RedisAccessKeys,
|
|
1206
1192
|
},
|
|
1207
1193
|
default: {
|
|
1208
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1209
|
-
}
|
|
1194
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1195
|
+
},
|
|
1210
1196
|
},
|
|
1211
1197
|
queryParameters: [Parameters.apiVersion],
|
|
1212
1198
|
urlParameters: [
|
|
1213
1199
|
Parameters.$host,
|
|
1214
1200
|
Parameters.subscriptionId,
|
|
1215
1201
|
Parameters.resourceGroupName,
|
|
1216
|
-
Parameters.name
|
|
1202
|
+
Parameters.name,
|
|
1217
1203
|
],
|
|
1218
1204
|
headerParameters: [Parameters.accept],
|
|
1219
|
-
serializer
|
|
1205
|
+
serializer,
|
|
1220
1206
|
};
|
|
1221
1207
|
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
1222
|
-
path:
|
|
1223
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/regenerateKey",
|
|
1208
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/regenerateKey",
|
|
1224
1209
|
httpMethod: "POST",
|
|
1225
1210
|
responses: {
|
|
1226
1211
|
200: {
|
|
1227
|
-
bodyMapper: Mappers.RedisAccessKeys
|
|
1212
|
+
bodyMapper: Mappers.RedisAccessKeys,
|
|
1228
1213
|
},
|
|
1229
1214
|
default: {
|
|
1230
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1231
|
-
}
|
|
1215
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1216
|
+
},
|
|
1232
1217
|
},
|
|
1233
1218
|
requestBody: Parameters.parameters3,
|
|
1234
1219
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1236,23 +1221,22 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
|
1236
1221
|
Parameters.$host,
|
|
1237
1222
|
Parameters.subscriptionId,
|
|
1238
1223
|
Parameters.resourceGroupName,
|
|
1239
|
-
Parameters.name
|
|
1224
|
+
Parameters.name,
|
|
1240
1225
|
],
|
|
1241
1226
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1242
1227
|
mediaType: "json",
|
|
1243
|
-
serializer
|
|
1228
|
+
serializer,
|
|
1244
1229
|
};
|
|
1245
1230
|
const forceRebootOperationSpec: coreClient.OperationSpec = {
|
|
1246
|
-
path:
|
|
1247
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/forceReboot",
|
|
1231
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/forceReboot",
|
|
1248
1232
|
httpMethod: "POST",
|
|
1249
1233
|
responses: {
|
|
1250
1234
|
200: {
|
|
1251
|
-
bodyMapper: Mappers.RedisForceRebootResponse
|
|
1235
|
+
bodyMapper: Mappers.RedisForceRebootResponse,
|
|
1252
1236
|
},
|
|
1253
1237
|
default: {
|
|
1254
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1255
|
-
}
|
|
1238
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1239
|
+
},
|
|
1256
1240
|
},
|
|
1257
1241
|
requestBody: Parameters.parameters4,
|
|
1258
1242
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1260,15 +1244,14 @@ const forceRebootOperationSpec: coreClient.OperationSpec = {
|
|
|
1260
1244
|
Parameters.$host,
|
|
1261
1245
|
Parameters.subscriptionId,
|
|
1262
1246
|
Parameters.resourceGroupName,
|
|
1263
|
-
Parameters.name
|
|
1247
|
+
Parameters.name,
|
|
1264
1248
|
],
|
|
1265
1249
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1266
1250
|
mediaType: "json",
|
|
1267
|
-
serializer
|
|
1251
|
+
serializer,
|
|
1268
1252
|
};
|
|
1269
1253
|
const importDataOperationSpec: coreClient.OperationSpec = {
|
|
1270
|
-
path:
|
|
1271
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/import",
|
|
1254
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/import",
|
|
1272
1255
|
httpMethod: "POST",
|
|
1273
1256
|
responses: {
|
|
1274
1257
|
200: {},
|
|
@@ -1276,8 +1259,8 @@ const importDataOperationSpec: coreClient.OperationSpec = {
|
|
|
1276
1259
|
202: {},
|
|
1277
1260
|
204: {},
|
|
1278
1261
|
default: {
|
|
1279
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1280
|
-
}
|
|
1262
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1263
|
+
},
|
|
1281
1264
|
},
|
|
1282
1265
|
requestBody: Parameters.parameters5,
|
|
1283
1266
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1285,15 +1268,14 @@ const importDataOperationSpec: coreClient.OperationSpec = {
|
|
|
1285
1268
|
Parameters.$host,
|
|
1286
1269
|
Parameters.subscriptionId,
|
|
1287
1270
|
Parameters.resourceGroupName,
|
|
1288
|
-
Parameters.name
|
|
1271
|
+
Parameters.name,
|
|
1289
1272
|
],
|
|
1290
1273
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1291
1274
|
mediaType: "json",
|
|
1292
|
-
serializer
|
|
1275
|
+
serializer,
|
|
1293
1276
|
};
|
|
1294
1277
|
const exportDataOperationSpec: coreClient.OperationSpec = {
|
|
1295
|
-
path:
|
|
1296
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/export",
|
|
1278
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/export",
|
|
1297
1279
|
httpMethod: "POST",
|
|
1298
1280
|
responses: {
|
|
1299
1281
|
200: {},
|
|
@@ -1301,8 +1283,8 @@ const exportDataOperationSpec: coreClient.OperationSpec = {
|
|
|
1301
1283
|
202: {},
|
|
1302
1284
|
204: {},
|
|
1303
1285
|
default: {
|
|
1304
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1305
|
-
}
|
|
1286
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1287
|
+
},
|
|
1306
1288
|
},
|
|
1307
1289
|
requestBody: Parameters.parameters6,
|
|
1308
1290
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -1310,104 +1292,103 @@ const exportDataOperationSpec: coreClient.OperationSpec = {
|
|
|
1310
1292
|
Parameters.$host,
|
|
1311
1293
|
Parameters.subscriptionId,
|
|
1312
1294
|
Parameters.resourceGroupName,
|
|
1313
|
-
Parameters.name
|
|
1295
|
+
Parameters.name,
|
|
1314
1296
|
],
|
|
1315
1297
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1316
1298
|
mediaType: "json",
|
|
1317
|
-
serializer
|
|
1299
|
+
serializer,
|
|
1318
1300
|
};
|
|
1319
1301
|
const flushCacheOperationSpec: coreClient.OperationSpec = {
|
|
1320
|
-
path:
|
|
1321
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/flush",
|
|
1302
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/flush",
|
|
1322
1303
|
httpMethod: "POST",
|
|
1323
1304
|
responses: {
|
|
1324
1305
|
200: {
|
|
1325
1306
|
bodyMapper: Mappers.OperationStatusResult,
|
|
1326
|
-
headersMapper: Mappers.RedisFlushCacheHeaders
|
|
1307
|
+
headersMapper: Mappers.RedisFlushCacheHeaders,
|
|
1327
1308
|
},
|
|
1328
1309
|
201: {
|
|
1329
1310
|
bodyMapper: Mappers.OperationStatusResult,
|
|
1330
|
-
headersMapper: Mappers.RedisFlushCacheHeaders
|
|
1311
|
+
headersMapper: Mappers.RedisFlushCacheHeaders,
|
|
1331
1312
|
},
|
|
1332
1313
|
202: {
|
|
1333
1314
|
bodyMapper: Mappers.OperationStatusResult,
|
|
1334
|
-
headersMapper: Mappers.RedisFlushCacheHeaders
|
|
1315
|
+
headersMapper: Mappers.RedisFlushCacheHeaders,
|
|
1335
1316
|
},
|
|
1336
1317
|
204: {
|
|
1337
1318
|
bodyMapper: Mappers.OperationStatusResult,
|
|
1338
|
-
headersMapper: Mappers.RedisFlushCacheHeaders
|
|
1319
|
+
headersMapper: Mappers.RedisFlushCacheHeaders,
|
|
1339
1320
|
},
|
|
1340
1321
|
default: {
|
|
1341
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1342
|
-
}
|
|
1322
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1323
|
+
},
|
|
1343
1324
|
},
|
|
1344
1325
|
queryParameters: [Parameters.apiVersion],
|
|
1345
1326
|
urlParameters: [
|
|
1346
1327
|
Parameters.$host,
|
|
1347
1328
|
Parameters.subscriptionId,
|
|
1348
1329
|
Parameters.resourceGroupName,
|
|
1349
|
-
Parameters.cacheName
|
|
1330
|
+
Parameters.cacheName,
|
|
1350
1331
|
],
|
|
1351
1332
|
headerParameters: [Parameters.accept],
|
|
1352
|
-
serializer
|
|
1333
|
+
serializer,
|
|
1353
1334
|
};
|
|
1354
1335
|
const listUpgradeNotificationsNextOperationSpec: coreClient.OperationSpec = {
|
|
1355
1336
|
path: "{nextLink}",
|
|
1356
1337
|
httpMethod: "GET",
|
|
1357
1338
|
responses: {
|
|
1358
1339
|
200: {
|
|
1359
|
-
bodyMapper: Mappers.NotificationListResponse
|
|
1340
|
+
bodyMapper: Mappers.NotificationListResponse,
|
|
1360
1341
|
},
|
|
1361
1342
|
default: {
|
|
1362
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1363
|
-
}
|
|
1343
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1344
|
+
},
|
|
1364
1345
|
},
|
|
1365
1346
|
urlParameters: [
|
|
1366
1347
|
Parameters.$host,
|
|
1367
1348
|
Parameters.nextLink,
|
|
1368
1349
|
Parameters.subscriptionId,
|
|
1369
1350
|
Parameters.resourceGroupName,
|
|
1370
|
-
Parameters.name
|
|
1351
|
+
Parameters.name,
|
|
1371
1352
|
],
|
|
1372
1353
|
headerParameters: [Parameters.accept],
|
|
1373
|
-
serializer
|
|
1354
|
+
serializer,
|
|
1374
1355
|
};
|
|
1375
1356
|
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
1376
1357
|
path: "{nextLink}",
|
|
1377
1358
|
httpMethod: "GET",
|
|
1378
1359
|
responses: {
|
|
1379
1360
|
200: {
|
|
1380
|
-
bodyMapper: Mappers.RedisListResult
|
|
1361
|
+
bodyMapper: Mappers.RedisListResult,
|
|
1381
1362
|
},
|
|
1382
1363
|
default: {
|
|
1383
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1384
|
-
}
|
|
1364
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1365
|
+
},
|
|
1385
1366
|
},
|
|
1386
1367
|
urlParameters: [
|
|
1387
1368
|
Parameters.$host,
|
|
1388
1369
|
Parameters.nextLink,
|
|
1389
1370
|
Parameters.subscriptionId,
|
|
1390
|
-
Parameters.resourceGroupName
|
|
1371
|
+
Parameters.resourceGroupName,
|
|
1391
1372
|
],
|
|
1392
1373
|
headerParameters: [Parameters.accept],
|
|
1393
|
-
serializer
|
|
1374
|
+
serializer,
|
|
1394
1375
|
};
|
|
1395
1376
|
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1396
1377
|
path: "{nextLink}",
|
|
1397
1378
|
httpMethod: "GET",
|
|
1398
1379
|
responses: {
|
|
1399
1380
|
200: {
|
|
1400
|
-
bodyMapper: Mappers.RedisListResult
|
|
1381
|
+
bodyMapper: Mappers.RedisListResult,
|
|
1401
1382
|
},
|
|
1402
1383
|
default: {
|
|
1403
|
-
bodyMapper: Mappers.ErrorResponse
|
|
1404
|
-
}
|
|
1384
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1385
|
+
},
|
|
1405
1386
|
},
|
|
1406
1387
|
urlParameters: [
|
|
1407
1388
|
Parameters.$host,
|
|
1408
1389
|
Parameters.nextLink,
|
|
1409
|
-
Parameters.subscriptionId
|
|
1390
|
+
Parameters.subscriptionId,
|
|
1410
1391
|
],
|
|
1411
1392
|
headerParameters: [Parameters.accept],
|
|
1412
|
-
serializer
|
|
1393
|
+
serializer,
|
|
1413
1394
|
};
|