@azure/arm-redisenterprisecache 3.0.1-alpha.20240709.1 → 3.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +28 -13
  2. package/README.md +1 -1
  3. package/dist/index.js +1028 -721
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/databasesCreateSample.js +11 -10
  8. package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/databasesExportSample.js +3 -3
  11. package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
  12. package/dist-esm/samples-dev/databasesFlushSample.js +4 -4
  13. package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -1
  14. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js +51 -0
  17. package/dist-esm/samples-dev/databasesForceLinkToReplicationGroupSample.js.map +1 -0
  18. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +4 -4
  19. package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
  20. package/dist-esm/samples-dev/databasesGetSample.js +1 -1
  21. package/dist-esm/samples-dev/databasesImportSample.js +4 -4
  22. package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
  23. package/dist-esm/samples-dev/databasesListByClusterSample.js +1 -1
  24. package/dist-esm/samples-dev/databasesListKeysSample.js +1 -1
  25. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +2 -2
  26. package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
  27. package/dist-esm/samples-dev/databasesUpdateSample.js +3 -3
  28. package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
  29. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js +39 -0
  32. package/dist-esm/samples-dev/databasesUpgradeDbRedisVersionSample.js.map +1 -0
  33. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  34. package/dist-esm/samples-dev/operationsStatusGetSample.js +1 -1
  35. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  36. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  37. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  38. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
  39. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  41. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +8 -8
  42. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
  43. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +1 -1
  44. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +1 -1
  45. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +1 -1
  46. package/dist-esm/samples-dev/redisEnterpriseListSample.js +1 -1
  47. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +3 -3
  48. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
  49. package/dist-esm/src/lroImpl.js +1 -1
  50. package/dist-esm/src/models/index.d.ts +72 -0
  51. package/dist-esm/src/models/index.d.ts.map +1 -1
  52. package/dist-esm/src/models/index.js +10 -0
  53. package/dist-esm/src/models/index.js.map +1 -1
  54. package/dist-esm/src/models/mappers.d.ts +3 -0
  55. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  56. package/dist-esm/src/models/mappers.js +481 -389
  57. package/dist-esm/src/models/mappers.js.map +1 -1
  58. package/dist-esm/src/models/parameters.d.ts +1 -0
  59. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  60. package/dist-esm/src/models/parameters.js +62 -52
  61. package/dist-esm/src/models/parameters.js.map +1 -1
  62. package/dist-esm/src/operations/databases.d.ts +78 -40
  63. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  64. package/dist-esm/src/operations/databases.js +337 -145
  65. package/dist-esm/src/operations/databases.js.map +1 -1
  66. package/dist-esm/src/operations/operations.js +9 -9
  67. package/dist-esm/src/operations/operationsStatus.js +5 -5
  68. package/dist-esm/src/operations/operationsStatus.js.map +1 -1
  69. package/dist-esm/src/operations/privateEndpointConnections.d.ts +7 -7
  70. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  71. package/dist-esm/src/operations/privateEndpointConnections.js +42 -42
  72. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  73. package/dist-esm/src/operations/privateLinkResources.d.ts +2 -2
  74. package/dist-esm/src/operations/privateLinkResources.js +8 -8
  75. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  76. package/dist-esm/src/operations/redisEnterprise.d.ts +7 -7
  77. package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
  78. package/dist-esm/src/operations/redisEnterprise.js +66 -66
  79. package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
  80. package/dist-esm/src/operationsInterfaces/databases.d.ts +76 -38
  81. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
  82. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +6 -6
  83. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +1 -1
  84. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +7 -7
  85. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
  86. package/dist-esm/src/redisEnterpriseManagementClient.js +9 -9
  87. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
  88. package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +1 -1
  89. package/dist-esm/test/redisenterprisecache_test.spec.js +0 -3
  90. package/dist-esm/test/redisenterprisecache_test.spec.js.map +1 -1
  91. package/package.json +6 -6
  92. package/review/arm-redisenterprisecache.api.md +54 -0
  93. package/src/lroImpl.ts +3 -3
  94. package/src/models/index.ts +105 -18
  95. package/src/models/mappers.ts +539 -437
  96. package/src/models/parameters.ts +65 -53
  97. package/src/operations/databases.ts +527 -272
  98. package/src/operations/operations.ts +16 -16
  99. package/src/operations/operationsStatus.ts +9 -10
  100. package/src/operations/privateEndpointConnections.ts +78 -83
  101. package/src/operations/privateLinkResources.ts +18 -19
  102. package/src/operations/redisEnterprise.ts +121 -130
  103. package/src/operationsInterfaces/databases.ts +132 -57
  104. package/src/operationsInterfaces/operations.ts +1 -1
  105. package/src/operationsInterfaces/operationsStatus.ts +2 -2
  106. package/src/operationsInterfaces/privateEndpointConnections.ts +13 -13
  107. package/src/operationsInterfaces/privateLinkResources.ts +3 -3
  108. package/src/operationsInterfaces/redisEnterprise.ts +17 -17
  109. package/src/pagingHelper.ts +1 -1
  110. package/src/redisEnterpriseManagementClient.ts +18 -17
  111. package/types/arm-redisenterprisecache.d.ts +170 -51
package/dist/index.js CHANGED
@@ -85,6 +85,8 @@ exports.KnownActionType = void 0;
85
85
  /** Known values of {@link SkuName} that the service accepts. */
86
86
  exports.KnownSkuName = void 0;
87
87
  (function (KnownSkuName) {
88
+ /** EnterpriseE5 */
89
+ KnownSkuName["EnterpriseE5"] = "Enterprise_E5";
88
90
  /** EnterpriseE10 */
89
91
  KnownSkuName["EnterpriseE10"] = "Enterprise_E10";
90
92
  /** EnterpriseE20 */
@@ -268,6 +270,14 @@ exports.KnownLinkState = void 0;
268
270
  /** UnlinkFailed */
269
271
  KnownLinkState["UnlinkFailed"] = "UnlinkFailed";
270
272
  })(exports.KnownLinkState || (exports.KnownLinkState = {}));
273
+ /** Known values of {@link DeferUpgradeSetting} that the service accepts. */
274
+ exports.KnownDeferUpgradeSetting = void 0;
275
+ (function (KnownDeferUpgradeSetting) {
276
+ /** Deferred */
277
+ KnownDeferUpgradeSetting["Deferred"] = "Deferred";
278
+ /** NotDeferred */
279
+ KnownDeferUpgradeSetting["NotDeferred"] = "NotDeferred";
280
+ })(exports.KnownDeferUpgradeSetting || (exports.KnownDeferUpgradeSetting = {}));
271
281
 
272
282
  /*
273
283
  * Copyright (c) Microsoft Corporation.
@@ -289,20 +299,20 @@ const OperationListResult = {
289
299
  element: {
290
300
  type: {
291
301
  name: "Composite",
292
- className: "Operation"
293
- }
294
- }
295
- }
302
+ className: "Operation",
303
+ },
304
+ },
305
+ },
296
306
  },
297
307
  nextLink: {
298
308
  serializedName: "nextLink",
299
309
  readOnly: true,
300
310
  type: {
301
- name: "String"
302
- }
303
- }
304
- }
305
- }
311
+ name: "String",
312
+ },
313
+ },
314
+ },
315
+ },
306
316
  };
307
317
  const Operation = {
308
318
  type: {
@@ -313,39 +323,39 @@ const Operation = {
313
323
  serializedName: "name",
314
324
  readOnly: true,
315
325
  type: {
316
- name: "String"
317
- }
326
+ name: "String",
327
+ },
318
328
  },
319
329
  isDataAction: {
320
330
  serializedName: "isDataAction",
321
331
  readOnly: true,
322
332
  type: {
323
- name: "Boolean"
324
- }
333
+ name: "Boolean",
334
+ },
325
335
  },
326
336
  display: {
327
337
  serializedName: "display",
328
338
  type: {
329
339
  name: "Composite",
330
- className: "OperationDisplay"
331
- }
340
+ className: "OperationDisplay",
341
+ },
332
342
  },
333
343
  origin: {
334
344
  serializedName: "origin",
335
345
  readOnly: true,
336
346
  type: {
337
- name: "String"
338
- }
347
+ name: "String",
348
+ },
339
349
  },
340
350
  actionType: {
341
351
  serializedName: "actionType",
342
352
  readOnly: true,
343
353
  type: {
344
- name: "String"
345
- }
346
- }
347
- }
348
- }
354
+ name: "String",
355
+ },
356
+ },
357
+ },
358
+ },
349
359
  };
350
360
  const OperationDisplay = {
351
361
  type: {
@@ -356,32 +366,32 @@ const OperationDisplay = {
356
366
  serializedName: "provider",
357
367
  readOnly: true,
358
368
  type: {
359
- name: "String"
360
- }
369
+ name: "String",
370
+ },
361
371
  },
362
372
  resource: {
363
373
  serializedName: "resource",
364
374
  readOnly: true,
365
375
  type: {
366
- name: "String"
367
- }
376
+ name: "String",
377
+ },
368
378
  },
369
379
  operation: {
370
380
  serializedName: "operation",
371
381
  readOnly: true,
372
382
  type: {
373
- name: "String"
374
- }
383
+ name: "String",
384
+ },
375
385
  },
376
386
  description: {
377
387
  serializedName: "description",
378
388
  readOnly: true,
379
389
  type: {
380
- name: "String"
381
- }
382
- }
383
- }
384
- }
390
+ name: "String",
391
+ },
392
+ },
393
+ },
394
+ },
385
395
  };
386
396
  const ErrorResponse = {
387
397
  type: {
@@ -392,11 +402,11 @@ const ErrorResponse = {
392
402
  serializedName: "error",
393
403
  type: {
394
404
  name: "Composite",
395
- className: "ErrorDetail"
396
- }
397
- }
398
- }
399
- }
405
+ className: "ErrorDetail",
406
+ },
407
+ },
408
+ },
409
+ },
400
410
  };
401
411
  const ErrorDetail = {
402
412
  type: {
@@ -407,22 +417,22 @@ const ErrorDetail = {
407
417
  serializedName: "code",
408
418
  readOnly: true,
409
419
  type: {
410
- name: "String"
411
- }
420
+ name: "String",
421
+ },
412
422
  },
413
423
  message: {
414
424
  serializedName: "message",
415
425
  readOnly: true,
416
426
  type: {
417
- name: "String"
418
- }
427
+ name: "String",
428
+ },
419
429
  },
420
430
  target: {
421
431
  serializedName: "target",
422
432
  readOnly: true,
423
433
  type: {
424
- name: "String"
425
- }
434
+ name: "String",
435
+ },
426
436
  },
427
437
  details: {
428
438
  serializedName: "details",
@@ -432,10 +442,10 @@ const ErrorDetail = {
432
442
  element: {
433
443
  type: {
434
444
  name: "Composite",
435
- className: "ErrorDetail"
436
- }
437
- }
438
- }
445
+ className: "ErrorDetail",
446
+ },
447
+ },
448
+ },
439
449
  },
440
450
  additionalInfo: {
441
451
  serializedName: "additionalInfo",
@@ -445,13 +455,13 @@ const ErrorDetail = {
445
455
  element: {
446
456
  type: {
447
457
  name: "Composite",
448
- className: "ErrorAdditionalInfo"
449
- }
450
- }
451
- }
452
- }
453
- }
454
- }
458
+ className: "ErrorAdditionalInfo",
459
+ },
460
+ },
461
+ },
462
+ },
463
+ },
464
+ },
455
465
  };
456
466
  const ErrorAdditionalInfo = {
457
467
  type: {
@@ -462,19 +472,19 @@ const ErrorAdditionalInfo = {
462
472
  serializedName: "type",
463
473
  readOnly: true,
464
474
  type: {
465
- name: "String"
466
- }
475
+ name: "String",
476
+ },
467
477
  },
468
478
  info: {
469
479
  serializedName: "info",
470
480
  readOnly: true,
471
481
  type: {
472
482
  name: "Dictionary",
473
- value: { type: { name: "any" } }
474
- }
475
- }
476
- }
477
- }
483
+ value: { type: { name: "any" } },
484
+ },
485
+ },
486
+ },
487
+ },
478
488
  };
479
489
  const OperationStatus = {
480
490
  type: {
@@ -484,42 +494,42 @@ const OperationStatus = {
484
494
  id: {
485
495
  serializedName: "id",
486
496
  type: {
487
- name: "String"
488
- }
497
+ name: "String",
498
+ },
489
499
  },
490
500
  name: {
491
501
  serializedName: "name",
492
502
  type: {
493
- name: "String"
494
- }
503
+ name: "String",
504
+ },
495
505
  },
496
506
  startTime: {
497
507
  serializedName: "startTime",
498
508
  type: {
499
- name: "String"
500
- }
509
+ name: "String",
510
+ },
501
511
  },
502
512
  endTime: {
503
513
  serializedName: "endTime",
504
514
  type: {
505
- name: "String"
506
- }
515
+ name: "String",
516
+ },
507
517
  },
508
518
  status: {
509
519
  serializedName: "status",
510
520
  type: {
511
- name: "String"
512
- }
521
+ name: "String",
522
+ },
513
523
  },
514
524
  error: {
515
525
  serializedName: "error",
516
526
  type: {
517
527
  name: "Composite",
518
- className: "ErrorResponse"
519
- }
520
- }
521
- }
522
- }
528
+ className: "ErrorResponse",
529
+ },
530
+ },
531
+ },
532
+ },
523
533
  };
524
534
  const Sku = {
525
535
  type: {
@@ -530,17 +540,17 @@ const Sku = {
530
540
  serializedName: "name",
531
541
  required: true,
532
542
  type: {
533
- name: "String"
534
- }
543
+ name: "String",
544
+ },
535
545
  },
536
546
  capacity: {
537
547
  serializedName: "capacity",
538
548
  type: {
539
- name: "Number"
540
- }
541
- }
542
- }
543
- }
549
+ name: "Number",
550
+ },
551
+ },
552
+ },
553
+ },
544
554
  };
545
555
  const ManagedServiceIdentity = {
546
556
  type: {
@@ -551,34 +561,34 @@ const ManagedServiceIdentity = {
551
561
  serializedName: "principalId",
552
562
  readOnly: true,
553
563
  type: {
554
- name: "Uuid"
555
- }
564
+ name: "Uuid",
565
+ },
556
566
  },
557
567
  tenantId: {
558
568
  serializedName: "tenantId",
559
569
  readOnly: true,
560
570
  type: {
561
- name: "Uuid"
562
- }
571
+ name: "Uuid",
572
+ },
563
573
  },
564
574
  type: {
565
575
  serializedName: "type",
566
576
  required: true,
567
577
  type: {
568
- name: "String"
569
- }
578
+ name: "String",
579
+ },
570
580
  },
571
581
  userAssignedIdentities: {
572
582
  serializedName: "userAssignedIdentities",
573
583
  type: {
574
584
  name: "Dictionary",
575
585
  value: {
576
- type: { name: "Composite", className: "UserAssignedIdentity" }
577
- }
578
- }
579
- }
580
- }
581
- }
586
+ type: { name: "Composite", className: "UserAssignedIdentity" },
587
+ },
588
+ },
589
+ },
590
+ },
591
+ },
582
592
  };
583
593
  const UserAssignedIdentity = {
584
594
  type: {
@@ -589,18 +599,18 @@ const UserAssignedIdentity = {
589
599
  serializedName: "principalId",
590
600
  readOnly: true,
591
601
  type: {
592
- name: "Uuid"
593
- }
602
+ name: "Uuid",
603
+ },
594
604
  },
595
605
  clientId: {
596
606
  serializedName: "clientId",
597
607
  readOnly: true,
598
608
  type: {
599
- name: "Uuid"
600
- }
601
- }
602
- }
603
- }
609
+ name: "Uuid",
610
+ },
611
+ },
612
+ },
613
+ },
604
614
  };
605
615
  const ClusterPropertiesEncryption = {
606
616
  type: {
@@ -611,11 +621,11 @@ const ClusterPropertiesEncryption = {
611
621
  serializedName: "customerManagedKeyEncryption",
612
622
  type: {
613
623
  name: "Composite",
614
- className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption"
615
- }
616
- }
617
- }
618
- }
624
+ className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption",
625
+ },
626
+ },
627
+ },
628
+ },
619
629
  };
620
630
  const ClusterPropertiesEncryptionCustomerManagedKeyEncryption = {
621
631
  type: {
@@ -626,17 +636,17 @@ const ClusterPropertiesEncryptionCustomerManagedKeyEncryption = {
626
636
  serializedName: "keyEncryptionKeyIdentity",
627
637
  type: {
628
638
  name: "Composite",
629
- className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity"
630
- }
639
+ className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity",
640
+ },
631
641
  },
632
642
  keyEncryptionKeyUrl: {
633
643
  serializedName: "keyEncryptionKeyUrl",
634
644
  type: {
635
- name: "String"
636
- }
637
- }
638
- }
639
- }
645
+ name: "String",
646
+ },
647
+ },
648
+ },
649
+ },
640
650
  };
641
651
  const ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity = {
642
652
  type: {
@@ -646,17 +656,17 @@ const ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity = {
646
656
  userAssignedIdentityResourceId: {
647
657
  serializedName: "userAssignedIdentityResourceId",
648
658
  type: {
649
- name: "String"
650
- }
659
+ name: "String",
660
+ },
651
661
  },
652
662
  identityType: {
653
663
  serializedName: "identityType",
654
664
  type: {
655
- name: "String"
656
- }
657
- }
658
- }
659
- }
665
+ name: "String",
666
+ },
667
+ },
668
+ },
669
+ },
660
670
  };
661
671
  const PrivateEndpoint = {
662
672
  type: {
@@ -667,11 +677,11 @@ const PrivateEndpoint = {
667
677
  serializedName: "id",
668
678
  readOnly: true,
669
679
  type: {
670
- name: "String"
671
- }
672
- }
673
- }
674
- }
680
+ name: "String",
681
+ },
682
+ },
683
+ },
684
+ },
675
685
  };
676
686
  const PrivateLinkServiceConnectionState = {
677
687
  type: {
@@ -681,23 +691,23 @@ const PrivateLinkServiceConnectionState = {
681
691
  status: {
682
692
  serializedName: "status",
683
693
  type: {
684
- name: "String"
685
- }
694
+ name: "String",
695
+ },
686
696
  },
687
697
  description: {
688
698
  serializedName: "description",
689
699
  type: {
690
- name: "String"
691
- }
700
+ name: "String",
701
+ },
692
702
  },
693
703
  actionsRequired: {
694
704
  serializedName: "actionsRequired",
695
705
  type: {
696
- name: "String"
697
- }
698
- }
699
- }
700
- }
706
+ name: "String",
707
+ },
708
+ },
709
+ },
710
+ },
701
711
  };
702
712
  const Resource = {
703
713
  type: {
@@ -708,25 +718,25 @@ const Resource = {
708
718
  serializedName: "id",
709
719
  readOnly: true,
710
720
  type: {
711
- name: "String"
712
- }
721
+ name: "String",
722
+ },
713
723
  },
714
724
  name: {
715
725
  serializedName: "name",
716
726
  readOnly: true,
717
727
  type: {
718
- name: "String"
719
- }
728
+ name: "String",
729
+ },
720
730
  },
721
731
  type: {
722
732
  serializedName: "type",
723
733
  readOnly: true,
724
734
  type: {
725
- name: "String"
726
- }
727
- }
728
- }
729
- }
735
+ name: "String",
736
+ },
737
+ },
738
+ },
739
+ },
730
740
  };
731
741
  const ClusterUpdate = {
732
742
  type: {
@@ -737,63 +747,63 @@ const ClusterUpdate = {
737
747
  serializedName: "sku",
738
748
  type: {
739
749
  name: "Composite",
740
- className: "Sku"
741
- }
750
+ className: "Sku",
751
+ },
742
752
  },
743
753
  identity: {
744
754
  serializedName: "identity",
745
755
  type: {
746
756
  name: "Composite",
747
- className: "ManagedServiceIdentity"
748
- }
757
+ className: "ManagedServiceIdentity",
758
+ },
749
759
  },
750
760
  tags: {
751
761
  serializedName: "tags",
752
762
  type: {
753
763
  name: "Dictionary",
754
- value: { type: { name: "String" } }
755
- }
764
+ value: { type: { name: "String" } },
765
+ },
756
766
  },
757
767
  minimumTlsVersion: {
758
768
  serializedName: "properties.minimumTlsVersion",
759
769
  type: {
760
- name: "String"
761
- }
770
+ name: "String",
771
+ },
762
772
  },
763
773
  encryption: {
764
774
  serializedName: "properties.encryption",
765
775
  type: {
766
776
  name: "Composite",
767
- className: "ClusterPropertiesEncryption"
768
- }
777
+ className: "ClusterPropertiesEncryption",
778
+ },
769
779
  },
770
780
  hostName: {
771
781
  serializedName: "properties.hostName",
772
782
  readOnly: true,
773
783
  type: {
774
- name: "String"
775
- }
784
+ name: "String",
785
+ },
776
786
  },
777
787
  provisioningState: {
778
788
  serializedName: "properties.provisioningState",
779
789
  readOnly: true,
780
790
  type: {
781
- name: "String"
782
- }
791
+ name: "String",
792
+ },
783
793
  },
784
794
  resourceState: {
785
795
  serializedName: "properties.resourceState",
786
796
  readOnly: true,
787
797
  type: {
788
- name: "String"
789
- }
798
+ name: "String",
799
+ },
790
800
  },
791
801
  redisVersion: {
792
802
  serializedName: "properties.redisVersion",
793
803
  readOnly: true,
794
804
  type: {
795
- name: "String"
796
- }
805
+ name: "String",
806
+ },
797
807
  },
798
808
  privateEndpointConnections: {
799
809
  serializedName: "properties.privateEndpointConnections",
@@ -803,13 +813,13 @@ const ClusterUpdate = {
803
813
  element: {
804
814
  type: {
805
815
  name: "Composite",
806
- className: "PrivateEndpointConnection"
807
- }
808
- }
809
- }
810
- }
811
- }
812
- }
816
+ className: "PrivateEndpointConnection",
817
+ },
818
+ },
819
+ },
820
+ },
821
+ },
822
+ },
813
823
  };
814
824
  const ClusterList = {
815
825
  type: {
@@ -823,20 +833,20 @@ const ClusterList = {
823
833
  element: {
824
834
  type: {
825
835
  name: "Composite",
826
- className: "Cluster"
827
- }
828
- }
829
- }
836
+ className: "Cluster",
837
+ },
838
+ },
839
+ },
830
840
  },
831
841
  nextLink: {
832
842
  serializedName: "nextLink",
833
843
  readOnly: true,
834
844
  type: {
835
- name: "String"
836
- }
837
- }
838
- }
839
- }
845
+ name: "String",
846
+ },
847
+ },
848
+ },
849
+ },
840
850
  };
841
851
  const DatabaseList = {
842
852
  type: {
@@ -850,20 +860,20 @@ const DatabaseList = {
850
860
  element: {
851
861
  type: {
852
862
  name: "Composite",
853
- className: "Database"
854
- }
855
- }
856
- }
863
+ className: "Database",
864
+ },
865
+ },
866
+ },
857
867
  },
858
868
  nextLink: {
859
869
  serializedName: "nextLink",
860
870
  readOnly: true,
861
871
  type: {
862
- name: "String"
863
- }
864
- }
865
- }
866
- }
872
+ name: "String",
873
+ },
874
+ },
875
+ },
876
+ },
867
877
  };
868
878
  const Persistence = {
869
879
  type: {
@@ -873,29 +883,29 @@ const Persistence = {
873
883
  aofEnabled: {
874
884
  serializedName: "aofEnabled",
875
885
  type: {
876
- name: "Boolean"
877
- }
886
+ name: "Boolean",
887
+ },
878
888
  },
879
889
  rdbEnabled: {
880
890
  serializedName: "rdbEnabled",
881
891
  type: {
882
- name: "Boolean"
883
- }
892
+ name: "Boolean",
893
+ },
884
894
  },
885
895
  aofFrequency: {
886
896
  serializedName: "aofFrequency",
887
897
  type: {
888
- name: "String"
889
- }
898
+ name: "String",
899
+ },
890
900
  },
891
901
  rdbFrequency: {
892
902
  serializedName: "rdbFrequency",
893
903
  type: {
894
- name: "String"
895
- }
896
- }
897
- }
898
- }
904
+ name: "String",
905
+ },
906
+ },
907
+ },
908
+ },
899
909
  };
900
910
  const Module = {
901
911
  type: {
@@ -906,24 +916,24 @@ const Module = {
906
916
  serializedName: "name",
907
917
  required: true,
908
918
  type: {
909
- name: "String"
910
- }
919
+ name: "String",
920
+ },
911
921
  },
912
922
  args: {
913
923
  serializedName: "args",
914
924
  type: {
915
- name: "String"
916
- }
925
+ name: "String",
926
+ },
917
927
  },
918
928
  version: {
919
929
  serializedName: "version",
920
930
  readOnly: true,
921
931
  type: {
922
- name: "String"
923
- }
924
- }
925
- }
926
- }
932
+ name: "String",
933
+ },
934
+ },
935
+ },
936
+ },
927
937
  };
928
938
  const DatabasePropertiesGeoReplication = {
929
939
  type: {
@@ -933,8 +943,8 @@ const DatabasePropertiesGeoReplication = {
933
943
  groupNickname: {
934
944
  serializedName: "groupNickname",
935
945
  type: {
936
- name: "String"
937
- }
946
+ name: "String",
947
+ },
938
948
  },
939
949
  linkedDatabases: {
940
950
  serializedName: "linkedDatabases",
@@ -943,13 +953,13 @@ const DatabasePropertiesGeoReplication = {
943
953
  element: {
944
954
  type: {
945
955
  name: "Composite",
946
- className: "LinkedDatabase"
947
- }
948
- }
949
- }
950
- }
951
- }
952
- }
956
+ className: "LinkedDatabase",
957
+ },
958
+ },
959
+ },
960
+ },
961
+ },
962
+ },
953
963
  };
954
964
  const LinkedDatabase = {
955
965
  type: {
@@ -959,18 +969,18 @@ const LinkedDatabase = {
959
969
  id: {
960
970
  serializedName: "id",
961
971
  type: {
962
- name: "String"
963
- }
972
+ name: "String",
973
+ },
964
974
  },
965
975
  state: {
966
976
  serializedName: "state",
967
977
  readOnly: true,
968
978
  type: {
969
- name: "String"
970
- }
971
- }
972
- }
973
- }
979
+ name: "String",
980
+ },
981
+ },
982
+ },
983
+ },
974
984
  };
975
985
  const DatabaseUpdate = {
976
986
  type: {
@@ -980,47 +990,47 @@ const DatabaseUpdate = {
980
990
  clientProtocol: {
981
991
  serializedName: "properties.clientProtocol",
982
992
  type: {
983
- name: "String"
984
- }
993
+ name: "String",
994
+ },
985
995
  },
986
996
  port: {
987
997
  serializedName: "properties.port",
988
998
  type: {
989
- name: "Number"
990
- }
999
+ name: "Number",
1000
+ },
991
1001
  },
992
1002
  provisioningState: {
993
1003
  serializedName: "properties.provisioningState",
994
1004
  readOnly: true,
995
1005
  type: {
996
- name: "String"
997
- }
1006
+ name: "String",
1007
+ },
998
1008
  },
999
1009
  resourceState: {
1000
1010
  serializedName: "properties.resourceState",
1001
1011
  readOnly: true,
1002
1012
  type: {
1003
- name: "String"
1004
- }
1013
+ name: "String",
1014
+ },
1005
1015
  },
1006
1016
  clusteringPolicy: {
1007
1017
  serializedName: "properties.clusteringPolicy",
1008
1018
  type: {
1009
- name: "String"
1010
- }
1019
+ name: "String",
1020
+ },
1011
1021
  },
1012
1022
  evictionPolicy: {
1013
1023
  serializedName: "properties.evictionPolicy",
1014
1024
  type: {
1015
- name: "String"
1016
- }
1025
+ name: "String",
1026
+ },
1017
1027
  },
1018
1028
  persistence: {
1019
1029
  serializedName: "properties.persistence",
1020
1030
  type: {
1021
1031
  name: "Composite",
1022
- className: "Persistence"
1023
- }
1032
+ className: "Persistence",
1033
+ },
1024
1034
  },
1025
1035
  modules: {
1026
1036
  serializedName: "properties.modules",
@@ -1029,20 +1039,33 @@ const DatabaseUpdate = {
1029
1039
  element: {
1030
1040
  type: {
1031
1041
  name: "Composite",
1032
- className: "Module"
1033
- }
1034
- }
1035
- }
1042
+ className: "Module",
1043
+ },
1044
+ },
1045
+ },
1036
1046
  },
1037
1047
  geoReplication: {
1038
1048
  serializedName: "properties.geoReplication",
1039
1049
  type: {
1040
1050
  name: "Composite",
1041
- className: "DatabasePropertiesGeoReplication"
1042
- }
1043
- }
1044
- }
1045
- }
1051
+ className: "DatabasePropertiesGeoReplication",
1052
+ },
1053
+ },
1054
+ redisVersion: {
1055
+ serializedName: "properties.redisVersion",
1056
+ readOnly: true,
1057
+ type: {
1058
+ name: "String",
1059
+ },
1060
+ },
1061
+ deferUpgrade: {
1062
+ serializedName: "properties.deferUpgrade",
1063
+ type: {
1064
+ name: "String",
1065
+ },
1066
+ },
1067
+ },
1068
+ },
1046
1069
  };
1047
1070
  const AccessKeys = {
1048
1071
  type: {
@@ -1053,18 +1076,18 @@ const AccessKeys = {
1053
1076
  serializedName: "primaryKey",
1054
1077
  readOnly: true,
1055
1078
  type: {
1056
- name: "String"
1057
- }
1079
+ name: "String",
1080
+ },
1058
1081
  },
1059
1082
  secondaryKey: {
1060
1083
  serializedName: "secondaryKey",
1061
1084
  readOnly: true,
1062
1085
  type: {
1063
- name: "String"
1064
- }
1065
- }
1066
- }
1067
- }
1086
+ name: "String",
1087
+ },
1088
+ },
1089
+ },
1090
+ },
1068
1091
  };
1069
1092
  const RegenerateKeyParameters = {
1070
1093
  type: {
@@ -1076,11 +1099,11 @@ const RegenerateKeyParameters = {
1076
1099
  required: true,
1077
1100
  type: {
1078
1101
  name: "Enum",
1079
- allowedValues: ["Primary", "Secondary"]
1080
- }
1081
- }
1082
- }
1083
- }
1102
+ allowedValues: ["Primary", "Secondary"],
1103
+ },
1104
+ },
1105
+ },
1106
+ },
1084
1107
  };
1085
1108
  const ImportClusterParameters = {
1086
1109
  type: {
@@ -1094,13 +1117,13 @@ const ImportClusterParameters = {
1094
1117
  name: "Sequence",
1095
1118
  element: {
1096
1119
  type: {
1097
- name: "String"
1098
- }
1099
- }
1100
- }
1101
- }
1102
- }
1103
- }
1120
+ name: "String",
1121
+ },
1122
+ },
1123
+ },
1124
+ },
1125
+ },
1126
+ },
1104
1127
  };
1105
1128
  const ExportClusterParameters = {
1106
1129
  type: {
@@ -1111,11 +1134,11 @@ const ExportClusterParameters = {
1111
1134
  serializedName: "sasUri",
1112
1135
  required: true,
1113
1136
  type: {
1114
- name: "String"
1115
- }
1116
- }
1117
- }
1118
- }
1137
+ name: "String",
1138
+ },
1139
+ },
1140
+ },
1141
+ },
1119
1142
  };
1120
1143
  const PrivateEndpointConnectionListResult = {
1121
1144
  type: {
@@ -1129,13 +1152,13 @@ const PrivateEndpointConnectionListResult = {
1129
1152
  element: {
1130
1153
  type: {
1131
1154
  name: "Composite",
1132
- className: "PrivateEndpointConnection"
1133
- }
1134
- }
1135
- }
1136
- }
1137
- }
1138
- }
1155
+ className: "PrivateEndpointConnection",
1156
+ },
1157
+ },
1158
+ },
1159
+ },
1160
+ },
1161
+ },
1139
1162
  };
1140
1163
  const PrivateLinkResourceListResult = {
1141
1164
  type: {
@@ -1149,13 +1172,13 @@ const PrivateLinkResourceListResult = {
1149
1172
  element: {
1150
1173
  type: {
1151
1174
  name: "Composite",
1152
- className: "PrivateLinkResource"
1153
- }
1154
- }
1155
- }
1156
- }
1157
- }
1158
- }
1175
+ className: "PrivateLinkResource",
1176
+ },
1177
+ },
1178
+ },
1179
+ },
1180
+ },
1181
+ },
1159
1182
  };
1160
1183
  const ForceUnlinkParameters = {
1161
1184
  type: {
@@ -1169,13 +1192,41 @@ const ForceUnlinkParameters = {
1169
1192
  name: "Sequence",
1170
1193
  element: {
1171
1194
  type: {
1172
- name: "String"
1173
- }
1174
- }
1175
- }
1176
- }
1177
- }
1178
- }
1195
+ name: "String",
1196
+ },
1197
+ },
1198
+ },
1199
+ },
1200
+ },
1201
+ },
1202
+ };
1203
+ const ForceLinkParameters = {
1204
+ type: {
1205
+ name: "Composite",
1206
+ className: "ForceLinkParameters",
1207
+ modelProperties: {
1208
+ groupNickname: {
1209
+ serializedName: "groupNickname",
1210
+ required: true,
1211
+ type: {
1212
+ name: "String",
1213
+ },
1214
+ },
1215
+ linkedDatabases: {
1216
+ serializedName: "linkedDatabases",
1217
+ required: true,
1218
+ type: {
1219
+ name: "Sequence",
1220
+ element: {
1221
+ type: {
1222
+ name: "Composite",
1223
+ className: "LinkedDatabase",
1224
+ },
1225
+ },
1226
+ },
1227
+ },
1228
+ },
1229
+ },
1179
1230
  };
1180
1231
  const FlushParameters = {
1181
1232
  type: {
@@ -1188,13 +1239,13 @@ const FlushParameters = {
1188
1239
  name: "Sequence",
1189
1240
  element: {
1190
1241
  type: {
1191
- name: "String"
1192
- }
1193
- }
1194
- }
1195
- }
1196
- }
1197
- }
1242
+ name: "String",
1243
+ },
1244
+ },
1245
+ },
1246
+ },
1247
+ },
1248
+ },
1198
1249
  };
1199
1250
  const PrivateEndpointConnection = {
1200
1251
  type: {
@@ -1204,22 +1255,22 @@ const PrivateEndpointConnection = {
1204
1255
  serializedName: "properties.privateEndpoint",
1205
1256
  type: {
1206
1257
  name: "Composite",
1207
- className: "PrivateEndpoint"
1208
- }
1258
+ className: "PrivateEndpoint",
1259
+ },
1209
1260
  }, privateLinkServiceConnectionState: {
1210
1261
  serializedName: "properties.privateLinkServiceConnectionState",
1211
1262
  type: {
1212
1263
  name: "Composite",
1213
- className: "PrivateLinkServiceConnectionState"
1214
- }
1264
+ className: "PrivateLinkServiceConnectionState",
1265
+ },
1215
1266
  }, provisioningState: {
1216
1267
  serializedName: "properties.provisioningState",
1217
1268
  readOnly: true,
1218
1269
  type: {
1219
- name: "String"
1220
- }
1221
- } })
1222
- }
1270
+ name: "String",
1271
+ },
1272
+ } }),
1273
+ },
1223
1274
  };
1224
1275
  const TrackedResource = {
1225
1276
  type: {
@@ -1229,23 +1280,23 @@ const TrackedResource = {
1229
1280
  serializedName: "tags",
1230
1281
  type: {
1231
1282
  name: "Dictionary",
1232
- value: { type: { name: "String" } }
1233
- }
1283
+ value: { type: { name: "String" } },
1284
+ },
1234
1285
  }, location: {
1235
1286
  serializedName: "location",
1236
1287
  required: true,
1237
1288
  type: {
1238
- name: "String"
1239
- }
1240
- } })
1241
- }
1289
+ name: "String",
1290
+ },
1291
+ } }),
1292
+ },
1242
1293
  };
1243
1294
  const ProxyResource = {
1244
1295
  type: {
1245
1296
  name: "Composite",
1246
1297
  className: "ProxyResource",
1247
- modelProperties: Object.assign({}, Resource.type.modelProperties)
1248
- }
1298
+ modelProperties: Object.assign({}, Resource.type.modelProperties),
1299
+ },
1249
1300
  };
1250
1301
  const PrivateLinkResource = {
1251
1302
  type: {
@@ -1255,8 +1306,8 @@ const PrivateLinkResource = {
1255
1306
  serializedName: "properties.groupId",
1256
1307
  readOnly: true,
1257
1308
  type: {
1258
- name: "String"
1259
- }
1309
+ name: "String",
1310
+ },
1260
1311
  }, requiredMembers: {
1261
1312
  serializedName: "properties.requiredMembers",
1262
1313
  readOnly: true,
@@ -1264,22 +1315,22 @@ const PrivateLinkResource = {
1264
1315
  name: "Sequence",
1265
1316
  element: {
1266
1317
  type: {
1267
- name: "String"
1268
- }
1269
- }
1270
- }
1318
+ name: "String",
1319
+ },
1320
+ },
1321
+ },
1271
1322
  }, requiredZoneNames: {
1272
1323
  serializedName: "properties.requiredZoneNames",
1273
1324
  type: {
1274
1325
  name: "Sequence",
1275
1326
  element: {
1276
1327
  type: {
1277
- name: "String"
1278
- }
1279
- }
1280
- }
1281
- } })
1282
- }
1328
+ name: "String",
1329
+ },
1330
+ },
1331
+ },
1332
+ } }),
1333
+ },
1283
1334
  };
1284
1335
  const Cluster = {
1285
1336
  type: {
@@ -1289,59 +1340,59 @@ const Cluster = {
1289
1340
  serializedName: "sku",
1290
1341
  type: {
1291
1342
  name: "Composite",
1292
- className: "Sku"
1293
- }
1343
+ className: "Sku",
1344
+ },
1294
1345
  }, zones: {
1295
1346
  serializedName: "zones",
1296
1347
  type: {
1297
1348
  name: "Sequence",
1298
1349
  element: {
1299
1350
  type: {
1300
- name: "String"
1301
- }
1302
- }
1303
- }
1351
+ name: "String",
1352
+ },
1353
+ },
1354
+ },
1304
1355
  }, identity: {
1305
1356
  serializedName: "identity",
1306
1357
  type: {
1307
1358
  name: "Composite",
1308
- className: "ManagedServiceIdentity"
1309
- }
1359
+ className: "ManagedServiceIdentity",
1360
+ },
1310
1361
  }, minimumTlsVersion: {
1311
1362
  serializedName: "properties.minimumTlsVersion",
1312
1363
  type: {
1313
- name: "String"
1314
- }
1364
+ name: "String",
1365
+ },
1315
1366
  }, encryption: {
1316
1367
  serializedName: "properties.encryption",
1317
1368
  type: {
1318
1369
  name: "Composite",
1319
- className: "ClusterPropertiesEncryption"
1320
- }
1370
+ className: "ClusterPropertiesEncryption",
1371
+ },
1321
1372
  }, hostName: {
1322
1373
  serializedName: "properties.hostName",
1323
1374
  readOnly: true,
1324
1375
  type: {
1325
- name: "String"
1326
- }
1376
+ name: "String",
1377
+ },
1327
1378
  }, provisioningState: {
1328
1379
  serializedName: "properties.provisioningState",
1329
1380
  readOnly: true,
1330
1381
  type: {
1331
- name: "String"
1332
- }
1382
+ name: "String",
1383
+ },
1333
1384
  }, resourceState: {
1334
1385
  serializedName: "properties.resourceState",
1335
1386
  readOnly: true,
1336
1387
  type: {
1337
- name: "String"
1338
- }
1388
+ name: "String",
1389
+ },
1339
1390
  }, redisVersion: {
1340
1391
  serializedName: "properties.redisVersion",
1341
1392
  readOnly: true,
1342
1393
  type: {
1343
- name: "String"
1344
- }
1394
+ name: "String",
1395
+ },
1345
1396
  }, privateEndpointConnections: {
1346
1397
  serializedName: "properties.privateEndpointConnections",
1347
1398
  readOnly: true,
@@ -1350,12 +1401,12 @@ const Cluster = {
1350
1401
  element: {
1351
1402
  type: {
1352
1403
  name: "Composite",
1353
- className: "PrivateEndpointConnection"
1354
- }
1355
- }
1356
- }
1357
- } })
1358
- }
1404
+ className: "PrivateEndpointConnection",
1405
+ },
1406
+ },
1407
+ },
1408
+ } }),
1409
+ },
1359
1410
  };
1360
1411
  const Database = {
1361
1412
  type: {
@@ -1364,41 +1415,41 @@ const Database = {
1364
1415
  modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { clientProtocol: {
1365
1416
  serializedName: "properties.clientProtocol",
1366
1417
  type: {
1367
- name: "String"
1368
- }
1418
+ name: "String",
1419
+ },
1369
1420
  }, port: {
1370
1421
  serializedName: "properties.port",
1371
1422
  type: {
1372
- name: "Number"
1373
- }
1423
+ name: "Number",
1424
+ },
1374
1425
  }, provisioningState: {
1375
1426
  serializedName: "properties.provisioningState",
1376
1427
  readOnly: true,
1377
1428
  type: {
1378
- name: "String"
1379
- }
1429
+ name: "String",
1430
+ },
1380
1431
  }, resourceState: {
1381
1432
  serializedName: "properties.resourceState",
1382
1433
  readOnly: true,
1383
1434
  type: {
1384
- name: "String"
1385
- }
1435
+ name: "String",
1436
+ },
1386
1437
  }, clusteringPolicy: {
1387
1438
  serializedName: "properties.clusteringPolicy",
1388
1439
  type: {
1389
- name: "String"
1390
- }
1440
+ name: "String",
1441
+ },
1391
1442
  }, evictionPolicy: {
1392
1443
  serializedName: "properties.evictionPolicy",
1393
1444
  type: {
1394
- name: "String"
1395
- }
1445
+ name: "String",
1446
+ },
1396
1447
  }, persistence: {
1397
1448
  serializedName: "properties.persistence",
1398
1449
  type: {
1399
1450
  name: "Composite",
1400
- className: "Persistence"
1401
- }
1451
+ className: "Persistence",
1452
+ },
1402
1453
  }, modules: {
1403
1454
  serializedName: "properties.modules",
1404
1455
  type: {
@@ -1406,18 +1457,49 @@ const Database = {
1406
1457
  element: {
1407
1458
  type: {
1408
1459
  name: "Composite",
1409
- className: "Module"
1410
- }
1411
- }
1412
- }
1460
+ className: "Module",
1461
+ },
1462
+ },
1463
+ },
1413
1464
  }, geoReplication: {
1414
1465
  serializedName: "properties.geoReplication",
1415
1466
  type: {
1416
1467
  name: "Composite",
1417
- className: "DatabasePropertiesGeoReplication"
1418
- }
1419
- } })
1420
- }
1468
+ className: "DatabasePropertiesGeoReplication",
1469
+ },
1470
+ }, redisVersion: {
1471
+ serializedName: "properties.redisVersion",
1472
+ readOnly: true,
1473
+ type: {
1474
+ name: "String",
1475
+ },
1476
+ }, deferUpgrade: {
1477
+ serializedName: "properties.deferUpgrade",
1478
+ type: {
1479
+ name: "String",
1480
+ },
1481
+ } }),
1482
+ },
1483
+ };
1484
+ const DatabasesForceLinkToReplicationGroupHeaders = {
1485
+ type: {
1486
+ name: "Composite",
1487
+ className: "DatabasesForceLinkToReplicationGroupHeaders",
1488
+ modelProperties: {
1489
+ location: {
1490
+ serializedName: "location",
1491
+ type: {
1492
+ name: "String",
1493
+ },
1494
+ },
1495
+ azureAsyncOperation: {
1496
+ serializedName: "azure-asyncoperation",
1497
+ type: {
1498
+ name: "String",
1499
+ },
1500
+ },
1501
+ },
1502
+ },
1421
1503
  };
1422
1504
  const DatabasesFlushHeaders = {
1423
1505
  type: {
@@ -1427,17 +1509,37 @@ const DatabasesFlushHeaders = {
1427
1509
  location: {
1428
1510
  serializedName: "location",
1429
1511
  type: {
1430
- name: "String"
1431
- }
1512
+ name: "String",
1513
+ },
1432
1514
  },
1433
1515
  azureAsyncOperation: {
1434
1516
  serializedName: "azure-asyncoperation",
1435
1517
  type: {
1436
- name: "String"
1437
- }
1438
- }
1439
- }
1440
- }
1518
+ name: "String",
1519
+ },
1520
+ },
1521
+ },
1522
+ },
1523
+ };
1524
+ const DatabasesUpgradeDBRedisVersionHeaders = {
1525
+ type: {
1526
+ name: "Composite",
1527
+ className: "DatabasesUpgradeDBRedisVersionHeaders",
1528
+ modelProperties: {
1529
+ location: {
1530
+ serializedName: "location",
1531
+ type: {
1532
+ name: "String",
1533
+ },
1534
+ },
1535
+ azureAsyncOperation: {
1536
+ serializedName: "azure-asyncoperation",
1537
+ type: {
1538
+ name: "String",
1539
+ },
1540
+ },
1541
+ },
1542
+ },
1441
1543
  };
1442
1544
  const PrivateEndpointConnectionsDeleteHeaders = {
1443
1545
  type: {
@@ -1447,17 +1549,17 @@ const PrivateEndpointConnectionsDeleteHeaders = {
1447
1549
  location: {
1448
1550
  serializedName: "location",
1449
1551
  type: {
1450
- name: "String"
1451
- }
1552
+ name: "String",
1553
+ },
1452
1554
  },
1453
1555
  azureAsyncOperation: {
1454
1556
  serializedName: "azure-asyncoperation",
1455
1557
  type: {
1456
- name: "String"
1457
- }
1458
- }
1459
- }
1460
- }
1558
+ name: "String",
1559
+ },
1560
+ },
1561
+ },
1562
+ },
1461
1563
  };
1462
1564
 
1463
1565
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -1474,11 +1576,14 @@ var Mappers = /*#__PURE__*/Object.freeze({
1474
1576
  DatabasePropertiesGeoReplication: DatabasePropertiesGeoReplication,
1475
1577
  DatabaseUpdate: DatabaseUpdate,
1476
1578
  DatabasesFlushHeaders: DatabasesFlushHeaders,
1579
+ DatabasesForceLinkToReplicationGroupHeaders: DatabasesForceLinkToReplicationGroupHeaders,
1580
+ DatabasesUpgradeDBRedisVersionHeaders: DatabasesUpgradeDBRedisVersionHeaders,
1477
1581
  ErrorAdditionalInfo: ErrorAdditionalInfo,
1478
1582
  ErrorDetail: ErrorDetail,
1479
1583
  ErrorResponse: ErrorResponse,
1480
1584
  ExportClusterParameters: ExportClusterParameters,
1481
1585
  FlushParameters: FlushParameters,
1586
+ ForceLinkParameters: ForceLinkParameters,
1482
1587
  ForceUnlinkParameters: ForceUnlinkParameters,
1483
1588
  ImportClusterParameters: ImportClusterParameters,
1484
1589
  LinkedDatabase: LinkedDatabase,
@@ -1518,9 +1623,9 @@ const accept = {
1518
1623
  isConstant: true,
1519
1624
  serializedName: "Accept",
1520
1625
  type: {
1521
- name: "String"
1522
- }
1523
- }
1626
+ name: "String",
1627
+ },
1628
+ },
1524
1629
  };
1525
1630
  const $host = {
1526
1631
  parameterPath: "$host",
@@ -1528,21 +1633,21 @@ const $host = {
1528
1633
  serializedName: "$host",
1529
1634
  required: true,
1530
1635
  type: {
1531
- name: "String"
1532
- }
1636
+ name: "String",
1637
+ },
1533
1638
  },
1534
- skipEncoding: true
1639
+ skipEncoding: true,
1535
1640
  };
1536
1641
  const apiVersion = {
1537
1642
  parameterPath: "apiVersion",
1538
1643
  mapper: {
1539
- defaultValue: "2023-11-01",
1644
+ defaultValue: "2024-03-01-preview",
1540
1645
  isConstant: true,
1541
1646
  serializedName: "api-version",
1542
1647
  type: {
1543
- name: "String"
1544
- }
1545
- }
1648
+ name: "String",
1649
+ },
1650
+ },
1546
1651
  };
1547
1652
  const nextLink = {
1548
1653
  parameterPath: "nextLink",
@@ -1550,49 +1655,49 @@ const nextLink = {
1550
1655
  serializedName: "nextLink",
1551
1656
  required: true,
1552
1657
  type: {
1553
- name: "String"
1554
- }
1658
+ name: "String",
1659
+ },
1555
1660
  },
1556
- skipEncoding: true
1661
+ skipEncoding: true,
1557
1662
  };
1558
1663
  const location = {
1559
1664
  parameterPath: "location",
1560
1665
  mapper: {
1561
1666
  constraints: {
1562
- MinLength: 1
1667
+ MinLength: 1,
1563
1668
  },
1564
1669
  serializedName: "location",
1565
1670
  required: true,
1566
1671
  type: {
1567
- name: "String"
1568
- }
1569
- }
1672
+ name: "String",
1673
+ },
1674
+ },
1570
1675
  };
1571
1676
  const operationId = {
1572
1677
  parameterPath: "operationId",
1573
1678
  mapper: {
1574
1679
  constraints: {
1575
- MinLength: 1
1680
+ MinLength: 1,
1576
1681
  },
1577
1682
  serializedName: "operationId",
1578
1683
  required: true,
1579
1684
  type: {
1580
- name: "String"
1581
- }
1582
- }
1685
+ name: "String",
1686
+ },
1687
+ },
1583
1688
  };
1584
1689
  const subscriptionId = {
1585
1690
  parameterPath: "subscriptionId",
1586
1691
  mapper: {
1587
1692
  constraints: {
1588
- MinLength: 1
1693
+ MinLength: 1,
1589
1694
  },
1590
1695
  serializedName: "subscriptionId",
1591
1696
  required: true,
1592
1697
  type: {
1593
- name: "String"
1594
- }
1595
- }
1698
+ name: "String",
1699
+ },
1700
+ },
1596
1701
  };
1597
1702
  const contentType = {
1598
1703
  parameterPath: ["options", "contentType"],
@@ -1601,79 +1706,89 @@ const contentType = {
1601
1706
  isConstant: true,
1602
1707
  serializedName: "Content-Type",
1603
1708
  type: {
1604
- name: "String"
1605
- }
1606
- }
1709
+ name: "String",
1710
+ },
1711
+ },
1607
1712
  };
1608
1713
  const parameters = {
1609
1714
  parameterPath: "parameters",
1610
- mapper: Cluster
1715
+ mapper: Cluster,
1611
1716
  };
1612
1717
  const resourceGroupName = {
1613
1718
  parameterPath: "resourceGroupName",
1614
1719
  mapper: {
1615
1720
  constraints: {
1616
1721
  MaxLength: 90,
1617
- MinLength: 1
1722
+ MinLength: 1,
1618
1723
  },
1619
1724
  serializedName: "resourceGroupName",
1620
1725
  required: true,
1621
1726
  type: {
1622
- name: "String"
1623
- }
1624
- }
1727
+ name: "String",
1728
+ },
1729
+ },
1625
1730
  };
1626
1731
  const clusterName = {
1627
1732
  parameterPath: "clusterName",
1628
1733
  mapper: {
1734
+ constraints: {
1735
+ Pattern: new RegExp("^[A-Za-z0-9]{1,60}$"),
1736
+ },
1629
1737
  serializedName: "clusterName",
1630
1738
  required: true,
1631
1739
  type: {
1632
- name: "String"
1633
- }
1634
- }
1740
+ name: "String",
1741
+ },
1742
+ },
1635
1743
  };
1636
1744
  const parameters1 = {
1637
1745
  parameterPath: "parameters",
1638
- mapper: ClusterUpdate
1746
+ mapper: ClusterUpdate,
1639
1747
  };
1640
1748
  const parameters2 = {
1641
1749
  parameterPath: "parameters",
1642
- mapper: Database
1750
+ mapper: Database,
1643
1751
  };
1644
1752
  const databaseName = {
1645
1753
  parameterPath: "databaseName",
1646
1754
  mapper: {
1755
+ constraints: {
1756
+ Pattern: new RegExp("^[A-Za-z0-9]{1,60}$"),
1757
+ },
1647
1758
  serializedName: "databaseName",
1648
1759
  required: true,
1649
1760
  type: {
1650
- name: "String"
1651
- }
1652
- }
1761
+ name: "String",
1762
+ },
1763
+ },
1653
1764
  };
1654
1765
  const parameters3 = {
1655
1766
  parameterPath: "parameters",
1656
- mapper: DatabaseUpdate
1767
+ mapper: DatabaseUpdate,
1657
1768
  };
1658
1769
  const parameters4 = {
1659
1770
  parameterPath: "parameters",
1660
- mapper: RegenerateKeyParameters
1771
+ mapper: RegenerateKeyParameters,
1661
1772
  };
1662
1773
  const parameters5 = {
1663
1774
  parameterPath: "parameters",
1664
- mapper: ImportClusterParameters
1775
+ mapper: ImportClusterParameters,
1665
1776
  };
1666
1777
  const parameters6 = {
1667
1778
  parameterPath: "parameters",
1668
- mapper: ExportClusterParameters
1779
+ mapper: ExportClusterParameters,
1669
1780
  };
1670
1781
  const parameters7 = {
1671
1782
  parameterPath: "parameters",
1672
- mapper: ForceUnlinkParameters
1783
+ mapper: ForceUnlinkParameters,
1673
1784
  };
1674
1785
  const parameters8 = {
1675
1786
  parameterPath: "parameters",
1676
- mapper: FlushParameters
1787
+ mapper: ForceLinkParameters,
1788
+ };
1789
+ const parameters9 = {
1790
+ parameterPath: "parameters",
1791
+ mapper: FlushParameters,
1677
1792
  };
1678
1793
  const privateEndpointConnectionName = {
1679
1794
  parameterPath: "privateEndpointConnectionName",
@@ -1681,13 +1796,13 @@ const privateEndpointConnectionName = {
1681
1796
  serializedName: "privateEndpointConnectionName",
1682
1797
  required: true,
1683
1798
  type: {
1684
- name: "String"
1685
- }
1686
- }
1799
+ name: "String",
1800
+ },
1801
+ },
1687
1802
  };
1688
1803
  const properties = {
1689
1804
  parameterPath: "properties",
1690
- mapper: PrivateEndpointConnection
1805
+ mapper: PrivateEndpointConnection,
1691
1806
  };
1692
1807
 
1693
1808
  /*
@@ -1725,7 +1840,7 @@ class OperationsImpl {
1725
1840
  throw new Error("maxPageSize is not supported by this operation.");
1726
1841
  }
1727
1842
  return this.listPagingPage(options, settings);
1728
- }
1843
+ },
1729
1844
  };
1730
1845
  }
1731
1846
  listPagingPage(options, settings) {
@@ -1791,31 +1906,31 @@ const listOperationSpec$2 = {
1791
1906
  httpMethod: "GET",
1792
1907
  responses: {
1793
1908
  200: {
1794
- bodyMapper: OperationListResult
1909
+ bodyMapper: OperationListResult,
1795
1910
  },
1796
1911
  default: {
1797
- bodyMapper: ErrorResponse
1798
- }
1912
+ bodyMapper: ErrorResponse,
1913
+ },
1799
1914
  },
1800
1915
  queryParameters: [apiVersion],
1801
1916
  urlParameters: [$host],
1802
1917
  headerParameters: [accept],
1803
- serializer: serializer$5
1918
+ serializer: serializer$5,
1804
1919
  };
1805
1920
  const listNextOperationSpec$1 = {
1806
1921
  path: "{nextLink}",
1807
1922
  httpMethod: "GET",
1808
1923
  responses: {
1809
1924
  200: {
1810
- bodyMapper: OperationListResult
1925
+ bodyMapper: OperationListResult,
1811
1926
  },
1812
1927
  default: {
1813
- bodyMapper: ErrorResponse
1814
- }
1928
+ bodyMapper: ErrorResponse,
1929
+ },
1815
1930
  },
1816
1931
  urlParameters: [$host, nextLink],
1817
1932
  headerParameters: [accept],
1818
- serializer: serializer$5
1933
+ serializer: serializer$5,
1819
1934
  };
1820
1935
 
1821
1936
  /*
@@ -1851,21 +1966,21 @@ const getOperationSpec$3 = {
1851
1966
  httpMethod: "GET",
1852
1967
  responses: {
1853
1968
  200: {
1854
- bodyMapper: OperationStatus
1969
+ bodyMapper: OperationStatus,
1855
1970
  },
1856
1971
  default: {
1857
- bodyMapper: ErrorResponse
1858
- }
1972
+ bodyMapper: ErrorResponse,
1973
+ },
1859
1974
  },
1860
1975
  queryParameters: [apiVersion],
1861
1976
  urlParameters: [
1862
1977
  $host,
1863
1978
  location,
1864
1979
  operationId,
1865
- subscriptionId
1980
+ subscriptionId,
1866
1981
  ],
1867
1982
  headerParameters: [accept],
1868
- serializer: serializer$4
1983
+ serializer: serializer$4,
1869
1984
  };
1870
1985
 
1871
1986
  /*
@@ -1884,7 +1999,7 @@ function createLroSpec(inputs) {
1884
1999
  sendPollRequest: (path, options) => {
1885
2000
  const restSpec = tslib.__rest(spec, ["requestBody"]);
1886
2001
  return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1887
- }
2002
+ },
1888
2003
  };
1889
2004
  }
1890
2005
 
@@ -1924,7 +2039,7 @@ class RedisEnterpriseImpl {
1924
2039
  throw new Error("maxPageSize is not supported by this operation.");
1925
2040
  }
1926
2041
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1927
- }
2042
+ },
1928
2043
  };
1929
2044
  }
1930
2045
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
@@ -1985,7 +2100,7 @@ class RedisEnterpriseImpl {
1985
2100
  throw new Error("maxPageSize is not supported by this operation.");
1986
2101
  }
1987
2102
  return this.listPagingPage(options, settings);
1988
- }
2103
+ },
1989
2104
  };
1990
2105
  }
1991
2106
  listPagingPage(options, settings) {
@@ -2031,7 +2146,7 @@ class RedisEnterpriseImpl {
2031
2146
  /**
2032
2147
  * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
2033
2148
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2034
- * @param clusterName The name of the RedisEnterprise cluster.
2149
+ * @param clusterName The name of the Redis Enterprise cluster.
2035
2150
  * @param parameters Parameters supplied to the Create RedisEnterprise operation.
2036
2151
  * @param options The options parameters.
2037
2152
  */
@@ -2055,19 +2170,19 @@ class RedisEnterpriseImpl {
2055
2170
  rawResponse: {
2056
2171
  statusCode: currentRawResponse.status,
2057
2172
  body: currentRawResponse.parsedBody,
2058
- headers: currentRawResponse.headers.toJSON()
2059
- }
2173
+ headers: currentRawResponse.headers.toJSON(),
2174
+ },
2060
2175
  };
2061
2176
  });
2062
2177
  const lro = createLroSpec({
2063
2178
  sendOperationFn,
2064
2179
  args: { resourceGroupName, clusterName, parameters, options },
2065
- spec: createOperationSpec$1
2180
+ spec: createOperationSpec$1,
2066
2181
  });
2067
2182
  const poller = yield coreLro.createHttpPoller(lro, {
2068
2183
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2069
2184
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2070
- resourceLocationConfig: "original-uri"
2185
+ resourceLocationConfig: "original-uri",
2071
2186
  });
2072
2187
  yield poller.poll();
2073
2188
  return poller;
@@ -2076,7 +2191,7 @@ class RedisEnterpriseImpl {
2076
2191
  /**
2077
2192
  * Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
2078
2193
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2079
- * @param clusterName The name of the RedisEnterprise cluster.
2194
+ * @param clusterName The name of the Redis Enterprise cluster.
2080
2195
  * @param parameters Parameters supplied to the Create RedisEnterprise operation.
2081
2196
  * @param options The options parameters.
2082
2197
  */
@@ -2089,7 +2204,7 @@ class RedisEnterpriseImpl {
2089
2204
  /**
2090
2205
  * Updates an existing RedisEnterprise cluster
2091
2206
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2092
- * @param clusterName The name of the RedisEnterprise cluster.
2207
+ * @param clusterName The name of the Redis Enterprise cluster.
2093
2208
  * @param parameters Parameters supplied to the Update RedisEnterprise operation.
2094
2209
  * @param options The options parameters.
2095
2210
  */
@@ -2113,19 +2228,19 @@ class RedisEnterpriseImpl {
2113
2228
  rawResponse: {
2114
2229
  statusCode: currentRawResponse.status,
2115
2230
  body: currentRawResponse.parsedBody,
2116
- headers: currentRawResponse.headers.toJSON()
2117
- }
2231
+ headers: currentRawResponse.headers.toJSON(),
2232
+ },
2118
2233
  };
2119
2234
  });
2120
2235
  const lro = createLroSpec({
2121
2236
  sendOperationFn,
2122
2237
  args: { resourceGroupName, clusterName, parameters, options },
2123
- spec: updateOperationSpec$1
2238
+ spec: updateOperationSpec$1,
2124
2239
  });
2125
2240
  const poller = yield coreLro.createHttpPoller(lro, {
2126
2241
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2127
2242
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2128
- resourceLocationConfig: "azure-async-operation"
2243
+ resourceLocationConfig: "azure-async-operation",
2129
2244
  });
2130
2245
  yield poller.poll();
2131
2246
  return poller;
@@ -2134,7 +2249,7 @@ class RedisEnterpriseImpl {
2134
2249
  /**
2135
2250
  * Updates an existing RedisEnterprise cluster
2136
2251
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2137
- * @param clusterName The name of the RedisEnterprise cluster.
2252
+ * @param clusterName The name of the Redis Enterprise cluster.
2138
2253
  * @param parameters Parameters supplied to the Update RedisEnterprise operation.
2139
2254
  * @param options The options parameters.
2140
2255
  */
@@ -2147,7 +2262,7 @@ class RedisEnterpriseImpl {
2147
2262
  /**
2148
2263
  * Deletes a RedisEnterprise cache cluster.
2149
2264
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2150
- * @param clusterName The name of the RedisEnterprise cluster.
2265
+ * @param clusterName The name of the Redis Enterprise cluster.
2151
2266
  * @param options The options parameters.
2152
2267
  */
2153
2268
  beginDelete(resourceGroupName, clusterName, options) {
@@ -2170,19 +2285,19 @@ class RedisEnterpriseImpl {
2170
2285
  rawResponse: {
2171
2286
  statusCode: currentRawResponse.status,
2172
2287
  body: currentRawResponse.parsedBody,
2173
- headers: currentRawResponse.headers.toJSON()
2174
- }
2288
+ headers: currentRawResponse.headers.toJSON(),
2289
+ },
2175
2290
  };
2176
2291
  });
2177
2292
  const lro = createLroSpec({
2178
2293
  sendOperationFn,
2179
2294
  args: { resourceGroupName, clusterName, options },
2180
- spec: deleteOperationSpec$2
2295
+ spec: deleteOperationSpec$2,
2181
2296
  });
2182
2297
  const poller = yield coreLro.createHttpPoller(lro, {
2183
2298
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2184
2299
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2185
- resourceLocationConfig: "azure-async-operation"
2300
+ resourceLocationConfig: "azure-async-operation",
2186
2301
  });
2187
2302
  yield poller.poll();
2188
2303
  return poller;
@@ -2191,7 +2306,7 @@ class RedisEnterpriseImpl {
2191
2306
  /**
2192
2307
  * Deletes a RedisEnterprise cache cluster.
2193
2308
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2194
- * @param clusterName The name of the RedisEnterprise cluster.
2309
+ * @param clusterName The name of the Redis Enterprise cluster.
2195
2310
  * @param options The options parameters.
2196
2311
  */
2197
2312
  beginDeleteAndWait(resourceGroupName, clusterName, options) {
@@ -2203,7 +2318,7 @@ class RedisEnterpriseImpl {
2203
2318
  /**
2204
2319
  * Gets information about a RedisEnterprise cluster
2205
2320
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2206
- * @param clusterName The name of the RedisEnterprise cluster.
2321
+ * @param clusterName The name of the Redis Enterprise cluster.
2207
2322
  * @param options The options parameters.
2208
2323
  */
2209
2324
  get(resourceGroupName, clusterName, options) {
@@ -2249,20 +2364,20 @@ const createOperationSpec$1 = {
2249
2364
  httpMethod: "PUT",
2250
2365
  responses: {
2251
2366
  200: {
2252
- bodyMapper: Cluster
2367
+ bodyMapper: Cluster,
2253
2368
  },
2254
2369
  201: {
2255
- bodyMapper: Cluster
2370
+ bodyMapper: Cluster,
2256
2371
  },
2257
2372
  202: {
2258
- bodyMapper: Cluster
2373
+ bodyMapper: Cluster,
2259
2374
  },
2260
2375
  204: {
2261
- bodyMapper: Cluster
2376
+ bodyMapper: Cluster,
2262
2377
  },
2263
2378
  default: {
2264
- bodyMapper: ErrorResponse
2265
- }
2379
+ bodyMapper: ErrorResponse,
2380
+ },
2266
2381
  },
2267
2382
  requestBody: parameters,
2268
2383
  queryParameters: [apiVersion],
@@ -2270,31 +2385,31 @@ const createOperationSpec$1 = {
2270
2385
  $host,
2271
2386
  subscriptionId,
2272
2387
  resourceGroupName,
2273
- clusterName
2388
+ clusterName,
2274
2389
  ],
2275
2390
  headerParameters: [accept, contentType],
2276
2391
  mediaType: "json",
2277
- serializer: serializer$3
2392
+ serializer: serializer$3,
2278
2393
  };
2279
2394
  const updateOperationSpec$1 = {
2280
2395
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
2281
2396
  httpMethod: "PATCH",
2282
2397
  responses: {
2283
2398
  200: {
2284
- bodyMapper: Cluster
2399
+ bodyMapper: Cluster,
2285
2400
  },
2286
2401
  201: {
2287
- bodyMapper: Cluster
2402
+ bodyMapper: Cluster,
2288
2403
  },
2289
2404
  202: {
2290
- bodyMapper: Cluster
2405
+ bodyMapper: Cluster,
2291
2406
  },
2292
2407
  204: {
2293
- bodyMapper: Cluster
2408
+ bodyMapper: Cluster,
2294
2409
  },
2295
2410
  default: {
2296
- bodyMapper: ErrorResponse
2297
- }
2411
+ bodyMapper: ErrorResponse,
2412
+ },
2298
2413
  },
2299
2414
  requestBody: parameters1,
2300
2415
  queryParameters: [apiVersion],
@@ -2302,11 +2417,11 @@ const updateOperationSpec$1 = {
2302
2417
  $host,
2303
2418
  subscriptionId,
2304
2419
  resourceGroupName,
2305
- clusterName
2420
+ clusterName,
2306
2421
  ],
2307
2422
  headerParameters: [accept, contentType],
2308
2423
  mediaType: "json",
2309
- serializer: serializer$3
2424
+ serializer: serializer$3,
2310
2425
  };
2311
2426
  const deleteOperationSpec$2 = {
2312
2427
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
@@ -2317,114 +2432,114 @@ const deleteOperationSpec$2 = {
2317
2432
  202: {},
2318
2433
  204: {},
2319
2434
  default: {
2320
- bodyMapper: ErrorResponse
2321
- }
2435
+ bodyMapper: ErrorResponse,
2436
+ },
2322
2437
  },
2323
2438
  queryParameters: [apiVersion],
2324
2439
  urlParameters: [
2325
2440
  $host,
2326
2441
  subscriptionId,
2327
2442
  resourceGroupName,
2328
- clusterName
2443
+ clusterName,
2329
2444
  ],
2330
2445
  headerParameters: [accept],
2331
- serializer: serializer$3
2446
+ serializer: serializer$3,
2332
2447
  };
2333
2448
  const getOperationSpec$2 = {
2334
2449
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
2335
2450
  httpMethod: "GET",
2336
2451
  responses: {
2337
2452
  200: {
2338
- bodyMapper: Cluster
2453
+ bodyMapper: Cluster,
2339
2454
  },
2340
2455
  default: {
2341
- bodyMapper: ErrorResponse
2342
- }
2456
+ bodyMapper: ErrorResponse,
2457
+ },
2343
2458
  },
2344
2459
  queryParameters: [apiVersion],
2345
2460
  urlParameters: [
2346
2461
  $host,
2347
2462
  subscriptionId,
2348
2463
  resourceGroupName,
2349
- clusterName
2464
+ clusterName,
2350
2465
  ],
2351
2466
  headerParameters: [accept],
2352
- serializer: serializer$3
2467
+ serializer: serializer$3,
2353
2468
  };
2354
2469
  const listByResourceGroupOperationSpec = {
2355
2470
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
2356
2471
  httpMethod: "GET",
2357
2472
  responses: {
2358
2473
  200: {
2359
- bodyMapper: ClusterList
2474
+ bodyMapper: ClusterList,
2360
2475
  },
2361
2476
  default: {
2362
- bodyMapper: ErrorResponse
2363
- }
2477
+ bodyMapper: ErrorResponse,
2478
+ },
2364
2479
  },
2365
2480
  queryParameters: [apiVersion],
2366
2481
  urlParameters: [
2367
2482
  $host,
2368
2483
  subscriptionId,
2369
- resourceGroupName
2484
+ resourceGroupName,
2370
2485
  ],
2371
2486
  headerParameters: [accept],
2372
- serializer: serializer$3
2487
+ serializer: serializer$3,
2373
2488
  };
2374
2489
  const listOperationSpec$1 = {
2375
2490
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
2376
2491
  httpMethod: "GET",
2377
2492
  responses: {
2378
2493
  200: {
2379
- bodyMapper: ClusterList
2494
+ bodyMapper: ClusterList,
2380
2495
  },
2381
2496
  default: {
2382
- bodyMapper: ErrorResponse
2383
- }
2497
+ bodyMapper: ErrorResponse,
2498
+ },
2384
2499
  },
2385
2500
  queryParameters: [apiVersion],
2386
2501
  urlParameters: [$host, subscriptionId],
2387
2502
  headerParameters: [accept],
2388
- serializer: serializer$3
2503
+ serializer: serializer$3,
2389
2504
  };
2390
2505
  const listByResourceGroupNextOperationSpec = {
2391
2506
  path: "{nextLink}",
2392
2507
  httpMethod: "GET",
2393
2508
  responses: {
2394
2509
  200: {
2395
- bodyMapper: ClusterList
2510
+ bodyMapper: ClusterList,
2396
2511
  },
2397
2512
  default: {
2398
- bodyMapper: ErrorResponse
2399
- }
2513
+ bodyMapper: ErrorResponse,
2514
+ },
2400
2515
  },
2401
2516
  urlParameters: [
2402
2517
  $host,
2403
2518
  nextLink,
2404
2519
  subscriptionId,
2405
- resourceGroupName
2520
+ resourceGroupName,
2406
2521
  ],
2407
2522
  headerParameters: [accept],
2408
- serializer: serializer$3
2523
+ serializer: serializer$3,
2409
2524
  };
2410
2525
  const listNextOperationSpec = {
2411
2526
  path: "{nextLink}",
2412
2527
  httpMethod: "GET",
2413
2528
  responses: {
2414
2529
  200: {
2415
- bodyMapper: ClusterList
2530
+ bodyMapper: ClusterList,
2416
2531
  },
2417
2532
  default: {
2418
- bodyMapper: ErrorResponse
2419
- }
2533
+ bodyMapper: ErrorResponse,
2534
+ },
2420
2535
  },
2421
2536
  urlParameters: [
2422
2537
  $host,
2423
2538
  nextLink,
2424
- subscriptionId
2539
+ subscriptionId,
2425
2540
  ],
2426
2541
  headerParameters: [accept],
2427
- serializer: serializer$3
2542
+ serializer: serializer$3,
2428
2543
  };
2429
2544
 
2430
2545
  /*
@@ -2447,7 +2562,7 @@ class DatabasesImpl {
2447
2562
  /**
2448
2563
  * Gets all databases in the specified RedisEnterprise cluster.
2449
2564
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2450
- * @param clusterName The name of the RedisEnterprise cluster.
2565
+ * @param clusterName The name of the Redis Enterprise cluster.
2451
2566
  * @param options The options parameters.
2452
2567
  */
2453
2568
  listByCluster(resourceGroupName, clusterName, options) {
@@ -2464,7 +2579,7 @@ class DatabasesImpl {
2464
2579
  throw new Error("maxPageSize is not supported by this operation.");
2465
2580
  }
2466
2581
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
2467
- }
2582
+ },
2468
2583
  };
2469
2584
  }
2470
2585
  listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
@@ -2510,7 +2625,7 @@ class DatabasesImpl {
2510
2625
  /**
2511
2626
  * Gets all databases in the specified RedisEnterprise cluster.
2512
2627
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2513
- * @param clusterName The name of the RedisEnterprise cluster.
2628
+ * @param clusterName The name of the Redis Enterprise cluster.
2514
2629
  * @param options The options parameters.
2515
2630
  */
2516
2631
  _listByCluster(resourceGroupName, clusterName, options) {
@@ -2519,8 +2634,8 @@ class DatabasesImpl {
2519
2634
  /**
2520
2635
  * Creates a database
2521
2636
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2522
- * @param clusterName The name of the RedisEnterprise cluster.
2523
- * @param databaseName The name of the database.
2637
+ * @param clusterName The name of the Redis Enterprise cluster.
2638
+ * @param databaseName The name of the Redis Enterprise database.
2524
2639
  * @param parameters Parameters supplied to the create or update database operation.
2525
2640
  * @param options The options parameters.
2526
2641
  */
@@ -2544,8 +2659,8 @@ class DatabasesImpl {
2544
2659
  rawResponse: {
2545
2660
  statusCode: currentRawResponse.status,
2546
2661
  body: currentRawResponse.parsedBody,
2547
- headers: currentRawResponse.headers.toJSON()
2548
- }
2662
+ headers: currentRawResponse.headers.toJSON(),
2663
+ },
2549
2664
  };
2550
2665
  });
2551
2666
  const lro = createLroSpec({
@@ -2555,14 +2670,14 @@ class DatabasesImpl {
2555
2670
  clusterName,
2556
2671
  databaseName,
2557
2672
  parameters,
2558
- options
2673
+ options,
2559
2674
  },
2560
- spec: createOperationSpec
2675
+ spec: createOperationSpec,
2561
2676
  });
2562
2677
  const poller = yield coreLro.createHttpPoller(lro, {
2563
2678
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2564
2679
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2565
- resourceLocationConfig: "original-uri"
2680
+ resourceLocationConfig: "original-uri",
2566
2681
  });
2567
2682
  yield poller.poll();
2568
2683
  return poller;
@@ -2571,8 +2686,8 @@ class DatabasesImpl {
2571
2686
  /**
2572
2687
  * Creates a database
2573
2688
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2574
- * @param clusterName The name of the RedisEnterprise cluster.
2575
- * @param databaseName The name of the database.
2689
+ * @param clusterName The name of the Redis Enterprise cluster.
2690
+ * @param databaseName The name of the Redis Enterprise database.
2576
2691
  * @param parameters Parameters supplied to the create or update database operation.
2577
2692
  * @param options The options parameters.
2578
2693
  */
@@ -2585,8 +2700,8 @@ class DatabasesImpl {
2585
2700
  /**
2586
2701
  * Updates a database
2587
2702
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2588
- * @param clusterName The name of the RedisEnterprise cluster.
2589
- * @param databaseName The name of the database.
2703
+ * @param clusterName The name of the Redis Enterprise cluster.
2704
+ * @param databaseName The name of the Redis Enterprise database.
2590
2705
  * @param parameters Parameters supplied to the create or update database operation.
2591
2706
  * @param options The options parameters.
2592
2707
  */
@@ -2610,8 +2725,8 @@ class DatabasesImpl {
2610
2725
  rawResponse: {
2611
2726
  statusCode: currentRawResponse.status,
2612
2727
  body: currentRawResponse.parsedBody,
2613
- headers: currentRawResponse.headers.toJSON()
2614
- }
2728
+ headers: currentRawResponse.headers.toJSON(),
2729
+ },
2615
2730
  };
2616
2731
  });
2617
2732
  const lro = createLroSpec({
@@ -2621,14 +2736,14 @@ class DatabasesImpl {
2621
2736
  clusterName,
2622
2737
  databaseName,
2623
2738
  parameters,
2624
- options
2739
+ options,
2625
2740
  },
2626
- spec: updateOperationSpec
2741
+ spec: updateOperationSpec,
2627
2742
  });
2628
2743
  const poller = yield coreLro.createHttpPoller(lro, {
2629
2744
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2630
2745
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2631
- resourceLocationConfig: "azure-async-operation"
2746
+ resourceLocationConfig: "azure-async-operation",
2632
2747
  });
2633
2748
  yield poller.poll();
2634
2749
  return poller;
@@ -2637,8 +2752,8 @@ class DatabasesImpl {
2637
2752
  /**
2638
2753
  * Updates a database
2639
2754
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2640
- * @param clusterName The name of the RedisEnterprise cluster.
2641
- * @param databaseName The name of the database.
2755
+ * @param clusterName The name of the Redis Enterprise cluster.
2756
+ * @param databaseName The name of the Redis Enterprise database.
2642
2757
  * @param parameters Parameters supplied to the create or update database operation.
2643
2758
  * @param options The options parameters.
2644
2759
  */
@@ -2651,8 +2766,8 @@ class DatabasesImpl {
2651
2766
  /**
2652
2767
  * Gets information about a database in a RedisEnterprise cluster.
2653
2768
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2654
- * @param clusterName The name of the RedisEnterprise cluster.
2655
- * @param databaseName The name of the database.
2769
+ * @param clusterName The name of the Redis Enterprise cluster.
2770
+ * @param databaseName The name of the Redis Enterprise database.
2656
2771
  * @param options The options parameters.
2657
2772
  */
2658
2773
  get(resourceGroupName, clusterName, databaseName, options) {
@@ -2661,8 +2776,8 @@ class DatabasesImpl {
2661
2776
  /**
2662
2777
  * Deletes a single database
2663
2778
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2664
- * @param clusterName The name of the RedisEnterprise cluster.
2665
- * @param databaseName The name of the database.
2779
+ * @param clusterName The name of the Redis Enterprise cluster.
2780
+ * @param databaseName The name of the Redis Enterprise database.
2666
2781
  * @param options The options parameters.
2667
2782
  */
2668
2783
  beginDelete(resourceGroupName, clusterName, databaseName, options) {
@@ -2685,19 +2800,19 @@ class DatabasesImpl {
2685
2800
  rawResponse: {
2686
2801
  statusCode: currentRawResponse.status,
2687
2802
  body: currentRawResponse.parsedBody,
2688
- headers: currentRawResponse.headers.toJSON()
2689
- }
2803
+ headers: currentRawResponse.headers.toJSON(),
2804
+ },
2690
2805
  };
2691
2806
  });
2692
2807
  const lro = createLroSpec({
2693
2808
  sendOperationFn,
2694
2809
  args: { resourceGroupName, clusterName, databaseName, options },
2695
- spec: deleteOperationSpec$1
2810
+ spec: deleteOperationSpec$1,
2696
2811
  });
2697
2812
  const poller = yield coreLro.createHttpPoller(lro, {
2698
2813
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2699
2814
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2700
- resourceLocationConfig: "azure-async-operation"
2815
+ resourceLocationConfig: "azure-async-operation",
2701
2816
  });
2702
2817
  yield poller.poll();
2703
2818
  return poller;
@@ -2706,8 +2821,8 @@ class DatabasesImpl {
2706
2821
  /**
2707
2822
  * Deletes a single database
2708
2823
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2709
- * @param clusterName The name of the RedisEnterprise cluster.
2710
- * @param databaseName The name of the database.
2824
+ * @param clusterName The name of the Redis Enterprise cluster.
2825
+ * @param databaseName The name of the Redis Enterprise database.
2711
2826
  * @param options The options parameters.
2712
2827
  */
2713
2828
  beginDeleteAndWait(resourceGroupName, clusterName, databaseName, options) {
@@ -2719,8 +2834,8 @@ class DatabasesImpl {
2719
2834
  /**
2720
2835
  * Retrieves the access keys for the RedisEnterprise database.
2721
2836
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2722
- * @param clusterName The name of the RedisEnterprise cluster.
2723
- * @param databaseName The name of the database.
2837
+ * @param clusterName The name of the Redis Enterprise cluster.
2838
+ * @param databaseName The name of the Redis Enterprise database.
2724
2839
  * @param options The options parameters.
2725
2840
  */
2726
2841
  listKeys(resourceGroupName, clusterName, databaseName, options) {
@@ -2729,8 +2844,8 @@ class DatabasesImpl {
2729
2844
  /**
2730
2845
  * Regenerates the RedisEnterprise database's access keys.
2731
2846
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2732
- * @param clusterName The name of the RedisEnterprise cluster.
2733
- * @param databaseName The name of the database.
2847
+ * @param clusterName The name of the Redis Enterprise cluster.
2848
+ * @param databaseName The name of the Redis Enterprise database.
2734
2849
  * @param parameters Specifies which key to regenerate.
2735
2850
  * @param options The options parameters.
2736
2851
  */
@@ -2754,8 +2869,8 @@ class DatabasesImpl {
2754
2869
  rawResponse: {
2755
2870
  statusCode: currentRawResponse.status,
2756
2871
  body: currentRawResponse.parsedBody,
2757
- headers: currentRawResponse.headers.toJSON()
2758
- }
2872
+ headers: currentRawResponse.headers.toJSON(),
2873
+ },
2759
2874
  };
2760
2875
  });
2761
2876
  const lro = createLroSpec({
@@ -2765,14 +2880,14 @@ class DatabasesImpl {
2765
2880
  clusterName,
2766
2881
  databaseName,
2767
2882
  parameters,
2768
- options
2883
+ options,
2769
2884
  },
2770
- spec: regenerateKeyOperationSpec
2885
+ spec: regenerateKeyOperationSpec,
2771
2886
  });
2772
2887
  const poller = yield coreLro.createHttpPoller(lro, {
2773
2888
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2774
2889
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2775
- resourceLocationConfig: "azure-async-operation"
2890
+ resourceLocationConfig: "azure-async-operation",
2776
2891
  });
2777
2892
  yield poller.poll();
2778
2893
  return poller;
@@ -2781,8 +2896,8 @@ class DatabasesImpl {
2781
2896
  /**
2782
2897
  * Regenerates the RedisEnterprise database's access keys.
2783
2898
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2784
- * @param clusterName The name of the RedisEnterprise cluster.
2785
- * @param databaseName The name of the database.
2899
+ * @param clusterName The name of the Redis Enterprise cluster.
2900
+ * @param databaseName The name of the Redis Enterprise database.
2786
2901
  * @param parameters Specifies which key to regenerate.
2787
2902
  * @param options The options parameters.
2788
2903
  */
@@ -2795,8 +2910,8 @@ class DatabasesImpl {
2795
2910
  /**
2796
2911
  * Imports database files to target database.
2797
2912
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2798
- * @param clusterName The name of the RedisEnterprise cluster.
2799
- * @param databaseName The name of the database.
2913
+ * @param clusterName The name of the Redis Enterprise cluster.
2914
+ * @param databaseName The name of the Redis Enterprise database.
2800
2915
  * @param parameters Storage information for importing into the cluster
2801
2916
  * @param options The options parameters.
2802
2917
  */
@@ -2820,8 +2935,8 @@ class DatabasesImpl {
2820
2935
  rawResponse: {
2821
2936
  statusCode: currentRawResponse.status,
2822
2937
  body: currentRawResponse.parsedBody,
2823
- headers: currentRawResponse.headers.toJSON()
2824
- }
2938
+ headers: currentRawResponse.headers.toJSON(),
2939
+ },
2825
2940
  };
2826
2941
  });
2827
2942
  const lro = createLroSpec({
@@ -2831,14 +2946,14 @@ class DatabasesImpl {
2831
2946
  clusterName,
2832
2947
  databaseName,
2833
2948
  parameters,
2834
- options
2949
+ options,
2835
2950
  },
2836
- spec: importOperationSpec
2951
+ spec: importOperationSpec,
2837
2952
  });
2838
2953
  const poller = yield coreLro.createHttpPoller(lro, {
2839
2954
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2840
2955
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2841
- resourceLocationConfig: "azure-async-operation"
2956
+ resourceLocationConfig: "azure-async-operation",
2842
2957
  });
2843
2958
  yield poller.poll();
2844
2959
  return poller;
@@ -2847,8 +2962,8 @@ class DatabasesImpl {
2847
2962
  /**
2848
2963
  * Imports database files to target database.
2849
2964
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2850
- * @param clusterName The name of the RedisEnterprise cluster.
2851
- * @param databaseName The name of the database.
2965
+ * @param clusterName The name of the Redis Enterprise cluster.
2966
+ * @param databaseName The name of the Redis Enterprise database.
2852
2967
  * @param parameters Storage information for importing into the cluster
2853
2968
  * @param options The options parameters.
2854
2969
  */
@@ -2861,8 +2976,8 @@ class DatabasesImpl {
2861
2976
  /**
2862
2977
  * Exports a database file from target database.
2863
2978
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2864
- * @param clusterName The name of the RedisEnterprise cluster.
2865
- * @param databaseName The name of the database.
2979
+ * @param clusterName The name of the Redis Enterprise cluster.
2980
+ * @param databaseName The name of the Redis Enterprise database.
2866
2981
  * @param parameters Storage information for exporting into the cluster
2867
2982
  * @param options The options parameters.
2868
2983
  */
@@ -2886,8 +3001,8 @@ class DatabasesImpl {
2886
3001
  rawResponse: {
2887
3002
  statusCode: currentRawResponse.status,
2888
3003
  body: currentRawResponse.parsedBody,
2889
- headers: currentRawResponse.headers.toJSON()
2890
- }
3004
+ headers: currentRawResponse.headers.toJSON(),
3005
+ },
2891
3006
  };
2892
3007
  });
2893
3008
  const lro = createLroSpec({
@@ -2897,14 +3012,14 @@ class DatabasesImpl {
2897
3012
  clusterName,
2898
3013
  databaseName,
2899
3014
  parameters,
2900
- options
3015
+ options,
2901
3016
  },
2902
- spec: exportOperationSpec
3017
+ spec: exportOperationSpec,
2903
3018
  });
2904
3019
  const poller = yield coreLro.createHttpPoller(lro, {
2905
3020
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2906
3021
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2907
- resourceLocationConfig: "azure-async-operation"
3022
+ resourceLocationConfig: "azure-async-operation",
2908
3023
  });
2909
3024
  yield poller.poll();
2910
3025
  return poller;
@@ -2913,8 +3028,8 @@ class DatabasesImpl {
2913
3028
  /**
2914
3029
  * Exports a database file from target database.
2915
3030
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2916
- * @param clusterName The name of the RedisEnterprise cluster.
2917
- * @param databaseName The name of the database.
3031
+ * @param clusterName The name of the Redis Enterprise cluster.
3032
+ * @param databaseName The name of the Redis Enterprise database.
2918
3033
  * @param parameters Storage information for exporting into the cluster
2919
3034
  * @param options The options parameters.
2920
3035
  */
@@ -2927,8 +3042,8 @@ class DatabasesImpl {
2927
3042
  /**
2928
3043
  * Forcibly removes the link to the specified database resource.
2929
3044
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2930
- * @param clusterName The name of the RedisEnterprise cluster.
2931
- * @param databaseName The name of the database.
3045
+ * @param clusterName The name of the Redis Enterprise cluster.
3046
+ * @param databaseName The name of the Redis Enterprise database.
2932
3047
  * @param parameters Information identifying the database to be unlinked.
2933
3048
  * @param options The options parameters.
2934
3049
  */
@@ -2952,8 +3067,8 @@ class DatabasesImpl {
2952
3067
  rawResponse: {
2953
3068
  statusCode: currentRawResponse.status,
2954
3069
  body: currentRawResponse.parsedBody,
2955
- headers: currentRawResponse.headers.toJSON()
2956
- }
3070
+ headers: currentRawResponse.headers.toJSON(),
3071
+ },
2957
3072
  };
2958
3073
  });
2959
3074
  const lro = createLroSpec({
@@ -2963,14 +3078,14 @@ class DatabasesImpl {
2963
3078
  clusterName,
2964
3079
  databaseName,
2965
3080
  parameters,
2966
- options
3081
+ options,
2967
3082
  },
2968
- spec: forceUnlinkOperationSpec
3083
+ spec: forceUnlinkOperationSpec,
2969
3084
  });
2970
3085
  const poller = yield coreLro.createHttpPoller(lro, {
2971
3086
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2972
3087
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2973
- resourceLocationConfig: "azure-async-operation"
3088
+ resourceLocationConfig: "azure-async-operation",
2974
3089
  });
2975
3090
  yield poller.poll();
2976
3091
  return poller;
@@ -2979,8 +3094,8 @@ class DatabasesImpl {
2979
3094
  /**
2980
3095
  * Forcibly removes the link to the specified database resource.
2981
3096
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2982
- * @param clusterName The name of the RedisEnterprise cluster.
2983
- * @param databaseName The name of the database.
3097
+ * @param clusterName The name of the Redis Enterprise cluster.
3098
+ * @param databaseName The name of the Redis Enterprise database.
2984
3099
  * @param parameters Information identifying the database to be unlinked.
2985
3100
  * @param options The options parameters.
2986
3101
  */
@@ -2990,11 +3105,81 @@ class DatabasesImpl {
2990
3105
  return poller.pollUntilDone();
2991
3106
  });
2992
3107
  }
3108
+ /**
3109
+ * Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
3110
+ * replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
3111
+ * will temporarily be unavailable while rejoining the replication group.
3112
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3113
+ * @param clusterName The name of the Redis Enterprise cluster.
3114
+ * @param databaseName The name of the Redis Enterprise database.
3115
+ * @param parameters Information identifying the database to be unlinked.
3116
+ * @param options The options parameters.
3117
+ */
3118
+ beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options) {
3119
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3120
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3121
+ return this.client.sendOperationRequest(args, spec);
3122
+ });
3123
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3124
+ var _a;
3125
+ let currentRawResponse = undefined;
3126
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3127
+ const callback = (rawResponse, flatResponse) => {
3128
+ currentRawResponse = rawResponse;
3129
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3130
+ };
3131
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3132
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3133
+ return {
3134
+ flatResponse,
3135
+ rawResponse: {
3136
+ statusCode: currentRawResponse.status,
3137
+ body: currentRawResponse.parsedBody,
3138
+ headers: currentRawResponse.headers.toJSON(),
3139
+ },
3140
+ };
3141
+ });
3142
+ const lro = createLroSpec({
3143
+ sendOperationFn,
3144
+ args: {
3145
+ resourceGroupName,
3146
+ clusterName,
3147
+ databaseName,
3148
+ parameters,
3149
+ options,
3150
+ },
3151
+ spec: forceLinkToReplicationGroupOperationSpec,
3152
+ });
3153
+ const poller = yield coreLro.createHttpPoller(lro, {
3154
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3155
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3156
+ resourceLocationConfig: "azure-async-operation",
3157
+ });
3158
+ yield poller.poll();
3159
+ return poller;
3160
+ });
3161
+ }
3162
+ /**
3163
+ * Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing
3164
+ * replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database
3165
+ * will temporarily be unavailable while rejoining the replication group.
3166
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3167
+ * @param clusterName The name of the Redis Enterprise cluster.
3168
+ * @param databaseName The name of the Redis Enterprise database.
3169
+ * @param parameters Information identifying the database to be unlinked.
3170
+ * @param options The options parameters.
3171
+ */
3172
+ beginForceLinkToReplicationGroupAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3173
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3174
+ const poller = yield this.beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options);
3175
+ return poller.pollUntilDone();
3176
+ });
3177
+ }
2993
3178
  /**
2994
3179
  * Flushes all the keys in this database and also from its linked databases.
2995
3180
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
2996
- * @param clusterName The name of the RedisEnterprise cluster.
2997
- * @param databaseName The name of the database.
3181
+ * @param clusterName The name of the Redis Enterprise cluster.
3182
+ * @param databaseName The name of the Redis Enterprise database.
2998
3183
  * @param parameters Information identifying the databases to be flushed
2999
3184
  * @param options The options parameters.
3000
3185
  */
@@ -3018,8 +3203,8 @@ class DatabasesImpl {
3018
3203
  rawResponse: {
3019
3204
  statusCode: currentRawResponse.status,
3020
3205
  body: currentRawResponse.parsedBody,
3021
- headers: currentRawResponse.headers.toJSON()
3022
- }
3206
+ headers: currentRawResponse.headers.toJSON(),
3207
+ },
3023
3208
  };
3024
3209
  });
3025
3210
  const lro = createLroSpec({
@@ -3029,14 +3214,14 @@ class DatabasesImpl {
3029
3214
  clusterName,
3030
3215
  databaseName,
3031
3216
  parameters,
3032
- options
3217
+ options,
3033
3218
  },
3034
- spec: flushOperationSpec
3219
+ spec: flushOperationSpec,
3035
3220
  });
3036
3221
  const poller = yield coreLro.createHttpPoller(lro, {
3037
3222
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3038
3223
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3039
- resourceLocationConfig: "location"
3224
+ resourceLocationConfig: "location",
3040
3225
  });
3041
3226
  yield poller.poll();
3042
3227
  return poller;
@@ -3045,8 +3230,8 @@ class DatabasesImpl {
3045
3230
  /**
3046
3231
  * Flushes all the keys in this database and also from its linked databases.
3047
3232
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3048
- * @param clusterName The name of the RedisEnterprise cluster.
3049
- * @param databaseName The name of the database.
3233
+ * @param clusterName The name of the Redis Enterprise cluster.
3234
+ * @param databaseName The name of the Redis Enterprise database.
3050
3235
  * @param parameters Information identifying the databases to be flushed
3051
3236
  * @param options The options parameters.
3052
3237
  */
@@ -3056,10 +3241,68 @@ class DatabasesImpl {
3056
3241
  return poller.pollUntilDone();
3057
3242
  });
3058
3243
  }
3244
+ /**
3245
+ * Upgrades the database Redis version to the latest available.
3246
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3247
+ * @param clusterName The name of the Redis Enterprise cluster.
3248
+ * @param databaseName The name of the Redis Enterprise database.
3249
+ * @param options The options parameters.
3250
+ */
3251
+ beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options) {
3252
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3253
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3254
+ return this.client.sendOperationRequest(args, spec);
3255
+ });
3256
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3257
+ var _a;
3258
+ let currentRawResponse = undefined;
3259
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3260
+ const callback = (rawResponse, flatResponse) => {
3261
+ currentRawResponse = rawResponse;
3262
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3263
+ };
3264
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3265
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3266
+ return {
3267
+ flatResponse,
3268
+ rawResponse: {
3269
+ statusCode: currentRawResponse.status,
3270
+ body: currentRawResponse.parsedBody,
3271
+ headers: currentRawResponse.headers.toJSON(),
3272
+ },
3273
+ };
3274
+ });
3275
+ const lro = createLroSpec({
3276
+ sendOperationFn,
3277
+ args: { resourceGroupName, clusterName, databaseName, options },
3278
+ spec: upgradeDBRedisVersionOperationSpec,
3279
+ });
3280
+ const poller = yield coreLro.createHttpPoller(lro, {
3281
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3282
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3283
+ resourceLocationConfig: "location",
3284
+ });
3285
+ yield poller.poll();
3286
+ return poller;
3287
+ });
3288
+ }
3289
+ /**
3290
+ * Upgrades the database Redis version to the latest available.
3291
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3292
+ * @param clusterName The name of the Redis Enterprise cluster.
3293
+ * @param databaseName The name of the Redis Enterprise database.
3294
+ * @param options The options parameters.
3295
+ */
3296
+ beginUpgradeDBRedisVersionAndWait(resourceGroupName, clusterName, databaseName, options) {
3297
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3298
+ const poller = yield this.beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options);
3299
+ return poller.pollUntilDone();
3300
+ });
3301
+ }
3059
3302
  /**
3060
3303
  * ListByClusterNext
3061
3304
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3062
- * @param clusterName The name of the RedisEnterprise cluster.
3305
+ * @param clusterName The name of the Redis Enterprise cluster.
3063
3306
  * @param nextLink The nextLink from the previous successful call to the ListByCluster method.
3064
3307
  * @param options The options parameters.
3065
3308
  */
@@ -3074,41 +3317,41 @@ const listByClusterOperationSpec$1 = {
3074
3317
  httpMethod: "GET",
3075
3318
  responses: {
3076
3319
  200: {
3077
- bodyMapper: DatabaseList
3320
+ bodyMapper: DatabaseList,
3078
3321
  },
3079
3322
  default: {
3080
- bodyMapper: ErrorResponse
3081
- }
3323
+ bodyMapper: ErrorResponse,
3324
+ },
3082
3325
  },
3083
3326
  queryParameters: [apiVersion],
3084
3327
  urlParameters: [
3085
3328
  $host,
3086
3329
  subscriptionId,
3087
3330
  resourceGroupName,
3088
- clusterName
3331
+ clusterName,
3089
3332
  ],
3090
3333
  headerParameters: [accept],
3091
- serializer: serializer$2
3334
+ serializer: serializer$2,
3092
3335
  };
3093
3336
  const createOperationSpec = {
3094
3337
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
3095
3338
  httpMethod: "PUT",
3096
3339
  responses: {
3097
3340
  200: {
3098
- bodyMapper: Database
3341
+ bodyMapper: Database,
3099
3342
  },
3100
3343
  201: {
3101
- bodyMapper: Database
3344
+ bodyMapper: Database,
3102
3345
  },
3103
3346
  202: {
3104
- bodyMapper: Database
3347
+ bodyMapper: Database,
3105
3348
  },
3106
3349
  204: {
3107
- bodyMapper: Database
3350
+ bodyMapper: Database,
3108
3351
  },
3109
3352
  default: {
3110
- bodyMapper: ErrorResponse
3111
- }
3353
+ bodyMapper: ErrorResponse,
3354
+ },
3112
3355
  },
3113
3356
  requestBody: parameters2,
3114
3357
  queryParameters: [apiVersion],
@@ -3117,31 +3360,31 @@ const createOperationSpec = {
3117
3360
  subscriptionId,
3118
3361
  resourceGroupName,
3119
3362
  clusterName,
3120
- databaseName
3363
+ databaseName,
3121
3364
  ],
3122
3365
  headerParameters: [accept, contentType],
3123
3366
  mediaType: "json",
3124
- serializer: serializer$2
3367
+ serializer: serializer$2,
3125
3368
  };
3126
3369
  const updateOperationSpec = {
3127
3370
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
3128
3371
  httpMethod: "PATCH",
3129
3372
  responses: {
3130
3373
  200: {
3131
- bodyMapper: Database
3374
+ bodyMapper: Database,
3132
3375
  },
3133
3376
  201: {
3134
- bodyMapper: Database
3377
+ bodyMapper: Database,
3135
3378
  },
3136
3379
  202: {
3137
- bodyMapper: Database
3380
+ bodyMapper: Database,
3138
3381
  },
3139
3382
  204: {
3140
- bodyMapper: Database
3383
+ bodyMapper: Database,
3141
3384
  },
3142
3385
  default: {
3143
- bodyMapper: ErrorResponse
3144
- }
3386
+ bodyMapper: ErrorResponse,
3387
+ },
3145
3388
  },
3146
3389
  requestBody: parameters3,
3147
3390
  queryParameters: [apiVersion],
@@ -3150,22 +3393,22 @@ const updateOperationSpec = {
3150
3393
  subscriptionId,
3151
3394
  resourceGroupName,
3152
3395
  clusterName,
3153
- databaseName
3396
+ databaseName,
3154
3397
  ],
3155
3398
  headerParameters: [accept, contentType],
3156
3399
  mediaType: "json",
3157
- serializer: serializer$2
3400
+ serializer: serializer$2,
3158
3401
  };
3159
3402
  const getOperationSpec$1 = {
3160
3403
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
3161
3404
  httpMethod: "GET",
3162
3405
  responses: {
3163
3406
  200: {
3164
- bodyMapper: Database
3407
+ bodyMapper: Database,
3165
3408
  },
3166
3409
  default: {
3167
- bodyMapper: ErrorResponse
3168
- }
3410
+ bodyMapper: ErrorResponse,
3411
+ },
3169
3412
  },
3170
3413
  queryParameters: [apiVersion],
3171
3414
  urlParameters: [
@@ -3173,10 +3416,10 @@ const getOperationSpec$1 = {
3173
3416
  subscriptionId,
3174
3417
  resourceGroupName,
3175
3418
  clusterName,
3176
- databaseName
3419
+ databaseName,
3177
3420
  ],
3178
3421
  headerParameters: [accept],
3179
- serializer: serializer$2
3422
+ serializer: serializer$2,
3180
3423
  };
3181
3424
  const deleteOperationSpec$1 = {
3182
3425
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
@@ -3187,8 +3430,8 @@ const deleteOperationSpec$1 = {
3187
3430
  202: {},
3188
3431
  204: {},
3189
3432
  default: {
3190
- bodyMapper: ErrorResponse
3191
- }
3433
+ bodyMapper: ErrorResponse,
3434
+ },
3192
3435
  },
3193
3436
  queryParameters: [apiVersion],
3194
3437
  urlParameters: [
@@ -3196,21 +3439,21 @@ const deleteOperationSpec$1 = {
3196
3439
  subscriptionId,
3197
3440
  resourceGroupName,
3198
3441
  clusterName,
3199
- databaseName
3442
+ databaseName,
3200
3443
  ],
3201
3444
  headerParameters: [accept],
3202
- serializer: serializer$2
3445
+ serializer: serializer$2,
3203
3446
  };
3204
3447
  const listKeysOperationSpec = {
3205
3448
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
3206
3449
  httpMethod: "POST",
3207
3450
  responses: {
3208
3451
  200: {
3209
- bodyMapper: AccessKeys
3452
+ bodyMapper: AccessKeys,
3210
3453
  },
3211
3454
  default: {
3212
- bodyMapper: ErrorResponse
3213
- }
3455
+ bodyMapper: ErrorResponse,
3456
+ },
3214
3457
  },
3215
3458
  queryParameters: [apiVersion],
3216
3459
  urlParameters: [
@@ -3218,30 +3461,30 @@ const listKeysOperationSpec = {
3218
3461
  subscriptionId,
3219
3462
  resourceGroupName,
3220
3463
  clusterName,
3221
- databaseName
3464
+ databaseName,
3222
3465
  ],
3223
3466
  headerParameters: [accept],
3224
- serializer: serializer$2
3467
+ serializer: serializer$2,
3225
3468
  };
3226
3469
  const regenerateKeyOperationSpec = {
3227
3470
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
3228
3471
  httpMethod: "POST",
3229
3472
  responses: {
3230
3473
  200: {
3231
- bodyMapper: AccessKeys
3474
+ bodyMapper: AccessKeys,
3232
3475
  },
3233
3476
  201: {
3234
- bodyMapper: AccessKeys
3477
+ bodyMapper: AccessKeys,
3235
3478
  },
3236
3479
  202: {
3237
- bodyMapper: AccessKeys
3480
+ bodyMapper: AccessKeys,
3238
3481
  },
3239
3482
  204: {
3240
- bodyMapper: AccessKeys
3483
+ bodyMapper: AccessKeys,
3241
3484
  },
3242
3485
  default: {
3243
- bodyMapper: ErrorResponse
3244
- }
3486
+ bodyMapper: ErrorResponse,
3487
+ },
3245
3488
  },
3246
3489
  requestBody: parameters4,
3247
3490
  queryParameters: [apiVersion],
@@ -3250,11 +3493,11 @@ const regenerateKeyOperationSpec = {
3250
3493
  subscriptionId,
3251
3494
  resourceGroupName,
3252
3495
  clusterName,
3253
- databaseName
3496
+ databaseName,
3254
3497
  ],
3255
3498
  headerParameters: [accept, contentType],
3256
3499
  mediaType: "json",
3257
- serializer: serializer$2
3500
+ serializer: serializer$2,
3258
3501
  };
3259
3502
  const importOperationSpec = {
3260
3503
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
@@ -3265,8 +3508,8 @@ const importOperationSpec = {
3265
3508
  202: {},
3266
3509
  204: {},
3267
3510
  default: {
3268
- bodyMapper: ErrorResponse
3269
- }
3511
+ bodyMapper: ErrorResponse,
3512
+ },
3270
3513
  },
3271
3514
  requestBody: parameters5,
3272
3515
  queryParameters: [apiVersion],
@@ -3275,11 +3518,11 @@ const importOperationSpec = {
3275
3518
  subscriptionId,
3276
3519
  resourceGroupName,
3277
3520
  clusterName,
3278
- databaseName
3521
+ databaseName,
3279
3522
  ],
3280
3523
  headerParameters: [accept, contentType],
3281
3524
  mediaType: "json",
3282
- serializer: serializer$2
3525
+ serializer: serializer$2,
3283
3526
  };
3284
3527
  const exportOperationSpec = {
3285
3528
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
@@ -3290,8 +3533,8 @@ const exportOperationSpec = {
3290
3533
  202: {},
3291
3534
  204: {},
3292
3535
  default: {
3293
- bodyMapper: ErrorResponse
3294
- }
3536
+ bodyMapper: ErrorResponse,
3537
+ },
3295
3538
  },
3296
3539
  requestBody: parameters6,
3297
3540
  queryParameters: [apiVersion],
@@ -3300,11 +3543,11 @@ const exportOperationSpec = {
3300
3543
  subscriptionId,
3301
3544
  resourceGroupName,
3302
3545
  clusterName,
3303
- databaseName
3546
+ databaseName,
3304
3547
  ],
3305
3548
  headerParameters: [accept, contentType],
3306
3549
  mediaType: "json",
3307
- serializer: serializer$2
3550
+ serializer: serializer$2,
3308
3551
  };
3309
3552
  const forceUnlinkOperationSpec = {
3310
3553
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
@@ -3315,8 +3558,8 @@ const forceUnlinkOperationSpec = {
3315
3558
  202: {},
3316
3559
  204: {},
3317
3560
  default: {
3318
- bodyMapper: ErrorResponse
3319
- }
3561
+ bodyMapper: ErrorResponse,
3562
+ },
3320
3563
  },
3321
3564
  requestBody: parameters7,
3322
3565
  queryParameters: [apiVersion],
@@ -3325,11 +3568,44 @@ const forceUnlinkOperationSpec = {
3325
3568
  subscriptionId,
3326
3569
  resourceGroupName,
3327
3570
  clusterName,
3328
- databaseName
3571
+ databaseName,
3572
+ ],
3573
+ headerParameters: [accept, contentType],
3574
+ mediaType: "json",
3575
+ serializer: serializer$2,
3576
+ };
3577
+ const forceLinkToReplicationGroupOperationSpec = {
3578
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceLinkToReplicationGroup",
3579
+ httpMethod: "POST",
3580
+ responses: {
3581
+ 200: {
3582
+ headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
3583
+ },
3584
+ 201: {
3585
+ headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
3586
+ },
3587
+ 202: {
3588
+ headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
3589
+ },
3590
+ 204: {
3591
+ headersMapper: DatabasesForceLinkToReplicationGroupHeaders,
3592
+ },
3593
+ default: {
3594
+ bodyMapper: ErrorResponse,
3595
+ },
3596
+ },
3597
+ requestBody: parameters8,
3598
+ queryParameters: [apiVersion],
3599
+ urlParameters: [
3600
+ $host,
3601
+ subscriptionId,
3602
+ resourceGroupName,
3603
+ clusterName,
3604
+ databaseName,
3329
3605
  ],
3330
3606
  headerParameters: [accept, contentType],
3331
3607
  mediaType: "json",
3332
- serializer: serializer$2
3608
+ serializer: serializer$2,
3333
3609
  };
3334
3610
  const flushOperationSpec = {
3335
3611
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush",
@@ -3340,42 +3616,73 @@ const flushOperationSpec = {
3340
3616
  202: {},
3341
3617
  204: {},
3342
3618
  default: {
3343
- bodyMapper: ErrorResponse
3344
- }
3619
+ bodyMapper: ErrorResponse,
3620
+ },
3345
3621
  },
3346
- requestBody: parameters8,
3622
+ requestBody: parameters9,
3347
3623
  queryParameters: [apiVersion],
3348
3624
  urlParameters: [
3349
3625
  $host,
3350
3626
  subscriptionId,
3351
3627
  resourceGroupName,
3352
3628
  clusterName,
3353
- databaseName
3629
+ databaseName,
3354
3630
  ],
3355
3631
  headerParameters: [accept, contentType],
3356
3632
  mediaType: "json",
3357
- serializer: serializer$2
3633
+ serializer: serializer$2,
3634
+ };
3635
+ const upgradeDBRedisVersionOperationSpec = {
3636
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion",
3637
+ httpMethod: "POST",
3638
+ responses: {
3639
+ 200: {
3640
+ headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
3641
+ },
3642
+ 201: {
3643
+ headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
3644
+ },
3645
+ 202: {
3646
+ headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
3647
+ },
3648
+ 204: {
3649
+ headersMapper: DatabasesUpgradeDBRedisVersionHeaders,
3650
+ },
3651
+ default: {
3652
+ bodyMapper: ErrorResponse,
3653
+ },
3654
+ },
3655
+ queryParameters: [apiVersion],
3656
+ urlParameters: [
3657
+ $host,
3658
+ subscriptionId,
3659
+ resourceGroupName,
3660
+ clusterName,
3661
+ databaseName,
3662
+ ],
3663
+ headerParameters: [accept],
3664
+ serializer: serializer$2,
3358
3665
  };
3359
3666
  const listByClusterNextOperationSpec = {
3360
3667
  path: "{nextLink}",
3361
3668
  httpMethod: "GET",
3362
3669
  responses: {
3363
3670
  200: {
3364
- bodyMapper: DatabaseList
3671
+ bodyMapper: DatabaseList,
3365
3672
  },
3366
3673
  default: {
3367
- bodyMapper: ErrorResponse
3368
- }
3674
+ bodyMapper: ErrorResponse,
3675
+ },
3369
3676
  },
3370
3677
  urlParameters: [
3371
3678
  $host,
3372
3679
  nextLink,
3373
3680
  subscriptionId,
3374
3681
  resourceGroupName,
3375
- clusterName
3682
+ clusterName,
3376
3683
  ],
3377
3684
  headerParameters: [accept],
3378
- serializer: serializer$2
3685
+ serializer: serializer$2,
3379
3686
  };
3380
3687
 
3381
3688
  /*
@@ -3398,7 +3705,7 @@ class PrivateEndpointConnectionsImpl {
3398
3705
  /**
3399
3706
  * Lists all the private endpoint connections associated with the RedisEnterprise cluster.
3400
3707
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3401
- * @param clusterName The name of the RedisEnterprise cluster.
3708
+ * @param clusterName The name of the Redis Enterprise cluster.
3402
3709
  * @param options The options parameters.
3403
3710
  */
3404
3711
  list(resourceGroupName, clusterName, options) {
@@ -3415,7 +3722,7 @@ class PrivateEndpointConnectionsImpl {
3415
3722
  throw new Error("maxPageSize is not supported by this operation.");
3416
3723
  }
3417
3724
  return this.listPagingPage(resourceGroupName, clusterName, options, settings);
3418
- }
3725
+ },
3419
3726
  };
3420
3727
  }
3421
3728
  listPagingPage(resourceGroupName, clusterName, options, _settings) {
@@ -3448,7 +3755,7 @@ class PrivateEndpointConnectionsImpl {
3448
3755
  /**
3449
3756
  * Lists all the private endpoint connections associated with the RedisEnterprise cluster.
3450
3757
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3451
- * @param clusterName The name of the RedisEnterprise cluster.
3758
+ * @param clusterName The name of the Redis Enterprise cluster.
3452
3759
  * @param options The options parameters.
3453
3760
  */
3454
3761
  _list(resourceGroupName, clusterName, options) {
@@ -3457,7 +3764,7 @@ class PrivateEndpointConnectionsImpl {
3457
3764
  /**
3458
3765
  * Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
3459
3766
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3460
- * @param clusterName The name of the RedisEnterprise cluster.
3767
+ * @param clusterName The name of the Redis Enterprise cluster.
3461
3768
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3462
3769
  * Azure resource
3463
3770
  * @param options The options parameters.
@@ -3467,14 +3774,14 @@ class PrivateEndpointConnectionsImpl {
3467
3774
  resourceGroupName,
3468
3775
  clusterName,
3469
3776
  privateEndpointConnectionName,
3470
- options
3777
+ options,
3471
3778
  }, getOperationSpec);
3472
3779
  }
3473
3780
  /**
3474
3781
  * Updates the state of the specified private endpoint connection associated with the RedisEnterprise
3475
3782
  * cluster.
3476
3783
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3477
- * @param clusterName The name of the RedisEnterprise cluster.
3784
+ * @param clusterName The name of the Redis Enterprise cluster.
3478
3785
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3479
3786
  * Azure resource
3480
3787
  * @param properties The private endpoint connection properties.
@@ -3500,8 +3807,8 @@ class PrivateEndpointConnectionsImpl {
3500
3807
  rawResponse: {
3501
3808
  statusCode: currentRawResponse.status,
3502
3809
  body: currentRawResponse.parsedBody,
3503
- headers: currentRawResponse.headers.toJSON()
3504
- }
3810
+ headers: currentRawResponse.headers.toJSON(),
3811
+ },
3505
3812
  };
3506
3813
  });
3507
3814
  const lro = createLroSpec({
@@ -3511,13 +3818,13 @@ class PrivateEndpointConnectionsImpl {
3511
3818
  clusterName,
3512
3819
  privateEndpointConnectionName,
3513
3820
  properties,
3514
- options
3821
+ options,
3515
3822
  },
3516
- spec: putOperationSpec
3823
+ spec: putOperationSpec,
3517
3824
  });
3518
3825
  const poller = yield coreLro.createHttpPoller(lro, {
3519
3826
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3520
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3827
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3521
3828
  });
3522
3829
  yield poller.poll();
3523
3830
  return poller;
@@ -3527,7 +3834,7 @@ class PrivateEndpointConnectionsImpl {
3527
3834
  * Updates the state of the specified private endpoint connection associated with the RedisEnterprise
3528
3835
  * cluster.
3529
3836
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3530
- * @param clusterName The name of the RedisEnterprise cluster.
3837
+ * @param clusterName The name of the Redis Enterprise cluster.
3531
3838
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3532
3839
  * Azure resource
3533
3840
  * @param properties The private endpoint connection properties.
@@ -3542,7 +3849,7 @@ class PrivateEndpointConnectionsImpl {
3542
3849
  /**
3543
3850
  * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
3544
3851
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3545
- * @param clusterName The name of the RedisEnterprise cluster.
3852
+ * @param clusterName The name of the Redis Enterprise cluster.
3546
3853
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3547
3854
  * Azure resource
3548
3855
  * @param options The options parameters.
@@ -3567,8 +3874,8 @@ class PrivateEndpointConnectionsImpl {
3567
3874
  rawResponse: {
3568
3875
  statusCode: currentRawResponse.status,
3569
3876
  body: currentRawResponse.parsedBody,
3570
- headers: currentRawResponse.headers.toJSON()
3571
- }
3877
+ headers: currentRawResponse.headers.toJSON(),
3878
+ },
3572
3879
  };
3573
3880
  });
3574
3881
  const lro = createLroSpec({
@@ -3577,14 +3884,14 @@ class PrivateEndpointConnectionsImpl {
3577
3884
  resourceGroupName,
3578
3885
  clusterName,
3579
3886
  privateEndpointConnectionName,
3580
- options
3887
+ options,
3581
3888
  },
3582
- spec: deleteOperationSpec
3889
+ spec: deleteOperationSpec,
3583
3890
  });
3584
3891
  const poller = yield coreLro.createHttpPoller(lro, {
3585
3892
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3586
3893
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3587
- resourceLocationConfig: "location"
3894
+ resourceLocationConfig: "location",
3588
3895
  });
3589
3896
  yield poller.poll();
3590
3897
  return poller;
@@ -3593,7 +3900,7 @@ class PrivateEndpointConnectionsImpl {
3593
3900
  /**
3594
3901
  * Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
3595
3902
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3596
- * @param clusterName The name of the RedisEnterprise cluster.
3903
+ * @param clusterName The name of the Redis Enterprise cluster.
3597
3904
  * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
3598
3905
  * Azure resource
3599
3906
  * @param options The options parameters.
@@ -3612,32 +3919,32 @@ const listOperationSpec = {
3612
3919
  httpMethod: "GET",
3613
3920
  responses: {
3614
3921
  200: {
3615
- bodyMapper: PrivateEndpointConnectionListResult
3922
+ bodyMapper: PrivateEndpointConnectionListResult,
3616
3923
  },
3617
3924
  default: {
3618
- bodyMapper: ErrorResponse
3619
- }
3925
+ bodyMapper: ErrorResponse,
3926
+ },
3620
3927
  },
3621
3928
  queryParameters: [apiVersion],
3622
3929
  urlParameters: [
3623
3930
  $host,
3624
3931
  subscriptionId,
3625
3932
  resourceGroupName,
3626
- clusterName
3933
+ clusterName,
3627
3934
  ],
3628
3935
  headerParameters: [accept],
3629
- serializer: serializer$1
3936
+ serializer: serializer$1,
3630
3937
  };
3631
3938
  const getOperationSpec = {
3632
3939
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
3633
3940
  httpMethod: "GET",
3634
3941
  responses: {
3635
3942
  200: {
3636
- bodyMapper: PrivateEndpointConnection
3943
+ bodyMapper: PrivateEndpointConnection,
3637
3944
  },
3638
3945
  default: {
3639
- bodyMapper: ErrorResponse
3640
- }
3946
+ bodyMapper: ErrorResponse,
3947
+ },
3641
3948
  },
3642
3949
  queryParameters: [apiVersion],
3643
3950
  urlParameters: [
@@ -3645,30 +3952,30 @@ const getOperationSpec = {
3645
3952
  subscriptionId,
3646
3953
  resourceGroupName,
3647
3954
  clusterName,
3648
- privateEndpointConnectionName
3955
+ privateEndpointConnectionName,
3649
3956
  ],
3650
3957
  headerParameters: [accept],
3651
- serializer: serializer$1
3958
+ serializer: serializer$1,
3652
3959
  };
3653
3960
  const putOperationSpec = {
3654
3961
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
3655
3962
  httpMethod: "PUT",
3656
3963
  responses: {
3657
3964
  200: {
3658
- bodyMapper: PrivateEndpointConnection
3965
+ bodyMapper: PrivateEndpointConnection,
3659
3966
  },
3660
3967
  201: {
3661
- bodyMapper: PrivateEndpointConnection
3968
+ bodyMapper: PrivateEndpointConnection,
3662
3969
  },
3663
3970
  202: {
3664
- bodyMapper: PrivateEndpointConnection
3971
+ bodyMapper: PrivateEndpointConnection,
3665
3972
  },
3666
3973
  204: {
3667
- bodyMapper: PrivateEndpointConnection
3974
+ bodyMapper: PrivateEndpointConnection,
3668
3975
  },
3669
3976
  default: {
3670
- bodyMapper: ErrorResponse
3671
- }
3977
+ bodyMapper: ErrorResponse,
3978
+ },
3672
3979
  },
3673
3980
  requestBody: properties,
3674
3981
  queryParameters: [apiVersion],
@@ -3677,11 +3984,11 @@ const putOperationSpec = {
3677
3984
  subscriptionId,
3678
3985
  resourceGroupName,
3679
3986
  clusterName,
3680
- privateEndpointConnectionName
3987
+ privateEndpointConnectionName,
3681
3988
  ],
3682
3989
  headerParameters: [accept, contentType],
3683
3990
  mediaType: "json",
3684
- serializer: serializer$1
3991
+ serializer: serializer$1,
3685
3992
  };
3686
3993
  const deleteOperationSpec = {
3687
3994
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -3692,8 +3999,8 @@ const deleteOperationSpec = {
3692
3999
  202: {},
3693
4000
  204: {},
3694
4001
  default: {
3695
- bodyMapper: ErrorResponse
3696
- }
4002
+ bodyMapper: ErrorResponse,
4003
+ },
3697
4004
  },
3698
4005
  queryParameters: [apiVersion],
3699
4006
  urlParameters: [
@@ -3701,10 +4008,10 @@ const deleteOperationSpec = {
3701
4008
  subscriptionId,
3702
4009
  resourceGroupName,
3703
4010
  clusterName,
3704
- privateEndpointConnectionName
4011
+ privateEndpointConnectionName,
3705
4012
  ],
3706
4013
  headerParameters: [accept],
3707
- serializer: serializer$1
4014
+ serializer: serializer$1,
3708
4015
  };
3709
4016
 
3710
4017
  /*
@@ -3727,7 +4034,7 @@ class PrivateLinkResourcesImpl {
3727
4034
  /**
3728
4035
  * Gets the private link resources that need to be created for a RedisEnterprise cluster.
3729
4036
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3730
- * @param clusterName The name of the RedisEnterprise cluster.
4037
+ * @param clusterName The name of the Redis Enterprise cluster.
3731
4038
  * @param options The options parameters.
3732
4039
  */
3733
4040
  listByCluster(resourceGroupName, clusterName, options) {
@@ -3744,7 +4051,7 @@ class PrivateLinkResourcesImpl {
3744
4051
  throw new Error("maxPageSize is not supported by this operation.");
3745
4052
  }
3746
4053
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
3747
- }
4054
+ },
3748
4055
  };
3749
4056
  }
3750
4057
  listByClusterPagingPage(resourceGroupName, clusterName, options, _settings) {
@@ -3777,7 +4084,7 @@ class PrivateLinkResourcesImpl {
3777
4084
  /**
3778
4085
  * Gets the private link resources that need to be created for a RedisEnterprise cluster.
3779
4086
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
3780
- * @param clusterName The name of the RedisEnterprise cluster.
4087
+ * @param clusterName The name of the Redis Enterprise cluster.
3781
4088
  * @param options The options parameters.
3782
4089
  */
3783
4090
  _listByCluster(resourceGroupName, clusterName, options) {
@@ -3791,21 +4098,21 @@ const listByClusterOperationSpec = {
3791
4098
  httpMethod: "GET",
3792
4099
  responses: {
3793
4100
  200: {
3794
- bodyMapper: PrivateLinkResourceListResult
4101
+ bodyMapper: PrivateLinkResourceListResult,
3795
4102
  },
3796
4103
  default: {
3797
- bodyMapper: ErrorResponse
3798
- }
4104
+ bodyMapper: ErrorResponse,
4105
+ },
3799
4106
  },
3800
4107
  queryParameters: [apiVersion],
3801
4108
  urlParameters: [
3802
4109
  $host,
3803
4110
  subscriptionId,
3804
4111
  resourceGroupName,
3805
- clusterName
4112
+ clusterName,
3806
4113
  ],
3807
4114
  headerParameters: [accept],
3808
- serializer
4115
+ serializer,
3809
4116
  };
3810
4117
 
3811
4118
  /*
@@ -3836,14 +4143,14 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
3836
4143
  }
3837
4144
  const defaults = {
3838
4145
  requestContentType: "application/json; charset=utf-8",
3839
- credential: credentials
4146
+ credential: credentials,
3840
4147
  };
3841
- const packageDetails = `azsdk-js-arm-redisenterprisecache/3.0.1`;
4148
+ const packageDetails = `azsdk-js-arm-redisenterprisecache/3.1.0-beta.1`;
3842
4149
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3843
4150
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3844
4151
  : `${packageDetails}`;
3845
4152
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3846
- userAgentPrefix
4153
+ userAgentPrefix,
3847
4154
  }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3848
4155
  super(optionsWithDefaults);
3849
4156
  let bearerTokenAuthenticationPolicyFound = false;
@@ -3857,21 +4164,21 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
3857
4164
  options.pipeline.getOrderedPolicies().length == 0 ||
3858
4165
  !bearerTokenAuthenticationPolicyFound) {
3859
4166
  this.pipeline.removePolicy({
3860
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
4167
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
3861
4168
  });
3862
4169
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3863
4170
  credential: credentials,
3864
4171
  scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3865
4172
  challengeCallbacks: {
3866
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3867
- }
4173
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
4174
+ },
3868
4175
  }));
3869
4176
  }
3870
4177
  // Parameter assignments
3871
4178
  this.subscriptionId = subscriptionId;
3872
4179
  // Assigning values to Constant parameters
3873
4180
  this.$host = options.$host || "https://management.azure.com";
3874
- this.apiVersion = options.apiVersion || "2023-11-01";
4181
+ this.apiVersion = options.apiVersion || "2024-03-01-preview";
3875
4182
  this.operations = new OperationsImpl(this);
3876
4183
  this.operationsStatus = new OperationsStatusImpl(this);
3877
4184
  this.redisEnterprise = new RedisEnterpriseImpl(this);
@@ -3903,7 +4210,7 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
3903
4210
  }
3904
4211
  return next(request);
3905
4212
  });
3906
- }
4213
+ },
3907
4214
  };
3908
4215
  this.pipeline.addPolicy(apiVersionPolicy);
3909
4216
  }