@azure/arm-redisenterprisecache 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +11 -0
  3. package/dist/index.js +323 -79
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/databasesCreateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/databasesCreateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/databasesCreateSample.js +80 -0
  10. package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/databasesDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/databasesDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/databasesDeleteSample.js +32 -0
  14. package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/databasesExportSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/databasesExportSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/databasesExportSample.js +35 -0
  18. package/dist-esm/samples-dev/databasesExportSample.js.map +1 -0
  19. package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/databasesForceUnlinkSample.js +37 -0
  22. package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -0
  23. package/dist-esm/samples-dev/databasesGetSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/databasesGetSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/databasesGetSample.js +32 -0
  26. package/dist-esm/samples-dev/databasesGetSample.js.map +1 -0
  27. package/dist-esm/samples-dev/databasesImportSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/databasesImportSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/databasesImportSample.js +38 -0
  30. package/dist-esm/samples-dev/databasesImportSample.js.map +1 -0
  31. package/dist-esm/samples-dev/databasesListByClusterSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/databasesListByClusterSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/databasesListByClusterSample.js +45 -0
  34. package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -0
  35. package/dist-esm/samples-dev/databasesListKeysSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/databasesListKeysSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/databasesListKeysSample.js +32 -0
  38. package/dist-esm/samples-dev/databasesListKeysSample.js.map +1 -0
  39. package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts +2 -0
  40. package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/databasesRegenerateKeySample.js +33 -0
  42. package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -0
  43. package/dist-esm/samples-dev/databasesUpdateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/databasesUpdateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/databasesUpdateSample.js +37 -0
  46. package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  50. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  51. package/dist-esm/samples-dev/operationsStatusGetSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/operationsStatusGetSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/operationsStatusGetSample.js +31 -0
  54. package/dist-esm/samples-dev/operationsStatusGetSample.js.map +1 -0
  55. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  58. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  59. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  62. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +45 -0
  66. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  67. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +38 -0
  70. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -0
  71. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +45 -0
  74. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -0
  75. package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +38 -0
  78. package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -0
  79. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +31 -0
  82. package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +1 -0
  83. package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/redisEnterpriseGetSample.js +31 -0
  86. package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +1 -0
  87. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +44 -0
  90. package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -0
  91. package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/redisEnterpriseListSample.js +43 -0
  94. package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -0
  95. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts +2 -0
  96. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +36 -0
  98. package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -0
  99. package/dist-esm/src/models/index.d.ts +54 -1
  100. package/dist-esm/src/models/index.d.ts.map +1 -1
  101. package/dist-esm/src/models/index.js +9 -0
  102. package/dist-esm/src/models/index.js.map +1 -1
  103. package/dist-esm/src/models/mappers.d.ts +3 -0
  104. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  105. package/dist-esm/src/models/mappers.js +80 -0
  106. package/dist-esm/src/models/mappers.js.map +1 -1
  107. package/dist-esm/src/models/parameters.d.ts +1 -0
  108. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  109. package/dist-esm/src/models/parameters.js +6 -2
  110. package/dist-esm/src/models/parameters.js.map +1 -1
  111. package/dist-esm/src/operations/databases.d.ts +19 -1
  112. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  113. package/dist-esm/src/operations/databases.js +99 -6
  114. package/dist-esm/src/operations/databases.js.map +1 -1
  115. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  116. package/dist-esm/src/operations/privateEndpointConnections.js +3 -1
  117. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  118. package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
  119. package/dist-esm/src/operations/redisEnterprise.js +9 -3
  120. package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
  121. package/dist-esm/src/operationsInterfaces/databases.d.ts +19 -1
  122. package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
  123. package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
  124. package/dist-esm/src/redisEnterpriseManagementClient.js +4 -3
  125. package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
  126. package/package.json +25 -13
  127. package/review/arm-redisenterprisecache.api.md +44 -0
  128. package/rollup.config.js +6 -72
  129. package/src/models/index.ts +61 -1
  130. package/src/models/mappers.ts +84 -0
  131. package/src/models/parameters.ts +7 -1
  132. package/src/operations/databases.ts +139 -6
  133. package/src/operations/privateEndpointConnections.ts +3 -1
  134. package/src/operations/redisEnterprise.ts +9 -3
  135. package/src/operationsInterfaces/databases.ts +33 -1
  136. package/src/redisEnterpriseManagementClient.ts +4 -3
  137. package/tsconfig.json +18 -5
  138. package/types/arm-redisenterprisecache.d.ts +78 -1
  139. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesExportSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesExportSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Exports a database file from target database.
15
+ *
16
+ * @summary Exports a database file from target database.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesExport.json
18
+ */
19
+ function redisEnterpriseDatabasesExport() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const databaseName = "default";
25
+ const parameters = {
26
+ sasUri: "https://contosostorage.blob.core.window.net/urlToBlobContainer?sasKeyParameters"
27
+ };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
30
+ const result = yield client.databases.beginExportAndWait(resourceGroupName, clusterName, databaseName, parameters);
31
+ console.log(result);
32
+ });
33
+ }
34
+ redisEnterpriseDatabasesExport().catch(console.error);
35
+ //# sourceMappingURL=databasesExportSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesExportSample.js","sourceRoot":"","sources":["../../samples-dev/databasesExportSample.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,8BAA8B;;QAC3C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAA4B;YAC1C,MAAM,EACJ,iFAAiF;SACpF,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,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=databasesForceUnlinkSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesForceUnlinkSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesForceUnlinkSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Forcibly removes the link to the specified database resource.
15
+ *
16
+ * @summary Forcibly removes the link to the specified database resource.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesForceUnlink.json
18
+ */
19
+ function howToUnlinkADatabaseDuringARegionalOutage() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const databaseName = "default";
25
+ const parameters = {
26
+ ids: [
27
+ "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"
28
+ ]
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
32
+ const result = yield client.databases.beginForceUnlinkAndWait(resourceGroupName, clusterName, databaseName, parameters);
33
+ console.log(result);
34
+ });
35
+ }
36
+ howToUnlinkADatabaseDuringARegionalOutage().catch(console.error);
37
+ //# sourceMappingURL=databasesForceUnlinkSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesForceUnlinkSample.js","sourceRoot":"","sources":["../../samples-dev/databasesForceUnlinkSample.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,yCAAyC;;QACtD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAA0B;YACxC,GAAG,EAAE;gBACH,6GAA6G;aAC9G;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,SAAS,CAAC,uBAAuB,CAC3D,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yCAAyC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=databasesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets information about a database in a RedisEnterprise cluster.
15
+ *
16
+ * @summary Gets information about a database in a RedisEnterprise cluster.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesGet.json
18
+ */
19
+ function redisEnterpriseDatabasesGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const databaseName = "default";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
+ const result = yield client.databases.get(resourceGroupName, clusterName, databaseName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ redisEnterpriseDatabasesGet().catch(console.error);
32
+ //# sourceMappingURL=databasesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesGetSample.js","sourceRoot":"","sources":["../../samples-dev/databasesGetSample.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,2BAA2B;;QACxC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,YAAY,GAAG,SAAS,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,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,WAAW,EACX,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=databasesImportSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesImportSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesImportSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Imports database files to target database.
15
+ *
16
+ * @summary Imports database files to target database.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesImport.json
18
+ */
19
+ function redisEnterpriseDatabasesImport() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const databaseName = "default";
25
+ const parameters = {
26
+ sasUris: [
27
+ "https://contosostorage.blob.core.window.net/urltoBlobFile1?sasKeyParameters",
28
+ "https://contosostorage.blob.core.window.net/urltoBlobFile2?sasKeyParameters"
29
+ ]
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
33
+ const result = yield client.databases.beginImportAndWait(resourceGroupName, clusterName, databaseName, parameters);
34
+ console.log(result);
35
+ });
36
+ }
37
+ redisEnterpriseDatabasesImport().catch(console.error);
38
+ //# sourceMappingURL=databasesImportSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesImportSample.js","sourceRoot":"","sources":["../../samples-dev/databasesImportSample.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,8BAA8B;;QAC3C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAA4B;YAC1C,OAAO,EAAE;gBACP,6EAA6E;gBAC7E,6EAA6E;aAC9E;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,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=databasesListByClusterSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesListByClusterSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesListByClusterSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets all databases in the specified RedisEnterprise cluster.
15
+ *
16
+ * @summary Gets all databases in the specified RedisEnterprise cluster.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesListByCluster.json
18
+ */
19
+ function redisEnterpriseDatabasesListByCluster() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "subid";
23
+ const resourceGroupName = "rg1";
24
+ const clusterName = "cache1";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
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);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ redisEnterpriseDatabasesListByCluster().catch(console.error);
45
+ //# sourceMappingURL=databasesListByClusterSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesListByClusterSample.js","sourceRoot":"","sources":["../../samples-dev/databasesListByClusterSample.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,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=databasesListKeysSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesListKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesListKeysSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Retrieves the access keys for the RedisEnterprise database.
15
+ *
16
+ * @summary Retrieves the access keys for the RedisEnterprise database.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesListKeys.json
18
+ */
19
+ function redisEnterpriseDatabasesListKeys() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const databaseName = "default";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
+ const result = yield client.databases.listKeys(resourceGroupName, clusterName, databaseName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ redisEnterpriseDatabasesListKeys().catch(console.error);
32
+ //# sourceMappingURL=databasesListKeysSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/databasesListKeysSample.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,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,YAAY,GAAG,SAAS,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,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,CAC5C,iBAAiB,EACjB,WAAW,EACX,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=databasesRegenerateKeySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesRegenerateKeySample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesRegenerateKeySample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Regenerates the RedisEnterprise database's access keys.
15
+ *
16
+ * @summary Regenerates the RedisEnterprise database's access keys.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesRegenerateKey.json
18
+ */
19
+ function redisEnterpriseDatabasesRegenerateKey() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const databaseName = "default";
25
+ const parameters = { keyType: "Primary" };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
28
+ const result = yield client.databases.beginRegenerateKeyAndWait(resourceGroupName, clusterName, databaseName, parameters);
29
+ console.log(result);
30
+ });
31
+ }
32
+ redisEnterpriseDatabasesRegenerateKey().catch(console.error);
33
+ //# sourceMappingURL=databasesRegenerateKeySample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesRegenerateKeySample.js","sourceRoot":"","sources":["../../samples-dev/databasesRegenerateKeySample.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,qCAAqC;;QAClD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAA4B,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;QACnE,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,SAAS,CAAC,yBAAyB,CAC7D,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=databasesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/databasesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates a database
15
+ *
16
+ * @summary Updates a database
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/RedisEnterpriseDatabasesUpdate.json
18
+ */
19
+ function redisEnterpriseDatabasesUpdate() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const databaseName = "default";
25
+ const parameters = {
26
+ clientProtocol: "Encrypted",
27
+ evictionPolicy: "AllKeysLRU",
28
+ persistence: { rdbEnabled: true, rdbFrequency: "12h" }
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
32
+ const result = yield client.databases.beginUpdateAndWait(resourceGroupName, clusterName, databaseName, parameters);
33
+ console.log(result);
34
+ });
35
+ }
36
+ redisEnterpriseDatabasesUpdate().catch(console.error);
37
+ //# sourceMappingURL=databasesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databasesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/databasesUpdateSample.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,8BAA8B;;QAC3C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAAmB;YACjC,cAAc,EAAE,WAAW;YAC3B,cAAc,EAAE,YAAY;YAC5B,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE;SACvD,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,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Cache provider.
15
+ *
16
+ * @summary Lists all of the available REST API operations of the Microsoft.Cache provider.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/OperationsList.json
18
+ */
19
+ function operationsList() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ operationsList().catch(console.error);
43
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.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,cAAc;;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,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,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsStatusGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsStatusGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsStatusGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the status of operation.
15
+ *
16
+ * @summary Gets the status of operation.
17
+ * x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2022-01-01/examples/OperationsStatusGet.json
18
+ */
19
+ function operationsStatusGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const location = "West US";
23
+ const operationId = "testoperationid";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
26
+ const result = yield client.operationsStatus.get(location, operationId);
27
+ console.log(result);
28
+ });
29
+ }
30
+ operationsStatusGet().catch(console.error);
31
+ //# sourceMappingURL=operationsStatusGetSample.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
15
+ *
16
+ * @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
18
+ */
19
+ function redisEnterpriseDeletePrivateEndpointConnection() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const privateEndpointConnectionName = "pectest01";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnections.delete(resourceGroupName, clusterName, privateEndpointConnectionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ redisEnterpriseDeletePrivateEndpointConnection().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
15
+ *
16
+ * @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
18
+ */
19
+ function redisEnterpriseGetPrivateEndpointConnection() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "subid";
22
+ const resourceGroupName = "rg1";
23
+ const clusterName = "cache1";
24
+ const privateEndpointConnectionName = "pectest01";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
27
+ const result = yield client.privateEndpointConnections.get(resourceGroupName, clusterName, privateEndpointConnectionName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ redisEnterpriseGetPrivateEndpointConnection().catch(console.error);
32
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":""}