@azure/arm-redisenterprisecache 2.3.0-beta.1 → 3.0.0-alpha.20240226.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 +13 -14
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +176 -412
- 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 +2 -2
- package/dist-esm/samples-dev/databasesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/databasesExportSample.js +1 -1
- package/dist-esm/samples-dev/databasesFlushSample.js +1 -1
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +1 -1
- package/dist-esm/samples-dev/databasesImportSample.js +1 -1
- package/dist-esm/samples-dev/databasesListByClusterSample.js +4 -9
- package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListKeysSample.js +1 -1
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/databasesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +4 -9
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +2 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +4 -9
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +4 -9
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +4 -9
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListSample.js +4 -9
- package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +1 -1
- package/dist-esm/src/models/index.d.ts +21 -84
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +4 -12
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -6
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +20 -159
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/databases.js +4 -9
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +0 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +0 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +3 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +10 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +61 -15
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +3 -8
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +6 -16
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +10 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts +1 -2
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js +3 -4
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
- package/dist-esm/test/redisenterprisecache_test.spec.d.ts +4 -0
- package/dist-esm/test/redisenterprisecache_test.spec.d.ts.map +1 -0
- package/dist-esm/test/redisenterprisecache_test.spec.js +73 -0
- package/dist-esm/test/redisenterprisecache_test.spec.js.map +1 -0
- package/package.json +16 -20
- package/review/arm-redisenterprisecache.api.md +12 -66
- package/src/models/index.ts +24 -94
- package/src/models/mappers.ts +21 -165
- package/src/models/parameters.ts +1 -1
- package/src/operations/databases.ts +1 -1
- package/src/operations/index.ts +0 -1
- package/src/operations/privateEndpointConnections.ts +77 -5
- package/src/operationsInterfaces/index.ts +0 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +15 -1
- package/src/redisEnterpriseManagementClient.ts +4 -8
- package/types/arm-redisenterprisecache.d.ts +32 -106
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/operationsStatusGet.d.ts +0 -2
- package/dist-esm/samples-dev/operationsStatusGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsStatusGet.js +0 -31
- package/dist-esm/samples-dev/operationsStatusGet.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseCreate.js +0 -38
- package/dist-esm/samples-dev/redisEnterpriseCreate.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js +0 -44
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js +0 -32
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js +0 -35
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js +0 -32
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js +0 -38
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js +0 -52
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js +0 -32
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js +0 -33
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js +0 -37
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDelete.js +0 -31
- package/dist-esm/samples-dev/redisEnterpriseDelete.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js +0 -32
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseGet.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseGet.js +0 -31
- package/dist-esm/samples-dev/redisEnterpriseGet.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js +0 -32
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseList.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseList.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseList.js +0 -50
- package/dist-esm/samples-dev/redisEnterpriseList.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js +0 -51
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js +0 -52
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js +0 -52
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js +0 -38
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts +0 -2
- package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts.map +0 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdate.js +0 -36
- package/dist-esm/samples-dev/redisEnterpriseUpdate.js.map +0 -1
- package/dist-esm/samples-dev/skusListSample.d.ts +0 -2
- package/dist-esm/samples-dev/skusListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/skusListSample.js +0 -58
- package/dist-esm/samples-dev/skusListSample.js.map +0 -1
- package/dist-esm/src/operations/skus.d.ts +0 -28
- package/dist-esm/src/operations/skus.d.ts.map +0 -1
- package/dist-esm/src/operations/skus.js +0 -107
- package/dist-esm/src/operations/skus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/skus.d.ts +0 -12
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/skus.js +0 -9
- package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/operations/skus.ts +0 -117
- package/src/operationsInterfaces/skus.ts +0 -24
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets all databases in the specified RedisEnterprise cluster.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets all databases in the specified RedisEnterprise cluster.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseDatabasesListByCluster.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseDatabasesListByCluster() {
|
|
20
|
-
var _a, e_1, _b, _c;
|
|
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 _d = true, _e = __asyncValues(client.databases.listByCluster(resourceGroupName, clusterName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
30
|
-
_c = _f.value;
|
|
31
|
-
_d = false;
|
|
32
|
-
try {
|
|
33
|
-
let item = _c;
|
|
34
|
-
resArray.push(item);
|
|
35
|
-
}
|
|
36
|
-
finally {
|
|
37
|
-
_d = true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
42
|
-
finally {
|
|
43
|
-
try {
|
|
44
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
45
|
-
}
|
|
46
|
-
finally { if (e_1) throw e_1.error; }
|
|
47
|
-
}
|
|
48
|
-
console.log(resArray);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
redisEnterpriseDatabasesListByCluster().catch(console.error);
|
|
52
|
-
//# sourceMappingURL=redisEnterpriseDatabasesListByCluster.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDatabasesListByCluster.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesListByCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qCAAqC;;;QAClD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CACnD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDatabasesListKeys.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesListKeys.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Retrieves the access keys for the RedisEnterprise database.
|
|
13
|
-
*
|
|
14
|
-
* @summary Retrieves the access keys for the RedisEnterprise database.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseDatabasesListKeys.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=redisEnterpriseDatabasesListKeys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDatabasesListKeys.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesListKeys.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDatabasesRegenerateKey.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesRegenerateKey.ts"],"names":[],"mappings":""}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Regenerates the RedisEnterprise database's access keys.
|
|
13
|
-
*
|
|
14
|
-
* @summary Regenerates the RedisEnterprise database's access keys.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseDatabasesRegenerateKey.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=redisEnterpriseDatabasesRegenerateKey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDatabasesRegenerateKey.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesRegenerateKey.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qCAAqC;;QAClD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDatabasesUpdate.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesUpdate.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Updates a database
|
|
13
|
-
*
|
|
14
|
-
* @summary Updates a database
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseDatabasesUpdate.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=redisEnterpriseDatabasesUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDatabasesUpdate.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDatabasesUpdate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,+BAA+B,EAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDelete.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDelete.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Deletes a RedisEnterprise cache cluster.
|
|
13
|
-
*
|
|
14
|
-
* @summary Deletes a RedisEnterprise cache cluster.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseDelete.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseDelete() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const clusterName = "cache1";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.redisEnterprise.beginDeleteAndWait(resourceGroupName, clusterName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
redisEnterpriseDelete().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=redisEnterpriseDelete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDelete.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDelete.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDeletePrivateEndpointConnection.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDeletePrivateEndpointConnection.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
13
|
-
*
|
|
14
|
-
* @summary Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=redisEnterpriseDeletePrivateEndpointConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseDeletePrivateEndpointConnection.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseDeletePrivateEndpointConnection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,8CAA8C;;QAC3D,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8CAA8C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseGet.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseGet.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets information about a RedisEnterprise cluster
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets information about a RedisEnterprise cluster
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseGet.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseGet() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const clusterName = "cache1";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.redisEnterprise.get(resourceGroupName, clusterName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
redisEnterpriseGet().catch(console.error);
|
|
31
|
-
//# sourceMappingURL=redisEnterpriseGet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseGet.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseGet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseGetPrivateEndpointConnection.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseGetPrivateEndpointConnection.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseGetPrivateEndpointConnection.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
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=redisEnterpriseGetPrivateEndpointConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseGetPrivateEndpointConnection.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseGetPrivateEndpointConnection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,WAAW,EACX,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseList.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseList.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Gets all RedisEnterprise clusters in the specified subscription.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets all RedisEnterprise clusters in the specified subscription.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseList.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseList() {
|
|
20
|
-
var _a, e_1, _b, _c;
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
25
|
-
const resArray = new Array();
|
|
26
|
-
try {
|
|
27
|
-
for (var _d = true, _e = __asyncValues(client.redisEnterprise.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
28
|
-
_c = _f.value;
|
|
29
|
-
_d = false;
|
|
30
|
-
try {
|
|
31
|
-
let item = _c;
|
|
32
|
-
resArray.push(item);
|
|
33
|
-
}
|
|
34
|
-
finally {
|
|
35
|
-
_d = true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
40
|
-
finally {
|
|
41
|
-
try {
|
|
42
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
43
|
-
}
|
|
44
|
-
finally { if (e_1) throw e_1.error; }
|
|
45
|
-
}
|
|
46
|
-
console.log(resArray);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
redisEnterpriseList().catch(console.error);
|
|
50
|
-
//# sourceMappingURL=redisEnterpriseList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseList.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA7B,cAA6B;gBAA7B,WAA6B;;oBAAzC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListByResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListByResourceGroup.ts"],"names":[],"mappings":""}
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Lists all RedisEnterprise clusters in a resource group.
|
|
13
|
-
*
|
|
14
|
-
* @summary Lists all RedisEnterprise clusters in a resource group.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseListByResourceGroup.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseListByResourceGroup() {
|
|
20
|
-
var _a, e_1, _b, _c;
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "subid";
|
|
23
|
-
const resourceGroupName = "rg1";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
26
|
-
const resArray = new Array();
|
|
27
|
-
try {
|
|
28
|
-
for (var _d = true, _e = __asyncValues(client.redisEnterprise.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
29
|
-
_c = _f.value;
|
|
30
|
-
_d = false;
|
|
31
|
-
try {
|
|
32
|
-
let item = _c;
|
|
33
|
-
resArray.push(item);
|
|
34
|
-
}
|
|
35
|
-
finally {
|
|
36
|
-
_d = true;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
41
|
-
finally {
|
|
42
|
-
try {
|
|
43
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
44
|
-
}
|
|
45
|
-
finally { if (e_1) throw e_1.error; }
|
|
46
|
-
}
|
|
47
|
-
console.log(resArray);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
redisEnterpriseListByResourceGroup().catch(console.error);
|
|
51
|
-
//# sourceMappingURL=redisEnterpriseListByResourceGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListByResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListByResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CAC/D,iBAAiB,CAClB,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,kCAAkC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListPrivateEndpointConnections.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListPrivateEndpointConnections.ts"],"names":[],"mappings":""}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* This sample demonstrates how to Lists all the private endpoint connections associated with the RedisEnterprise cluster.
|
|
13
|
-
*
|
|
14
|
-
* @summary Lists all the private endpoint connections associated with the RedisEnterprise cluster.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseListPrivateEndpointConnections.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseListPrivateEndpointConnections() {
|
|
20
|
-
var _a, e_1, _b, _c;
|
|
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 _d = true, _e = __asyncValues(client.privateEndpointConnections.list(resourceGroupName, clusterName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
30
|
-
_c = _f.value;
|
|
31
|
-
_d = false;
|
|
32
|
-
try {
|
|
33
|
-
let item = _c;
|
|
34
|
-
resArray.push(item);
|
|
35
|
-
}
|
|
36
|
-
finally {
|
|
37
|
-
_d = true;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
42
|
-
finally {
|
|
43
|
-
try {
|
|
44
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
45
|
-
}
|
|
46
|
-
finally { if (e_1) throw e_1.error; }
|
|
47
|
-
}
|
|
48
|
-
console.log(resArray);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
redisEnterpriseListPrivateEndpointConnections().catch(console.error);
|
|
52
|
-
//# sourceMappingURL=redisEnterpriseListPrivateEndpointConnections.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListPrivateEndpointConnections.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListPrivateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6CAA6C;;;QAC1D,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,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,6CAA6C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListPrivateLinkResources.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListPrivateLinkResources.ts"],"names":[],"mappings":""}
|