@azure/arm-redisenterprisecache 2.0.0-alpha.20220412.1 → 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.
- package/CHANGELOG.md +16 -0
- package/README.md +11 -0
- package/dist/index.js +323 -79
- 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.d.ts +2 -0
- package/dist-esm/samples-dev/databasesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesCreateSample.js +80 -0
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesExportSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesExportSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesExportSample.js +35 -0
- package/dist-esm/samples-dev/databasesExportSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js +37 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesGetSample.js +32 -0
- package/dist-esm/samples-dev/databasesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesImportSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesImportSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesImportSample.js +38 -0
- package/dist-esm/samples-dev/databasesImportSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesListByClusterSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesListByClusterSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesListByClusterSample.js +45 -0
- package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesListKeysSample.js +32 -0
- package/dist-esm/samples-dev/databasesListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesRegenerateKeySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js +33 -0
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -0
- package/dist-esm/samples-dev/databasesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesUpdateSample.js +37 -0
- package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsStatusGetSample.js +31 -0
- package/dist-esm/samples-dev/operationsStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +45 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +38 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +45 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +38 -0
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +31 -0
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js +31 -0
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListSample.js +43 -0
- package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +36 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +54 -1
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +80 -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 +19 -1
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +99 -6
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +3 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +9 -3
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/databases.d.ts +19 -1
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -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 +9 -9
- package/review/arm-redisenterprisecache.api.md +44 -0
- package/rollup.config.js +6 -72
- package/src/models/index.ts +61 -1
- package/src/models/mappers.ts +84 -0
- package/src/models/parameters.ts +7 -1
- package/src/operations/databases.ts +139 -6
- package/src/operations/privateEndpointConnections.ts +3 -1
- package/src/operations/redisEnterprise.ts +9 -3
- package/src/operationsInterfaces/databases.ts +33 -1
- package/src/redisEnterpriseManagementClient.ts +4 -3
- package/tsconfig.json +18 -5
- package/types/arm-redisenterprisecache.d.ts +78 -1
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":""}
|