@azure/arm-redisenterprisecache 2.2.1-alpha.20230418.1 → 2.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -10
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +777 -121
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +15 -8
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesExportSample.js +11 -4
- package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesFlushSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesFlushSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesFlushSample.js +44 -0
- package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js +11 -4
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +11 -4
- package/dist-esm/samples-dev/databasesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesImportSample.js +11 -4
- package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListByClusterSample.js +11 -4
- package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListKeysSample.js +11 -4
- package/dist-esm/samples-dev/databasesListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js +11 -4
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/databasesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsStatusGetSample.js +10 -3
- package/dist-esm/samples-dev/operationsStatusGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +26 -4
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListSample.js +10 -3
- package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +58 -0
- package/dist-esm/samples-dev/skusListSample.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +196 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +32 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +13 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +340 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts +27 -9
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +192 -37
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +16 -12
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts +4 -4
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +29 -17
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operations/skus.d.ts +28 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +107 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts +27 -9
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/skus.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts +2 -1
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js +4 -3
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
- package/package.json +8 -7
- package/review/arm-redisenterprisecache.api.md +154 -13
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +216 -0
- package/src/models/mappers.ts +357 -0
- package/src/models/parameters.ts +7 -1
- package/src/operations/databases.ts +251 -75
- package/src/operations/index.ts +1 -0
- package/src/operations/privateEndpointConnections.ts +19 -12
- package/src/operations/redisEnterprise.ts +44 -34
- package/src/operations/skus.ts +117 -0
- package/src/operationsInterfaces/databases.ts +44 -12
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
- package/src/operationsInterfaces/redisEnterprise.ts +6 -6
- package/src/operationsInterfaces/skus.ts +24 -0
- package/src/redisEnterpriseManagementClient.ts +8 -4
- package/types/arm-redisenterprisecache.d.ts +260 -13
|
@@ -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/
|
|
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
|
-
|
|
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;
|
|
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/
|
|
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
|
-
|
|
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;
|
|
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,17 +10,19 @@ 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/
|
|
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
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);
|
|
@@ -48,5 +50,10 @@ function redisEnterpriseListPrivateEndpointConnections() {
|
|
|
48
50
|
console.log(resArray);
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
|
-
|
|
53
|
+
function main() {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
redisEnterpriseListPrivateEndpointConnections();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
main().catch(console.error);
|
|
52
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;
|
|
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/
|
|
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
|
-
|
|
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;
|
|
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,17 +10,19 @@ 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/
|
|
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
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);
|
|
@@ -48,5 +50,10 @@ function redisEnterpriseListPrivateLinkResources() {
|
|
|
48
50
|
console.log(resArray);
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
|
-
|
|
53
|
+
function main() {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
redisEnterpriseListPrivateLinkResources();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
main().catch(console.error);
|
|
52
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;
|
|
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/
|
|
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
|
-
|
|
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;
|
|
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"}
|
|
@@ -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/
|
|
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
|
-
|
|
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;
|
|
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/
|
|
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
|
-
|
|
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;
|
|
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"}
|
|
@@ -10,17 +10,19 @@ 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 RedisEnterprise clusters in a resource group.
|
|
15
17
|
*
|
|
16
18
|
* @summary Lists all RedisEnterprise clusters in a resource group.
|
|
17
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/
|
|
19
|
+
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseListByResourceGroup.json
|
|
18
20
|
*/
|
|
19
21
|
function redisEnterpriseListByResourceGroup() {
|
|
20
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 credential = new DefaultAzureCredential();
|
|
25
27
|
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
26
28
|
const resArray = new Array();
|
|
@@ -47,5 +49,10 @@ function redisEnterpriseListByResourceGroup() {
|
|
|
47
49
|
console.log(resArray);
|
|
48
50
|
});
|
|
49
51
|
}
|
|
50
|
-
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
redisEnterpriseListByResourceGroup();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
51
58
|
//# sourceMappingURL=redisEnterpriseListByResourceGroupSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListByResourceGroupSample.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;
|
|
1
|
+
{"version":3,"file":"redisEnterpriseListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListByResourceGroupSample.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,kCAAkC;;;QAC/C,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,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,SAAe,IAAI;;QACjB,kCAAkC,EAAE,CAAC;IACvC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -10,16 +10,18 @@ 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 all RedisEnterprise clusters in the specified subscription.
|
|
15
17
|
*
|
|
16
18
|
* @summary Gets all RedisEnterprise clusters in the specified subscription.
|
|
17
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/
|
|
19
|
+
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseList.json
|
|
18
20
|
*/
|
|
19
21
|
function redisEnterpriseList() {
|
|
20
22
|
var _a, e_1, _b, _c;
|
|
21
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
24
|
+
const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
|
|
23
25
|
const credential = new DefaultAzureCredential();
|
|
24
26
|
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
25
27
|
const resArray = new Array();
|
|
@@ -46,5 +48,10 @@ function redisEnterpriseList() {
|
|
|
46
48
|
console.log(resArray);
|
|
47
49
|
});
|
|
48
50
|
}
|
|
49
|
-
|
|
51
|
+
function main() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
redisEnterpriseList();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
main().catch(console.error);
|
|
50
57
|
//# sourceMappingURL=redisEnterpriseListSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListSample.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;
|
|
1
|
+
{"version":3,"file":"redisEnterpriseListSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListSample.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,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,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 Updates an existing RedisEnterprise cluster
|
|
15
17
|
*
|
|
16
18
|
* @summary Updates an existing RedisEnterprise cluster
|
|
17
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/
|
|
19
|
+
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseUpdate.json
|
|
18
20
|
*/
|
|
19
21
|
function redisEnterpriseUpdate() {
|
|
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 = {
|
|
25
27
|
minimumTlsVersion: "1.2",
|
|
@@ -32,5 +34,10 @@ function redisEnterpriseUpdate() {
|
|
|
32
34
|
console.log(result);
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
|
-
|
|
37
|
+
function main() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
redisEnterpriseUpdate();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
main().catch(console.error);
|
|
36
43
|
//# sourceMappingURL=redisEnterpriseUpdateSample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseUpdateSample.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;
|
|
1
|
+
{"version":3,"file":"redisEnterpriseUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseUpdateSample.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,GAAkB;YAChC,iBAAiB,EAAE,KAAK;YACxB,GAAG,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,CAAC,EAAE;YAClD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SACzB,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skusListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Gets information about skus in specified location for the given subscription id
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets information about skus in specified location for the given subscription id
|
|
19
|
+
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/examples/RedisEnterpriseSkusList.json
|
|
20
|
+
*/
|
|
21
|
+
function skusList() {
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const subscriptionId = process.env["REDISENTERPRISE_SUBSCRIPTION_ID"] || "subid";
|
|
25
|
+
const location = "westus2";
|
|
26
|
+
const credential = new DefaultAzureCredential();
|
|
27
|
+
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
28
|
+
const resArray = new Array();
|
|
29
|
+
try {
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.skus.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
try {
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
_d = true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
43
|
+
finally {
|
|
44
|
+
try {
|
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
46
|
+
}
|
|
47
|
+
finally { if (e_1) throw e_1.error; }
|
|
48
|
+
}
|
|
49
|
+
console.log(resArray);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function main() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
skusList();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
main().catch(console.error);
|
|
58
|
+
//# sourceMappingURL=skusListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skusListSample.js","sourceRoot":"","sources":["../../samples-dev/skusListSample.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,QAAQ;;;QACrB,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,IAAI,OAAO,CAAC;QAC5D,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,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,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA,IAAA;gBAA1B,cAA0B;gBAA1B,WAA0B;;oBAAtC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,QAAQ,EAAE,CAAC;IACb,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requestPath: string;
|
|
7
|
-
requestMethod: string;
|
|
8
|
-
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
9
6
|
readonly requestBody?: unknown;
|
|
10
7
|
readonly path?: string;
|
|
11
8
|
readonly httpMethod: string;
|
|
12
|
-
} & Record<string, any
|
|
13
|
-
|
|
14
|
-
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
-
}
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
16
11
|
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|