@azure/arm-rediscache 30.0.0-alpha.20210928.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +21 -0
  4. package/README.md +94 -0
  5. package/dist/index.js +4051 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/index.d.ts +6 -0
  10. package/dist-esm/src/index.d.ts.map +1 -0
  11. package/dist-esm/src/index.js +13 -0
  12. package/dist-esm/src/index.js.map +1 -0
  13. package/dist-esm/src/lroImpl.d.ts +16 -0
  14. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  15. package/dist-esm/src/lroImpl.js +29 -0
  16. package/dist-esm/src/lroImpl.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +1016 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/dist-esm/src/models/index.js +77 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +49 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/dist-esm/src/models/mappers.js +1580 -0
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +27 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/dist-esm/src/models/parameters.js +198 -0
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/dist-esm/src/operations/firewallRules.d.ts +63 -0
  30. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
  31. package/dist-esm/src/operations/firewallRules.js +238 -0
  32. package/dist-esm/src/operations/firewallRules.js.map +1 -0
  33. package/dist-esm/src/operations/index.d.ts +8 -0
  34. package/dist-esm/src/operations/index.d.ts.map +1 -0
  35. package/dist-esm/src/operations/index.js +15 -0
  36. package/dist-esm/src/operations/index.js.map +1 -0
  37. package/dist-esm/src/operations/linkedServer.d.ts +73 -0
  38. package/dist-esm/src/operations/linkedServer.d.ts.map +1 -0
  39. package/dist-esm/src/operations/linkedServer.js +288 -0
  40. package/dist-esm/src/operations/linkedServer.js.map +1 -0
  41. package/dist-esm/src/operations/operations.d.ts +32 -0
  42. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  43. package/dist-esm/src/operations/operations.js +120 -0
  44. package/dist-esm/src/operations/operations.js.map +1 -0
  45. package/dist-esm/src/operations/patchSchedules.d.ts +63 -0
  46. package/dist-esm/src/operations/patchSchedules.d.ts.map +1 -0
  47. package/dist-esm/src/operations/patchSchedules.js +238 -0
  48. package/dist-esm/src/operations/patchSchedules.js.map +1 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts +69 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js +260 -0
  52. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts +30 -0
  54. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  55. package/dist-esm/src/operations/privateLinkResources.js +99 -0
  56. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  57. package/dist-esm/src/operations/redis.d.ts +192 -0
  58. package/dist-esm/src/operations/redis.d.ts.map +1 -0
  59. package/dist-esm/src/operations/redis.js +840 -0
  60. package/dist-esm/src/operations/redis.js.map +1 -0
  61. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +38 -0
  62. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
  63. package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
  64. package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  66. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  67. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  68. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  69. package/dist-esm/src/operationsInterfaces/linkedServer.d.ts +48 -0
  70. package/dist-esm/src/operationsInterfaces/linkedServer.d.ts.map +1 -0
  71. package/dist-esm/src/operationsInterfaces/linkedServer.js +9 -0
  72. package/dist-esm/src/operationsInterfaces/linkedServer.js.map +1 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  74. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  76. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  77. package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts +38 -0
  78. package/dist-esm/src/operationsInterfaces/patchSchedules.d.ts.map +1 -0
  79. package/dist-esm/src/operationsInterfaces/patchSchedules.js +9 -0
  80. package/dist-esm/src/operationsInterfaces/patchSchedules.js.map +1 -0
  81. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +52 -0
  82. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  83. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  84. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  85. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
  86. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  87. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  88. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/redis.d.ts +136 -0
  90. package/dist-esm/src/operationsInterfaces/redis.d.ts.map +1 -0
  91. package/dist-esm/src/operationsInterfaces/redis.js +9 -0
  92. package/dist-esm/src/operationsInterfaces/redis.js.map +1 -0
  93. package/dist-esm/src/redisManagementClient.d.ts +22 -0
  94. package/dist-esm/src/redisManagementClient.d.ts.map +1 -0
  95. package/dist-esm/src/redisManagementClient.js +29 -0
  96. package/dist-esm/src/redisManagementClient.js.map +1 -0
  97. package/dist-esm/src/redisManagementClientContext.d.ts +17 -0
  98. package/dist-esm/src/redisManagementClientContext.d.ts.map +1 -0
  99. package/dist-esm/src/redisManagementClientContext.js +50 -0
  100. package/dist-esm/src/redisManagementClientContext.js.map +1 -0
  101. package/dist-esm/test/redis_examples.d.ts +2 -0
  102. package/dist-esm/test/redis_examples.d.ts.map +1 -0
  103. package/dist-esm/test/redis_examples.js +209 -0
  104. package/dist-esm/test/redis_examples.js.map +1 -0
  105. package/package.json +103 -0
  106. package/review/arm-rediscache.api.md +879 -0
  107. package/rollup.config.js +188 -0
  108. package/src/index.ts +13 -0
  109. package/src/lroImpl.ts +34 -0
  110. package/src/models/index.ts +1154 -0
  111. package/src/models/mappers.ts +1709 -0
  112. package/src/models/parameters.ts +240 -0
  113. package/src/operations/firewallRules.ts +314 -0
  114. package/src/operations/index.ts +15 -0
  115. package/src/operations/linkedServer.ts +397 -0
  116. package/src/operations/operations.ts +137 -0
  117. package/src/operations/patchSchedules.ts +327 -0
  118. package/src/operations/privateEndpointConnections.ts +353 -0
  119. package/src/operations/privateLinkResources.ts +135 -0
  120. package/src/operations/redis.ts +1152 -0
  121. package/src/operationsInterfaces/firewallRules.ts +75 -0
  122. package/src/operationsInterfaces/index.ts +15 -0
  123. package/src/operationsInterfaces/linkedServer.ts +97 -0
  124. package/src/operationsInterfaces/operations.ts +22 -0
  125. package/src/operationsInterfaces/patchSchedules.ts +76 -0
  126. package/src/operationsInterfaces/privateEndpointConnections.ts +100 -0
  127. package/src/operationsInterfaces/privateLinkResources.ts +29 -0
  128. package/src/operationsInterfaces/redis.ts +250 -0
  129. package/src/redisManagementClient.ts +61 -0
  130. package/src/redisManagementClientContext.ts +71 -0
  131. package/tsconfig.json +19 -0
  132. package/types/arm-rediscache.d.ts +1509 -0
  133. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,1152 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Redis } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { RedisManagementClientContext } from "../redisManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ UpgradeNotification,
19
+ RedisListUpgradeNotificationsNextOptionalParams,
20
+ RedisListUpgradeNotificationsOptionalParams,
21
+ RedisResource,
22
+ RedisListByResourceGroupNextOptionalParams,
23
+ RedisListByResourceGroupOptionalParams,
24
+ RedisListBySubscriptionNextOptionalParams,
25
+ RedisListBySubscriptionOptionalParams,
26
+ CheckNameAvailabilityParameters,
27
+ RedisCheckNameAvailabilityOptionalParams,
28
+ RedisListUpgradeNotificationsResponse,
29
+ RedisCreateParameters,
30
+ RedisCreateOptionalParams,
31
+ RedisCreateResponse,
32
+ RedisUpdateParameters,
33
+ RedisUpdateOptionalParams,
34
+ RedisUpdateResponse,
35
+ RedisDeleteOptionalParams,
36
+ RedisGetOptionalParams,
37
+ RedisGetResponse,
38
+ RedisListByResourceGroupResponse,
39
+ RedisListBySubscriptionResponse,
40
+ RedisListKeysOptionalParams,
41
+ RedisListKeysResponse,
42
+ RedisRegenerateKeyParameters,
43
+ RedisRegenerateKeyOptionalParams,
44
+ RedisRegenerateKeyResponse,
45
+ RedisRebootParameters,
46
+ RedisForceRebootOptionalParams,
47
+ RedisForceRebootOperationResponse,
48
+ ImportRDBParameters,
49
+ RedisImportDataOptionalParams,
50
+ ExportRDBParameters,
51
+ RedisExportDataOptionalParams,
52
+ RedisListUpgradeNotificationsNextResponse,
53
+ RedisListByResourceGroupNextResponse,
54
+ RedisListBySubscriptionNextResponse
55
+ } from "../models";
56
+
57
+ /// <reference lib="esnext.asynciterable" />
58
+ /** Class containing Redis operations. */
59
+ export class RedisImpl implements Redis {
60
+ private readonly client: RedisManagementClientContext;
61
+
62
+ /**
63
+ * Initialize a new instance of the class Redis class.
64
+ * @param client Reference to the service client
65
+ */
66
+ constructor(client: RedisManagementClientContext) {
67
+ this.client = client;
68
+ }
69
+
70
+ /**
71
+ * Gets any upgrade notifications for a Redis cache.
72
+ * @param resourceGroupName The name of the resource group.
73
+ * @param name The name of the Redis cache.
74
+ * @param history how many minutes in past to look for upgrade notifications
75
+ * @param options The options parameters.
76
+ */
77
+ public listUpgradeNotifications(
78
+ resourceGroupName: string,
79
+ name: string,
80
+ history: number,
81
+ options?: RedisListUpgradeNotificationsOptionalParams
82
+ ): PagedAsyncIterableIterator<UpgradeNotification> {
83
+ const iter = this.listUpgradeNotificationsPagingAll(
84
+ resourceGroupName,
85
+ name,
86
+ history,
87
+ options
88
+ );
89
+ return {
90
+ next() {
91
+ return iter.next();
92
+ },
93
+ [Symbol.asyncIterator]() {
94
+ return this;
95
+ },
96
+ byPage: () => {
97
+ return this.listUpgradeNotificationsPagingPage(
98
+ resourceGroupName,
99
+ name,
100
+ history,
101
+ options
102
+ );
103
+ }
104
+ };
105
+ }
106
+
107
+ private async *listUpgradeNotificationsPagingPage(
108
+ resourceGroupName: string,
109
+ name: string,
110
+ history: number,
111
+ options?: RedisListUpgradeNotificationsOptionalParams
112
+ ): AsyncIterableIterator<UpgradeNotification[]> {
113
+ let result = await this._listUpgradeNotifications(
114
+ resourceGroupName,
115
+ name,
116
+ history,
117
+ options
118
+ );
119
+ yield result.value || [];
120
+ let continuationToken = result.nextLink;
121
+ while (continuationToken) {
122
+ result = await this._listUpgradeNotificationsNext(
123
+ resourceGroupName,
124
+ name,
125
+ history,
126
+ continuationToken,
127
+ options
128
+ );
129
+ continuationToken = result.nextLink;
130
+ yield result.value || [];
131
+ }
132
+ }
133
+
134
+ private async *listUpgradeNotificationsPagingAll(
135
+ resourceGroupName: string,
136
+ name: string,
137
+ history: number,
138
+ options?: RedisListUpgradeNotificationsOptionalParams
139
+ ): AsyncIterableIterator<UpgradeNotification> {
140
+ for await (const page of this.listUpgradeNotificationsPagingPage(
141
+ resourceGroupName,
142
+ name,
143
+ history,
144
+ options
145
+ )) {
146
+ yield* page;
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Lists all Redis caches in a resource group.
152
+ * @param resourceGroupName The name of the resource group.
153
+ * @param options The options parameters.
154
+ */
155
+ public listByResourceGroup(
156
+ resourceGroupName: string,
157
+ options?: RedisListByResourceGroupOptionalParams
158
+ ): PagedAsyncIterableIterator<RedisResource> {
159
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
160
+ return {
161
+ next() {
162
+ return iter.next();
163
+ },
164
+ [Symbol.asyncIterator]() {
165
+ return this;
166
+ },
167
+ byPage: () => {
168
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
169
+ }
170
+ };
171
+ }
172
+
173
+ private async *listByResourceGroupPagingPage(
174
+ resourceGroupName: string,
175
+ options?: RedisListByResourceGroupOptionalParams
176
+ ): AsyncIterableIterator<RedisResource[]> {
177
+ let result = await this._listByResourceGroup(resourceGroupName, options);
178
+ yield result.value || [];
179
+ let continuationToken = result.nextLink;
180
+ while (continuationToken) {
181
+ result = await this._listByResourceGroupNext(
182
+ resourceGroupName,
183
+ continuationToken,
184
+ options
185
+ );
186
+ continuationToken = result.nextLink;
187
+ yield result.value || [];
188
+ }
189
+ }
190
+
191
+ private async *listByResourceGroupPagingAll(
192
+ resourceGroupName: string,
193
+ options?: RedisListByResourceGroupOptionalParams
194
+ ): AsyncIterableIterator<RedisResource> {
195
+ for await (const page of this.listByResourceGroupPagingPage(
196
+ resourceGroupName,
197
+ options
198
+ )) {
199
+ yield* page;
200
+ }
201
+ }
202
+
203
+ /**
204
+ * Gets all Redis caches in the specified subscription.
205
+ * @param options The options parameters.
206
+ */
207
+ public listBySubscription(
208
+ options?: RedisListBySubscriptionOptionalParams
209
+ ): PagedAsyncIterableIterator<RedisResource> {
210
+ const iter = this.listBySubscriptionPagingAll(options);
211
+ return {
212
+ next() {
213
+ return iter.next();
214
+ },
215
+ [Symbol.asyncIterator]() {
216
+ return this;
217
+ },
218
+ byPage: () => {
219
+ return this.listBySubscriptionPagingPage(options);
220
+ }
221
+ };
222
+ }
223
+
224
+ private async *listBySubscriptionPagingPage(
225
+ options?: RedisListBySubscriptionOptionalParams
226
+ ): AsyncIterableIterator<RedisResource[]> {
227
+ let result = await this._listBySubscription(options);
228
+ yield result.value || [];
229
+ let continuationToken = result.nextLink;
230
+ while (continuationToken) {
231
+ result = await this._listBySubscriptionNext(continuationToken, options);
232
+ continuationToken = result.nextLink;
233
+ yield result.value || [];
234
+ }
235
+ }
236
+
237
+ private async *listBySubscriptionPagingAll(
238
+ options?: RedisListBySubscriptionOptionalParams
239
+ ): AsyncIterableIterator<RedisResource> {
240
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
241
+ yield* page;
242
+ }
243
+ }
244
+
245
+ /**
246
+ * Checks that the redis cache name is valid and is not already in use.
247
+ * @param parameters Parameters supplied to the CheckNameAvailability Redis operation. The only
248
+ * supported resource type is 'Microsoft.Cache/redis'
249
+ * @param options The options parameters.
250
+ */
251
+ checkNameAvailability(
252
+ parameters: CheckNameAvailabilityParameters,
253
+ options?: RedisCheckNameAvailabilityOptionalParams
254
+ ): Promise<void> {
255
+ return this.client.sendOperationRequest(
256
+ { parameters, options },
257
+ checkNameAvailabilityOperationSpec
258
+ );
259
+ }
260
+
261
+ /**
262
+ * Gets any upgrade notifications for a Redis cache.
263
+ * @param resourceGroupName The name of the resource group.
264
+ * @param name The name of the Redis cache.
265
+ * @param history how many minutes in past to look for upgrade notifications
266
+ * @param options The options parameters.
267
+ */
268
+ private _listUpgradeNotifications(
269
+ resourceGroupName: string,
270
+ name: string,
271
+ history: number,
272
+ options?: RedisListUpgradeNotificationsOptionalParams
273
+ ): Promise<RedisListUpgradeNotificationsResponse> {
274
+ return this.client.sendOperationRequest(
275
+ { resourceGroupName, name, history, options },
276
+ listUpgradeNotificationsOperationSpec
277
+ );
278
+ }
279
+
280
+ /**
281
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
282
+ * @param resourceGroupName The name of the resource group.
283
+ * @param name The name of the Redis cache.
284
+ * @param parameters Parameters supplied to the Create Redis operation.
285
+ * @param options The options parameters.
286
+ */
287
+ async beginCreate(
288
+ resourceGroupName: string,
289
+ name: string,
290
+ parameters: RedisCreateParameters,
291
+ options?: RedisCreateOptionalParams
292
+ ): Promise<
293
+ PollerLike<PollOperationState<RedisCreateResponse>, RedisCreateResponse>
294
+ > {
295
+ const directSendOperation = async (
296
+ args: coreClient.OperationArguments,
297
+ spec: coreClient.OperationSpec
298
+ ): Promise<RedisCreateResponse> => {
299
+ return this.client.sendOperationRequest(args, spec);
300
+ };
301
+ const sendOperation = async (
302
+ args: coreClient.OperationArguments,
303
+ spec: coreClient.OperationSpec
304
+ ) => {
305
+ let currentRawResponse:
306
+ | coreClient.FullOperationResponse
307
+ | undefined = undefined;
308
+ const providedCallback = args.options?.onResponse;
309
+ const callback: coreClient.RawResponseCallback = (
310
+ rawResponse: coreClient.FullOperationResponse,
311
+ flatResponse: unknown
312
+ ) => {
313
+ currentRawResponse = rawResponse;
314
+ providedCallback?.(rawResponse, flatResponse);
315
+ };
316
+ const updatedArgs = {
317
+ ...args,
318
+ options: {
319
+ ...args.options,
320
+ onResponse: callback
321
+ }
322
+ };
323
+ const flatResponse = await directSendOperation(updatedArgs, spec);
324
+ return {
325
+ flatResponse,
326
+ rawResponse: {
327
+ statusCode: currentRawResponse!.status,
328
+ body: currentRawResponse!.parsedBody,
329
+ headers: currentRawResponse!.headers.toJSON()
330
+ }
331
+ };
332
+ };
333
+
334
+ const lro = new LroImpl(
335
+ sendOperation,
336
+ { resourceGroupName, name, parameters, options },
337
+ createOperationSpec
338
+ );
339
+ return new LroEngine(lro, {
340
+ resumeFrom: options?.resumeFrom,
341
+ intervalInMs: options?.updateIntervalInMs
342
+ });
343
+ }
344
+
345
+ /**
346
+ * Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache.
347
+ * @param resourceGroupName The name of the resource group.
348
+ * @param name The name of the Redis cache.
349
+ * @param parameters Parameters supplied to the Create Redis operation.
350
+ * @param options The options parameters.
351
+ */
352
+ async beginCreateAndWait(
353
+ resourceGroupName: string,
354
+ name: string,
355
+ parameters: RedisCreateParameters,
356
+ options?: RedisCreateOptionalParams
357
+ ): Promise<RedisCreateResponse> {
358
+ const poller = await this.beginCreate(
359
+ resourceGroupName,
360
+ name,
361
+ parameters,
362
+ options
363
+ );
364
+ return poller.pollUntilDone();
365
+ }
366
+
367
+ /**
368
+ * Update an existing Redis cache.
369
+ * @param resourceGroupName The name of the resource group.
370
+ * @param name The name of the Redis cache.
371
+ * @param parameters Parameters supplied to the Update Redis operation.
372
+ * @param options The options parameters.
373
+ */
374
+ update(
375
+ resourceGroupName: string,
376
+ name: string,
377
+ parameters: RedisUpdateParameters,
378
+ options?: RedisUpdateOptionalParams
379
+ ): Promise<RedisUpdateResponse> {
380
+ return this.client.sendOperationRequest(
381
+ { resourceGroupName, name, parameters, options },
382
+ updateOperationSpec
383
+ );
384
+ }
385
+
386
+ /**
387
+ * Deletes a Redis cache.
388
+ * @param resourceGroupName The name of the resource group.
389
+ * @param name The name of the Redis cache.
390
+ * @param options The options parameters.
391
+ */
392
+ async beginDelete(
393
+ resourceGroupName: string,
394
+ name: string,
395
+ options?: RedisDeleteOptionalParams
396
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
397
+ const directSendOperation = async (
398
+ args: coreClient.OperationArguments,
399
+ spec: coreClient.OperationSpec
400
+ ): Promise<void> => {
401
+ return this.client.sendOperationRequest(args, spec);
402
+ };
403
+ const sendOperation = async (
404
+ args: coreClient.OperationArguments,
405
+ spec: coreClient.OperationSpec
406
+ ) => {
407
+ let currentRawResponse:
408
+ | coreClient.FullOperationResponse
409
+ | undefined = undefined;
410
+ const providedCallback = args.options?.onResponse;
411
+ const callback: coreClient.RawResponseCallback = (
412
+ rawResponse: coreClient.FullOperationResponse,
413
+ flatResponse: unknown
414
+ ) => {
415
+ currentRawResponse = rawResponse;
416
+ providedCallback?.(rawResponse, flatResponse);
417
+ };
418
+ const updatedArgs = {
419
+ ...args,
420
+ options: {
421
+ ...args.options,
422
+ onResponse: callback
423
+ }
424
+ };
425
+ const flatResponse = await directSendOperation(updatedArgs, spec);
426
+ return {
427
+ flatResponse,
428
+ rawResponse: {
429
+ statusCode: currentRawResponse!.status,
430
+ body: currentRawResponse!.parsedBody,
431
+ headers: currentRawResponse!.headers.toJSON()
432
+ }
433
+ };
434
+ };
435
+
436
+ const lro = new LroImpl(
437
+ sendOperation,
438
+ { resourceGroupName, name, options },
439
+ deleteOperationSpec
440
+ );
441
+ return new LroEngine(lro, {
442
+ resumeFrom: options?.resumeFrom,
443
+ intervalInMs: options?.updateIntervalInMs
444
+ });
445
+ }
446
+
447
+ /**
448
+ * Deletes a Redis cache.
449
+ * @param resourceGroupName The name of the resource group.
450
+ * @param name The name of the Redis cache.
451
+ * @param options The options parameters.
452
+ */
453
+ async beginDeleteAndWait(
454
+ resourceGroupName: string,
455
+ name: string,
456
+ options?: RedisDeleteOptionalParams
457
+ ): Promise<void> {
458
+ const poller = await this.beginDelete(resourceGroupName, name, options);
459
+ return poller.pollUntilDone();
460
+ }
461
+
462
+ /**
463
+ * Gets a Redis cache (resource description).
464
+ * @param resourceGroupName The name of the resource group.
465
+ * @param name The name of the Redis cache.
466
+ * @param options The options parameters.
467
+ */
468
+ get(
469
+ resourceGroupName: string,
470
+ name: string,
471
+ options?: RedisGetOptionalParams
472
+ ): Promise<RedisGetResponse> {
473
+ return this.client.sendOperationRequest(
474
+ { resourceGroupName, name, options },
475
+ getOperationSpec
476
+ );
477
+ }
478
+
479
+ /**
480
+ * Lists all Redis caches in a resource group.
481
+ * @param resourceGroupName The name of the resource group.
482
+ * @param options The options parameters.
483
+ */
484
+ private _listByResourceGroup(
485
+ resourceGroupName: string,
486
+ options?: RedisListByResourceGroupOptionalParams
487
+ ): Promise<RedisListByResourceGroupResponse> {
488
+ return this.client.sendOperationRequest(
489
+ { resourceGroupName, options },
490
+ listByResourceGroupOperationSpec
491
+ );
492
+ }
493
+
494
+ /**
495
+ * Gets all Redis caches in the specified subscription.
496
+ * @param options The options parameters.
497
+ */
498
+ private _listBySubscription(
499
+ options?: RedisListBySubscriptionOptionalParams
500
+ ): Promise<RedisListBySubscriptionResponse> {
501
+ return this.client.sendOperationRequest(
502
+ { options },
503
+ listBySubscriptionOperationSpec
504
+ );
505
+ }
506
+
507
+ /**
508
+ * Retrieve a Redis cache's access keys. This operation requires write permission to the cache
509
+ * resource.
510
+ * @param resourceGroupName The name of the resource group.
511
+ * @param name The name of the Redis cache.
512
+ * @param options The options parameters.
513
+ */
514
+ listKeys(
515
+ resourceGroupName: string,
516
+ name: string,
517
+ options?: RedisListKeysOptionalParams
518
+ ): Promise<RedisListKeysResponse> {
519
+ return this.client.sendOperationRequest(
520
+ { resourceGroupName, name, options },
521
+ listKeysOperationSpec
522
+ );
523
+ }
524
+
525
+ /**
526
+ * Regenerate Redis cache's access keys. This operation requires write permission to the cache
527
+ * resource.
528
+ * @param resourceGroupName The name of the resource group.
529
+ * @param name The name of the Redis cache.
530
+ * @param parameters Specifies which key to regenerate.
531
+ * @param options The options parameters.
532
+ */
533
+ regenerateKey(
534
+ resourceGroupName: string,
535
+ name: string,
536
+ parameters: RedisRegenerateKeyParameters,
537
+ options?: RedisRegenerateKeyOptionalParams
538
+ ): Promise<RedisRegenerateKeyResponse> {
539
+ return this.client.sendOperationRequest(
540
+ { resourceGroupName, name, parameters, options },
541
+ regenerateKeyOperationSpec
542
+ );
543
+ }
544
+
545
+ /**
546
+ * Reboot specified Redis node(s). This operation requires write permission to the cache resource.
547
+ * There can be potential data loss.
548
+ * @param resourceGroupName The name of the resource group.
549
+ * @param name The name of the Redis cache.
550
+ * @param parameters Specifies which Redis node(s) to reboot.
551
+ * @param options The options parameters.
552
+ */
553
+ forceReboot(
554
+ resourceGroupName: string,
555
+ name: string,
556
+ parameters: RedisRebootParameters,
557
+ options?: RedisForceRebootOptionalParams
558
+ ): Promise<RedisForceRebootOperationResponse> {
559
+ return this.client.sendOperationRequest(
560
+ { resourceGroupName, name, parameters, options },
561
+ forceRebootOperationSpec
562
+ );
563
+ }
564
+
565
+ /**
566
+ * Import data into Redis cache.
567
+ * @param resourceGroupName The name of the resource group.
568
+ * @param name The name of the Redis cache.
569
+ * @param parameters Parameters for Redis import operation.
570
+ * @param options The options parameters.
571
+ */
572
+ async beginImportData(
573
+ resourceGroupName: string,
574
+ name: string,
575
+ parameters: ImportRDBParameters,
576
+ options?: RedisImportDataOptionalParams
577
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
578
+ const directSendOperation = async (
579
+ args: coreClient.OperationArguments,
580
+ spec: coreClient.OperationSpec
581
+ ): Promise<void> => {
582
+ return this.client.sendOperationRequest(args, spec);
583
+ };
584
+ const sendOperation = async (
585
+ args: coreClient.OperationArguments,
586
+ spec: coreClient.OperationSpec
587
+ ) => {
588
+ let currentRawResponse:
589
+ | coreClient.FullOperationResponse
590
+ | undefined = undefined;
591
+ const providedCallback = args.options?.onResponse;
592
+ const callback: coreClient.RawResponseCallback = (
593
+ rawResponse: coreClient.FullOperationResponse,
594
+ flatResponse: unknown
595
+ ) => {
596
+ currentRawResponse = rawResponse;
597
+ providedCallback?.(rawResponse, flatResponse);
598
+ };
599
+ const updatedArgs = {
600
+ ...args,
601
+ options: {
602
+ ...args.options,
603
+ onResponse: callback
604
+ }
605
+ };
606
+ const flatResponse = await directSendOperation(updatedArgs, spec);
607
+ return {
608
+ flatResponse,
609
+ rawResponse: {
610
+ statusCode: currentRawResponse!.status,
611
+ body: currentRawResponse!.parsedBody,
612
+ headers: currentRawResponse!.headers.toJSON()
613
+ }
614
+ };
615
+ };
616
+
617
+ const lro = new LroImpl(
618
+ sendOperation,
619
+ { resourceGroupName, name, parameters, options },
620
+ importDataOperationSpec
621
+ );
622
+ return new LroEngine(lro, {
623
+ resumeFrom: options?.resumeFrom,
624
+ intervalInMs: options?.updateIntervalInMs
625
+ });
626
+ }
627
+
628
+ /**
629
+ * Import data into Redis cache.
630
+ * @param resourceGroupName The name of the resource group.
631
+ * @param name The name of the Redis cache.
632
+ * @param parameters Parameters for Redis import operation.
633
+ * @param options The options parameters.
634
+ */
635
+ async beginImportDataAndWait(
636
+ resourceGroupName: string,
637
+ name: string,
638
+ parameters: ImportRDBParameters,
639
+ options?: RedisImportDataOptionalParams
640
+ ): Promise<void> {
641
+ const poller = await this.beginImportData(
642
+ resourceGroupName,
643
+ name,
644
+ parameters,
645
+ options
646
+ );
647
+ return poller.pollUntilDone();
648
+ }
649
+
650
+ /**
651
+ * Export data from the redis cache to blobs in a container.
652
+ * @param resourceGroupName The name of the resource group.
653
+ * @param name The name of the Redis cache.
654
+ * @param parameters Parameters for Redis export operation.
655
+ * @param options The options parameters.
656
+ */
657
+ async beginExportData(
658
+ resourceGroupName: string,
659
+ name: string,
660
+ parameters: ExportRDBParameters,
661
+ options?: RedisExportDataOptionalParams
662
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
663
+ const directSendOperation = async (
664
+ args: coreClient.OperationArguments,
665
+ spec: coreClient.OperationSpec
666
+ ): Promise<void> => {
667
+ return this.client.sendOperationRequest(args, spec);
668
+ };
669
+ const sendOperation = async (
670
+ args: coreClient.OperationArguments,
671
+ spec: coreClient.OperationSpec
672
+ ) => {
673
+ let currentRawResponse:
674
+ | coreClient.FullOperationResponse
675
+ | undefined = undefined;
676
+ const providedCallback = args.options?.onResponse;
677
+ const callback: coreClient.RawResponseCallback = (
678
+ rawResponse: coreClient.FullOperationResponse,
679
+ flatResponse: unknown
680
+ ) => {
681
+ currentRawResponse = rawResponse;
682
+ providedCallback?.(rawResponse, flatResponse);
683
+ };
684
+ const updatedArgs = {
685
+ ...args,
686
+ options: {
687
+ ...args.options,
688
+ onResponse: callback
689
+ }
690
+ };
691
+ const flatResponse = await directSendOperation(updatedArgs, spec);
692
+ return {
693
+ flatResponse,
694
+ rawResponse: {
695
+ statusCode: currentRawResponse!.status,
696
+ body: currentRawResponse!.parsedBody,
697
+ headers: currentRawResponse!.headers.toJSON()
698
+ }
699
+ };
700
+ };
701
+
702
+ const lro = new LroImpl(
703
+ sendOperation,
704
+ { resourceGroupName, name, parameters, options },
705
+ exportDataOperationSpec
706
+ );
707
+ return new LroEngine(lro, {
708
+ resumeFrom: options?.resumeFrom,
709
+ intervalInMs: options?.updateIntervalInMs
710
+ });
711
+ }
712
+
713
+ /**
714
+ * Export data from the redis cache to blobs in a container.
715
+ * @param resourceGroupName The name of the resource group.
716
+ * @param name The name of the Redis cache.
717
+ * @param parameters Parameters for Redis export operation.
718
+ * @param options The options parameters.
719
+ */
720
+ async beginExportDataAndWait(
721
+ resourceGroupName: string,
722
+ name: string,
723
+ parameters: ExportRDBParameters,
724
+ options?: RedisExportDataOptionalParams
725
+ ): Promise<void> {
726
+ const poller = await this.beginExportData(
727
+ resourceGroupName,
728
+ name,
729
+ parameters,
730
+ options
731
+ );
732
+ return poller.pollUntilDone();
733
+ }
734
+
735
+ /**
736
+ * ListUpgradeNotificationsNext
737
+ * @param resourceGroupName The name of the resource group.
738
+ * @param name The name of the Redis cache.
739
+ * @param history how many minutes in past to look for upgrade notifications
740
+ * @param nextLink The nextLink from the previous successful call to the ListUpgradeNotifications
741
+ * method.
742
+ * @param options The options parameters.
743
+ */
744
+ private _listUpgradeNotificationsNext(
745
+ resourceGroupName: string,
746
+ name: string,
747
+ history: number,
748
+ nextLink: string,
749
+ options?: RedisListUpgradeNotificationsNextOptionalParams
750
+ ): Promise<RedisListUpgradeNotificationsNextResponse> {
751
+ return this.client.sendOperationRequest(
752
+ { resourceGroupName, name, history, nextLink, options },
753
+ listUpgradeNotificationsNextOperationSpec
754
+ );
755
+ }
756
+
757
+ /**
758
+ * ListByResourceGroupNext
759
+ * @param resourceGroupName The name of the resource group.
760
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
761
+ * @param options The options parameters.
762
+ */
763
+ private _listByResourceGroupNext(
764
+ resourceGroupName: string,
765
+ nextLink: string,
766
+ options?: RedisListByResourceGroupNextOptionalParams
767
+ ): Promise<RedisListByResourceGroupNextResponse> {
768
+ return this.client.sendOperationRequest(
769
+ { resourceGroupName, nextLink, options },
770
+ listByResourceGroupNextOperationSpec
771
+ );
772
+ }
773
+
774
+ /**
775
+ * ListBySubscriptionNext
776
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
777
+ * @param options The options parameters.
778
+ */
779
+ private _listBySubscriptionNext(
780
+ nextLink: string,
781
+ options?: RedisListBySubscriptionNextOptionalParams
782
+ ): Promise<RedisListBySubscriptionNextResponse> {
783
+ return this.client.sendOperationRequest(
784
+ { nextLink, options },
785
+ listBySubscriptionNextOperationSpec
786
+ );
787
+ }
788
+ }
789
+ // Operation Specifications
790
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
791
+
792
+ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
793
+ path:
794
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability",
795
+ httpMethod: "POST",
796
+ responses: {
797
+ 200: {},
798
+ default: {
799
+ bodyMapper: Mappers.ErrorResponse
800
+ }
801
+ },
802
+ requestBody: Parameters.parameters,
803
+ queryParameters: [Parameters.apiVersion],
804
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
805
+ headerParameters: [Parameters.accept, Parameters.contentType],
806
+ mediaType: "json",
807
+ serializer
808
+ };
809
+ const listUpgradeNotificationsOperationSpec: coreClient.OperationSpec = {
810
+ path:
811
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listUpgradeNotifications",
812
+ httpMethod: "GET",
813
+ responses: {
814
+ 200: {
815
+ bodyMapper: Mappers.NotificationListResponse
816
+ },
817
+ default: {
818
+ bodyMapper: Mappers.ErrorResponse
819
+ }
820
+ },
821
+ queryParameters: [Parameters.apiVersion, Parameters.history],
822
+ urlParameters: [
823
+ Parameters.$host,
824
+ Parameters.subscriptionId,
825
+ Parameters.resourceGroupName,
826
+ Parameters.name
827
+ ],
828
+ headerParameters: [Parameters.accept],
829
+ serializer
830
+ };
831
+ const createOperationSpec: coreClient.OperationSpec = {
832
+ path:
833
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
834
+ httpMethod: "PUT",
835
+ responses: {
836
+ 200: {
837
+ bodyMapper: Mappers.RedisResource
838
+ },
839
+ 201: {
840
+ bodyMapper: Mappers.RedisResource
841
+ },
842
+ 202: {
843
+ bodyMapper: Mappers.RedisResource
844
+ },
845
+ 204: {
846
+ bodyMapper: Mappers.RedisResource
847
+ },
848
+ default: {
849
+ bodyMapper: Mappers.ErrorResponse
850
+ }
851
+ },
852
+ requestBody: Parameters.parameters1,
853
+ queryParameters: [Parameters.apiVersion],
854
+ urlParameters: [
855
+ Parameters.$host,
856
+ Parameters.subscriptionId,
857
+ Parameters.resourceGroupName,
858
+ Parameters.name
859
+ ],
860
+ headerParameters: [Parameters.accept, Parameters.contentType],
861
+ mediaType: "json",
862
+ serializer
863
+ };
864
+ const updateOperationSpec: coreClient.OperationSpec = {
865
+ path:
866
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
867
+ httpMethod: "PATCH",
868
+ responses: {
869
+ 200: {
870
+ bodyMapper: Mappers.RedisResource
871
+ },
872
+ default: {
873
+ bodyMapper: Mappers.ErrorResponse
874
+ }
875
+ },
876
+ requestBody: Parameters.parameters2,
877
+ queryParameters: [Parameters.apiVersion],
878
+ urlParameters: [
879
+ Parameters.$host,
880
+ Parameters.subscriptionId,
881
+ Parameters.resourceGroupName,
882
+ Parameters.name
883
+ ],
884
+ headerParameters: [Parameters.accept, Parameters.contentType],
885
+ mediaType: "json",
886
+ serializer
887
+ };
888
+ const deleteOperationSpec: coreClient.OperationSpec = {
889
+ path:
890
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
891
+ httpMethod: "DELETE",
892
+ responses: {
893
+ 200: {},
894
+ 201: {},
895
+ 202: {},
896
+ 204: {},
897
+ default: {
898
+ bodyMapper: Mappers.ErrorResponse
899
+ }
900
+ },
901
+ queryParameters: [Parameters.apiVersion],
902
+ urlParameters: [
903
+ Parameters.$host,
904
+ Parameters.subscriptionId,
905
+ Parameters.resourceGroupName,
906
+ Parameters.name
907
+ ],
908
+ headerParameters: [Parameters.accept],
909
+ serializer
910
+ };
911
+ const getOperationSpec: coreClient.OperationSpec = {
912
+ path:
913
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}",
914
+ httpMethod: "GET",
915
+ responses: {
916
+ 200: {
917
+ bodyMapper: Mappers.RedisResource
918
+ },
919
+ default: {
920
+ bodyMapper: Mappers.ErrorResponse
921
+ }
922
+ },
923
+ queryParameters: [Parameters.apiVersion],
924
+ urlParameters: [
925
+ Parameters.$host,
926
+ Parameters.subscriptionId,
927
+ Parameters.resourceGroupName,
928
+ Parameters.name
929
+ ],
930
+ headerParameters: [Parameters.accept],
931
+ serializer
932
+ };
933
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
934
+ path:
935
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis",
936
+ httpMethod: "GET",
937
+ responses: {
938
+ 200: {
939
+ bodyMapper: Mappers.RedisListResult
940
+ },
941
+ default: {
942
+ bodyMapper: Mappers.ErrorResponse
943
+ }
944
+ },
945
+ queryParameters: [Parameters.apiVersion],
946
+ urlParameters: [
947
+ Parameters.$host,
948
+ Parameters.subscriptionId,
949
+ Parameters.resourceGroupName
950
+ ],
951
+ headerParameters: [Parameters.accept],
952
+ serializer
953
+ };
954
+ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
955
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis",
956
+ httpMethod: "GET",
957
+ responses: {
958
+ 200: {
959
+ bodyMapper: Mappers.RedisListResult
960
+ },
961
+ default: {
962
+ bodyMapper: Mappers.ErrorResponse
963
+ }
964
+ },
965
+ queryParameters: [Parameters.apiVersion],
966
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
967
+ headerParameters: [Parameters.accept],
968
+ serializer
969
+ };
970
+ const listKeysOperationSpec: coreClient.OperationSpec = {
971
+ path:
972
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listKeys",
973
+ httpMethod: "POST",
974
+ responses: {
975
+ 200: {
976
+ bodyMapper: Mappers.RedisAccessKeys
977
+ },
978
+ default: {
979
+ bodyMapper: Mappers.ErrorResponse
980
+ }
981
+ },
982
+ queryParameters: [Parameters.apiVersion],
983
+ urlParameters: [
984
+ Parameters.$host,
985
+ Parameters.subscriptionId,
986
+ Parameters.resourceGroupName,
987
+ Parameters.name
988
+ ],
989
+ headerParameters: [Parameters.accept],
990
+ serializer
991
+ };
992
+ const regenerateKeyOperationSpec: coreClient.OperationSpec = {
993
+ path:
994
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/regenerateKey",
995
+ httpMethod: "POST",
996
+ responses: {
997
+ 200: {
998
+ bodyMapper: Mappers.RedisAccessKeys
999
+ },
1000
+ default: {
1001
+ bodyMapper: Mappers.ErrorResponse
1002
+ }
1003
+ },
1004
+ requestBody: Parameters.parameters3,
1005
+ queryParameters: [Parameters.apiVersion],
1006
+ urlParameters: [
1007
+ Parameters.$host,
1008
+ Parameters.subscriptionId,
1009
+ Parameters.resourceGroupName,
1010
+ Parameters.name
1011
+ ],
1012
+ headerParameters: [Parameters.accept, Parameters.contentType],
1013
+ mediaType: "json",
1014
+ serializer
1015
+ };
1016
+ const forceRebootOperationSpec: coreClient.OperationSpec = {
1017
+ path:
1018
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/forceReboot",
1019
+ httpMethod: "POST",
1020
+ responses: {
1021
+ 200: {
1022
+ bodyMapper: Mappers.RedisForceRebootResponse
1023
+ },
1024
+ default: {
1025
+ bodyMapper: Mappers.ErrorResponse
1026
+ }
1027
+ },
1028
+ requestBody: Parameters.parameters4,
1029
+ queryParameters: [Parameters.apiVersion],
1030
+ urlParameters: [
1031
+ Parameters.$host,
1032
+ Parameters.subscriptionId,
1033
+ Parameters.resourceGroupName,
1034
+ Parameters.name
1035
+ ],
1036
+ headerParameters: [Parameters.accept, Parameters.contentType],
1037
+ mediaType: "json",
1038
+ serializer
1039
+ };
1040
+ const importDataOperationSpec: coreClient.OperationSpec = {
1041
+ path:
1042
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/import",
1043
+ httpMethod: "POST",
1044
+ responses: {
1045
+ 200: {},
1046
+ 201: {},
1047
+ 202: {},
1048
+ 204: {},
1049
+ default: {
1050
+ bodyMapper: Mappers.ErrorResponse
1051
+ }
1052
+ },
1053
+ requestBody: Parameters.parameters5,
1054
+ queryParameters: [Parameters.apiVersion],
1055
+ urlParameters: [
1056
+ Parameters.$host,
1057
+ Parameters.subscriptionId,
1058
+ Parameters.resourceGroupName,
1059
+ Parameters.name
1060
+ ],
1061
+ headerParameters: [Parameters.accept, Parameters.contentType],
1062
+ mediaType: "json",
1063
+ serializer
1064
+ };
1065
+ const exportDataOperationSpec: coreClient.OperationSpec = {
1066
+ path:
1067
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/export",
1068
+ httpMethod: "POST",
1069
+ responses: {
1070
+ 200: {},
1071
+ 201: {},
1072
+ 202: {},
1073
+ 204: {},
1074
+ default: {
1075
+ bodyMapper: Mappers.ErrorResponse
1076
+ }
1077
+ },
1078
+ requestBody: Parameters.parameters6,
1079
+ queryParameters: [Parameters.apiVersion],
1080
+ urlParameters: [
1081
+ Parameters.$host,
1082
+ Parameters.subscriptionId,
1083
+ Parameters.resourceGroupName,
1084
+ Parameters.name
1085
+ ],
1086
+ headerParameters: [Parameters.accept, Parameters.contentType],
1087
+ mediaType: "json",
1088
+ serializer
1089
+ };
1090
+ const listUpgradeNotificationsNextOperationSpec: coreClient.OperationSpec = {
1091
+ path: "{nextLink}",
1092
+ httpMethod: "GET",
1093
+ responses: {
1094
+ 200: {
1095
+ bodyMapper: Mappers.NotificationListResponse
1096
+ },
1097
+ default: {
1098
+ bodyMapper: Mappers.ErrorResponse
1099
+ }
1100
+ },
1101
+ queryParameters: [Parameters.apiVersion, Parameters.history],
1102
+ urlParameters: [
1103
+ Parameters.$host,
1104
+ Parameters.nextLink,
1105
+ Parameters.subscriptionId,
1106
+ Parameters.resourceGroupName,
1107
+ Parameters.name
1108
+ ],
1109
+ headerParameters: [Parameters.accept],
1110
+ serializer
1111
+ };
1112
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
1113
+ path: "{nextLink}",
1114
+ httpMethod: "GET",
1115
+ responses: {
1116
+ 200: {
1117
+ bodyMapper: Mappers.RedisListResult
1118
+ },
1119
+ default: {
1120
+ bodyMapper: Mappers.ErrorResponse
1121
+ }
1122
+ },
1123
+ queryParameters: [Parameters.apiVersion],
1124
+ urlParameters: [
1125
+ Parameters.$host,
1126
+ Parameters.nextLink,
1127
+ Parameters.subscriptionId,
1128
+ Parameters.resourceGroupName
1129
+ ],
1130
+ headerParameters: [Parameters.accept],
1131
+ serializer
1132
+ };
1133
+ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
1134
+ path: "{nextLink}",
1135
+ httpMethod: "GET",
1136
+ responses: {
1137
+ 200: {
1138
+ bodyMapper: Mappers.RedisListResult
1139
+ },
1140
+ default: {
1141
+ bodyMapper: Mappers.ErrorResponse
1142
+ }
1143
+ },
1144
+ queryParameters: [Parameters.apiVersion],
1145
+ urlParameters: [
1146
+ Parameters.$host,
1147
+ Parameters.nextLink,
1148
+ Parameters.subscriptionId
1149
+ ],
1150
+ headerParameters: [Parameters.accept],
1151
+ serializer
1152
+ };