@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
@@ -10,15 +10,17 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the status of operation.
15
17
  *
16
18
  * @summary Gets the status of operation.
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/OperationsStatusGet.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/OperationsStatusGet.json
18
20
  */
19
21
  function operationsStatusGet() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
23
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
22
24
  const location = "West US";
23
25
  const operationId = "testoperationid";
24
26
  const credential = new DefaultAzureCredential();
@@ -27,5 +29,10 @@ function operationsStatusGet() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- operationsStatusGet().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ operationsStatusGet();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=operationsStatusGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operationsStatusGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationsStatusGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"operationsStatusGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationsStatusGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,MAAM,WAAW,GAAG,iBAAiB,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
15
17
  *
16
18
  * @summary Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDeletePrivateEndpointConnection.json
18
20
  */
19
21
  function redisEnterpriseDeletePrivateEndpointConnection() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
23
25
  const clusterName = "cache1";
24
26
  const privateEndpointConnectionName = "pectest01";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function redisEnterpriseDeletePrivateEndpointConnection() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- redisEnterpriseDeletePrivateEndpointConnection().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ redisEnterpriseDeletePrivateEndpointConnection();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=privateEndpointConnectionsDeleteSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,8CAA8C;;QAC3D,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8CAA8C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8CAA8C;;QAC3D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,8CAA8C,EAAE,CAAC;IACnD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
15
17
  *
16
18
  * @summary Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseGetPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json
18
20
  */
19
21
  function redisEnterpriseGetPrivateEndpointConnection() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
23
25
  const clusterName = "cache1";
24
26
  const privateEndpointConnectionName = "pectest01";
25
27
  const credential = new DefaultAzureCredential();
@@ -28,5 +30,10 @@ function redisEnterpriseGetPrivateEndpointConnection() {
28
30
  console.log(result);
29
31
  });
30
32
  }
31
- redisEnterpriseGetPrivateEndpointConnection().catch(console.error);
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ redisEnterpriseGetPrivateEndpointConnection();
36
+ });
37
+ }
38
+ main().catch(console.error);
32
39
  //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2CAA2C,EAAE,CAAC;IAChD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,36 +10,50 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Lists all the private endpoint connections associated with the RedisEnterprise cluster.
15
17
  *
16
18
  * @summary Lists all the private endpoint connections associated with the RedisEnterprise cluster.
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseListPrivateEndpointConnections.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListPrivateEndpointConnections.json
18
20
  */
19
21
  function redisEnterpriseListPrivateEndpointConnections() {
20
- var e_1, _a;
22
+ var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "subid";
23
- const resourceGroupName = "rg1";
24
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
25
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
24
26
  const clusterName = "cache1";
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
29
  const resArray = new Array();
28
30
  try {
29
- for (var _b = __asyncValues(client.privateEndpointConnections.list(resourceGroupName, clusterName)), _c; _c = yield _b.next(), !_c.done;) {
30
- let item = _c.value;
31
- resArray.push(item);
31
+ for (var _d = true, _e = __asyncValues(client.privateEndpointConnections.list(resourceGroupName, clusterName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ try {
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ finally {
39
+ _d = true;
40
+ }
32
41
  }
33
42
  }
34
43
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
44
  finally {
36
45
  try {
37
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
46
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
38
47
  }
39
48
  finally { if (e_1) throw e_1.error; }
40
49
  }
41
50
  console.log(resArray);
42
51
  });
43
52
  }
44
- redisEnterpriseListPrivateEndpointConnections().catch(console.error);
53
+ function main() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ redisEnterpriseListPrivateEndpointConnections();
56
+ });
57
+ }
58
+ main().catch(console.error);
45
59
  //# sourceMappingURL=privateEndpointConnectionsListSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsListSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6CAA6C;;;QAC1D,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAC3D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6CAA6C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsListSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6CAA6C;;;QAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAC3D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster.
15
17
  *
16
18
  * @summary Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster.
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterprisePutPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterprisePutPrivateEndpointConnection.json
18
20
  */
19
21
  function redisEnterprisePutPrivateEndpointConnection() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
23
25
  const clusterName = "cache1";
24
26
  const privateEndpointConnectionName = "pectest01";
25
27
  const properties = {
@@ -34,5 +36,10 @@ function redisEnterprisePutPrivateEndpointConnection() {
34
36
  console.log(result);
35
37
  });
36
38
  }
37
- redisEnterprisePutPrivateEndpointConnection().catch(console.error);
39
+ function main() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ redisEnterprisePutPrivateEndpointConnection();
42
+ });
43
+ }
44
+ main().catch(console.error);
38
45
  //# sourceMappingURL=privateEndpointConnectionsPutSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsPutSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsPutSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,eAAe,CACpE,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsPutSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsPutSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,eAAe,CACpE,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2CAA2C,EAAE,CAAC;IAChD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,36 +10,50 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets the private link resources that need to be created for a RedisEnterprise cluster.
15
17
  *
16
18
  * @summary Gets the private link resources that need to be created for a RedisEnterprise cluster.
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseListPrivateLinkResources.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListPrivateLinkResources.json
18
20
  */
19
21
  function redisEnterpriseListPrivateLinkResources() {
20
- var e_1, _a;
22
+ var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "subid";
23
- const resourceGroupName = "rg1";
24
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
25
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
24
26
  const clusterName = "cache1";
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
29
  const resArray = new Array();
28
30
  try {
29
- for (var _b = __asyncValues(client.privateLinkResources.listByCluster(resourceGroupName, clusterName)), _c; _c = yield _b.next(), !_c.done;) {
30
- let item = _c.value;
31
- resArray.push(item);
31
+ for (var _d = true, _e = __asyncValues(client.privateLinkResources.listByCluster(resourceGroupName, clusterName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ try {
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ finally {
39
+ _d = true;
40
+ }
32
41
  }
33
42
  }
34
43
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
44
  finally {
36
45
  try {
37
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
46
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
38
47
  }
39
48
  finally { if (e_1) throw e_1.error; }
40
49
  }
41
50
  console.log(resArray);
42
51
  });
43
52
  }
44
- redisEnterpriseListPrivateLinkResources().catch(console.error);
53
+ function main() {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ redisEnterpriseListPrivateLinkResources();
56
+ });
57
+ }
58
+ main().catch(console.error);
45
59
  //# sourceMappingURL=privateLinkResourcesListByClusterSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResourcesListByClusterSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByClusterSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;;QACpD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAC9D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateLinkResourcesListByClusterSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByClusterSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uCAAuC;;;QACpD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAC9D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,uCAAuC,EAAE,CAAC;IAC5C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,18 +10,35 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
15
17
  *
16
18
  * @summary Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseCreate.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseCreate.json
18
20
  */
19
21
  function redisEnterpriseCreate() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
23
25
  const clusterName = "cache1";
24
26
  const parameters = {
27
+ encryption: {
28
+ customerManagedKeyEncryption: {
29
+ keyEncryptionKeyIdentity: {
30
+ identityType: "userAssignedIdentity",
31
+ userAssignedIdentityResourceId: "/subscriptions/your-subscription/resourceGroups/your-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/your-identity"
32
+ },
33
+ keyEncryptionKeyUrl: "https://your-kv.vault.azure.net/keys/your-key/your-key-version"
34
+ }
35
+ },
36
+ identity: {
37
+ type: "UserAssigned",
38
+ userAssignedIdentities: {
39
+ "/subscriptions/yourSubscription/resourceGroups/yourRg/providers/MicrosoftManagedIdentity/userAssignedIdentities/yourIdentity": {}
40
+ }
41
+ },
25
42
  location: "West US",
26
43
  minimumTlsVersion: "1.2",
27
44
  sku: { name: "EnterpriseFlash_F300", capacity: 3 },
@@ -34,5 +51,10 @@ function redisEnterpriseCreate() {
34
51
  console.log(result);
35
52
  });
36
53
  }
37
- redisEnterpriseCreate().catch(console.error);
54
+ function main() {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ redisEnterpriseCreate();
57
+ });
58
+ }
59
+ main().catch(console.error);
38
60
  //# sourceMappingURL=redisEnterpriseCreateSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redisEnterpriseCreateSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAY;YAC1B,QAAQ,EAAE,SAAS;YACnB,iBAAiB,EAAE,KAAK;YACxB,GAAG,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,EAAE;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SACvB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"redisEnterpriseCreateSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAY;YAC1B,UAAU,EAAE;gBACV,4BAA4B,EAAE;oBAC5B,wBAAwB,EAAE;wBACxB,YAAY,EAAE,sBAAsB;wBACpC,8BAA8B,EAC5B,kIAAkI;qBACrI;oBACD,mBAAmB,EACjB,gEAAgE;iBACnE;aACF;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,cAAc;gBACpB,sBAAsB,EAAE;oBACtB,8HAA8H,EAAE,EAAE;iBACnI;aACF;YACD,QAAQ,EAAE,SAAS;YACnB,iBAAiB,EAAE,KAAK;YACxB,GAAG,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,EAAE;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SACvB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -17,7 +17,7 @@ import { __asyncValues, __awaiter } from "tslib";
17
17
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function redisEnterpriseDatabasesListByCluster() {
20
- var e_1, _a;
20
+ var _a, e_1, _b, _c;
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const subscriptionId = "subid";
23
23
  const resourceGroupName = "rg1";
@@ -26,15 +26,22 @@ function redisEnterpriseDatabasesListByCluster() {
26
26
  const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
27
  const resArray = new Array();
28
28
  try {
29
- for (var _b = __asyncValues(client.databases.listByCluster(resourceGroupName, clusterName)), _c; _c = yield _b.next(), !_c.done;) {
30
- let item = _c.value;
31
- resArray.push(item);
29
+ for (var _d = true, _e = __asyncValues(client.databases.listByCluster(resourceGroupName, clusterName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
30
+ _c = _f.value;
31
+ _d = false;
32
+ try {
33
+ let item = _c;
34
+ resArray.push(item);
35
+ }
36
+ finally {
37
+ _d = true;
38
+ }
32
39
  }
33
40
  }
34
41
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
42
  finally {
36
43
  try {
37
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
44
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
38
45
  }
39
46
  finally { if (e_1) throw e_1.error; }
40
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"redisEnterpriseDatabasesListByCluster.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesListByCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qCAAqC;;;QAClD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CACnD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"redisEnterpriseDatabasesListByCluster.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesListByCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qCAAqC;;;QAClD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CACnD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Deletes a RedisEnterprise cache cluster.
15
17
  *
16
18
  * @summary Deletes a RedisEnterprise cache cluster.
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDelete.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseDelete.json
18
20
  */
19
21
  function redisEnterpriseDelete() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
23
25
  const clusterName = "cache1";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
@@ -27,5 +29,10 @@ function redisEnterpriseDelete() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- redisEnterpriseDelete().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ redisEnterpriseDelete();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=redisEnterpriseDeleteSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redisEnterpriseDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"redisEnterpriseDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,16 +10,18 @@ import { __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets information about a RedisEnterprise cluster
15
17
  *
16
18
  * @summary Gets information about a RedisEnterprise cluster
17
- * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseGet.json
19
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseGet.json
18
20
  */
19
21
  function redisEnterpriseGet() {
20
22
  return __awaiter(this, void 0, void 0, function* () {
21
- const subscriptionId = "subid";
22
- const resourceGroupName = "rg1";
23
+ const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["REDISENTERPRISE_RESOURCE_GROUP"] || "rg1";
23
25
  const clusterName = "cache1";
24
26
  const credential = new DefaultAzureCredential();
25
27
  const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
@@ -27,5 +29,10 @@ function redisEnterpriseGet() {
27
29
  console.log(result);
28
30
  });
29
31
  }
30
- redisEnterpriseGet().catch(console.error);
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ redisEnterpriseGet();
35
+ });
36
+ }
37
+ main().catch(console.error);
31
38
  //# sourceMappingURL=redisEnterpriseGetSample.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redisEnterpriseGetSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"redisEnterpriseGetSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,IAAI,KAAK,CAAC;QACzD,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -17,22 +17,29 @@ import { __asyncValues, __awaiter } from "tslib";
17
17
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function redisEnterpriseList() {
20
- var e_1, _a;
20
+ var _a, e_1, _b, _c;
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const subscriptionId = "subid";
23
23
  const credential = new DefaultAzureCredential();
24
24
  const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
25
25
  const resArray = new Array();
26
26
  try {
27
- for (var _b = __asyncValues(client.redisEnterprise.list()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
27
+ for (var _d = true, _e = __asyncValues(client.redisEnterprise.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
28
+ _c = _f.value;
29
+ _d = false;
30
+ try {
31
+ let item = _c;
32
+ resArray.push(item);
33
+ }
34
+ finally {
35
+ _d = true;
36
+ }
30
37
  }
31
38
  }
32
39
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
40
  finally {
34
41
  try {
35
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
42
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
36
43
  }
37
44
  finally { if (e_1) throw e_1.error; }
38
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"redisEnterpriseList.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAzC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"redisEnterpriseList.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA7B,cAA6B;gBAA7B,WAA6B;;oBAAzC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -17,7 +17,7 @@ import { __asyncValues, __awaiter } from "tslib";
17
17
  import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function redisEnterpriseListByResourceGroup() {
20
- var e_1, _a;
20
+ var _a, e_1, _b, _c;
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const subscriptionId = "subid";
23
23
  const resourceGroupName = "rg1";
@@ -25,15 +25,22 @@ function redisEnterpriseListByResourceGroup() {
25
25
  const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
26
26
  const resArray = new Array();
27
27
  try {
28
- for (var _b = __asyncValues(client.redisEnterprise.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
- let item = _c.value;
30
- resArray.push(item);
28
+ for (var _d = true, _e = __asyncValues(client.redisEnterprise.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
29
+ _c = _f.value;
30
+ _d = false;
31
+ try {
32
+ let item = _c;
33
+ resArray.push(item);
34
+ }
35
+ finally {
36
+ _d = true;
37
+ }
31
38
  }
32
39
  }
33
40
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
41
  finally {
35
42
  try {
36
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
43
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
37
44
  }
38
45
  finally { if (e_1) throw e_1.error; }
39
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"redisEnterpriseListByResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListByResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC/D,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"redisEnterpriseListByResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListByResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC/D,iBAAiB,CAClB,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}