@azure/arm-redisenterprisecache 2.2.1-alpha.20230320.1 → 2.3.0-alpha.20230421.2

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 (147) hide show
  1. package/CHANGELOG.md +36 -10
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +849 -151
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/databasesCreateSample.js +15 -8
  9. package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/databasesDeleteSample.js +11 -4
  11. package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/databasesExportSample.js +11 -4
  13. package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
  14. package/dist-esm/samples-dev/databasesFlushSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/databasesFlushSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/databasesFlushSample.js +44 -0
  17. package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -0
  18. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +11 -4
  19. package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
  20. package/dist-esm/samples-dev/databasesGetSample.js +11 -4
  21. package/dist-esm/samples-dev/databasesGetSample.js.map +1 -1
  22. package/dist-esm/samples-dev/databasesImportSample.js +11 -4
  23. package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
  24. package/dist-esm/samples-dev/databasesListByClusterSample.js +23 -9
  25. package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -1
  26. package/dist-esm/samples-dev/databasesListKeysSample.js +11 -4
  27. package/dist-esm/samples-dev/databasesListKeysSample.js.map +1 -1
  28. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +11 -4
  29. package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
  30. package/dist-esm/samples-dev/databasesUpdateSample.js +11 -4
  31. package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
  32. package/dist-esm/samples-dev/operationsListSample.js +23 -8
  33. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/operationsStatusGetSample.js +10 -3
  35. package/dist-esm/samples-dev/operationsStatusGetSample.js.map +1 -1
  36. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
  37. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  38. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
  39. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  40. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +23 -9
  41. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
  42. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
  43. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  44. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +23 -9
  45. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -1
  46. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +26 -4
  47. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
  48. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js +12 -5
  49. package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js.map +1 -1
  50. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +11 -4
  51. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +1 -1
  52. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +11 -4
  53. package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +1 -1
  54. package/dist-esm/samples-dev/redisEnterpriseList.js +12 -5
  55. package/dist-esm/samples-dev/redisEnterpriseList.js.map +1 -1
  56. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js +12 -5
  57. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js.map +1 -1
  58. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +23 -9
  59. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -1
  60. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js +12 -5
  61. package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js.map +1 -1
  62. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js +12 -5
  63. package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js.map +1 -1
  64. package/dist-esm/samples-dev/redisEnterpriseListSample.js +22 -8
  65. package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -1
  66. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +11 -4
  67. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
  68. package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/skusListSample.js +58 -0
  71. package/dist-esm/samples-dev/skusListSample.js.map +1 -0
  72. package/dist-esm/src/lroImpl.d.ts +6 -11
  73. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  74. package/dist-esm/src/lroImpl.js +12 -20
  75. package/dist-esm/src/lroImpl.js.map +1 -1
  76. package/dist-esm/src/models/index.d.ts +232 -36
  77. package/dist-esm/src/models/index.d.ts.map +1 -1
  78. package/dist-esm/src/models/index.js +32 -0
  79. package/dist-esm/src/models/index.js.map +1 -1
  80. package/dist-esm/src/models/mappers.d.ts +13 -0
  81. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  82. package/dist-esm/src/models/mappers.js +340 -0
  83. package/dist-esm/src/models/mappers.js.map +1 -1
  84. package/dist-esm/src/models/parameters.d.ts +1 -0
  85. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  86. package/dist-esm/src/models/parameters.js +6 -2
  87. package/dist-esm/src/models/parameters.js.map +1 -1
  88. package/dist-esm/src/operations/databases.d.ts +27 -9
  89. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  90. package/dist-esm/src/operations/databases.js +204 -42
  91. package/dist-esm/src/operations/databases.js.map +1 -1
  92. package/dist-esm/src/operations/index.d.ts +1 -0
  93. package/dist-esm/src/operations/index.d.ts.map +1 -1
  94. package/dist-esm/src/operations/index.js +1 -0
  95. package/dist-esm/src/operations/index.js.map +1 -1
  96. package/dist-esm/src/operations/operations.js +12 -5
  97. package/dist-esm/src/operations/operations.js.map +1 -1
  98. package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
  99. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  100. package/dist-esm/src/operations/privateEndpointConnections.js +28 -17
  101. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  102. package/dist-esm/src/operations/privateLinkResources.js +12 -5
  103. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  104. package/dist-esm/src/operations/redisEnterprise.d.ts +4 -4
  105. package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
  106. package/dist-esm/src/operations/redisEnterprise.js +53 -27
  107. package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
  108. package/dist-esm/src/operations/skus.d.ts +28 -0
  109. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  110. package/dist-esm/src/operations/skus.js +107 -0
  111. package/dist-esm/src/operations/skus.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/databases.d.ts +27 -9
  113. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
  114. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  115. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  116. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  117. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
  119. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +4 -4
  121. package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +1 -1
  122. package/dist-esm/src/operationsInterfaces/skus.d.ts +12 -0
  123. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  125. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  126. package/dist-esm/src/redisEnterpriseManagementClient.d.ts +2 -1
  127. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
  128. package/dist-esm/src/redisEnterpriseManagementClient.js +4 -3
  129. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
  130. package/package.json +7 -6
  131. package/review/arm-redisenterprisecache.api.md +154 -13
  132. package/src/lroImpl.ts +31 -23
  133. package/src/models/index.ts +216 -0
  134. package/src/models/mappers.ts +357 -0
  135. package/src/models/parameters.ts +7 -1
  136. package/src/operations/databases.ts +251 -75
  137. package/src/operations/index.ts +1 -0
  138. package/src/operations/privateEndpointConnections.ts +19 -12
  139. package/src/operations/redisEnterprise.ts +44 -34
  140. package/src/operations/skus.ts +117 -0
  141. package/src/operationsInterfaces/databases.ts +44 -12
  142. package/src/operationsInterfaces/index.ts +1 -0
  143. package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
  144. package/src/operationsInterfaces/redisEnterprise.ts +6 -6
  145. package/src/operationsInterfaces/skus.ts +24 -0
  146. package/src/redisEnterpriseManagementClient.ts +8 -4
  147. package/types/arm-redisenterprisecache.d.ts +260 -13
package/dist/index.js CHANGED
@@ -101,6 +101,18 @@ exports.KnownSkuName = void 0;
101
101
  /** EnterpriseFlashF1500 */
102
102
  KnownSkuName["EnterpriseFlashF1500"] = "EnterpriseFlash_F1500";
103
103
  })(exports.KnownSkuName || (exports.KnownSkuName = {}));
104
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
105
+ exports.KnownManagedServiceIdentityType = void 0;
106
+ (function (KnownManagedServiceIdentityType) {
107
+ /** None */
108
+ KnownManagedServiceIdentityType["None"] = "None";
109
+ /** SystemAssigned */
110
+ KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
111
+ /** UserAssigned */
112
+ KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
113
+ /** SystemAssignedUserAssigned */
114
+ KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
115
+ })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
104
116
  /** Known values of {@link TlsVersion} that the service accepts. */
105
117
  exports.KnownTlsVersion = void 0;
106
118
  (function (KnownTlsVersion) {
@@ -111,6 +123,14 @@ exports.KnownTlsVersion = void 0;
111
123
  /** One2 */
112
124
  KnownTlsVersion["One2"] = "1.2";
113
125
  })(exports.KnownTlsVersion || (exports.KnownTlsVersion = {}));
126
+ /** Known values of {@link CmkIdentityType} that the service accepts. */
127
+ exports.KnownCmkIdentityType = void 0;
128
+ (function (KnownCmkIdentityType) {
129
+ /** SystemAssignedIdentity */
130
+ KnownCmkIdentityType["SystemAssignedIdentity"] = "systemAssignedIdentity";
131
+ /** UserAssignedIdentity */
132
+ KnownCmkIdentityType["UserAssignedIdentity"] = "userAssignedIdentity";
133
+ })(exports.KnownCmkIdentityType || (exports.KnownCmkIdentityType = {}));
114
134
  /** Known values of {@link ProvisioningState} that the service accepts. */
115
135
  exports.KnownProvisioningState = void 0;
116
136
  (function (KnownProvisioningState) {
@@ -177,6 +197,18 @@ exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
177
197
  /** Failed */
178
198
  KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
179
199
  })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
200
+ /** Known values of {@link CreatedByType} that the service accepts. */
201
+ exports.KnownCreatedByType = void 0;
202
+ (function (KnownCreatedByType) {
203
+ /** User */
204
+ KnownCreatedByType["User"] = "User";
205
+ /** Application */
206
+ KnownCreatedByType["Application"] = "Application";
207
+ /** ManagedIdentity */
208
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
209
+ /** Key */
210
+ KnownCreatedByType["Key"] = "Key";
211
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
180
212
  /** Known values of {@link Protocol} that the service accepts. */
181
213
  exports.KnownProtocol = void 0;
182
214
  (function (KnownProtocol) {
@@ -519,6 +551,122 @@ const Sku = {
519
551
  }
520
552
  }
521
553
  };
554
+ const ManagedServiceIdentity = {
555
+ type: {
556
+ name: "Composite",
557
+ className: "ManagedServiceIdentity",
558
+ modelProperties: {
559
+ principalId: {
560
+ serializedName: "principalId",
561
+ readOnly: true,
562
+ type: {
563
+ name: "Uuid"
564
+ }
565
+ },
566
+ tenantId: {
567
+ serializedName: "tenantId",
568
+ readOnly: true,
569
+ type: {
570
+ name: "Uuid"
571
+ }
572
+ },
573
+ type: {
574
+ serializedName: "type",
575
+ required: true,
576
+ type: {
577
+ name: "String"
578
+ }
579
+ },
580
+ userAssignedIdentities: {
581
+ serializedName: "userAssignedIdentities",
582
+ type: {
583
+ name: "Dictionary",
584
+ value: {
585
+ type: { name: "Composite", className: "UserAssignedIdentity" }
586
+ }
587
+ }
588
+ }
589
+ }
590
+ }
591
+ };
592
+ const UserAssignedIdentity = {
593
+ type: {
594
+ name: "Composite",
595
+ className: "UserAssignedIdentity",
596
+ modelProperties: {
597
+ principalId: {
598
+ serializedName: "principalId",
599
+ readOnly: true,
600
+ type: {
601
+ name: "Uuid"
602
+ }
603
+ },
604
+ clientId: {
605
+ serializedName: "clientId",
606
+ readOnly: true,
607
+ type: {
608
+ name: "Uuid"
609
+ }
610
+ }
611
+ }
612
+ }
613
+ };
614
+ const ClusterPropertiesEncryption = {
615
+ type: {
616
+ name: "Composite",
617
+ className: "ClusterPropertiesEncryption",
618
+ modelProperties: {
619
+ customerManagedKeyEncryption: {
620
+ serializedName: "customerManagedKeyEncryption",
621
+ type: {
622
+ name: "Composite",
623
+ className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption"
624
+ }
625
+ }
626
+ }
627
+ }
628
+ };
629
+ const ClusterPropertiesEncryptionCustomerManagedKeyEncryption = {
630
+ type: {
631
+ name: "Composite",
632
+ className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryption",
633
+ modelProperties: {
634
+ keyEncryptionKeyIdentity: {
635
+ serializedName: "keyEncryptionKeyIdentity",
636
+ type: {
637
+ name: "Composite",
638
+ className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity"
639
+ }
640
+ },
641
+ keyEncryptionKeyUrl: {
642
+ serializedName: "keyEncryptionKeyUrl",
643
+ type: {
644
+ name: "String"
645
+ }
646
+ }
647
+ }
648
+ }
649
+ };
650
+ const ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity = {
651
+ type: {
652
+ name: "Composite",
653
+ className: "ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity",
654
+ modelProperties: {
655
+ userAssignedIdentityResourceId: {
656
+ serializedName: "userAssignedIdentityResourceId",
657
+ type: {
658
+ name: "String"
659
+ }
660
+ },
661
+ identityType: {
662
+ serializedName: "identityType",
663
+ type: {
664
+ name: "String"
665
+ }
666
+ }
667
+ }
668
+ }
669
+ };
522
670
  const PrivateEndpoint = {
523
671
  type: {
524
672
  name: "Composite",
@@ -585,6 +733,57 @@ const Resource = {
585
733
  type: {
586
734
  name: "String"
587
735
  }
736
+ },
737
+ systemData: {
738
+ serializedName: "systemData",
739
+ type: {
740
+ name: "Composite",
741
+ className: "SystemData"
742
+ }
743
+ }
744
+ }
745
+ }
746
+ };
747
+ const SystemData = {
748
+ type: {
749
+ name: "Composite",
750
+ className: "SystemData",
751
+ modelProperties: {
752
+ createdBy: {
753
+ serializedName: "createdBy",
754
+ type: {
755
+ name: "String"
756
+ }
757
+ },
758
+ createdByType: {
759
+ serializedName: "createdByType",
760
+ type: {
761
+ name: "String"
762
+ }
763
+ },
764
+ createdAt: {
765
+ serializedName: "createdAt",
766
+ type: {
767
+ name: "DateTime"
768
+ }
769
+ },
770
+ lastModifiedBy: {
771
+ serializedName: "lastModifiedBy",
772
+ type: {
773
+ name: "String"
774
+ }
775
+ },
776
+ lastModifiedByType: {
777
+ serializedName: "lastModifiedByType",
778
+ type: {
779
+ name: "String"
780
+ }
781
+ },
782
+ lastModifiedAt: {
783
+ serializedName: "lastModifiedAt",
784
+ type: {
785
+ name: "DateTime"
786
+ }
588
787
  }
589
788
  }
590
789
  }
@@ -601,6 +800,13 @@ const ClusterUpdate = {
601
800
  className: "Sku"
602
801
  }
603
802
  },
803
+ identity: {
804
+ serializedName: "identity",
805
+ type: {
806
+ name: "Composite",
807
+ className: "ManagedServiceIdentity"
808
+ }
809
+ },
604
810
  tags: {
605
811
  serializedName: "tags",
606
812
  type: {
@@ -614,6 +820,13 @@ const ClusterUpdate = {
614
820
  name: "String"
615
821
  }
616
822
  },
823
+ encryption: {
824
+ serializedName: "properties.encryption",
825
+ type: {
826
+ name: "Composite",
827
+ className: "ClusterPropertiesEncryption"
828
+ }
829
+ },
617
830
  hostName: {
618
831
  serializedName: "properties.hostName",
619
832
  readOnly: true,
@@ -1024,6 +1237,133 @@ const ForceUnlinkParameters = {
1024
1237
  }
1025
1238
  }
1026
1239
  };
1240
+ const FlushParameters = {
1241
+ type: {
1242
+ name: "Composite",
1243
+ className: "FlushParameters",
1244
+ modelProperties: {
1245
+ ids: {
1246
+ serializedName: "ids",
1247
+ type: {
1248
+ name: "Sequence",
1249
+ element: {
1250
+ type: {
1251
+ name: "String"
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ }
1257
+ }
1258
+ };
1259
+ const RegionSkuDetails = {
1260
+ type: {
1261
+ name: "Composite",
1262
+ className: "RegionSkuDetails",
1263
+ modelProperties: {
1264
+ value: {
1265
+ serializedName: "value",
1266
+ type: {
1267
+ name: "Sequence",
1268
+ element: {
1269
+ type: {
1270
+ name: "Composite",
1271
+ className: "RegionSkuDetail"
1272
+ }
1273
+ }
1274
+ }
1275
+ }
1276
+ }
1277
+ }
1278
+ };
1279
+ const RegionSkuDetail = {
1280
+ type: {
1281
+ name: "Composite",
1282
+ className: "RegionSkuDetail",
1283
+ modelProperties: {
1284
+ resourceType: {
1285
+ serializedName: "resourceType",
1286
+ type: {
1287
+ name: "String"
1288
+ }
1289
+ },
1290
+ locationInfo: {
1291
+ serializedName: "locationInfo",
1292
+ type: {
1293
+ name: "Composite",
1294
+ className: "LocationInfo"
1295
+ }
1296
+ },
1297
+ skuDetails: {
1298
+ serializedName: "skuDetails",
1299
+ type: {
1300
+ name: "Composite",
1301
+ className: "SkuDetail"
1302
+ }
1303
+ }
1304
+ }
1305
+ }
1306
+ };
1307
+ const LocationInfo = {
1308
+ type: {
1309
+ name: "Composite",
1310
+ className: "LocationInfo",
1311
+ modelProperties: {
1312
+ location: {
1313
+ serializedName: "location",
1314
+ type: {
1315
+ name: "String"
1316
+ }
1317
+ },
1318
+ capabilities: {
1319
+ serializedName: "capabilities",
1320
+ type: {
1321
+ name: "Sequence",
1322
+ element: {
1323
+ type: {
1324
+ name: "Composite",
1325
+ className: "Capability"
1326
+ }
1327
+ }
1328
+ }
1329
+ }
1330
+ }
1331
+ }
1332
+ };
1333
+ const Capability = {
1334
+ type: {
1335
+ name: "Composite",
1336
+ className: "Capability",
1337
+ modelProperties: {
1338
+ name: {
1339
+ serializedName: "name",
1340
+ type: {
1341
+ name: "String"
1342
+ }
1343
+ },
1344
+ value: {
1345
+ serializedName: "value",
1346
+ type: {
1347
+ name: "Boolean"
1348
+ }
1349
+ }
1350
+ }
1351
+ }
1352
+ };
1353
+ const SkuDetail = {
1354
+ type: {
1355
+ name: "Composite",
1356
+ className: "SkuDetail",
1357
+ modelProperties: {
1358
+ name: {
1359
+ serializedName: "name",
1360
+ type: {
1361
+ name: "String"
1362
+ }
1363
+ }
1364
+ }
1365
+ }
1366
+ };
1027
1367
  const PrivateEndpointConnection = {
1028
1368
  type: {
1029
1369
  name: "Composite",
@@ -1129,11 +1469,23 @@ const Cluster = {
1129
1469
  }
1130
1470
  }
1131
1471
  }
1472
+ }, identity: {
1473
+ serializedName: "identity",
1474
+ type: {
1475
+ name: "Composite",
1476
+ className: "ManagedServiceIdentity"
1477
+ }
1132
1478
  }, minimumTlsVersion: {
1133
1479
  serializedName: "properties.minimumTlsVersion",
1134
1480
  type: {
1135
1481
  name: "String"
1136
1482
  }
1483
+ }, encryption: {
1484
+ serializedName: "properties.encryption",
1485
+ type: {
1486
+ name: "Composite",
1487
+ className: "ClusterPropertiesEncryption"
1488
+ }
1137
1489
  }, hostName: {
1138
1490
  serializedName: "properties.hostName",
1139
1491
  readOnly: true,
@@ -1235,6 +1587,26 @@ const Database = {
1235
1587
  } })
1236
1588
  }
1237
1589
  };
1590
+ const DatabasesFlushHeaders = {
1591
+ type: {
1592
+ name: "Composite",
1593
+ className: "DatabasesFlushHeaders",
1594
+ modelProperties: {
1595
+ location: {
1596
+ serializedName: "location",
1597
+ type: {
1598
+ name: "String"
1599
+ }
1600
+ },
1601
+ azureAsyncOperation: {
1602
+ serializedName: "azure-asyncoperation",
1603
+ type: {
1604
+ name: "String"
1605
+ }
1606
+ }
1607
+ }
1608
+ }
1609
+ };
1238
1610
 
1239
1611
  var Mappers = /*#__PURE__*/Object.freeze({
1240
1612
  __proto__: null,
@@ -1246,9 +1618,15 @@ var Mappers = /*#__PURE__*/Object.freeze({
1246
1618
  ErrorAdditionalInfo: ErrorAdditionalInfo,
1247
1619
  OperationStatus: OperationStatus,
1248
1620
  Sku: Sku,
1621
+ ManagedServiceIdentity: ManagedServiceIdentity,
1622
+ UserAssignedIdentity: UserAssignedIdentity,
1623
+ ClusterPropertiesEncryption: ClusterPropertiesEncryption,
1624
+ ClusterPropertiesEncryptionCustomerManagedKeyEncryption: ClusterPropertiesEncryptionCustomerManagedKeyEncryption,
1625
+ ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity: ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity,
1249
1626
  PrivateEndpoint: PrivateEndpoint,
1250
1627
  PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1251
1628
  Resource: Resource,
1629
+ SystemData: SystemData,
1252
1630
  ClusterUpdate: ClusterUpdate,
1253
1631
  ClusterList: ClusterList,
1254
1632
  DatabaseList: DatabaseList,
@@ -1264,12 +1642,19 @@ var Mappers = /*#__PURE__*/Object.freeze({
1264
1642
  PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
1265
1643
  PrivateLinkResourceListResult: PrivateLinkResourceListResult,
1266
1644
  ForceUnlinkParameters: ForceUnlinkParameters,
1645
+ FlushParameters: FlushParameters,
1646
+ RegionSkuDetails: RegionSkuDetails,
1647
+ RegionSkuDetail: RegionSkuDetail,
1648
+ LocationInfo: LocationInfo,
1649
+ Capability: Capability,
1650
+ SkuDetail: SkuDetail,
1267
1651
  PrivateEndpointConnection: PrivateEndpointConnection,
1268
1652
  TrackedResource: TrackedResource,
1269
1653
  ProxyResource: ProxyResource,
1270
1654
  PrivateLinkResource: PrivateLinkResource,
1271
1655
  Cluster: Cluster,
1272
- Database: Database
1656
+ Database: Database,
1657
+ DatabasesFlushHeaders: DatabasesFlushHeaders
1273
1658
  });
1274
1659
 
1275
1660
  /*
@@ -1304,7 +1689,7 @@ const $host = {
1304
1689
  const apiVersion = {
1305
1690
  parameterPath: "apiVersion",
1306
1691
  mapper: {
1307
- defaultValue: "2022-01-01",
1692
+ defaultValue: "2023-03-01-preview",
1308
1693
  isConstant: true,
1309
1694
  serializedName: "api-version",
1310
1695
  type: {
@@ -1439,6 +1824,10 @@ const parameters7 = {
1439
1824
  parameterPath: "parameters",
1440
1825
  mapper: ForceUnlinkParameters
1441
1826
  };
1827
+ const parameters8 = {
1828
+ parameterPath: "parameters",
1829
+ mapper: FlushParameters
1830
+ };
1442
1831
  const privateEndpointConnectionName = {
1443
1832
  parameterPath: "privateEndpointConnectionName",
1444
1833
  mapper: {
@@ -1514,17 +1903,24 @@ class OperationsImpl {
1514
1903
  }
1515
1904
  listPagingAll(options) {
1516
1905
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1517
- var e_1, _a;
1906
+ var _a, e_1, _b, _c;
1518
1907
  try {
1519
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1520
- const page = _c.value;
1521
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1908
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1909
+ _c = _f.value;
1910
+ _d = false;
1911
+ try {
1912
+ const page = _c;
1913
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1914
+ }
1915
+ finally {
1916
+ _d = true;
1917
+ }
1522
1918
  }
1523
1919
  }
1524
1920
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1525
1921
  finally {
1526
1922
  try {
1527
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1923
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1528
1924
  }
1529
1925
  finally { if (e_1) throw e_1.error; }
1530
1926
  }
@@ -1535,7 +1931,7 @@ class OperationsImpl {
1535
1931
  * @param options The options parameters.
1536
1932
  */
1537
1933
  _list(options) {
1538
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
1934
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
1539
1935
  }
1540
1936
  /**
1541
1937
  * ListNext
@@ -1547,8 +1943,8 @@ class OperationsImpl {
1547
1943
  }
1548
1944
  }
1549
1945
  // Operation Specifications
1550
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1551
- const listOperationSpec$2 = {
1946
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1947
+ const listOperationSpec$3 = {
1552
1948
  path: "/providers/Microsoft.Cache/operations",
1553
1949
  httpMethod: "GET",
1554
1950
  responses: {
@@ -1562,7 +1958,7 @@ const listOperationSpec$2 = {
1562
1958
  queryParameters: [apiVersion],
1563
1959
  urlParameters: [$host],
1564
1960
  headerParameters: [accept],
1565
- serializer: serializer$5
1961
+ serializer: serializer$6
1566
1962
  };
1567
1963
  const listNextOperationSpec$1 = {
1568
1964
  path: "{nextLink}",
@@ -1577,7 +1973,7 @@ const listNextOperationSpec$1 = {
1577
1973
  },
1578
1974
  urlParameters: [$host, nextLink],
1579
1975
  headerParameters: [accept],
1580
- serializer: serializer$5
1976
+ serializer: serializer$6
1581
1977
  };
1582
1978
 
1583
1979
  /*
@@ -1607,7 +2003,7 @@ class OperationsStatusImpl {
1607
2003
  }
1608
2004
  }
1609
2005
  // Operation Specifications
1610
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2006
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1611
2007
  const getOperationSpec$3 = {
1612
2008
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
1613
2009
  httpMethod: "GET",
@@ -1627,7 +2023,7 @@ const getOperationSpec$3 = {
1627
2023
  subscriptionId
1628
2024
  ],
1629
2025
  headerParameters: [accept],
1630
- serializer: serializer$4
2026
+ serializer: serializer$5
1631
2027
  };
1632
2028
 
1633
2029
  /*
@@ -1637,25 +2033,17 @@ const getOperationSpec$3 = {
1637
2033
  * Code generated by Microsoft (R) AutoRest Code Generator.
1638
2034
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1639
2035
  */
1640
- class LroImpl {
1641
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1642
- this.sendOperationFn = sendOperationFn;
1643
- this.args = args;
1644
- this.spec = spec;
1645
- this.requestPath = requestPath;
1646
- this.requestMethod = requestMethod;
1647
- }
1648
- sendInitialRequest() {
1649
- return tslib.__awaiter(this, void 0, void 0, function* () {
1650
- return this.sendOperationFn(this.args, this.spec);
1651
- });
1652
- }
1653
- sendPollRequest(path) {
1654
- return tslib.__awaiter(this, void 0, void 0, function* () {
1655
- const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
1656
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1657
- });
1658
- }
2036
+ function createLroSpec(inputs) {
2037
+ const { args, spec, sendOperationFn } = inputs;
2038
+ return {
2039
+ requestMethod: spec.httpMethod,
2040
+ requestPath: spec.path,
2041
+ sendInitialRequest: () => sendOperationFn(args, spec),
2042
+ sendPollRequest: (path, options) => {
2043
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
2044
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2045
+ }
2046
+ };
1659
2047
  }
1660
2048
 
1661
2049
  /*
@@ -1719,17 +2107,24 @@ class RedisEnterpriseImpl {
1719
2107
  }
1720
2108
  listByResourceGroupPagingAll(resourceGroupName, options) {
1721
2109
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1722
- var e_1, _a;
2110
+ var _a, e_1, _b, _c;
1723
2111
  try {
1724
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1725
- const page = _c.value;
1726
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2112
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2113
+ _c = _f.value;
2114
+ _d = false;
2115
+ try {
2116
+ const page = _c;
2117
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2118
+ }
2119
+ finally {
2120
+ _d = true;
2121
+ }
1727
2122
  }
1728
2123
  }
1729
2124
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1730
2125
  finally {
1731
2126
  try {
1732
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2127
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1733
2128
  }
1734
2129
  finally { if (e_1) throw e_1.error; }
1735
2130
  }
@@ -1778,17 +2173,24 @@ class RedisEnterpriseImpl {
1778
2173
  }
1779
2174
  listPagingAll(options) {
1780
2175
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1781
- var e_2, _a;
2176
+ var _a, e_2, _b, _c;
1782
2177
  try {
1783
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1784
- const page = _c.value;
1785
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2178
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2179
+ _c = _f.value;
2180
+ _d = false;
2181
+ try {
2182
+ const page = _c;
2183
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2184
+ }
2185
+ finally {
2186
+ _d = true;
2187
+ }
1786
2188
  }
1787
2189
  }
1788
2190
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
1789
2191
  finally {
1790
2192
  try {
1791
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2193
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1792
2194
  }
1793
2195
  finally { if (e_2) throw e_2.error; }
1794
2196
  }
@@ -1806,7 +2208,7 @@ class RedisEnterpriseImpl {
1806
2208
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1807
2209
  return this.client.sendOperationRequest(args, spec);
1808
2210
  });
1809
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2211
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1810
2212
  var _a;
1811
2213
  let currentRawResponse = undefined;
1812
2214
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1825,11 +2227,15 @@ class RedisEnterpriseImpl {
1825
2227
  }
1826
2228
  };
1827
2229
  });
1828
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOperationSpec$1);
1829
- const poller = new coreLro.LroEngine(lro, {
1830
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2230
+ const lro = createLroSpec({
2231
+ sendOperationFn,
2232
+ args: { resourceGroupName, clusterName, parameters, options },
2233
+ spec: createOperationSpec$1
2234
+ });
2235
+ const poller = yield coreLro.createHttpPoller(lro, {
2236
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1831
2237
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1832
- lroResourceLocationConfig: "original-uri"
2238
+ resourceLocationConfig: "original-uri"
1833
2239
  });
1834
2240
  yield poller.poll();
1835
2241
  return poller;
@@ -1860,7 +2266,7 @@ class RedisEnterpriseImpl {
1860
2266
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1861
2267
  return this.client.sendOperationRequest(args, spec);
1862
2268
  });
1863
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2269
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1864
2270
  var _a;
1865
2271
  let currentRawResponse = undefined;
1866
2272
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1879,11 +2285,15 @@ class RedisEnterpriseImpl {
1879
2285
  }
1880
2286
  };
1881
2287
  });
1882
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateOperationSpec$1);
1883
- const poller = new coreLro.LroEngine(lro, {
1884
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2288
+ const lro = createLroSpec({
2289
+ sendOperationFn,
2290
+ args: { resourceGroupName, clusterName, parameters, options },
2291
+ spec: updateOperationSpec$1
2292
+ });
2293
+ const poller = yield coreLro.createHttpPoller(lro, {
2294
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1885
2295
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1886
- lroResourceLocationConfig: "azure-async-operation"
2296
+ resourceLocationConfig: "azure-async-operation"
1887
2297
  });
1888
2298
  yield poller.poll();
1889
2299
  return poller;
@@ -1913,7 +2323,7 @@ class RedisEnterpriseImpl {
1913
2323
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1914
2324
  return this.client.sendOperationRequest(args, spec);
1915
2325
  });
1916
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2326
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1917
2327
  var _a;
1918
2328
  let currentRawResponse = undefined;
1919
2329
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1932,11 +2342,15 @@ class RedisEnterpriseImpl {
1932
2342
  }
1933
2343
  };
1934
2344
  });
1935
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec$2);
1936
- const poller = new coreLro.LroEngine(lro, {
1937
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2345
+ const lro = createLroSpec({
2346
+ sendOperationFn,
2347
+ args: { resourceGroupName, clusterName, options },
2348
+ spec: deleteOperationSpec$2
2349
+ });
2350
+ const poller = yield coreLro.createHttpPoller(lro, {
2351
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1938
2352
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1939
- lroResourceLocationConfig: "azure-async-operation"
2353
+ resourceLocationConfig: "azure-async-operation"
1940
2354
  });
1941
2355
  yield poller.poll();
1942
2356
  return poller;
@@ -1976,7 +2390,7 @@ class RedisEnterpriseImpl {
1976
2390
  * @param options The options parameters.
1977
2391
  */
1978
2392
  _list(options) {
1979
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
2393
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
1980
2394
  }
1981
2395
  /**
1982
2396
  * ListByResourceGroupNext
@@ -1997,7 +2411,7 @@ class RedisEnterpriseImpl {
1997
2411
  }
1998
2412
  }
1999
2413
  // Operation Specifications
2000
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2414
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2001
2415
  const createOperationSpec$1 = {
2002
2416
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
2003
2417
  httpMethod: "PUT",
@@ -2028,7 +2442,7 @@ const createOperationSpec$1 = {
2028
2442
  ],
2029
2443
  headerParameters: [accept, contentType],
2030
2444
  mediaType: "json",
2031
- serializer: serializer$3
2445
+ serializer: serializer$4
2032
2446
  };
2033
2447
  const updateOperationSpec$1 = {
2034
2448
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
@@ -2060,7 +2474,7 @@ const updateOperationSpec$1 = {
2060
2474
  ],
2061
2475
  headerParameters: [accept, contentType],
2062
2476
  mediaType: "json",
2063
- serializer: serializer$3
2477
+ serializer: serializer$4
2064
2478
  };
2065
2479
  const deleteOperationSpec$2 = {
2066
2480
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
@@ -2082,7 +2496,7 @@ const deleteOperationSpec$2 = {
2082
2496
  clusterName
2083
2497
  ],
2084
2498
  headerParameters: [accept],
2085
- serializer: serializer$3
2499
+ serializer: serializer$4
2086
2500
  };
2087
2501
  const getOperationSpec$2 = {
2088
2502
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
@@ -2103,7 +2517,7 @@ const getOperationSpec$2 = {
2103
2517
  clusterName
2104
2518
  ],
2105
2519
  headerParameters: [accept],
2106
- serializer: serializer$3
2520
+ serializer: serializer$4
2107
2521
  };
2108
2522
  const listByResourceGroupOperationSpec = {
2109
2523
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
@@ -2123,9 +2537,9 @@ const listByResourceGroupOperationSpec = {
2123
2537
  resourceGroupName
2124
2538
  ],
2125
2539
  headerParameters: [accept],
2126
- serializer: serializer$3
2540
+ serializer: serializer$4
2127
2541
  };
2128
- const listOperationSpec$1 = {
2542
+ const listOperationSpec$2 = {
2129
2543
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
2130
2544
  httpMethod: "GET",
2131
2545
  responses: {
@@ -2139,7 +2553,7 @@ const listOperationSpec$1 = {
2139
2553
  queryParameters: [apiVersion],
2140
2554
  urlParameters: [$host, subscriptionId],
2141
2555
  headerParameters: [accept],
2142
- serializer: serializer$3
2556
+ serializer: serializer$4
2143
2557
  };
2144
2558
  const listByResourceGroupNextOperationSpec = {
2145
2559
  path: "{nextLink}",
@@ -2159,7 +2573,7 @@ const listByResourceGroupNextOperationSpec = {
2159
2573
  resourceGroupName
2160
2574
  ],
2161
2575
  headerParameters: [accept],
2162
- serializer: serializer$3
2576
+ serializer: serializer$4
2163
2577
  };
2164
2578
  const listNextOperationSpec = {
2165
2579
  path: "{nextLink}",
@@ -2178,7 +2592,7 @@ const listNextOperationSpec = {
2178
2592
  subscriptionId
2179
2593
  ],
2180
2594
  headerParameters: [accept],
2181
- serializer: serializer$3
2595
+ serializer: serializer$4
2182
2596
  };
2183
2597
 
2184
2598
  /*
@@ -2243,17 +2657,24 @@ class DatabasesImpl {
2243
2657
  }
2244
2658
  listByClusterPagingAll(resourceGroupName, clusterName, options) {
2245
2659
  return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
2246
- var e_1, _a;
2660
+ var _a, e_1, _b, _c;
2247
2661
  try {
2248
- for (var _b = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2249
- const page = _c.value;
2250
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2662
+ for (var _d = true, _e = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
2663
+ _c = _f.value;
2664
+ _d = false;
2665
+ try {
2666
+ const page = _c;
2667
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2668
+ }
2669
+ finally {
2670
+ _d = true;
2671
+ }
2251
2672
  }
2252
2673
  }
2253
2674
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
2254
2675
  finally {
2255
2676
  try {
2256
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2677
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2257
2678
  }
2258
2679
  finally { if (e_1) throw e_1.error; }
2259
2680
  }
@@ -2281,7 +2702,7 @@ class DatabasesImpl {
2281
2702
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2282
2703
  return this.client.sendOperationRequest(args, spec);
2283
2704
  });
2284
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2705
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2285
2706
  var _a;
2286
2707
  let currentRawResponse = undefined;
2287
2708
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2300,11 +2721,21 @@ class DatabasesImpl {
2300
2721
  }
2301
2722
  };
2302
2723
  });
2303
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, createOperationSpec);
2304
- const poller = new coreLro.LroEngine(lro, {
2305
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2724
+ const lro = createLroSpec({
2725
+ sendOperationFn,
2726
+ args: {
2727
+ resourceGroupName,
2728
+ clusterName,
2729
+ databaseName,
2730
+ parameters,
2731
+ options
2732
+ },
2733
+ spec: createOperationSpec
2734
+ });
2735
+ const poller = yield coreLro.createHttpPoller(lro, {
2736
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2306
2737
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2307
- lroResourceLocationConfig: "original-uri"
2738
+ resourceLocationConfig: "original-uri"
2308
2739
  });
2309
2740
  yield poller.poll();
2310
2741
  return poller;
@@ -2337,7 +2768,7 @@ class DatabasesImpl {
2337
2768
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2338
2769
  return this.client.sendOperationRequest(args, spec);
2339
2770
  });
2340
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2771
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2341
2772
  var _a;
2342
2773
  let currentRawResponse = undefined;
2343
2774
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2356,11 +2787,21 @@ class DatabasesImpl {
2356
2787
  }
2357
2788
  };
2358
2789
  });
2359
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, updateOperationSpec);
2360
- const poller = new coreLro.LroEngine(lro, {
2361
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2790
+ const lro = createLroSpec({
2791
+ sendOperationFn,
2792
+ args: {
2793
+ resourceGroupName,
2794
+ clusterName,
2795
+ databaseName,
2796
+ parameters,
2797
+ options
2798
+ },
2799
+ spec: updateOperationSpec
2800
+ });
2801
+ const poller = yield coreLro.createHttpPoller(lro, {
2802
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2362
2803
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2363
- lroResourceLocationConfig: "azure-async-operation"
2804
+ resourceLocationConfig: "azure-async-operation"
2364
2805
  });
2365
2806
  yield poller.poll();
2366
2807
  return poller;
@@ -2402,7 +2843,7 @@ class DatabasesImpl {
2402
2843
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2403
2844
  return this.client.sendOperationRequest(args, spec);
2404
2845
  });
2405
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2846
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2406
2847
  var _a;
2407
2848
  let currentRawResponse = undefined;
2408
2849
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2421,11 +2862,15 @@ class DatabasesImpl {
2421
2862
  }
2422
2863
  };
2423
2864
  });
2424
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, options }, deleteOperationSpec$1);
2425
- const poller = new coreLro.LroEngine(lro, {
2426
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2865
+ const lro = createLroSpec({
2866
+ sendOperationFn,
2867
+ args: { resourceGroupName, clusterName, databaseName, options },
2868
+ spec: deleteOperationSpec$1
2869
+ });
2870
+ const poller = yield coreLro.createHttpPoller(lro, {
2871
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2427
2872
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2428
- lroResourceLocationConfig: "azure-async-operation"
2873
+ resourceLocationConfig: "azure-async-operation"
2429
2874
  });
2430
2875
  yield poller.poll();
2431
2876
  return poller;
@@ -2467,7 +2912,7 @@ class DatabasesImpl {
2467
2912
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2468
2913
  return this.client.sendOperationRequest(args, spec);
2469
2914
  });
2470
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2915
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2471
2916
  var _a;
2472
2917
  let currentRawResponse = undefined;
2473
2918
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2486,11 +2931,21 @@ class DatabasesImpl {
2486
2931
  }
2487
2932
  };
2488
2933
  });
2489
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, regenerateKeyOperationSpec);
2490
- const poller = new coreLro.LroEngine(lro, {
2491
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2934
+ const lro = createLroSpec({
2935
+ sendOperationFn,
2936
+ args: {
2937
+ resourceGroupName,
2938
+ clusterName,
2939
+ databaseName,
2940
+ parameters,
2941
+ options
2942
+ },
2943
+ spec: regenerateKeyOperationSpec
2944
+ });
2945
+ const poller = yield coreLro.createHttpPoller(lro, {
2946
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2492
2947
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2493
- lroResourceLocationConfig: "azure-async-operation"
2948
+ resourceLocationConfig: "location"
2494
2949
  });
2495
2950
  yield poller.poll();
2496
2951
  return poller;
@@ -2523,7 +2978,7 @@ class DatabasesImpl {
2523
2978
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2524
2979
  return this.client.sendOperationRequest(args, spec);
2525
2980
  });
2526
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2981
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2527
2982
  var _a;
2528
2983
  let currentRawResponse = undefined;
2529
2984
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2542,11 +2997,21 @@ class DatabasesImpl {
2542
2997
  }
2543
2998
  };
2544
2999
  });
2545
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, importOperationSpec);
2546
- const poller = new coreLro.LroEngine(lro, {
2547
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3000
+ const lro = createLroSpec({
3001
+ sendOperationFn,
3002
+ args: {
3003
+ resourceGroupName,
3004
+ clusterName,
3005
+ databaseName,
3006
+ parameters,
3007
+ options
3008
+ },
3009
+ spec: importOperationSpec
3010
+ });
3011
+ const poller = yield coreLro.createHttpPoller(lro, {
3012
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2548
3013
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2549
- lroResourceLocationConfig: "azure-async-operation"
3014
+ resourceLocationConfig: "azure-async-operation"
2550
3015
  });
2551
3016
  yield poller.poll();
2552
3017
  return poller;
@@ -2579,7 +3044,7 @@ class DatabasesImpl {
2579
3044
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2580
3045
  return this.client.sendOperationRequest(args, spec);
2581
3046
  });
2582
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3047
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2583
3048
  var _a;
2584
3049
  let currentRawResponse = undefined;
2585
3050
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2598,11 +3063,21 @@ class DatabasesImpl {
2598
3063
  }
2599
3064
  };
2600
3065
  });
2601
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, exportOperationSpec);
2602
- const poller = new coreLro.LroEngine(lro, {
2603
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3066
+ const lro = createLroSpec({
3067
+ sendOperationFn,
3068
+ args: {
3069
+ resourceGroupName,
3070
+ clusterName,
3071
+ databaseName,
3072
+ parameters,
3073
+ options
3074
+ },
3075
+ spec: exportOperationSpec
3076
+ });
3077
+ const poller = yield coreLro.createHttpPoller(lro, {
3078
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2604
3079
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2605
- lroResourceLocationConfig: "azure-async-operation"
3080
+ resourceLocationConfig: "azure-async-operation"
2606
3081
  });
2607
3082
  yield poller.poll();
2608
3083
  return poller;
@@ -2635,7 +3110,7 @@ class DatabasesImpl {
2635
3110
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2636
3111
  return this.client.sendOperationRequest(args, spec);
2637
3112
  });
2638
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3113
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2639
3114
  var _a;
2640
3115
  let currentRawResponse = undefined;
2641
3116
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -2654,11 +3129,21 @@ class DatabasesImpl {
2654
3129
  }
2655
3130
  };
2656
3131
  });
2657
- const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, forceUnlinkOperationSpec);
2658
- const poller = new coreLro.LroEngine(lro, {
2659
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3132
+ const lro = createLroSpec({
3133
+ sendOperationFn,
3134
+ args: {
3135
+ resourceGroupName,
3136
+ clusterName,
3137
+ databaseName,
3138
+ parameters,
3139
+ options
3140
+ },
3141
+ spec: forceUnlinkOperationSpec
3142
+ });
3143
+ const poller = yield coreLro.createHttpPoller(lro, {
3144
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2660
3145
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2661
- lroResourceLocationConfig: "azure-async-operation"
3146
+ resourceLocationConfig: "azure-async-operation"
2662
3147
  });
2663
3148
  yield poller.poll();
2664
3149
  return poller;
@@ -2678,6 +3163,72 @@ class DatabasesImpl {
2678
3163
  return poller.pollUntilDone();
2679
3164
  });
2680
3165
  }
3166
+ /**
3167
+ * Flushes all the keys in this database and also from its linked databases.
3168
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3169
+ * @param clusterName The name of the RedisEnterprise cluster.
3170
+ * @param databaseName The name of the database.
3171
+ * @param parameters Information identifying the databases to be flushed
3172
+ * @param options The options parameters.
3173
+ */
3174
+ beginFlush(resourceGroupName, clusterName, databaseName, parameters, options) {
3175
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3176
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3177
+ return this.client.sendOperationRequest(args, spec);
3178
+ });
3179
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3180
+ var _a;
3181
+ let currentRawResponse = undefined;
3182
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3183
+ const callback = (rawResponse, flatResponse) => {
3184
+ currentRawResponse = rawResponse;
3185
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3186
+ };
3187
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3188
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3189
+ return {
3190
+ flatResponse,
3191
+ rawResponse: {
3192
+ statusCode: currentRawResponse.status,
3193
+ body: currentRawResponse.parsedBody,
3194
+ headers: currentRawResponse.headers.toJSON()
3195
+ }
3196
+ };
3197
+ });
3198
+ const lro = createLroSpec({
3199
+ sendOperationFn,
3200
+ args: {
3201
+ resourceGroupName,
3202
+ clusterName,
3203
+ databaseName,
3204
+ parameters,
3205
+ options
3206
+ },
3207
+ spec: flushOperationSpec
3208
+ });
3209
+ const poller = yield coreLro.createHttpPoller(lro, {
3210
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3211
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3212
+ resourceLocationConfig: "location"
3213
+ });
3214
+ yield poller.poll();
3215
+ return poller;
3216
+ });
3217
+ }
3218
+ /**
3219
+ * Flushes all the keys in this database and also from its linked databases.
3220
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3221
+ * @param clusterName The name of the RedisEnterprise cluster.
3222
+ * @param databaseName The name of the database.
3223
+ * @param parameters Information identifying the databases to be flushed
3224
+ * @param options The options parameters.
3225
+ */
3226
+ beginFlushAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
3227
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3228
+ const poller = yield this.beginFlush(resourceGroupName, clusterName, databaseName, parameters, options);
3229
+ return poller.pollUntilDone();
3230
+ });
3231
+ }
2681
3232
  /**
2682
3233
  * ListByClusterNext
2683
3234
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -2690,7 +3241,7 @@ class DatabasesImpl {
2690
3241
  }
2691
3242
  }
2692
3243
  // Operation Specifications
2693
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3244
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2694
3245
  const listByClusterOperationSpec$1 = {
2695
3246
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
2696
3247
  httpMethod: "GET",
@@ -2710,7 +3261,7 @@ const listByClusterOperationSpec$1 = {
2710
3261
  clusterName
2711
3262
  ],
2712
3263
  headerParameters: [accept],
2713
- serializer: serializer$2
3264
+ serializer: serializer$3
2714
3265
  };
2715
3266
  const createOperationSpec = {
2716
3267
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
@@ -2743,7 +3294,7 @@ const createOperationSpec = {
2743
3294
  ],
2744
3295
  headerParameters: [accept, contentType],
2745
3296
  mediaType: "json",
2746
- serializer: serializer$2
3297
+ serializer: serializer$3
2747
3298
  };
2748
3299
  const updateOperationSpec = {
2749
3300
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
@@ -2776,7 +3327,7 @@ const updateOperationSpec = {
2776
3327
  ],
2777
3328
  headerParameters: [accept, contentType],
2778
3329
  mediaType: "json",
2779
- serializer: serializer$2
3330
+ serializer: serializer$3
2780
3331
  };
2781
3332
  const getOperationSpec$1 = {
2782
3333
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
@@ -2798,7 +3349,7 @@ const getOperationSpec$1 = {
2798
3349
  databaseName
2799
3350
  ],
2800
3351
  headerParameters: [accept],
2801
- serializer: serializer$2
3352
+ serializer: serializer$3
2802
3353
  };
2803
3354
  const deleteOperationSpec$1 = {
2804
3355
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
@@ -2821,7 +3372,7 @@ const deleteOperationSpec$1 = {
2821
3372
  databaseName
2822
3373
  ],
2823
3374
  headerParameters: [accept],
2824
- serializer: serializer$2
3375
+ serializer: serializer$3
2825
3376
  };
2826
3377
  const listKeysOperationSpec = {
2827
3378
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
@@ -2843,7 +3394,7 @@ const listKeysOperationSpec = {
2843
3394
  databaseName
2844
3395
  ],
2845
3396
  headerParameters: [accept],
2846
- serializer: serializer$2
3397
+ serializer: serializer$3
2847
3398
  };
2848
3399
  const regenerateKeyOperationSpec = {
2849
3400
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
@@ -2876,7 +3427,7 @@ const regenerateKeyOperationSpec = {
2876
3427
  ],
2877
3428
  headerParameters: [accept, contentType],
2878
3429
  mediaType: "json",
2879
- serializer: serializer$2
3430
+ serializer: serializer$3
2880
3431
  };
2881
3432
  const importOperationSpec = {
2882
3433
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
@@ -2901,7 +3452,7 @@ const importOperationSpec = {
2901
3452
  ],
2902
3453
  headerParameters: [accept, contentType],
2903
3454
  mediaType: "json",
2904
- serializer: serializer$2
3455
+ serializer: serializer$3
2905
3456
  };
2906
3457
  const exportOperationSpec = {
2907
3458
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
@@ -2926,7 +3477,7 @@ const exportOperationSpec = {
2926
3477
  ],
2927
3478
  headerParameters: [accept, contentType],
2928
3479
  mediaType: "json",
2929
- serializer: serializer$2
3480
+ serializer: serializer$3
2930
3481
  };
2931
3482
  const forceUnlinkOperationSpec = {
2932
3483
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/forceUnlink",
@@ -2951,7 +3502,32 @@ const forceUnlinkOperationSpec = {
2951
3502
  ],
2952
3503
  headerParameters: [accept, contentType],
2953
3504
  mediaType: "json",
2954
- serializer: serializer$2
3505
+ serializer: serializer$3
3506
+ };
3507
+ const flushOperationSpec = {
3508
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush",
3509
+ httpMethod: "POST",
3510
+ responses: {
3511
+ 200: {},
3512
+ 201: {},
3513
+ 202: {},
3514
+ 204: {},
3515
+ default: {
3516
+ bodyMapper: ErrorResponse
3517
+ }
3518
+ },
3519
+ requestBody: parameters8,
3520
+ queryParameters: [apiVersion],
3521
+ urlParameters: [
3522
+ $host,
3523
+ subscriptionId,
3524
+ resourceGroupName,
3525
+ clusterName,
3526
+ databaseName
3527
+ ],
3528
+ headerParameters: [accept, contentType],
3529
+ mediaType: "json",
3530
+ serializer: serializer$3
2955
3531
  };
2956
3532
  const listByClusterNextOperationSpec = {
2957
3533
  path: "{nextLink}",
@@ -2972,7 +3548,7 @@ const listByClusterNextOperationSpec = {
2972
3548
  clusterName
2973
3549
  ],
2974
3550
  headerParameters: [accept],
2975
- serializer: serializer$2
3551
+ serializer: serializer$3
2976
3552
  };
2977
3553
 
2978
3554
  /*
@@ -3024,17 +3600,24 @@ class PrivateEndpointConnectionsImpl {
3024
3600
  }
3025
3601
  listPagingAll(resourceGroupName, clusterName, options) {
3026
3602
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3027
- var e_1, _a;
3603
+ var _a, e_1, _b, _c;
3028
3604
  try {
3029
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3030
- const page = _c.value;
3031
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3605
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3606
+ _c = _f.value;
3607
+ _d = false;
3608
+ try {
3609
+ const page = _c;
3610
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3611
+ }
3612
+ finally {
3613
+ _d = true;
3614
+ }
3032
3615
  }
3033
3616
  }
3034
3617
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
3035
3618
  finally {
3036
3619
  try {
3037
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3620
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3038
3621
  }
3039
3622
  finally { if (e_1) throw e_1.error; }
3040
3623
  }
@@ -3047,7 +3630,7 @@ class PrivateEndpointConnectionsImpl {
3047
3630
  * @param options The options parameters.
3048
3631
  */
3049
3632
  _list(resourceGroupName, clusterName, options) {
3050
- return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec);
3633
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec$1);
3051
3634
  }
3052
3635
  /**
3053
3636
  * Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
@@ -3080,7 +3663,7 @@ class PrivateEndpointConnectionsImpl {
3080
3663
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3081
3664
  return this.client.sendOperationRequest(args, spec);
3082
3665
  });
3083
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3666
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3084
3667
  var _a;
3085
3668
  let currentRawResponse = undefined;
3086
3669
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -3099,15 +3682,19 @@ class PrivateEndpointConnectionsImpl {
3099
3682
  }
3100
3683
  };
3101
3684
  });
3102
- const lro = new LroImpl(sendOperation, {
3103
- resourceGroupName,
3104
- clusterName,
3105
- privateEndpointConnectionName,
3106
- properties,
3107
- options
3108
- }, putOperationSpec);
3109
- const poller = new coreLro.LroEngine(lro, {
3110
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3685
+ const lro = createLroSpec({
3686
+ sendOperationFn,
3687
+ args: {
3688
+ resourceGroupName,
3689
+ clusterName,
3690
+ privateEndpointConnectionName,
3691
+ properties,
3692
+ options
3693
+ },
3694
+ spec: putOperationSpec
3695
+ });
3696
+ const poller = yield coreLro.createHttpPoller(lro, {
3697
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3111
3698
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3112
3699
  });
3113
3700
  yield poller.poll();
@@ -3148,8 +3735,8 @@ class PrivateEndpointConnectionsImpl {
3148
3735
  }
3149
3736
  }
3150
3737
  // Operation Specifications
3151
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3152
- const listOperationSpec = {
3738
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3739
+ const listOperationSpec$1 = {
3153
3740
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
3154
3741
  httpMethod: "GET",
3155
3742
  responses: {
@@ -3168,7 +3755,7 @@ const listOperationSpec = {
3168
3755
  clusterName
3169
3756
  ],
3170
3757
  headerParameters: [accept],
3171
- serializer: serializer$1
3758
+ serializer: serializer$2
3172
3759
  };
3173
3760
  const getOperationSpec = {
3174
3761
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -3190,7 +3777,7 @@ const getOperationSpec = {
3190
3777
  privateEndpointConnectionName
3191
3778
  ],
3192
3779
  headerParameters: [accept],
3193
- serializer: serializer$1
3780
+ serializer: serializer$2
3194
3781
  };
3195
3782
  const putOperationSpec = {
3196
3783
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -3223,7 +3810,7 @@ const putOperationSpec = {
3223
3810
  ],
3224
3811
  headerParameters: [accept, contentType],
3225
3812
  mediaType: "json",
3226
- serializer: serializer$1
3813
+ serializer: serializer$2
3227
3814
  };
3228
3815
  const deleteOperationSpec = {
3229
3816
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -3244,7 +3831,7 @@ const deleteOperationSpec = {
3244
3831
  privateEndpointConnectionName
3245
3832
  ],
3246
3833
  headerParameters: [accept],
3247
- serializer: serializer$1
3834
+ serializer: serializer$2
3248
3835
  };
3249
3836
 
3250
3837
  /*
@@ -3296,17 +3883,24 @@ class PrivateLinkResourcesImpl {
3296
3883
  }
3297
3884
  listByClusterPagingAll(resourceGroupName, clusterName, options) {
3298
3885
  return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
3299
- var e_1, _a;
3886
+ var _a, e_1, _b, _c;
3300
3887
  try {
3301
- for (var _b = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3302
- const page = _c.value;
3303
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3888
+ for (var _d = true, _e = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3889
+ _c = _f.value;
3890
+ _d = false;
3891
+ try {
3892
+ const page = _c;
3893
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3894
+ }
3895
+ finally {
3896
+ _d = true;
3897
+ }
3304
3898
  }
3305
3899
  }
3306
3900
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
3307
3901
  finally {
3308
3902
  try {
3309
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3903
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3310
3904
  }
3311
3905
  finally { if (e_1) throw e_1.error; }
3312
3906
  }
@@ -3323,7 +3917,7 @@ class PrivateLinkResourcesImpl {
3323
3917
  }
3324
3918
  }
3325
3919
  // Operation Specifications
3326
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3920
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3327
3921
  const listByClusterOperationSpec = {
3328
3922
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources",
3329
3923
  httpMethod: "GET",
@@ -3343,6 +3937,109 @@ const listByClusterOperationSpec = {
3343
3937
  clusterName
3344
3938
  ],
3345
3939
  headerParameters: [accept],
3940
+ serializer: serializer$1
3941
+ };
3942
+
3943
+ /*
3944
+ * Copyright (c) Microsoft Corporation.
3945
+ * Licensed under the MIT License.
3946
+ *
3947
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3948
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3949
+ */
3950
+ /// <reference lib="esnext.asynciterable" />
3951
+ /** Class containing Skus operations. */
3952
+ class SkusImpl {
3953
+ /**
3954
+ * Initialize a new instance of the class Skus class.
3955
+ * @param client Reference to the service client
3956
+ */
3957
+ constructor(client) {
3958
+ this.client = client;
3959
+ }
3960
+ /**
3961
+ * Gets information about skus in specified location for the given subscription id
3962
+ * @param location The name of Azure region.
3963
+ * @param options The options parameters.
3964
+ */
3965
+ list(location, options) {
3966
+ const iter = this.listPagingAll(location, options);
3967
+ return {
3968
+ next() {
3969
+ return iter.next();
3970
+ },
3971
+ [Symbol.asyncIterator]() {
3972
+ return this;
3973
+ },
3974
+ byPage: (settings) => {
3975
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3976
+ throw new Error("maxPageSize is not supported by this operation.");
3977
+ }
3978
+ return this.listPagingPage(location, options, settings);
3979
+ }
3980
+ };
3981
+ }
3982
+ listPagingPage(location, options, _settings) {
3983
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3984
+ let result;
3985
+ result = yield tslib.__await(this._list(location, options));
3986
+ yield yield tslib.__await(result.value || []);
3987
+ });
3988
+ }
3989
+ listPagingAll(location, options) {
3990
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
3991
+ var _a, e_1, _b, _c;
3992
+ try {
3993
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3994
+ _c = _f.value;
3995
+ _d = false;
3996
+ try {
3997
+ const page = _c;
3998
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3999
+ }
4000
+ finally {
4001
+ _d = true;
4002
+ }
4003
+ }
4004
+ }
4005
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4006
+ finally {
4007
+ try {
4008
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4009
+ }
4010
+ finally { if (e_1) throw e_1.error; }
4011
+ }
4012
+ });
4013
+ }
4014
+ /**
4015
+ * Gets information about skus in specified location for the given subscription id
4016
+ * @param location The name of Azure region.
4017
+ * @param options The options parameters.
4018
+ */
4019
+ _list(location, options) {
4020
+ return this.client.sendOperationRequest({ location, options }, listOperationSpec);
4021
+ }
4022
+ }
4023
+ // Operation Specifications
4024
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4025
+ const listOperationSpec = {
4026
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus",
4027
+ httpMethod: "GET",
4028
+ responses: {
4029
+ 200: {
4030
+ bodyMapper: RegionSkuDetails
4031
+ },
4032
+ default: {
4033
+ bodyMapper: ErrorResponse
4034
+ }
4035
+ },
4036
+ queryParameters: [apiVersion],
4037
+ urlParameters: [
4038
+ $host,
4039
+ location,
4040
+ subscriptionId
4041
+ ],
4042
+ headerParameters: [accept],
3346
4043
  serializer
3347
4044
  };
3348
4045
 
@@ -3376,7 +4073,7 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
3376
4073
  requestContentType: "application/json; charset=utf-8",
3377
4074
  credential: credentials
3378
4075
  };
3379
- const packageDetails = `azsdk-js-arm-redisenterprisecache/2.2.1`;
4076
+ const packageDetails = `azsdk-js-arm-redisenterprisecache/2.3.0-beta.1`;
3380
4077
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3381
4078
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3382
4079
  : `${packageDetails}`;
@@ -3409,13 +4106,14 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
3409
4106
  this.subscriptionId = subscriptionId;
3410
4107
  // Assigning values to Constant parameters
3411
4108
  this.$host = options.$host || "https://management.azure.com";
3412
- this.apiVersion = options.apiVersion || "2022-01-01";
4109
+ this.apiVersion = options.apiVersion || "2023-03-01-preview";
3413
4110
  this.operations = new OperationsImpl(this);
3414
4111
  this.operationsStatus = new OperationsStatusImpl(this);
3415
4112
  this.redisEnterprise = new RedisEnterpriseImpl(this);
3416
4113
  this.databases = new DatabasesImpl(this);
3417
4114
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
3418
4115
  this.privateLinkResources = new PrivateLinkResourcesImpl(this);
4116
+ this.skus = new SkusImpl(this);
3419
4117
  this.addCustomApiVersionPolicy(options.apiVersion);
3420
4118
  }
3421
4119
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */