@azure/arm-redisenterprisecache 2.3.0-beta.1 → 3.0.0-alpha.20240223.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 the private link resources that need to be created for a RedisEnterprise cluster.
|
|
13
|
-
*
|
|
14
|
-
* @summary Gets the private link resources that need to be created for a RedisEnterprise cluster.
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseListPrivateLinkResources.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseListPrivateLinkResources() {
|
|
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.privateLinkResources.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
|
-
redisEnterpriseListPrivateLinkResources().catch(console.error);
|
|
52
|
-
//# sourceMappingURL=redisEnterpriseListPrivateLinkResources.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseListPrivateLinkResources.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseListPrivateLinkResources.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,uCAAuC;;;QACpD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,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,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterprisePutPrivateEndpointConnection.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterprisePutPrivateEndpointConnection.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +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 the state of the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
13
|
-
*
|
|
14
|
-
* @summary Updates the state of 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/RedisEnterprisePutPrivateEndpointConnection.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterprisePutPrivateEndpointConnection() {
|
|
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 properties = {
|
|
26
|
-
privateLinkServiceConnectionState: {
|
|
27
|
-
description: "Auto-Approved",
|
|
28
|
-
status: "Approved"
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const credential = new DefaultAzureCredential();
|
|
32
|
-
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
33
|
-
const result = yield client.privateEndpointConnections.beginPutAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, properties);
|
|
34
|
-
console.log(result);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
redisEnterprisePutPrivateEndpointConnection().catch(console.error);
|
|
38
|
-
//# sourceMappingURL=redisEnterprisePutPrivateEndpointConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterprisePutPrivateEndpointConnection.js","sourceRoot":"","sources":["../../samples-dev/redisEnterprisePutPrivateEndpointConnection.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,2CAA2C;;QACxD,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,6BAA6B,GAAG,WAAW,CAAC;QAClD,MAAM,UAAU,GAA8B;YAC5C,iCAAiC,EAAE;gBACjC,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,UAAU;aACnB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAChD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,eAAe,CACpE,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseUpdate.d.ts","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseUpdate.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +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 an existing RedisEnterprise cluster
|
|
13
|
-
*
|
|
14
|
-
* @summary Updates an existing RedisEnterprise cluster
|
|
15
|
-
* x-ms-original-file: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2021-08-01/examples/RedisEnterpriseUpdate.json
|
|
16
|
-
*/
|
|
17
|
-
import { RedisEnterpriseManagementClient } from "@azure/arm-redisenterprisecache";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function redisEnterpriseUpdate() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "subid";
|
|
22
|
-
const resourceGroupName = "rg1";
|
|
23
|
-
const clusterName = "cache1";
|
|
24
|
-
const parameters = {
|
|
25
|
-
minimumTlsVersion: "1.2",
|
|
26
|
-
sku: { name: "EnterpriseFlash_F300", capacity: 9 },
|
|
27
|
-
tags: { tag1: "value1" }
|
|
28
|
-
};
|
|
29
|
-
const credential = new DefaultAzureCredential();
|
|
30
|
-
const client = new RedisEnterpriseManagementClient(credential, subscriptionId);
|
|
31
|
-
const result = yield client.redisEnterprise.beginUpdateAndWait(resourceGroupName, clusterName, parameters);
|
|
32
|
-
console.log(result);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
redisEnterpriseUpdate().catch(console.error);
|
|
36
|
-
//# sourceMappingURL=redisEnterpriseUpdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseUpdate.js","sourceRoot":"","sources":["../../samples-dev/redisEnterpriseUpdate.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,qBAAqB;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,MAAM,iBAAiB,GAAG,KAAK,CAAC;QAChC,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,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skusListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,58 +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
|
-
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
|
|
@@ -1 +0,0 @@
|
|
|
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,28 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { Skus } from "../operationsInterfaces";
|
|
3
|
-
import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient";
|
|
4
|
-
import { RegionSkuDetail, SkusListOptionalParams } from "../models";
|
|
5
|
-
/** Class containing Skus operations. */
|
|
6
|
-
export declare class SkusImpl implements Skus {
|
|
7
|
-
private readonly client;
|
|
8
|
-
/**
|
|
9
|
-
* Initialize a new instance of the class Skus class.
|
|
10
|
-
* @param client Reference to the service client
|
|
11
|
-
*/
|
|
12
|
-
constructor(client: RedisEnterpriseManagementClient);
|
|
13
|
-
/**
|
|
14
|
-
* Gets information about skus in specified location for the given subscription id
|
|
15
|
-
* @param location The name of Azure region.
|
|
16
|
-
* @param options The options parameters.
|
|
17
|
-
*/
|
|
18
|
-
list(location: string, options?: SkusListOptionalParams): PagedAsyncIterableIterator<RegionSkuDetail>;
|
|
19
|
-
private listPagingPage;
|
|
20
|
-
private listPagingAll;
|
|
21
|
-
/**
|
|
22
|
-
* Gets information about skus in specified location for the given subscription id
|
|
23
|
-
* @param location The name of Azure region.
|
|
24
|
-
* @param options The options parameters.
|
|
25
|
-
*/
|
|
26
|
-
private _list;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=skus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAI/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EACL,eAAe,EACf,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;IAEzD;;;OAGG;gBACS,MAAM,EAAE,+BAA+B;IAInD;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,eAAe,CAAC;YAkB/B,cAAc;YAUd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;CASd"}
|
|
@@ -1,107 +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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
-
import * as coreClient from "@azure/core-client";
|
|
10
|
-
import * as Mappers from "../models/mappers";
|
|
11
|
-
import * as Parameters from "../models/parameters";
|
|
12
|
-
/// <reference lib="esnext.asynciterable" />
|
|
13
|
-
/** Class containing Skus operations. */
|
|
14
|
-
export class SkusImpl {
|
|
15
|
-
/**
|
|
16
|
-
* Initialize a new instance of the class Skus class.
|
|
17
|
-
* @param client Reference to the service client
|
|
18
|
-
*/
|
|
19
|
-
constructor(client) {
|
|
20
|
-
this.client = client;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Gets information about skus in specified location for the given subscription id
|
|
24
|
-
* @param location The name of Azure region.
|
|
25
|
-
* @param options The options parameters.
|
|
26
|
-
*/
|
|
27
|
-
list(location, options) {
|
|
28
|
-
const iter = this.listPagingAll(location, options);
|
|
29
|
-
return {
|
|
30
|
-
next() {
|
|
31
|
-
return iter.next();
|
|
32
|
-
},
|
|
33
|
-
[Symbol.asyncIterator]() {
|
|
34
|
-
return this;
|
|
35
|
-
},
|
|
36
|
-
byPage: (settings) => {
|
|
37
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
38
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
-
}
|
|
40
|
-
return this.listPagingPage(location, options, settings);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
listPagingPage(location, options, _settings) {
|
|
45
|
-
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
-
let result;
|
|
47
|
-
result = yield __await(this._list(location, options));
|
|
48
|
-
yield yield __await(result.value || []);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
listPagingAll(location, options) {
|
|
52
|
-
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
53
|
-
var _a, e_1, _b, _c;
|
|
54
|
-
try {
|
|
55
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
|
56
|
-
_c = _f.value;
|
|
57
|
-
_d = false;
|
|
58
|
-
try {
|
|
59
|
-
const page = _c;
|
|
60
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
-
}
|
|
62
|
-
finally {
|
|
63
|
-
_d = true;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
71
|
-
}
|
|
72
|
-
finally { if (e_1) throw e_1.error; }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Gets information about skus in specified location for the given subscription id
|
|
78
|
-
* @param location The name of Azure region.
|
|
79
|
-
* @param options The options parameters.
|
|
80
|
-
*/
|
|
81
|
-
_list(location, options) {
|
|
82
|
-
return this.client.sendOperationRequest({ location, options }, listOperationSpec);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
// Operation Specifications
|
|
86
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
87
|
-
const listOperationSpec = {
|
|
88
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus",
|
|
89
|
-
httpMethod: "GET",
|
|
90
|
-
responses: {
|
|
91
|
-
200: {
|
|
92
|
-
bodyMapper: Mappers.RegionSkuDetails
|
|
93
|
-
},
|
|
94
|
-
default: {
|
|
95
|
-
bodyMapper: Mappers.ErrorResponse
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
queryParameters: [Parameters.apiVersion],
|
|
99
|
-
urlParameters: [
|
|
100
|
-
Parameters.$host,
|
|
101
|
-
Parameters.location,
|
|
102
|
-
Parameters.subscriptionId
|
|
103
|
-
],
|
|
104
|
-
headerParameters: [Parameters.accept],
|
|
105
|
-
serializer
|
|
106
|
-
};
|
|
107
|
-
//# sourceMappingURL=skus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,QAAgB,EAChB,OAAgC,EAChC,SAAwB;;YAExB,IAAI,MAAwB,CAAC;YAC7B,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA,CAAC;YAC7C,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,QAAgB,EAChB,OAAgC;;;;gBAEhC,KAAyB,eAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA,IAAA;oBAAtC,cAAsC;oBAAtC,WAAsC;;wBAApD,MAAM,IAAI,KAAA,CAAA;wBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;;;;;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;OAIG;IACK,KAAK,CACX,QAAgB,EAChB,OAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,qFAAqF;IACvF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { RegionSkuDetail, SkusListOptionalParams } from "../models";
|
|
3
|
-
/** Interface representing a Skus. */
|
|
4
|
-
export interface Skus {
|
|
5
|
-
/**
|
|
6
|
-
* Gets information about skus in specified location for the given subscription id
|
|
7
|
-
* @param location The name of Azure region.
|
|
8
|
-
* @param options The options parameters.
|
|
9
|
-
*/
|
|
10
|
-
list(location: string, options?: SkusListOptionalParams): PagedAsyncIterableIterator<RegionSkuDetail>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=skus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGpE,qCAAqC;AACrC,MAAM,WAAW,IAAI;IACnB;;;;OAIG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,eAAe,CAAC,CAAC;CAChD"}
|
|
@@ -1,9 +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
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=skus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +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
|
-
import { Recorder } from "@azure-tools/test-recorder";
|
|
10
|
-
const replaceableVariables = {
|
|
11
|
-
AZURE_CLIENT_ID: "azure_client_id",
|
|
12
|
-
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
13
|
-
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
14
|
-
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
15
|
-
};
|
|
16
|
-
const recorderOptions = {
|
|
17
|
-
envSetupForPlayback: replaceableVariables
|
|
18
|
-
};
|
|
19
|
-
describe("My test", () => {
|
|
20
|
-
let recorder;
|
|
21
|
-
beforeEach(function () {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
recorder = new Recorder(this.currentTest);
|
|
24
|
-
yield recorder.start(recorderOptions);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
afterEach(function () {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
yield recorder.stop();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
it("sample test", function () {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
console.log("Hi, I'm a test!");
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/rollup.config.js
DELETED
|
@@ -1,122 +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
|
-
|
|
9
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
-
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
-
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
-
import json from "@rollup/plugin-json";
|
|
14
|
-
|
|
15
|
-
import nodeBuiltins from "builtin-modules";
|
|
16
|
-
|
|
17
|
-
// #region Warning Handler
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
-
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
function ignoreNiseSinonEval(warning) {
|
|
25
|
-
return (
|
|
26
|
-
warning.code === "EVAL" &&
|
|
27
|
-
warning.id &&
|
|
28
|
-
(warning.id.includes("node_modules/nise") ||
|
|
29
|
-
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function ignoreChaiCircularDependency(warning) {
|
|
34
|
-
return (
|
|
35
|
-
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
-
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Construct a warning handler for the shared rollup configuration
|
|
44
|
-
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
-
*/
|
|
46
|
-
function makeOnWarnForTesting() {
|
|
47
|
-
return (warning, warn) => {
|
|
48
|
-
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
-
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
-
warn(warning);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// #endregion
|
|
56
|
-
|
|
57
|
-
function makeBrowserTestConfig() {
|
|
58
|
-
const config = {
|
|
59
|
-
input: {
|
|
60
|
-
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
-
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
-
},
|
|
63
|
-
output: {
|
|
64
|
-
file: `dist-test/index.browser.js`,
|
|
65
|
-
format: "umd",
|
|
66
|
-
sourcemap: true
|
|
67
|
-
},
|
|
68
|
-
preserveSymlinks: false,
|
|
69
|
-
plugins: [
|
|
70
|
-
multiEntry({ exports: false }),
|
|
71
|
-
nodeResolve({
|
|
72
|
-
mainFields: ["module", "browser"]
|
|
73
|
-
}),
|
|
74
|
-
cjs(),
|
|
75
|
-
json(),
|
|
76
|
-
sourcemaps()
|
|
77
|
-
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
-
],
|
|
79
|
-
onwarn: makeOnWarnForTesting(),
|
|
80
|
-
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
-
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
-
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
-
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
-
treeshake: false
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
return config;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const defaultConfigurationOptions = {
|
|
91
|
-
disableBrowserBundle: false
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export function makeConfig(pkg, options) {
|
|
95
|
-
options = {
|
|
96
|
-
...defaultConfigurationOptions,
|
|
97
|
-
...(options || {})
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const baseConfig = {
|
|
101
|
-
// Use the package's module field if it has one
|
|
102
|
-
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
-
external: [
|
|
104
|
-
...nodeBuiltins,
|
|
105
|
-
...Object.keys(pkg.dependencies),
|
|
106
|
-
...Object.keys(pkg.devDependencies)
|
|
107
|
-
],
|
|
108
|
-
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
-
preserveSymlinks: false,
|
|
110
|
-
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const config = [baseConfig];
|
|
114
|
-
|
|
115
|
-
if (!options.disableBrowserBundle) {
|
|
116
|
-
config.push(makeBrowserTestConfig());
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return config;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export default makeConfig(require("./package.json"));
|