@azure/arm-redisenterprisecache 1.1.1 → 2.0.0-alpha.20220316.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +3012 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/operationsStatusGet.d.ts +2 -0
- package/dist-esm/samples-dev/operationsStatusGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsStatusGet.js +31 -0
- package/dist-esm/samples-dev/operationsStatusGet.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseCreate.js +38 -0
- package/dist-esm/samples-dev/redisEnterpriseCreate.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js +44 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesCreate.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js +32 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesDelete.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js +35 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesExport.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js +32 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesGet.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js +38 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesImport.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js +45 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListByCluster.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js +32 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesListKeys.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js +33 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesRegenerateKey.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js +37 -0
- package/dist-esm/samples-dev/redisEnterpriseDatabasesUpdate.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDelete.js +31 -0
- package/dist-esm/samples-dev/redisEnterpriseDelete.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js +32 -0
- package/dist-esm/samples-dev/redisEnterpriseDeletePrivateEndpointConnection.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseGet.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseGet.js +31 -0
- package/dist-esm/samples-dev/redisEnterpriseGet.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js +32 -0
- package/dist-esm/samples-dev/redisEnterpriseGetPrivateEndpointConnection.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseList.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseList.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseList.js +43 -0
- package/dist-esm/samples-dev/redisEnterpriseList.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js +45 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateEndpointConnections.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js +45 -0
- package/dist-esm/samples-dev/redisEnterpriseListPrivateLinkResources.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js +38 -0
- package/dist-esm/samples-dev/redisEnterprisePutPrivateEndpointConnection.js.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdate.js +36 -0
- package/dist-esm/samples-dev/redisEnterpriseUpdate.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +818 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +116 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +31 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +455 -508
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +22 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +173 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/databases.d.ts +161 -0
- package/dist-esm/src/operations/databases.d.ts.map +1 -0
- package/dist-esm/src/operations/databases.js +697 -0
- package/dist-esm/src/operations/databases.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/operationsStatus.d.ts +20 -0
- package/dist-esm/src/operations/operationsStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/operationsStatus.js +53 -0
- package/dist-esm/src/operations/operationsStatus.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +71 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +272 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +30 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +99 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/redisEnterprise.d.ts +107 -0
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -0
- package/dist-esm/src/operations/redisEnterprise.js +503 -0
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts +136 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/databases.js} +2 -1
- package/dist-esm/src/operationsInterfaces/databases.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/models/operationsStatusMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -7
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationsStatus.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/operationsStatus.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/operationsStatus.js} +2 -9
- package/dist-esm/src/operationsInterfaces/operationsStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/{esm/models/operationsStatusMappers.js → dist-esm/src/operationsInterfaces/privateEndpointConnections.js} +2 -2
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/redisEnterprise.js +9 -0
- package/dist-esm/src/operationsInterfaces/redisEnterprise.js.map +1 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts +23 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -0
- package/dist-esm/src/redisEnterpriseManagementClient.js +56 -0
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +82 -23
- package/review/arm-redisenterprisecache.api.md +705 -0
- package/rollup.config.js +181 -30
- package/{esm/models/operationsMappers.js → src/index.ts} +5 -2
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +694 -1077
- package/src/models/mappers.ts +447 -504
- package/src/models/parameters.ts +131 -47
- package/src/operations/databases.ts +779 -429
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +85 -73
- package/src/operations/operationsStatus.ts +37 -51
- package/src/operations/privateEndpointConnections.ts +252 -176
- package/src/operations/privateLinkResources.ts +96 -47
- package/src/operations/redisEnterprise.ts +517 -322
- package/src/operationsInterfaces/databases.ts +264 -0
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/operationsStatus.ts +27 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +102 -0
- package/src/operationsInterfaces/privateLinkResources.ts +29 -0
- package/src/operationsInterfaces/redisEnterprise.ts +139 -0
- package/src/redisEnterpriseManagementClient.ts +84 -42
- package/tsconfig.json +5 -4
- package/types/arm-redisenterprisecache.d.ts +1229 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-redisenterprisecache.js +0 -2654
- package/dist/arm-redisenterprisecache.js.map +0 -1
- package/dist/arm-redisenterprisecache.min.js +0 -1
- package/dist/arm-redisenterprisecache.min.js.map +0 -1
- package/esm/models/databasesMappers.d.ts +0 -2
- package/esm/models/databasesMappers.d.ts.map +0 -1
- package/esm/models/databasesMappers.js +0 -9
- package/esm/models/databasesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1215
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -34
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/operationsStatusMappers.d.ts +0 -2
- package/esm/models/operationsStatusMappers.d.ts.map +0 -1
- package/esm/models/operationsStatusMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -121
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/redisEnterpriseMappers.d.ts +0 -2
- package/esm/models/redisEnterpriseMappers.d.ts.map +0 -1
- package/esm/models/redisEnterpriseMappers.js +0 -9
- package/esm/models/redisEnterpriseMappers.js.map +0 -1
- package/esm/operations/databases.d.ts +0 -219
- package/esm/operations/databases.d.ts.map +0 -1
- package/esm/operations/databases.js +0 -515
- package/esm/operations/databases.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/operationsStatus.d.ts +0 -34
- package/esm/operations/operationsStatus.d.ts.map +0 -1
- package/esm/operations/operationsStatus.js +0 -57
- package/esm/operations/operationsStatus.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -113
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -187
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -34
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -57
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/redisEnterprise.d.ts +0 -156
- package/esm/operations/redisEnterprise.d.ts.map +0 -1
- package/esm/operations/redisEnterprise.js +0 -337
- package/esm/operations/redisEnterprise.js.map +0 -1
- package/esm/redisEnterpriseManagementClient.d.ts +0 -29
- package/esm/redisEnterpriseManagementClient.d.ts.map +0 -1
- package/esm/redisEnterpriseManagementClient.js +0 -42
- package/esm/redisEnterpriseManagementClient.js.map +0 -1
- package/esm/redisEnterpriseManagementClientContext.d.ts +0 -22
- package/esm/redisEnterpriseManagementClientContext.d.ts.map +0 -1
- package/esm/redisEnterpriseManagementClientContext.js +0 -60
- package/esm/redisEnterpriseManagementClientContext.js.map +0 -1
- package/src/models/databasesMappers.ts +0 -33
- package/src/models/privateEndpointConnectionsMappers.ts +0 -28
- package/src/models/privateLinkResourcesMappers.ts +0 -28
- package/src/models/redisEnterpriseMappers.ts +0 -29
- package/src/redisEnterpriseManagementClientContext.ts +0 -67
package/dist/index.js
ADDED
|
@@ -0,0 +1,3012 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownOrigin) {
|
|
17
|
+
KnownOrigin["User"] = "user";
|
|
18
|
+
KnownOrigin["System"] = "system";
|
|
19
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
20
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
21
|
+
(function (KnownActionType) {
|
|
22
|
+
KnownActionType["Internal"] = "Internal";
|
|
23
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
24
|
+
(function (KnownSkuName) {
|
|
25
|
+
KnownSkuName["EnterpriseE10"] = "Enterprise_E10";
|
|
26
|
+
KnownSkuName["EnterpriseE20"] = "Enterprise_E20";
|
|
27
|
+
KnownSkuName["EnterpriseE50"] = "Enterprise_E50";
|
|
28
|
+
KnownSkuName["EnterpriseE100"] = "Enterprise_E100";
|
|
29
|
+
KnownSkuName["EnterpriseFlashF300"] = "EnterpriseFlash_F300";
|
|
30
|
+
KnownSkuName["EnterpriseFlashF700"] = "EnterpriseFlash_F700";
|
|
31
|
+
KnownSkuName["EnterpriseFlashF1500"] = "EnterpriseFlash_F1500";
|
|
32
|
+
})(exports.KnownSkuName || (exports.KnownSkuName = {}));
|
|
33
|
+
(function (KnownTlsVersion) {
|
|
34
|
+
KnownTlsVersion["One0"] = "1.0";
|
|
35
|
+
KnownTlsVersion["One1"] = "1.1";
|
|
36
|
+
KnownTlsVersion["One2"] = "1.2";
|
|
37
|
+
})(exports.KnownTlsVersion || (exports.KnownTlsVersion = {}));
|
|
38
|
+
(function (KnownProvisioningState) {
|
|
39
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
40
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
41
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
42
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
43
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
44
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
45
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
46
|
+
(function (KnownResourceState) {
|
|
47
|
+
KnownResourceState["Running"] = "Running";
|
|
48
|
+
KnownResourceState["Creating"] = "Creating";
|
|
49
|
+
KnownResourceState["CreateFailed"] = "CreateFailed";
|
|
50
|
+
KnownResourceState["Updating"] = "Updating";
|
|
51
|
+
KnownResourceState["UpdateFailed"] = "UpdateFailed";
|
|
52
|
+
KnownResourceState["Deleting"] = "Deleting";
|
|
53
|
+
KnownResourceState["DeleteFailed"] = "DeleteFailed";
|
|
54
|
+
KnownResourceState["Enabling"] = "Enabling";
|
|
55
|
+
KnownResourceState["EnableFailed"] = "EnableFailed";
|
|
56
|
+
KnownResourceState["Disabling"] = "Disabling";
|
|
57
|
+
KnownResourceState["DisableFailed"] = "DisableFailed";
|
|
58
|
+
KnownResourceState["Disabled"] = "Disabled";
|
|
59
|
+
})(exports.KnownResourceState || (exports.KnownResourceState = {}));
|
|
60
|
+
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
61
|
+
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
62
|
+
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
63
|
+
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
64
|
+
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
65
|
+
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
66
|
+
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
67
|
+
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
68
|
+
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
69
|
+
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
70
|
+
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
71
|
+
(function (KnownProtocol) {
|
|
72
|
+
KnownProtocol["Encrypted"] = "Encrypted";
|
|
73
|
+
KnownProtocol["Plaintext"] = "Plaintext";
|
|
74
|
+
})(exports.KnownProtocol || (exports.KnownProtocol = {}));
|
|
75
|
+
(function (KnownClusteringPolicy) {
|
|
76
|
+
KnownClusteringPolicy["EnterpriseCluster"] = "EnterpriseCluster";
|
|
77
|
+
KnownClusteringPolicy["OSSCluster"] = "OSSCluster";
|
|
78
|
+
})(exports.KnownClusteringPolicy || (exports.KnownClusteringPolicy = {}));
|
|
79
|
+
(function (KnownEvictionPolicy) {
|
|
80
|
+
KnownEvictionPolicy["AllKeysLFU"] = "AllKeysLFU";
|
|
81
|
+
KnownEvictionPolicy["AllKeysLRU"] = "AllKeysLRU";
|
|
82
|
+
KnownEvictionPolicy["AllKeysRandom"] = "AllKeysRandom";
|
|
83
|
+
KnownEvictionPolicy["VolatileLRU"] = "VolatileLRU";
|
|
84
|
+
KnownEvictionPolicy["VolatileLFU"] = "VolatileLFU";
|
|
85
|
+
KnownEvictionPolicy["VolatileTTL"] = "VolatileTTL";
|
|
86
|
+
KnownEvictionPolicy["VolatileRandom"] = "VolatileRandom";
|
|
87
|
+
KnownEvictionPolicy["NoEviction"] = "NoEviction";
|
|
88
|
+
})(exports.KnownEvictionPolicy || (exports.KnownEvictionPolicy = {}));
|
|
89
|
+
(function (KnownAofFrequency) {
|
|
90
|
+
KnownAofFrequency["OneS"] = "1s";
|
|
91
|
+
KnownAofFrequency["Always"] = "always";
|
|
92
|
+
})(exports.KnownAofFrequency || (exports.KnownAofFrequency = {}));
|
|
93
|
+
(function (KnownRdbFrequency) {
|
|
94
|
+
KnownRdbFrequency["OneH"] = "1h";
|
|
95
|
+
KnownRdbFrequency["SixH"] = "6h";
|
|
96
|
+
KnownRdbFrequency["TwelveH"] = "12h";
|
|
97
|
+
})(exports.KnownRdbFrequency || (exports.KnownRdbFrequency = {}));
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
* Copyright (c) Microsoft Corporation.
|
|
101
|
+
* Licensed under the MIT License.
|
|
102
|
+
*
|
|
103
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
104
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
105
|
+
*/
|
|
106
|
+
const OperationListResult = {
|
|
107
|
+
type: {
|
|
108
|
+
name: "Composite",
|
|
109
|
+
className: "OperationListResult",
|
|
110
|
+
modelProperties: {
|
|
111
|
+
value: {
|
|
112
|
+
serializedName: "value",
|
|
113
|
+
readOnly: true,
|
|
114
|
+
type: {
|
|
115
|
+
name: "Sequence",
|
|
116
|
+
element: {
|
|
117
|
+
type: {
|
|
118
|
+
name: "Composite",
|
|
119
|
+
className: "Operation"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
nextLink: {
|
|
125
|
+
serializedName: "nextLink",
|
|
126
|
+
readOnly: true,
|
|
127
|
+
type: {
|
|
128
|
+
name: "String"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
const Operation = {
|
|
135
|
+
type: {
|
|
136
|
+
name: "Composite",
|
|
137
|
+
className: "Operation",
|
|
138
|
+
modelProperties: {
|
|
139
|
+
name: {
|
|
140
|
+
serializedName: "name",
|
|
141
|
+
readOnly: true,
|
|
142
|
+
type: {
|
|
143
|
+
name: "String"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
isDataAction: {
|
|
147
|
+
serializedName: "isDataAction",
|
|
148
|
+
readOnly: true,
|
|
149
|
+
type: {
|
|
150
|
+
name: "Boolean"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
display: {
|
|
154
|
+
serializedName: "display",
|
|
155
|
+
type: {
|
|
156
|
+
name: "Composite",
|
|
157
|
+
className: "OperationDisplay"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
origin: {
|
|
161
|
+
serializedName: "origin",
|
|
162
|
+
readOnly: true,
|
|
163
|
+
type: {
|
|
164
|
+
name: "String"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
actionType: {
|
|
168
|
+
serializedName: "actionType",
|
|
169
|
+
readOnly: true,
|
|
170
|
+
type: {
|
|
171
|
+
name: "String"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
const OperationDisplay = {
|
|
178
|
+
type: {
|
|
179
|
+
name: "Composite",
|
|
180
|
+
className: "OperationDisplay",
|
|
181
|
+
modelProperties: {
|
|
182
|
+
provider: {
|
|
183
|
+
serializedName: "provider",
|
|
184
|
+
readOnly: true,
|
|
185
|
+
type: {
|
|
186
|
+
name: "String"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
resource: {
|
|
190
|
+
serializedName: "resource",
|
|
191
|
+
readOnly: true,
|
|
192
|
+
type: {
|
|
193
|
+
name: "String"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
operation: {
|
|
197
|
+
serializedName: "operation",
|
|
198
|
+
readOnly: true,
|
|
199
|
+
type: {
|
|
200
|
+
name: "String"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
description: {
|
|
204
|
+
serializedName: "description",
|
|
205
|
+
readOnly: true,
|
|
206
|
+
type: {
|
|
207
|
+
name: "String"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const ErrorResponse = {
|
|
214
|
+
type: {
|
|
215
|
+
name: "Composite",
|
|
216
|
+
className: "ErrorResponse",
|
|
217
|
+
modelProperties: {
|
|
218
|
+
error: {
|
|
219
|
+
serializedName: "error",
|
|
220
|
+
type: {
|
|
221
|
+
name: "Composite",
|
|
222
|
+
className: "ErrorDetail"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
const ErrorDetail = {
|
|
229
|
+
type: {
|
|
230
|
+
name: "Composite",
|
|
231
|
+
className: "ErrorDetail",
|
|
232
|
+
modelProperties: {
|
|
233
|
+
code: {
|
|
234
|
+
serializedName: "code",
|
|
235
|
+
readOnly: true,
|
|
236
|
+
type: {
|
|
237
|
+
name: "String"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
message: {
|
|
241
|
+
serializedName: "message",
|
|
242
|
+
readOnly: true,
|
|
243
|
+
type: {
|
|
244
|
+
name: "String"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
target: {
|
|
248
|
+
serializedName: "target",
|
|
249
|
+
readOnly: true,
|
|
250
|
+
type: {
|
|
251
|
+
name: "String"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
details: {
|
|
255
|
+
serializedName: "details",
|
|
256
|
+
readOnly: true,
|
|
257
|
+
type: {
|
|
258
|
+
name: "Sequence",
|
|
259
|
+
element: {
|
|
260
|
+
type: {
|
|
261
|
+
name: "Composite",
|
|
262
|
+
className: "ErrorDetail"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
additionalInfo: {
|
|
268
|
+
serializedName: "additionalInfo",
|
|
269
|
+
readOnly: true,
|
|
270
|
+
type: {
|
|
271
|
+
name: "Sequence",
|
|
272
|
+
element: {
|
|
273
|
+
type: {
|
|
274
|
+
name: "Composite",
|
|
275
|
+
className: "ErrorAdditionalInfo"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
const ErrorAdditionalInfo = {
|
|
284
|
+
type: {
|
|
285
|
+
name: "Composite",
|
|
286
|
+
className: "ErrorAdditionalInfo",
|
|
287
|
+
modelProperties: {
|
|
288
|
+
type: {
|
|
289
|
+
serializedName: "type",
|
|
290
|
+
readOnly: true,
|
|
291
|
+
type: {
|
|
292
|
+
name: "String"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
info: {
|
|
296
|
+
serializedName: "info",
|
|
297
|
+
readOnly: true,
|
|
298
|
+
type: {
|
|
299
|
+
name: "Dictionary",
|
|
300
|
+
value: { type: { name: "any" } }
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
const OperationStatus = {
|
|
307
|
+
type: {
|
|
308
|
+
name: "Composite",
|
|
309
|
+
className: "OperationStatus",
|
|
310
|
+
modelProperties: {
|
|
311
|
+
id: {
|
|
312
|
+
serializedName: "id",
|
|
313
|
+
type: {
|
|
314
|
+
name: "String"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
name: {
|
|
318
|
+
serializedName: "name",
|
|
319
|
+
type: {
|
|
320
|
+
name: "String"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
startTime: {
|
|
324
|
+
serializedName: "startTime",
|
|
325
|
+
type: {
|
|
326
|
+
name: "String"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
endTime: {
|
|
330
|
+
serializedName: "endTime",
|
|
331
|
+
type: {
|
|
332
|
+
name: "String"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
status: {
|
|
336
|
+
serializedName: "status",
|
|
337
|
+
type: {
|
|
338
|
+
name: "String"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
error: {
|
|
342
|
+
serializedName: "error",
|
|
343
|
+
type: {
|
|
344
|
+
name: "Composite",
|
|
345
|
+
className: "ErrorResponse"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
const Sku = {
|
|
352
|
+
type: {
|
|
353
|
+
name: "Composite",
|
|
354
|
+
className: "Sku",
|
|
355
|
+
modelProperties: {
|
|
356
|
+
name: {
|
|
357
|
+
serializedName: "name",
|
|
358
|
+
required: true,
|
|
359
|
+
type: {
|
|
360
|
+
name: "String"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
capacity: {
|
|
364
|
+
serializedName: "capacity",
|
|
365
|
+
type: {
|
|
366
|
+
name: "Number"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
const PrivateEndpoint = {
|
|
373
|
+
type: {
|
|
374
|
+
name: "Composite",
|
|
375
|
+
className: "PrivateEndpoint",
|
|
376
|
+
modelProperties: {
|
|
377
|
+
id: {
|
|
378
|
+
serializedName: "id",
|
|
379
|
+
readOnly: true,
|
|
380
|
+
type: {
|
|
381
|
+
name: "String"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
const PrivateLinkServiceConnectionState = {
|
|
388
|
+
type: {
|
|
389
|
+
name: "Composite",
|
|
390
|
+
className: "PrivateLinkServiceConnectionState",
|
|
391
|
+
modelProperties: {
|
|
392
|
+
status: {
|
|
393
|
+
serializedName: "status",
|
|
394
|
+
type: {
|
|
395
|
+
name: "String"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
description: {
|
|
399
|
+
serializedName: "description",
|
|
400
|
+
type: {
|
|
401
|
+
name: "String"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
actionsRequired: {
|
|
405
|
+
serializedName: "actionsRequired",
|
|
406
|
+
type: {
|
|
407
|
+
name: "String"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
const Resource = {
|
|
414
|
+
type: {
|
|
415
|
+
name: "Composite",
|
|
416
|
+
className: "Resource",
|
|
417
|
+
modelProperties: {
|
|
418
|
+
id: {
|
|
419
|
+
serializedName: "id",
|
|
420
|
+
readOnly: true,
|
|
421
|
+
type: {
|
|
422
|
+
name: "String"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
name: {
|
|
426
|
+
serializedName: "name",
|
|
427
|
+
readOnly: true,
|
|
428
|
+
type: {
|
|
429
|
+
name: "String"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
type: {
|
|
433
|
+
serializedName: "type",
|
|
434
|
+
readOnly: true,
|
|
435
|
+
type: {
|
|
436
|
+
name: "String"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
};
|
|
442
|
+
const ClusterUpdate = {
|
|
443
|
+
type: {
|
|
444
|
+
name: "Composite",
|
|
445
|
+
className: "ClusterUpdate",
|
|
446
|
+
modelProperties: {
|
|
447
|
+
sku: {
|
|
448
|
+
serializedName: "sku",
|
|
449
|
+
type: {
|
|
450
|
+
name: "Composite",
|
|
451
|
+
className: "Sku"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
tags: {
|
|
455
|
+
serializedName: "tags",
|
|
456
|
+
type: {
|
|
457
|
+
name: "Dictionary",
|
|
458
|
+
value: { type: { name: "String" } }
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
minimumTlsVersion: {
|
|
462
|
+
serializedName: "properties.minimumTlsVersion",
|
|
463
|
+
type: {
|
|
464
|
+
name: "String"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
hostName: {
|
|
468
|
+
serializedName: "properties.hostName",
|
|
469
|
+
readOnly: true,
|
|
470
|
+
type: {
|
|
471
|
+
name: "String"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
provisioningState: {
|
|
475
|
+
serializedName: "properties.provisioningState",
|
|
476
|
+
readOnly: true,
|
|
477
|
+
type: {
|
|
478
|
+
name: "String"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
resourceState: {
|
|
482
|
+
serializedName: "properties.resourceState",
|
|
483
|
+
readOnly: true,
|
|
484
|
+
type: {
|
|
485
|
+
name: "String"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
redisVersion: {
|
|
489
|
+
serializedName: "properties.redisVersion",
|
|
490
|
+
readOnly: true,
|
|
491
|
+
type: {
|
|
492
|
+
name: "String"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
privateEndpointConnections: {
|
|
496
|
+
serializedName: "properties.privateEndpointConnections",
|
|
497
|
+
readOnly: true,
|
|
498
|
+
type: {
|
|
499
|
+
name: "Sequence",
|
|
500
|
+
element: {
|
|
501
|
+
type: {
|
|
502
|
+
name: "Composite",
|
|
503
|
+
className: "PrivateEndpointConnection"
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
const ClusterList = {
|
|
512
|
+
type: {
|
|
513
|
+
name: "Composite",
|
|
514
|
+
className: "ClusterList",
|
|
515
|
+
modelProperties: {
|
|
516
|
+
value: {
|
|
517
|
+
serializedName: "value",
|
|
518
|
+
type: {
|
|
519
|
+
name: "Sequence",
|
|
520
|
+
element: {
|
|
521
|
+
type: {
|
|
522
|
+
name: "Composite",
|
|
523
|
+
className: "Cluster"
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
nextLink: {
|
|
529
|
+
serializedName: "nextLink",
|
|
530
|
+
readOnly: true,
|
|
531
|
+
type: {
|
|
532
|
+
name: "String"
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
const DatabaseList = {
|
|
539
|
+
type: {
|
|
540
|
+
name: "Composite",
|
|
541
|
+
className: "DatabaseList",
|
|
542
|
+
modelProperties: {
|
|
543
|
+
value: {
|
|
544
|
+
serializedName: "value",
|
|
545
|
+
type: {
|
|
546
|
+
name: "Sequence",
|
|
547
|
+
element: {
|
|
548
|
+
type: {
|
|
549
|
+
name: "Composite",
|
|
550
|
+
className: "Database"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
nextLink: {
|
|
556
|
+
serializedName: "nextLink",
|
|
557
|
+
readOnly: true,
|
|
558
|
+
type: {
|
|
559
|
+
name: "String"
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
const Persistence = {
|
|
566
|
+
type: {
|
|
567
|
+
name: "Composite",
|
|
568
|
+
className: "Persistence",
|
|
569
|
+
modelProperties: {
|
|
570
|
+
aofEnabled: {
|
|
571
|
+
serializedName: "aofEnabled",
|
|
572
|
+
type: {
|
|
573
|
+
name: "Boolean"
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
rdbEnabled: {
|
|
577
|
+
serializedName: "rdbEnabled",
|
|
578
|
+
type: {
|
|
579
|
+
name: "Boolean"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
aofFrequency: {
|
|
583
|
+
serializedName: "aofFrequency",
|
|
584
|
+
type: {
|
|
585
|
+
name: "String"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
rdbFrequency: {
|
|
589
|
+
serializedName: "rdbFrequency",
|
|
590
|
+
type: {
|
|
591
|
+
name: "String"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
const Module = {
|
|
598
|
+
type: {
|
|
599
|
+
name: "Composite",
|
|
600
|
+
className: "Module",
|
|
601
|
+
modelProperties: {
|
|
602
|
+
name: {
|
|
603
|
+
serializedName: "name",
|
|
604
|
+
required: true,
|
|
605
|
+
type: {
|
|
606
|
+
name: "String"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
args: {
|
|
610
|
+
serializedName: "args",
|
|
611
|
+
type: {
|
|
612
|
+
name: "String"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
version: {
|
|
616
|
+
serializedName: "version",
|
|
617
|
+
readOnly: true,
|
|
618
|
+
type: {
|
|
619
|
+
name: "String"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
const DatabaseUpdate = {
|
|
626
|
+
type: {
|
|
627
|
+
name: "Composite",
|
|
628
|
+
className: "DatabaseUpdate",
|
|
629
|
+
modelProperties: {
|
|
630
|
+
clientProtocol: {
|
|
631
|
+
serializedName: "properties.clientProtocol",
|
|
632
|
+
type: {
|
|
633
|
+
name: "String"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
port: {
|
|
637
|
+
serializedName: "properties.port",
|
|
638
|
+
type: {
|
|
639
|
+
name: "Number"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
provisioningState: {
|
|
643
|
+
serializedName: "properties.provisioningState",
|
|
644
|
+
readOnly: true,
|
|
645
|
+
type: {
|
|
646
|
+
name: "String"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
resourceState: {
|
|
650
|
+
serializedName: "properties.resourceState",
|
|
651
|
+
readOnly: true,
|
|
652
|
+
type: {
|
|
653
|
+
name: "String"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
clusteringPolicy: {
|
|
657
|
+
serializedName: "properties.clusteringPolicy",
|
|
658
|
+
type: {
|
|
659
|
+
name: "String"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
evictionPolicy: {
|
|
663
|
+
serializedName: "properties.evictionPolicy",
|
|
664
|
+
type: {
|
|
665
|
+
name: "String"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
persistence: {
|
|
669
|
+
serializedName: "properties.persistence",
|
|
670
|
+
type: {
|
|
671
|
+
name: "Composite",
|
|
672
|
+
className: "Persistence"
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
modules: {
|
|
676
|
+
serializedName: "properties.modules",
|
|
677
|
+
type: {
|
|
678
|
+
name: "Sequence",
|
|
679
|
+
element: {
|
|
680
|
+
type: {
|
|
681
|
+
name: "Composite",
|
|
682
|
+
className: "Module"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
const AccessKeys = {
|
|
691
|
+
type: {
|
|
692
|
+
name: "Composite",
|
|
693
|
+
className: "AccessKeys",
|
|
694
|
+
modelProperties: {
|
|
695
|
+
primaryKey: {
|
|
696
|
+
serializedName: "primaryKey",
|
|
697
|
+
readOnly: true,
|
|
698
|
+
type: {
|
|
699
|
+
name: "String"
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
secondaryKey: {
|
|
703
|
+
serializedName: "secondaryKey",
|
|
704
|
+
readOnly: true,
|
|
705
|
+
type: {
|
|
706
|
+
name: "String"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
const RegenerateKeyParameters = {
|
|
713
|
+
type: {
|
|
714
|
+
name: "Composite",
|
|
715
|
+
className: "RegenerateKeyParameters",
|
|
716
|
+
modelProperties: {
|
|
717
|
+
keyType: {
|
|
718
|
+
serializedName: "keyType",
|
|
719
|
+
required: true,
|
|
720
|
+
type: {
|
|
721
|
+
name: "Enum",
|
|
722
|
+
allowedValues: ["Primary", "Secondary"]
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
const ImportClusterParameters = {
|
|
729
|
+
type: {
|
|
730
|
+
name: "Composite",
|
|
731
|
+
className: "ImportClusterParameters",
|
|
732
|
+
modelProperties: {
|
|
733
|
+
sasUris: {
|
|
734
|
+
serializedName: "sasUris",
|
|
735
|
+
required: true,
|
|
736
|
+
type: {
|
|
737
|
+
name: "Sequence",
|
|
738
|
+
element: {
|
|
739
|
+
type: {
|
|
740
|
+
name: "String"
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
const ExportClusterParameters = {
|
|
749
|
+
type: {
|
|
750
|
+
name: "Composite",
|
|
751
|
+
className: "ExportClusterParameters",
|
|
752
|
+
modelProperties: {
|
|
753
|
+
sasUri: {
|
|
754
|
+
serializedName: "sasUri",
|
|
755
|
+
required: true,
|
|
756
|
+
type: {
|
|
757
|
+
name: "String"
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
const PrivateEndpointConnectionListResult = {
|
|
764
|
+
type: {
|
|
765
|
+
name: "Composite",
|
|
766
|
+
className: "PrivateEndpointConnectionListResult",
|
|
767
|
+
modelProperties: {
|
|
768
|
+
value: {
|
|
769
|
+
serializedName: "value",
|
|
770
|
+
type: {
|
|
771
|
+
name: "Sequence",
|
|
772
|
+
element: {
|
|
773
|
+
type: {
|
|
774
|
+
name: "Composite",
|
|
775
|
+
className: "PrivateEndpointConnection"
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
const PrivateLinkResourceListResult = {
|
|
784
|
+
type: {
|
|
785
|
+
name: "Composite",
|
|
786
|
+
className: "PrivateLinkResourceListResult",
|
|
787
|
+
modelProperties: {
|
|
788
|
+
value: {
|
|
789
|
+
serializedName: "value",
|
|
790
|
+
type: {
|
|
791
|
+
name: "Sequence",
|
|
792
|
+
element: {
|
|
793
|
+
type: {
|
|
794
|
+
name: "Composite",
|
|
795
|
+
className: "PrivateLinkResource"
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
const PrivateEndpointConnection = {
|
|
804
|
+
type: {
|
|
805
|
+
name: "Composite",
|
|
806
|
+
className: "PrivateEndpointConnection",
|
|
807
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { privateEndpoint: {
|
|
808
|
+
serializedName: "properties.privateEndpoint",
|
|
809
|
+
type: {
|
|
810
|
+
name: "Composite",
|
|
811
|
+
className: "PrivateEndpoint"
|
|
812
|
+
}
|
|
813
|
+
}, privateLinkServiceConnectionState: {
|
|
814
|
+
serializedName: "properties.privateLinkServiceConnectionState",
|
|
815
|
+
type: {
|
|
816
|
+
name: "Composite",
|
|
817
|
+
className: "PrivateLinkServiceConnectionState"
|
|
818
|
+
}
|
|
819
|
+
}, provisioningState: {
|
|
820
|
+
serializedName: "properties.provisioningState",
|
|
821
|
+
readOnly: true,
|
|
822
|
+
type: {
|
|
823
|
+
name: "String"
|
|
824
|
+
}
|
|
825
|
+
} })
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
const TrackedResource = {
|
|
829
|
+
type: {
|
|
830
|
+
name: "Composite",
|
|
831
|
+
className: "TrackedResource",
|
|
832
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
833
|
+
serializedName: "tags",
|
|
834
|
+
type: {
|
|
835
|
+
name: "Dictionary",
|
|
836
|
+
value: { type: { name: "String" } }
|
|
837
|
+
}
|
|
838
|
+
}, location: {
|
|
839
|
+
serializedName: "location",
|
|
840
|
+
required: true,
|
|
841
|
+
type: {
|
|
842
|
+
name: "String"
|
|
843
|
+
}
|
|
844
|
+
} })
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
const ProxyResource = {
|
|
848
|
+
type: {
|
|
849
|
+
name: "Composite",
|
|
850
|
+
className: "ProxyResource",
|
|
851
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
const PrivateLinkResource = {
|
|
855
|
+
type: {
|
|
856
|
+
name: "Composite",
|
|
857
|
+
className: "PrivateLinkResource",
|
|
858
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { groupId: {
|
|
859
|
+
serializedName: "properties.groupId",
|
|
860
|
+
readOnly: true,
|
|
861
|
+
type: {
|
|
862
|
+
name: "String"
|
|
863
|
+
}
|
|
864
|
+
}, requiredMembers: {
|
|
865
|
+
serializedName: "properties.requiredMembers",
|
|
866
|
+
readOnly: true,
|
|
867
|
+
type: {
|
|
868
|
+
name: "Sequence",
|
|
869
|
+
element: {
|
|
870
|
+
type: {
|
|
871
|
+
name: "String"
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
}, requiredZoneNames: {
|
|
876
|
+
serializedName: "properties.requiredZoneNames",
|
|
877
|
+
type: {
|
|
878
|
+
name: "Sequence",
|
|
879
|
+
element: {
|
|
880
|
+
type: {
|
|
881
|
+
name: "String"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
} })
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
const Cluster = {
|
|
889
|
+
type: {
|
|
890
|
+
name: "Composite",
|
|
891
|
+
className: "Cluster",
|
|
892
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
|
|
893
|
+
serializedName: "sku",
|
|
894
|
+
type: {
|
|
895
|
+
name: "Composite",
|
|
896
|
+
className: "Sku"
|
|
897
|
+
}
|
|
898
|
+
}, zones: {
|
|
899
|
+
serializedName: "zones",
|
|
900
|
+
type: {
|
|
901
|
+
name: "Sequence",
|
|
902
|
+
element: {
|
|
903
|
+
type: {
|
|
904
|
+
name: "String"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}, minimumTlsVersion: {
|
|
909
|
+
serializedName: "properties.minimumTlsVersion",
|
|
910
|
+
type: {
|
|
911
|
+
name: "String"
|
|
912
|
+
}
|
|
913
|
+
}, hostName: {
|
|
914
|
+
serializedName: "properties.hostName",
|
|
915
|
+
readOnly: true,
|
|
916
|
+
type: {
|
|
917
|
+
name: "String"
|
|
918
|
+
}
|
|
919
|
+
}, provisioningState: {
|
|
920
|
+
serializedName: "properties.provisioningState",
|
|
921
|
+
readOnly: true,
|
|
922
|
+
type: {
|
|
923
|
+
name: "String"
|
|
924
|
+
}
|
|
925
|
+
}, resourceState: {
|
|
926
|
+
serializedName: "properties.resourceState",
|
|
927
|
+
readOnly: true,
|
|
928
|
+
type: {
|
|
929
|
+
name: "String"
|
|
930
|
+
}
|
|
931
|
+
}, redisVersion: {
|
|
932
|
+
serializedName: "properties.redisVersion",
|
|
933
|
+
readOnly: true,
|
|
934
|
+
type: {
|
|
935
|
+
name: "String"
|
|
936
|
+
}
|
|
937
|
+
}, privateEndpointConnections: {
|
|
938
|
+
serializedName: "properties.privateEndpointConnections",
|
|
939
|
+
readOnly: true,
|
|
940
|
+
type: {
|
|
941
|
+
name: "Sequence",
|
|
942
|
+
element: {
|
|
943
|
+
type: {
|
|
944
|
+
name: "Composite",
|
|
945
|
+
className: "PrivateEndpointConnection"
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
} })
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
const Database = {
|
|
953
|
+
type: {
|
|
954
|
+
name: "Composite",
|
|
955
|
+
className: "Database",
|
|
956
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { clientProtocol: {
|
|
957
|
+
serializedName: "properties.clientProtocol",
|
|
958
|
+
type: {
|
|
959
|
+
name: "String"
|
|
960
|
+
}
|
|
961
|
+
}, port: {
|
|
962
|
+
serializedName: "properties.port",
|
|
963
|
+
type: {
|
|
964
|
+
name: "Number"
|
|
965
|
+
}
|
|
966
|
+
}, provisioningState: {
|
|
967
|
+
serializedName: "properties.provisioningState",
|
|
968
|
+
readOnly: true,
|
|
969
|
+
type: {
|
|
970
|
+
name: "String"
|
|
971
|
+
}
|
|
972
|
+
}, resourceState: {
|
|
973
|
+
serializedName: "properties.resourceState",
|
|
974
|
+
readOnly: true,
|
|
975
|
+
type: {
|
|
976
|
+
name: "String"
|
|
977
|
+
}
|
|
978
|
+
}, clusteringPolicy: {
|
|
979
|
+
serializedName: "properties.clusteringPolicy",
|
|
980
|
+
type: {
|
|
981
|
+
name: "String"
|
|
982
|
+
}
|
|
983
|
+
}, evictionPolicy: {
|
|
984
|
+
serializedName: "properties.evictionPolicy",
|
|
985
|
+
type: {
|
|
986
|
+
name: "String"
|
|
987
|
+
}
|
|
988
|
+
}, persistence: {
|
|
989
|
+
serializedName: "properties.persistence",
|
|
990
|
+
type: {
|
|
991
|
+
name: "Composite",
|
|
992
|
+
className: "Persistence"
|
|
993
|
+
}
|
|
994
|
+
}, modules: {
|
|
995
|
+
serializedName: "properties.modules",
|
|
996
|
+
type: {
|
|
997
|
+
name: "Sequence",
|
|
998
|
+
element: {
|
|
999
|
+
type: {
|
|
1000
|
+
name: "Composite",
|
|
1001
|
+
className: "Module"
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
} })
|
|
1006
|
+
}
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1010
|
+
__proto__: null,
|
|
1011
|
+
OperationListResult: OperationListResult,
|
|
1012
|
+
Operation: Operation,
|
|
1013
|
+
OperationDisplay: OperationDisplay,
|
|
1014
|
+
ErrorResponse: ErrorResponse,
|
|
1015
|
+
ErrorDetail: ErrorDetail,
|
|
1016
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1017
|
+
OperationStatus: OperationStatus,
|
|
1018
|
+
Sku: Sku,
|
|
1019
|
+
PrivateEndpoint: PrivateEndpoint,
|
|
1020
|
+
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1021
|
+
Resource: Resource,
|
|
1022
|
+
ClusterUpdate: ClusterUpdate,
|
|
1023
|
+
ClusterList: ClusterList,
|
|
1024
|
+
DatabaseList: DatabaseList,
|
|
1025
|
+
Persistence: Persistence,
|
|
1026
|
+
Module: Module,
|
|
1027
|
+
DatabaseUpdate: DatabaseUpdate,
|
|
1028
|
+
AccessKeys: AccessKeys,
|
|
1029
|
+
RegenerateKeyParameters: RegenerateKeyParameters,
|
|
1030
|
+
ImportClusterParameters: ImportClusterParameters,
|
|
1031
|
+
ExportClusterParameters: ExportClusterParameters,
|
|
1032
|
+
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1033
|
+
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1034
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1035
|
+
TrackedResource: TrackedResource,
|
|
1036
|
+
ProxyResource: ProxyResource,
|
|
1037
|
+
PrivateLinkResource: PrivateLinkResource,
|
|
1038
|
+
Cluster: Cluster,
|
|
1039
|
+
Database: Database
|
|
1040
|
+
});
|
|
1041
|
+
|
|
1042
|
+
/*
|
|
1043
|
+
* Copyright (c) Microsoft Corporation.
|
|
1044
|
+
* Licensed under the MIT License.
|
|
1045
|
+
*
|
|
1046
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1047
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1048
|
+
*/
|
|
1049
|
+
const accept = {
|
|
1050
|
+
parameterPath: "accept",
|
|
1051
|
+
mapper: {
|
|
1052
|
+
defaultValue: "application/json",
|
|
1053
|
+
isConstant: true,
|
|
1054
|
+
serializedName: "Accept",
|
|
1055
|
+
type: {
|
|
1056
|
+
name: "String"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
};
|
|
1060
|
+
const $host = {
|
|
1061
|
+
parameterPath: "$host",
|
|
1062
|
+
mapper: {
|
|
1063
|
+
serializedName: "$host",
|
|
1064
|
+
required: true,
|
|
1065
|
+
type: {
|
|
1066
|
+
name: "String"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
skipEncoding: true
|
|
1070
|
+
};
|
|
1071
|
+
const apiVersion = {
|
|
1072
|
+
parameterPath: "apiVersion",
|
|
1073
|
+
mapper: {
|
|
1074
|
+
defaultValue: "2021-08-01",
|
|
1075
|
+
isConstant: true,
|
|
1076
|
+
serializedName: "api-version",
|
|
1077
|
+
type: {
|
|
1078
|
+
name: "String"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
const nextLink = {
|
|
1083
|
+
parameterPath: "nextLink",
|
|
1084
|
+
mapper: {
|
|
1085
|
+
serializedName: "nextLink",
|
|
1086
|
+
required: true,
|
|
1087
|
+
type: {
|
|
1088
|
+
name: "String"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
skipEncoding: true
|
|
1092
|
+
};
|
|
1093
|
+
const location = {
|
|
1094
|
+
parameterPath: "location",
|
|
1095
|
+
mapper: {
|
|
1096
|
+
serializedName: "location",
|
|
1097
|
+
required: true,
|
|
1098
|
+
type: {
|
|
1099
|
+
name: "String"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
const operationId = {
|
|
1104
|
+
parameterPath: "operationId",
|
|
1105
|
+
mapper: {
|
|
1106
|
+
serializedName: "operationId",
|
|
1107
|
+
required: true,
|
|
1108
|
+
type: {
|
|
1109
|
+
name: "String"
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
const subscriptionId = {
|
|
1114
|
+
parameterPath: "subscriptionId",
|
|
1115
|
+
mapper: {
|
|
1116
|
+
constraints: {
|
|
1117
|
+
MinLength: 1
|
|
1118
|
+
},
|
|
1119
|
+
serializedName: "subscriptionId",
|
|
1120
|
+
required: true,
|
|
1121
|
+
type: {
|
|
1122
|
+
name: "String"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
};
|
|
1126
|
+
const contentType = {
|
|
1127
|
+
parameterPath: ["options", "contentType"],
|
|
1128
|
+
mapper: {
|
|
1129
|
+
defaultValue: "application/json",
|
|
1130
|
+
isConstant: true,
|
|
1131
|
+
serializedName: "Content-Type",
|
|
1132
|
+
type: {
|
|
1133
|
+
name: "String"
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
const parameters = {
|
|
1138
|
+
parameterPath: "parameters",
|
|
1139
|
+
mapper: Cluster
|
|
1140
|
+
};
|
|
1141
|
+
const resourceGroupName = {
|
|
1142
|
+
parameterPath: "resourceGroupName",
|
|
1143
|
+
mapper: {
|
|
1144
|
+
constraints: {
|
|
1145
|
+
MaxLength: 90,
|
|
1146
|
+
MinLength: 1
|
|
1147
|
+
},
|
|
1148
|
+
serializedName: "resourceGroupName",
|
|
1149
|
+
required: true,
|
|
1150
|
+
type: {
|
|
1151
|
+
name: "String"
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
};
|
|
1155
|
+
const clusterName = {
|
|
1156
|
+
parameterPath: "clusterName",
|
|
1157
|
+
mapper: {
|
|
1158
|
+
serializedName: "clusterName",
|
|
1159
|
+
required: true,
|
|
1160
|
+
type: {
|
|
1161
|
+
name: "String"
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
const parameters1 = {
|
|
1166
|
+
parameterPath: "parameters",
|
|
1167
|
+
mapper: ClusterUpdate
|
|
1168
|
+
};
|
|
1169
|
+
const parameters2 = {
|
|
1170
|
+
parameterPath: "parameters",
|
|
1171
|
+
mapper: Database
|
|
1172
|
+
};
|
|
1173
|
+
const databaseName = {
|
|
1174
|
+
parameterPath: "databaseName",
|
|
1175
|
+
mapper: {
|
|
1176
|
+
serializedName: "databaseName",
|
|
1177
|
+
required: true,
|
|
1178
|
+
type: {
|
|
1179
|
+
name: "String"
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
const parameters3 = {
|
|
1184
|
+
parameterPath: "parameters",
|
|
1185
|
+
mapper: DatabaseUpdate
|
|
1186
|
+
};
|
|
1187
|
+
const parameters4 = {
|
|
1188
|
+
parameterPath: "parameters",
|
|
1189
|
+
mapper: RegenerateKeyParameters
|
|
1190
|
+
};
|
|
1191
|
+
const parameters5 = {
|
|
1192
|
+
parameterPath: "parameters",
|
|
1193
|
+
mapper: ImportClusterParameters
|
|
1194
|
+
};
|
|
1195
|
+
const parameters6 = {
|
|
1196
|
+
parameterPath: "parameters",
|
|
1197
|
+
mapper: ExportClusterParameters
|
|
1198
|
+
};
|
|
1199
|
+
const privateEndpointConnectionName = {
|
|
1200
|
+
parameterPath: "privateEndpointConnectionName",
|
|
1201
|
+
mapper: {
|
|
1202
|
+
serializedName: "privateEndpointConnectionName",
|
|
1203
|
+
required: true,
|
|
1204
|
+
type: {
|
|
1205
|
+
name: "String"
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
const properties = {
|
|
1210
|
+
parameterPath: "properties",
|
|
1211
|
+
mapper: PrivateEndpointConnection
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
/*
|
|
1215
|
+
* Copyright (c) Microsoft Corporation.
|
|
1216
|
+
* Licensed under the MIT License.
|
|
1217
|
+
*
|
|
1218
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1219
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1220
|
+
*/
|
|
1221
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1222
|
+
/** Class containing Operations operations. */
|
|
1223
|
+
class OperationsImpl {
|
|
1224
|
+
/**
|
|
1225
|
+
* Initialize a new instance of the class Operations class.
|
|
1226
|
+
* @param client Reference to the service client
|
|
1227
|
+
*/
|
|
1228
|
+
constructor(client) {
|
|
1229
|
+
this.client = client;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Lists all of the available REST API operations of the Microsoft.Cache provider.
|
|
1233
|
+
* @param options The options parameters.
|
|
1234
|
+
*/
|
|
1235
|
+
list(options) {
|
|
1236
|
+
const iter = this.listPagingAll(options);
|
|
1237
|
+
return {
|
|
1238
|
+
next() {
|
|
1239
|
+
return iter.next();
|
|
1240
|
+
},
|
|
1241
|
+
[Symbol.asyncIterator]() {
|
|
1242
|
+
return this;
|
|
1243
|
+
},
|
|
1244
|
+
byPage: () => {
|
|
1245
|
+
return this.listPagingPage(options);
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
listPagingPage(options) {
|
|
1250
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1251
|
+
let result = yield tslib.__await(this._list(options));
|
|
1252
|
+
yield yield tslib.__await(result.value || []);
|
|
1253
|
+
let continuationToken = result.nextLink;
|
|
1254
|
+
while (continuationToken) {
|
|
1255
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1256
|
+
continuationToken = result.nextLink;
|
|
1257
|
+
yield yield tslib.__await(result.value || []);
|
|
1258
|
+
}
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
listPagingAll(options) {
|
|
1262
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1263
|
+
var e_1, _a;
|
|
1264
|
+
try {
|
|
1265
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1266
|
+
const page = _c.value;
|
|
1267
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1271
|
+
finally {
|
|
1272
|
+
try {
|
|
1273
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1274
|
+
}
|
|
1275
|
+
finally { if (e_1) throw e_1.error; }
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Lists all of the available REST API operations of the Microsoft.Cache provider.
|
|
1281
|
+
* @param options The options parameters.
|
|
1282
|
+
*/
|
|
1283
|
+
_list(options) {
|
|
1284
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* ListNext
|
|
1288
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1289
|
+
* @param options The options parameters.
|
|
1290
|
+
*/
|
|
1291
|
+
_listNext(nextLink, options) {
|
|
1292
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
// Operation Specifications
|
|
1296
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1297
|
+
const listOperationSpec = {
|
|
1298
|
+
path: "/providers/Microsoft.Cache/operations",
|
|
1299
|
+
httpMethod: "GET",
|
|
1300
|
+
responses: {
|
|
1301
|
+
200: {
|
|
1302
|
+
bodyMapper: OperationListResult
|
|
1303
|
+
},
|
|
1304
|
+
default: {
|
|
1305
|
+
bodyMapper: ErrorResponse
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
queryParameters: [apiVersion],
|
|
1309
|
+
urlParameters: [$host],
|
|
1310
|
+
headerParameters: [accept],
|
|
1311
|
+
serializer
|
|
1312
|
+
};
|
|
1313
|
+
const listNextOperationSpec = {
|
|
1314
|
+
path: "{nextLink}",
|
|
1315
|
+
httpMethod: "GET",
|
|
1316
|
+
responses: {
|
|
1317
|
+
200: {
|
|
1318
|
+
bodyMapper: OperationListResult
|
|
1319
|
+
},
|
|
1320
|
+
default: {
|
|
1321
|
+
bodyMapper: ErrorResponse
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
queryParameters: [apiVersion],
|
|
1325
|
+
urlParameters: [$host, nextLink],
|
|
1326
|
+
headerParameters: [accept],
|
|
1327
|
+
serializer
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
/*
|
|
1331
|
+
* Copyright (c) Microsoft Corporation.
|
|
1332
|
+
* Licensed under the MIT License.
|
|
1333
|
+
*
|
|
1334
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1335
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1336
|
+
*/
|
|
1337
|
+
/** Class containing OperationsStatus operations. */
|
|
1338
|
+
class OperationsStatusImpl {
|
|
1339
|
+
/**
|
|
1340
|
+
* Initialize a new instance of the class OperationsStatus class.
|
|
1341
|
+
* @param client Reference to the service client
|
|
1342
|
+
*/
|
|
1343
|
+
constructor(client) {
|
|
1344
|
+
this.client = client;
|
|
1345
|
+
}
|
|
1346
|
+
/**
|
|
1347
|
+
* Gets the status of operation.
|
|
1348
|
+
* @param location The region the operation is in.
|
|
1349
|
+
* @param operationId The operation's unique identifier.
|
|
1350
|
+
* @param options The options parameters.
|
|
1351
|
+
*/
|
|
1352
|
+
get(location, operationId, options) {
|
|
1353
|
+
return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
// Operation Specifications
|
|
1357
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1358
|
+
const getOperationSpec = {
|
|
1359
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}",
|
|
1360
|
+
httpMethod: "GET",
|
|
1361
|
+
responses: {
|
|
1362
|
+
200: {
|
|
1363
|
+
bodyMapper: OperationStatus
|
|
1364
|
+
},
|
|
1365
|
+
default: {
|
|
1366
|
+
bodyMapper: ErrorResponse
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
queryParameters: [apiVersion],
|
|
1370
|
+
urlParameters: [
|
|
1371
|
+
$host,
|
|
1372
|
+
location,
|
|
1373
|
+
operationId,
|
|
1374
|
+
subscriptionId
|
|
1375
|
+
],
|
|
1376
|
+
headerParameters: [accept],
|
|
1377
|
+
serializer: serializer$1
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
/*
|
|
1381
|
+
* Copyright (c) Microsoft Corporation.
|
|
1382
|
+
* Licensed under the MIT License.
|
|
1383
|
+
*
|
|
1384
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1385
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1386
|
+
*/
|
|
1387
|
+
class LroImpl {
|
|
1388
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1389
|
+
this.sendOperationFn = sendOperationFn;
|
|
1390
|
+
this.args = args;
|
|
1391
|
+
this.spec = spec;
|
|
1392
|
+
this.requestPath = requestPath;
|
|
1393
|
+
this.requestMethod = requestMethod;
|
|
1394
|
+
}
|
|
1395
|
+
sendInitialRequest() {
|
|
1396
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1397
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
sendPollRequest(path) {
|
|
1401
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1402
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1403
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/*
|
|
1409
|
+
* Copyright (c) Microsoft Corporation.
|
|
1410
|
+
* Licensed under the MIT License.
|
|
1411
|
+
*
|
|
1412
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1413
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1414
|
+
*/
|
|
1415
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1416
|
+
/** Class containing RedisEnterprise operations. */
|
|
1417
|
+
class RedisEnterpriseImpl {
|
|
1418
|
+
/**
|
|
1419
|
+
* Initialize a new instance of the class RedisEnterprise class.
|
|
1420
|
+
* @param client Reference to the service client
|
|
1421
|
+
*/
|
|
1422
|
+
constructor(client) {
|
|
1423
|
+
this.client = client;
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* Lists all RedisEnterprise clusters in a resource group.
|
|
1427
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1428
|
+
* @param options The options parameters.
|
|
1429
|
+
*/
|
|
1430
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1431
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1432
|
+
return {
|
|
1433
|
+
next() {
|
|
1434
|
+
return iter.next();
|
|
1435
|
+
},
|
|
1436
|
+
[Symbol.asyncIterator]() {
|
|
1437
|
+
return this;
|
|
1438
|
+
},
|
|
1439
|
+
byPage: () => {
|
|
1440
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1445
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1446
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1447
|
+
yield yield tslib.__await(result.value || []);
|
|
1448
|
+
let continuationToken = result.nextLink;
|
|
1449
|
+
while (continuationToken) {
|
|
1450
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1451
|
+
continuationToken = result.nextLink;
|
|
1452
|
+
yield yield tslib.__await(result.value || []);
|
|
1453
|
+
}
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1457
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1458
|
+
var e_1, _a;
|
|
1459
|
+
try {
|
|
1460
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1461
|
+
const page = _c.value;
|
|
1462
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1466
|
+
finally {
|
|
1467
|
+
try {
|
|
1468
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1469
|
+
}
|
|
1470
|
+
finally { if (e_1) throw e_1.error; }
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Gets all RedisEnterprise clusters in the specified subscription.
|
|
1476
|
+
* @param options The options parameters.
|
|
1477
|
+
*/
|
|
1478
|
+
list(options) {
|
|
1479
|
+
const iter = this.listPagingAll(options);
|
|
1480
|
+
return {
|
|
1481
|
+
next() {
|
|
1482
|
+
return iter.next();
|
|
1483
|
+
},
|
|
1484
|
+
[Symbol.asyncIterator]() {
|
|
1485
|
+
return this;
|
|
1486
|
+
},
|
|
1487
|
+
byPage: () => {
|
|
1488
|
+
return this.listPagingPage(options);
|
|
1489
|
+
}
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
listPagingPage(options) {
|
|
1493
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1494
|
+
let result = yield tslib.__await(this._list(options));
|
|
1495
|
+
yield yield tslib.__await(result.value || []);
|
|
1496
|
+
let continuationToken = result.nextLink;
|
|
1497
|
+
while (continuationToken) {
|
|
1498
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1499
|
+
continuationToken = result.nextLink;
|
|
1500
|
+
yield yield tslib.__await(result.value || []);
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
}
|
|
1504
|
+
listPagingAll(options) {
|
|
1505
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1506
|
+
var e_2, _a;
|
|
1507
|
+
try {
|
|
1508
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1509
|
+
const page = _c.value;
|
|
1510
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1514
|
+
finally {
|
|
1515
|
+
try {
|
|
1516
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1517
|
+
}
|
|
1518
|
+
finally { if (e_2) throw e_2.error; }
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
|
|
1524
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1525
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1526
|
+
* @param parameters Parameters supplied to the Create RedisEnterprise operation.
|
|
1527
|
+
* @param options The options parameters.
|
|
1528
|
+
*/
|
|
1529
|
+
beginCreate(resourceGroupName, clusterName, parameters, options) {
|
|
1530
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1531
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1532
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1533
|
+
});
|
|
1534
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1535
|
+
var _a;
|
|
1536
|
+
let currentRawResponse = undefined;
|
|
1537
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1538
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1539
|
+
currentRawResponse = rawResponse;
|
|
1540
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1541
|
+
};
|
|
1542
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1543
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1544
|
+
return {
|
|
1545
|
+
flatResponse,
|
|
1546
|
+
rawResponse: {
|
|
1547
|
+
statusCode: currentRawResponse.status,
|
|
1548
|
+
body: currentRawResponse.parsedBody,
|
|
1549
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
});
|
|
1553
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOperationSpec);
|
|
1554
|
+
return new coreLro.LroEngine(lro, {
|
|
1555
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1556
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1557
|
+
lroResourceLocationConfig: "original-uri"
|
|
1558
|
+
});
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster
|
|
1563
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1564
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1565
|
+
* @param parameters Parameters supplied to the Create RedisEnterprise operation.
|
|
1566
|
+
* @param options The options parameters.
|
|
1567
|
+
*/
|
|
1568
|
+
beginCreateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
1569
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1570
|
+
const poller = yield this.beginCreate(resourceGroupName, clusterName, parameters, options);
|
|
1571
|
+
return poller.pollUntilDone();
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* Updates an existing RedisEnterprise cluster
|
|
1576
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1577
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1578
|
+
* @param parameters Parameters supplied to the Update RedisEnterprise operation.
|
|
1579
|
+
* @param options The options parameters.
|
|
1580
|
+
*/
|
|
1581
|
+
beginUpdate(resourceGroupName, clusterName, parameters, options) {
|
|
1582
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1583
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1584
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1585
|
+
});
|
|
1586
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1587
|
+
var _a;
|
|
1588
|
+
let currentRawResponse = undefined;
|
|
1589
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1590
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1591
|
+
currentRawResponse = rawResponse;
|
|
1592
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1593
|
+
};
|
|
1594
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1595
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1596
|
+
return {
|
|
1597
|
+
flatResponse,
|
|
1598
|
+
rawResponse: {
|
|
1599
|
+
statusCode: currentRawResponse.status,
|
|
1600
|
+
body: currentRawResponse.parsedBody,
|
|
1601
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
});
|
|
1605
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateOperationSpec);
|
|
1606
|
+
return new coreLro.LroEngine(lro, {
|
|
1607
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1608
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1609
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
1610
|
+
});
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Updates an existing RedisEnterprise cluster
|
|
1615
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1616
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1617
|
+
* @param parameters Parameters supplied to the Update RedisEnterprise operation.
|
|
1618
|
+
* @param options The options parameters.
|
|
1619
|
+
*/
|
|
1620
|
+
beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
1621
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1622
|
+
const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
|
|
1623
|
+
return poller.pollUntilDone();
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Deletes a RedisEnterprise cache cluster.
|
|
1628
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1629
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1630
|
+
* @param options The options parameters.
|
|
1631
|
+
*/
|
|
1632
|
+
beginDelete(resourceGroupName, clusterName, options) {
|
|
1633
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1634
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1635
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1636
|
+
});
|
|
1637
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1638
|
+
var _a;
|
|
1639
|
+
let currentRawResponse = undefined;
|
|
1640
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1641
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1642
|
+
currentRawResponse = rawResponse;
|
|
1643
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1644
|
+
};
|
|
1645
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1646
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1647
|
+
return {
|
|
1648
|
+
flatResponse,
|
|
1649
|
+
rawResponse: {
|
|
1650
|
+
statusCode: currentRawResponse.status,
|
|
1651
|
+
body: currentRawResponse.parsedBody,
|
|
1652
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
});
|
|
1656
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec);
|
|
1657
|
+
return new coreLro.LroEngine(lro, {
|
|
1658
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1659
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1660
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
1661
|
+
});
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
* Deletes a RedisEnterprise cache cluster.
|
|
1666
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1667
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1668
|
+
* @param options The options parameters.
|
|
1669
|
+
*/
|
|
1670
|
+
beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
1671
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1672
|
+
const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
|
|
1673
|
+
return poller.pollUntilDone();
|
|
1674
|
+
});
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Gets information about a RedisEnterprise cluster
|
|
1678
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1679
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1680
|
+
* @param options The options parameters.
|
|
1681
|
+
*/
|
|
1682
|
+
get(resourceGroupName, clusterName, options) {
|
|
1683
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec$1);
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Lists all RedisEnterprise clusters in a resource group.
|
|
1687
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1688
|
+
* @param options The options parameters.
|
|
1689
|
+
*/
|
|
1690
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1691
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* Gets all RedisEnterprise clusters in the specified subscription.
|
|
1695
|
+
* @param options The options parameters.
|
|
1696
|
+
*/
|
|
1697
|
+
_list(options) {
|
|
1698
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* ListByResourceGroupNext
|
|
1702
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1703
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1704
|
+
* @param options The options parameters.
|
|
1705
|
+
*/
|
|
1706
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1707
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1708
|
+
}
|
|
1709
|
+
/**
|
|
1710
|
+
* ListNext
|
|
1711
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1712
|
+
* @param options The options parameters.
|
|
1713
|
+
*/
|
|
1714
|
+
_listNext(nextLink, options) {
|
|
1715
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
// Operation Specifications
|
|
1719
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1720
|
+
const createOperationSpec = {
|
|
1721
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
1722
|
+
httpMethod: "PUT",
|
|
1723
|
+
responses: {
|
|
1724
|
+
200: {
|
|
1725
|
+
bodyMapper: Cluster
|
|
1726
|
+
},
|
|
1727
|
+
201: {
|
|
1728
|
+
bodyMapper: Cluster
|
|
1729
|
+
},
|
|
1730
|
+
202: {
|
|
1731
|
+
bodyMapper: Cluster
|
|
1732
|
+
},
|
|
1733
|
+
204: {
|
|
1734
|
+
bodyMapper: Cluster
|
|
1735
|
+
},
|
|
1736
|
+
default: {
|
|
1737
|
+
bodyMapper: ErrorResponse
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
requestBody: parameters,
|
|
1741
|
+
queryParameters: [apiVersion],
|
|
1742
|
+
urlParameters: [
|
|
1743
|
+
$host,
|
|
1744
|
+
subscriptionId,
|
|
1745
|
+
resourceGroupName,
|
|
1746
|
+
clusterName
|
|
1747
|
+
],
|
|
1748
|
+
headerParameters: [accept, contentType],
|
|
1749
|
+
mediaType: "json",
|
|
1750
|
+
serializer: serializer$2
|
|
1751
|
+
};
|
|
1752
|
+
const updateOperationSpec = {
|
|
1753
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
1754
|
+
httpMethod: "PATCH",
|
|
1755
|
+
responses: {
|
|
1756
|
+
200: {
|
|
1757
|
+
bodyMapper: Cluster
|
|
1758
|
+
},
|
|
1759
|
+
201: {
|
|
1760
|
+
bodyMapper: Cluster
|
|
1761
|
+
},
|
|
1762
|
+
202: {
|
|
1763
|
+
bodyMapper: Cluster
|
|
1764
|
+
},
|
|
1765
|
+
204: {
|
|
1766
|
+
bodyMapper: Cluster
|
|
1767
|
+
},
|
|
1768
|
+
default: {
|
|
1769
|
+
bodyMapper: ErrorResponse
|
|
1770
|
+
}
|
|
1771
|
+
},
|
|
1772
|
+
requestBody: parameters1,
|
|
1773
|
+
queryParameters: [apiVersion],
|
|
1774
|
+
urlParameters: [
|
|
1775
|
+
$host,
|
|
1776
|
+
subscriptionId,
|
|
1777
|
+
resourceGroupName,
|
|
1778
|
+
clusterName
|
|
1779
|
+
],
|
|
1780
|
+
headerParameters: [accept, contentType],
|
|
1781
|
+
mediaType: "json",
|
|
1782
|
+
serializer: serializer$2
|
|
1783
|
+
};
|
|
1784
|
+
const deleteOperationSpec = {
|
|
1785
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
1786
|
+
httpMethod: "DELETE",
|
|
1787
|
+
responses: {
|
|
1788
|
+
200: {},
|
|
1789
|
+
201: {},
|
|
1790
|
+
202: {},
|
|
1791
|
+
204: {},
|
|
1792
|
+
default: {
|
|
1793
|
+
bodyMapper: ErrorResponse
|
|
1794
|
+
}
|
|
1795
|
+
},
|
|
1796
|
+
queryParameters: [apiVersion],
|
|
1797
|
+
urlParameters: [
|
|
1798
|
+
$host,
|
|
1799
|
+
subscriptionId,
|
|
1800
|
+
resourceGroupName,
|
|
1801
|
+
clusterName
|
|
1802
|
+
],
|
|
1803
|
+
headerParameters: [accept],
|
|
1804
|
+
serializer: serializer$2
|
|
1805
|
+
};
|
|
1806
|
+
const getOperationSpec$1 = {
|
|
1807
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}",
|
|
1808
|
+
httpMethod: "GET",
|
|
1809
|
+
responses: {
|
|
1810
|
+
200: {
|
|
1811
|
+
bodyMapper: Cluster
|
|
1812
|
+
},
|
|
1813
|
+
default: {
|
|
1814
|
+
bodyMapper: ErrorResponse
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1817
|
+
queryParameters: [apiVersion],
|
|
1818
|
+
urlParameters: [
|
|
1819
|
+
$host,
|
|
1820
|
+
subscriptionId,
|
|
1821
|
+
resourceGroupName,
|
|
1822
|
+
clusterName
|
|
1823
|
+
],
|
|
1824
|
+
headerParameters: [accept],
|
|
1825
|
+
serializer: serializer$2
|
|
1826
|
+
};
|
|
1827
|
+
const listByResourceGroupOperationSpec = {
|
|
1828
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise",
|
|
1829
|
+
httpMethod: "GET",
|
|
1830
|
+
responses: {
|
|
1831
|
+
200: {
|
|
1832
|
+
bodyMapper: ClusterList
|
|
1833
|
+
},
|
|
1834
|
+
default: {
|
|
1835
|
+
bodyMapper: ErrorResponse
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
queryParameters: [apiVersion],
|
|
1839
|
+
urlParameters: [
|
|
1840
|
+
$host,
|
|
1841
|
+
subscriptionId,
|
|
1842
|
+
resourceGroupName
|
|
1843
|
+
],
|
|
1844
|
+
headerParameters: [accept],
|
|
1845
|
+
serializer: serializer$2
|
|
1846
|
+
};
|
|
1847
|
+
const listOperationSpec$1 = {
|
|
1848
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redisEnterprise",
|
|
1849
|
+
httpMethod: "GET",
|
|
1850
|
+
responses: {
|
|
1851
|
+
200: {
|
|
1852
|
+
bodyMapper: ClusterList
|
|
1853
|
+
},
|
|
1854
|
+
default: {
|
|
1855
|
+
bodyMapper: ErrorResponse
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1858
|
+
queryParameters: [apiVersion],
|
|
1859
|
+
urlParameters: [$host, subscriptionId],
|
|
1860
|
+
headerParameters: [accept],
|
|
1861
|
+
serializer: serializer$2
|
|
1862
|
+
};
|
|
1863
|
+
const listByResourceGroupNextOperationSpec = {
|
|
1864
|
+
path: "{nextLink}",
|
|
1865
|
+
httpMethod: "GET",
|
|
1866
|
+
responses: {
|
|
1867
|
+
200: {
|
|
1868
|
+
bodyMapper: ClusterList
|
|
1869
|
+
},
|
|
1870
|
+
default: {
|
|
1871
|
+
bodyMapper: ErrorResponse
|
|
1872
|
+
}
|
|
1873
|
+
},
|
|
1874
|
+
queryParameters: [apiVersion],
|
|
1875
|
+
urlParameters: [
|
|
1876
|
+
$host,
|
|
1877
|
+
nextLink,
|
|
1878
|
+
subscriptionId,
|
|
1879
|
+
resourceGroupName
|
|
1880
|
+
],
|
|
1881
|
+
headerParameters: [accept],
|
|
1882
|
+
serializer: serializer$2
|
|
1883
|
+
};
|
|
1884
|
+
const listNextOperationSpec$1 = {
|
|
1885
|
+
path: "{nextLink}",
|
|
1886
|
+
httpMethod: "GET",
|
|
1887
|
+
responses: {
|
|
1888
|
+
200: {
|
|
1889
|
+
bodyMapper: ClusterList
|
|
1890
|
+
},
|
|
1891
|
+
default: {
|
|
1892
|
+
bodyMapper: ErrorResponse
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
queryParameters: [apiVersion],
|
|
1896
|
+
urlParameters: [
|
|
1897
|
+
$host,
|
|
1898
|
+
nextLink,
|
|
1899
|
+
subscriptionId
|
|
1900
|
+
],
|
|
1901
|
+
headerParameters: [accept],
|
|
1902
|
+
serializer: serializer$2
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
/*
|
|
1906
|
+
* Copyright (c) Microsoft Corporation.
|
|
1907
|
+
* Licensed under the MIT License.
|
|
1908
|
+
*
|
|
1909
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1910
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1911
|
+
*/
|
|
1912
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1913
|
+
/** Class containing Databases operations. */
|
|
1914
|
+
class DatabasesImpl {
|
|
1915
|
+
/**
|
|
1916
|
+
* Initialize a new instance of the class Databases class.
|
|
1917
|
+
* @param client Reference to the service client
|
|
1918
|
+
*/
|
|
1919
|
+
constructor(client) {
|
|
1920
|
+
this.client = client;
|
|
1921
|
+
}
|
|
1922
|
+
/**
|
|
1923
|
+
* Gets all databases in the specified RedisEnterprise cluster.
|
|
1924
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1925
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1926
|
+
* @param options The options parameters.
|
|
1927
|
+
*/
|
|
1928
|
+
listByCluster(resourceGroupName, clusterName, options) {
|
|
1929
|
+
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
1930
|
+
return {
|
|
1931
|
+
next() {
|
|
1932
|
+
return iter.next();
|
|
1933
|
+
},
|
|
1934
|
+
[Symbol.asyncIterator]() {
|
|
1935
|
+
return this;
|
|
1936
|
+
},
|
|
1937
|
+
byPage: () => {
|
|
1938
|
+
return this.listByClusterPagingPage(resourceGroupName, clusterName, options);
|
|
1939
|
+
}
|
|
1940
|
+
};
|
|
1941
|
+
}
|
|
1942
|
+
listByClusterPagingPage(resourceGroupName, clusterName, options) {
|
|
1943
|
+
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
1944
|
+
let result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
1945
|
+
yield yield tslib.__await(result.value || []);
|
|
1946
|
+
let continuationToken = result.nextLink;
|
|
1947
|
+
while (continuationToken) {
|
|
1948
|
+
result = yield tslib.__await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
|
|
1949
|
+
continuationToken = result.nextLink;
|
|
1950
|
+
yield yield tslib.__await(result.value || []);
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
1955
|
+
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
|
|
1956
|
+
var e_1, _a;
|
|
1957
|
+
try {
|
|
1958
|
+
for (var _b = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1959
|
+
const page = _c.value;
|
|
1960
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1964
|
+
finally {
|
|
1965
|
+
try {
|
|
1966
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1967
|
+
}
|
|
1968
|
+
finally { if (e_1) throw e_1.error; }
|
|
1969
|
+
}
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* Gets all databases in the specified RedisEnterprise cluster.
|
|
1974
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1975
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1976
|
+
* @param options The options parameters.
|
|
1977
|
+
*/
|
|
1978
|
+
_listByCluster(resourceGroupName, clusterName, options) {
|
|
1979
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* Creates a database
|
|
1983
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1984
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
1985
|
+
* @param databaseName The name of the database.
|
|
1986
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
1987
|
+
* @param options The options parameters.
|
|
1988
|
+
*/
|
|
1989
|
+
beginCreate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
1990
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1991
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1992
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1993
|
+
});
|
|
1994
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1995
|
+
var _a;
|
|
1996
|
+
let currentRawResponse = undefined;
|
|
1997
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1998
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1999
|
+
currentRawResponse = rawResponse;
|
|
2000
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2001
|
+
};
|
|
2002
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2003
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2004
|
+
return {
|
|
2005
|
+
flatResponse,
|
|
2006
|
+
rawResponse: {
|
|
2007
|
+
statusCode: currentRawResponse.status,
|
|
2008
|
+
body: currentRawResponse.parsedBody,
|
|
2009
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2010
|
+
}
|
|
2011
|
+
};
|
|
2012
|
+
});
|
|
2013
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, createOperationSpec$1);
|
|
2014
|
+
return new coreLro.LroEngine(lro, {
|
|
2015
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2016
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2017
|
+
lroResourceLocationConfig: "original-uri"
|
|
2018
|
+
});
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
/**
|
|
2022
|
+
* Creates a database
|
|
2023
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2024
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2025
|
+
* @param databaseName The name of the database.
|
|
2026
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
2027
|
+
* @param options The options parameters.
|
|
2028
|
+
*/
|
|
2029
|
+
beginCreateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2030
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2031
|
+
const poller = yield this.beginCreate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2032
|
+
return poller.pollUntilDone();
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
/**
|
|
2036
|
+
* Updates a database
|
|
2037
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2038
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2039
|
+
* @param databaseName The name of the database.
|
|
2040
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
2041
|
+
* @param options The options parameters.
|
|
2042
|
+
*/
|
|
2043
|
+
beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2044
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2045
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2046
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2047
|
+
});
|
|
2048
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2049
|
+
var _a;
|
|
2050
|
+
let currentRawResponse = undefined;
|
|
2051
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2052
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2053
|
+
currentRawResponse = rawResponse;
|
|
2054
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2055
|
+
};
|
|
2056
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2057
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2058
|
+
return {
|
|
2059
|
+
flatResponse,
|
|
2060
|
+
rawResponse: {
|
|
2061
|
+
statusCode: currentRawResponse.status,
|
|
2062
|
+
body: currentRawResponse.parsedBody,
|
|
2063
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
});
|
|
2067
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, updateOperationSpec$1);
|
|
2068
|
+
return new coreLro.LroEngine(lro, {
|
|
2069
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2070
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2071
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2072
|
+
});
|
|
2073
|
+
});
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Updates a database
|
|
2077
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2078
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2079
|
+
* @param databaseName The name of the database.
|
|
2080
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
2081
|
+
* @param options The options parameters.
|
|
2082
|
+
*/
|
|
2083
|
+
beginUpdateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2084
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2085
|
+
const poller = yield this.beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2086
|
+
return poller.pollUntilDone();
|
|
2087
|
+
});
|
|
2088
|
+
}
|
|
2089
|
+
/**
|
|
2090
|
+
* Gets information about a database in a RedisEnterprise cluster.
|
|
2091
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2092
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2093
|
+
* @param databaseName The name of the database.
|
|
2094
|
+
* @param options The options parameters.
|
|
2095
|
+
*/
|
|
2096
|
+
get(resourceGroupName, clusterName, databaseName, options) {
|
|
2097
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, getOperationSpec$2);
|
|
2098
|
+
}
|
|
2099
|
+
/**
|
|
2100
|
+
* Deletes a single database
|
|
2101
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2102
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2103
|
+
* @param databaseName The name of the database.
|
|
2104
|
+
* @param options The options parameters.
|
|
2105
|
+
*/
|
|
2106
|
+
beginDelete(resourceGroupName, clusterName, databaseName, options) {
|
|
2107
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2108
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2109
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2110
|
+
});
|
|
2111
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2112
|
+
var _a;
|
|
2113
|
+
let currentRawResponse = undefined;
|
|
2114
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2115
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2116
|
+
currentRawResponse = rawResponse;
|
|
2117
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2118
|
+
};
|
|
2119
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2120
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2121
|
+
return {
|
|
2122
|
+
flatResponse,
|
|
2123
|
+
rawResponse: {
|
|
2124
|
+
statusCode: currentRawResponse.status,
|
|
2125
|
+
body: currentRawResponse.parsedBody,
|
|
2126
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2127
|
+
}
|
|
2128
|
+
};
|
|
2129
|
+
});
|
|
2130
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, options }, deleteOperationSpec$1);
|
|
2131
|
+
return new coreLro.LroEngine(lro, {
|
|
2132
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2133
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2134
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2135
|
+
});
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Deletes a single database
|
|
2140
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2141
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2142
|
+
* @param databaseName The name of the database.
|
|
2143
|
+
* @param options The options parameters.
|
|
2144
|
+
*/
|
|
2145
|
+
beginDeleteAndWait(resourceGroupName, clusterName, databaseName, options) {
|
|
2146
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2147
|
+
const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, options);
|
|
2148
|
+
return poller.pollUntilDone();
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
/**
|
|
2152
|
+
* Retrieves the access keys for the RedisEnterprise database.
|
|
2153
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2154
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2155
|
+
* @param databaseName The name of the database.
|
|
2156
|
+
* @param options The options parameters.
|
|
2157
|
+
*/
|
|
2158
|
+
listKeys(resourceGroupName, clusterName, databaseName, options) {
|
|
2159
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, listKeysOperationSpec);
|
|
2160
|
+
}
|
|
2161
|
+
/**
|
|
2162
|
+
* Regenerates the RedisEnterprise database's access keys.
|
|
2163
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2164
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2165
|
+
* @param databaseName The name of the database.
|
|
2166
|
+
* @param parameters Specifies which key to regenerate.
|
|
2167
|
+
* @param options The options parameters.
|
|
2168
|
+
*/
|
|
2169
|
+
beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2170
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2171
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2172
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2173
|
+
});
|
|
2174
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2175
|
+
var _a;
|
|
2176
|
+
let currentRawResponse = undefined;
|
|
2177
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2178
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2179
|
+
currentRawResponse = rawResponse;
|
|
2180
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2181
|
+
};
|
|
2182
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2183
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2184
|
+
return {
|
|
2185
|
+
flatResponse,
|
|
2186
|
+
rawResponse: {
|
|
2187
|
+
statusCode: currentRawResponse.status,
|
|
2188
|
+
body: currentRawResponse.parsedBody,
|
|
2189
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2190
|
+
}
|
|
2191
|
+
};
|
|
2192
|
+
});
|
|
2193
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, regenerateKeyOperationSpec);
|
|
2194
|
+
return new coreLro.LroEngine(lro, {
|
|
2195
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2196
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2197
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2198
|
+
});
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
/**
|
|
2202
|
+
* Regenerates the RedisEnterprise database's access keys.
|
|
2203
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2204
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2205
|
+
* @param databaseName The name of the database.
|
|
2206
|
+
* @param parameters Specifies which key to regenerate.
|
|
2207
|
+
* @param options The options parameters.
|
|
2208
|
+
*/
|
|
2209
|
+
beginRegenerateKeyAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2210
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2211
|
+
const poller = yield this.beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2212
|
+
return poller.pollUntilDone();
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Imports database files to target database.
|
|
2217
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2218
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2219
|
+
* @param databaseName The name of the database.
|
|
2220
|
+
* @param parameters Storage information for importing into the cluster
|
|
2221
|
+
* @param options The options parameters.
|
|
2222
|
+
*/
|
|
2223
|
+
beginImport(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2224
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2225
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2226
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2227
|
+
});
|
|
2228
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2229
|
+
var _a;
|
|
2230
|
+
let currentRawResponse = undefined;
|
|
2231
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2232
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2233
|
+
currentRawResponse = rawResponse;
|
|
2234
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2235
|
+
};
|
|
2236
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2237
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2238
|
+
return {
|
|
2239
|
+
flatResponse,
|
|
2240
|
+
rawResponse: {
|
|
2241
|
+
statusCode: currentRawResponse.status,
|
|
2242
|
+
body: currentRawResponse.parsedBody,
|
|
2243
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2244
|
+
}
|
|
2245
|
+
};
|
|
2246
|
+
});
|
|
2247
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, importOperationSpec);
|
|
2248
|
+
return new coreLro.LroEngine(lro, {
|
|
2249
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2250
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2251
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2252
|
+
});
|
|
2253
|
+
});
|
|
2254
|
+
}
|
|
2255
|
+
/**
|
|
2256
|
+
* Imports database files to target database.
|
|
2257
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2258
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2259
|
+
* @param databaseName The name of the database.
|
|
2260
|
+
* @param parameters Storage information for importing into the cluster
|
|
2261
|
+
* @param options The options parameters.
|
|
2262
|
+
*/
|
|
2263
|
+
beginImportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2264
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2265
|
+
const poller = yield this.beginImport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2266
|
+
return poller.pollUntilDone();
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2269
|
+
/**
|
|
2270
|
+
* Exports a database file from target database.
|
|
2271
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2272
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2273
|
+
* @param databaseName The name of the database.
|
|
2274
|
+
* @param parameters Storage information for exporting into the cluster
|
|
2275
|
+
* @param options The options parameters.
|
|
2276
|
+
*/
|
|
2277
|
+
beginExport(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2278
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2279
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2280
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2281
|
+
});
|
|
2282
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2283
|
+
var _a;
|
|
2284
|
+
let currentRawResponse = undefined;
|
|
2285
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2286
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2287
|
+
currentRawResponse = rawResponse;
|
|
2288
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2289
|
+
};
|
|
2290
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2291
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2292
|
+
return {
|
|
2293
|
+
flatResponse,
|
|
2294
|
+
rawResponse: {
|
|
2295
|
+
statusCode: currentRawResponse.status,
|
|
2296
|
+
body: currentRawResponse.parsedBody,
|
|
2297
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2298
|
+
}
|
|
2299
|
+
};
|
|
2300
|
+
});
|
|
2301
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, exportOperationSpec);
|
|
2302
|
+
return new coreLro.LroEngine(lro, {
|
|
2303
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2304
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2305
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2306
|
+
});
|
|
2307
|
+
});
|
|
2308
|
+
}
|
|
2309
|
+
/**
|
|
2310
|
+
* Exports a database file from target database.
|
|
2311
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2312
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2313
|
+
* @param databaseName The name of the database.
|
|
2314
|
+
* @param parameters Storage information for exporting into the cluster
|
|
2315
|
+
* @param options The options parameters.
|
|
2316
|
+
*/
|
|
2317
|
+
beginExportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
2318
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2319
|
+
const poller = yield this.beginExport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
2320
|
+
return poller.pollUntilDone();
|
|
2321
|
+
});
|
|
2322
|
+
}
|
|
2323
|
+
/**
|
|
2324
|
+
* ListByClusterNext
|
|
2325
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2326
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2327
|
+
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
2328
|
+
* @param options The options parameters.
|
|
2329
|
+
*/
|
|
2330
|
+
_listByClusterNext(resourceGroupName, clusterName, nextLink, options) {
|
|
2331
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, nextLink, options }, listByClusterNextOperationSpec);
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
// Operation Specifications
|
|
2335
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2336
|
+
const listByClusterOperationSpec = {
|
|
2337
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
2338
|
+
httpMethod: "GET",
|
|
2339
|
+
responses: {
|
|
2340
|
+
200: {
|
|
2341
|
+
bodyMapper: DatabaseList
|
|
2342
|
+
},
|
|
2343
|
+
default: {
|
|
2344
|
+
bodyMapper: ErrorResponse
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
queryParameters: [apiVersion],
|
|
2348
|
+
urlParameters: [
|
|
2349
|
+
$host,
|
|
2350
|
+
subscriptionId,
|
|
2351
|
+
resourceGroupName,
|
|
2352
|
+
clusterName
|
|
2353
|
+
],
|
|
2354
|
+
headerParameters: [accept],
|
|
2355
|
+
serializer: serializer$3
|
|
2356
|
+
};
|
|
2357
|
+
const createOperationSpec$1 = {
|
|
2358
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
2359
|
+
httpMethod: "PUT",
|
|
2360
|
+
responses: {
|
|
2361
|
+
200: {
|
|
2362
|
+
bodyMapper: Database
|
|
2363
|
+
},
|
|
2364
|
+
201: {
|
|
2365
|
+
bodyMapper: Database
|
|
2366
|
+
},
|
|
2367
|
+
202: {
|
|
2368
|
+
bodyMapper: Database
|
|
2369
|
+
},
|
|
2370
|
+
204: {
|
|
2371
|
+
bodyMapper: Database
|
|
2372
|
+
},
|
|
2373
|
+
default: {
|
|
2374
|
+
bodyMapper: ErrorResponse
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
requestBody: parameters2,
|
|
2378
|
+
queryParameters: [apiVersion],
|
|
2379
|
+
urlParameters: [
|
|
2380
|
+
$host,
|
|
2381
|
+
subscriptionId,
|
|
2382
|
+
resourceGroupName,
|
|
2383
|
+
clusterName,
|
|
2384
|
+
databaseName
|
|
2385
|
+
],
|
|
2386
|
+
headerParameters: [accept, contentType],
|
|
2387
|
+
mediaType: "json",
|
|
2388
|
+
serializer: serializer$3
|
|
2389
|
+
};
|
|
2390
|
+
const updateOperationSpec$1 = {
|
|
2391
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
2392
|
+
httpMethod: "PATCH",
|
|
2393
|
+
responses: {
|
|
2394
|
+
200: {
|
|
2395
|
+
bodyMapper: Database
|
|
2396
|
+
},
|
|
2397
|
+
201: {
|
|
2398
|
+
bodyMapper: Database
|
|
2399
|
+
},
|
|
2400
|
+
202: {
|
|
2401
|
+
bodyMapper: Database
|
|
2402
|
+
},
|
|
2403
|
+
204: {
|
|
2404
|
+
bodyMapper: Database
|
|
2405
|
+
},
|
|
2406
|
+
default: {
|
|
2407
|
+
bodyMapper: ErrorResponse
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
requestBody: parameters3,
|
|
2411
|
+
queryParameters: [apiVersion],
|
|
2412
|
+
urlParameters: [
|
|
2413
|
+
$host,
|
|
2414
|
+
subscriptionId,
|
|
2415
|
+
resourceGroupName,
|
|
2416
|
+
clusterName,
|
|
2417
|
+
databaseName
|
|
2418
|
+
],
|
|
2419
|
+
headerParameters: [accept, contentType],
|
|
2420
|
+
mediaType: "json",
|
|
2421
|
+
serializer: serializer$3
|
|
2422
|
+
};
|
|
2423
|
+
const getOperationSpec$2 = {
|
|
2424
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
2425
|
+
httpMethod: "GET",
|
|
2426
|
+
responses: {
|
|
2427
|
+
200: {
|
|
2428
|
+
bodyMapper: Database
|
|
2429
|
+
},
|
|
2430
|
+
default: {
|
|
2431
|
+
bodyMapper: ErrorResponse
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
queryParameters: [apiVersion],
|
|
2435
|
+
urlParameters: [
|
|
2436
|
+
$host,
|
|
2437
|
+
subscriptionId,
|
|
2438
|
+
resourceGroupName,
|
|
2439
|
+
clusterName,
|
|
2440
|
+
databaseName
|
|
2441
|
+
],
|
|
2442
|
+
headerParameters: [accept],
|
|
2443
|
+
serializer: serializer$3
|
|
2444
|
+
};
|
|
2445
|
+
const deleteOperationSpec$1 = {
|
|
2446
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
2447
|
+
httpMethod: "DELETE",
|
|
2448
|
+
responses: {
|
|
2449
|
+
200: {},
|
|
2450
|
+
201: {},
|
|
2451
|
+
202: {},
|
|
2452
|
+
204: {},
|
|
2453
|
+
default: {
|
|
2454
|
+
bodyMapper: ErrorResponse
|
|
2455
|
+
}
|
|
2456
|
+
},
|
|
2457
|
+
queryParameters: [apiVersion],
|
|
2458
|
+
urlParameters: [
|
|
2459
|
+
$host,
|
|
2460
|
+
subscriptionId,
|
|
2461
|
+
resourceGroupName,
|
|
2462
|
+
clusterName,
|
|
2463
|
+
databaseName
|
|
2464
|
+
],
|
|
2465
|
+
headerParameters: [accept],
|
|
2466
|
+
serializer: serializer$3
|
|
2467
|
+
};
|
|
2468
|
+
const listKeysOperationSpec = {
|
|
2469
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
2470
|
+
httpMethod: "POST",
|
|
2471
|
+
responses: {
|
|
2472
|
+
200: {
|
|
2473
|
+
bodyMapper: AccessKeys
|
|
2474
|
+
},
|
|
2475
|
+
default: {
|
|
2476
|
+
bodyMapper: ErrorResponse
|
|
2477
|
+
}
|
|
2478
|
+
},
|
|
2479
|
+
queryParameters: [apiVersion],
|
|
2480
|
+
urlParameters: [
|
|
2481
|
+
$host,
|
|
2482
|
+
subscriptionId,
|
|
2483
|
+
resourceGroupName,
|
|
2484
|
+
clusterName,
|
|
2485
|
+
databaseName
|
|
2486
|
+
],
|
|
2487
|
+
headerParameters: [accept],
|
|
2488
|
+
serializer: serializer$3
|
|
2489
|
+
};
|
|
2490
|
+
const regenerateKeyOperationSpec = {
|
|
2491
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
2492
|
+
httpMethod: "POST",
|
|
2493
|
+
responses: {
|
|
2494
|
+
200: {
|
|
2495
|
+
bodyMapper: AccessKeys
|
|
2496
|
+
},
|
|
2497
|
+
201: {
|
|
2498
|
+
bodyMapper: AccessKeys
|
|
2499
|
+
},
|
|
2500
|
+
202: {
|
|
2501
|
+
bodyMapper: AccessKeys
|
|
2502
|
+
},
|
|
2503
|
+
204: {
|
|
2504
|
+
bodyMapper: AccessKeys
|
|
2505
|
+
},
|
|
2506
|
+
default: {
|
|
2507
|
+
bodyMapper: ErrorResponse
|
|
2508
|
+
}
|
|
2509
|
+
},
|
|
2510
|
+
requestBody: parameters4,
|
|
2511
|
+
queryParameters: [apiVersion],
|
|
2512
|
+
urlParameters: [
|
|
2513
|
+
$host,
|
|
2514
|
+
subscriptionId,
|
|
2515
|
+
resourceGroupName,
|
|
2516
|
+
clusterName,
|
|
2517
|
+
databaseName
|
|
2518
|
+
],
|
|
2519
|
+
headerParameters: [accept, contentType],
|
|
2520
|
+
mediaType: "json",
|
|
2521
|
+
serializer: serializer$3
|
|
2522
|
+
};
|
|
2523
|
+
const importOperationSpec = {
|
|
2524
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
2525
|
+
httpMethod: "POST",
|
|
2526
|
+
responses: {
|
|
2527
|
+
200: {},
|
|
2528
|
+
201: {},
|
|
2529
|
+
202: {},
|
|
2530
|
+
204: {},
|
|
2531
|
+
default: {
|
|
2532
|
+
bodyMapper: ErrorResponse
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2535
|
+
requestBody: parameters5,
|
|
2536
|
+
queryParameters: [apiVersion],
|
|
2537
|
+
urlParameters: [
|
|
2538
|
+
$host,
|
|
2539
|
+
subscriptionId,
|
|
2540
|
+
resourceGroupName,
|
|
2541
|
+
clusterName,
|
|
2542
|
+
databaseName
|
|
2543
|
+
],
|
|
2544
|
+
headerParameters: [accept, contentType],
|
|
2545
|
+
mediaType: "json",
|
|
2546
|
+
serializer: serializer$3
|
|
2547
|
+
};
|
|
2548
|
+
const exportOperationSpec = {
|
|
2549
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
2550
|
+
httpMethod: "POST",
|
|
2551
|
+
responses: {
|
|
2552
|
+
200: {},
|
|
2553
|
+
201: {},
|
|
2554
|
+
202: {},
|
|
2555
|
+
204: {},
|
|
2556
|
+
default: {
|
|
2557
|
+
bodyMapper: ErrorResponse
|
|
2558
|
+
}
|
|
2559
|
+
},
|
|
2560
|
+
requestBody: parameters6,
|
|
2561
|
+
queryParameters: [apiVersion],
|
|
2562
|
+
urlParameters: [
|
|
2563
|
+
$host,
|
|
2564
|
+
subscriptionId,
|
|
2565
|
+
resourceGroupName,
|
|
2566
|
+
clusterName,
|
|
2567
|
+
databaseName
|
|
2568
|
+
],
|
|
2569
|
+
headerParameters: [accept, contentType],
|
|
2570
|
+
mediaType: "json",
|
|
2571
|
+
serializer: serializer$3
|
|
2572
|
+
};
|
|
2573
|
+
const listByClusterNextOperationSpec = {
|
|
2574
|
+
path: "{nextLink}",
|
|
2575
|
+
httpMethod: "GET",
|
|
2576
|
+
responses: {
|
|
2577
|
+
200: {
|
|
2578
|
+
bodyMapper: DatabaseList
|
|
2579
|
+
},
|
|
2580
|
+
default: {
|
|
2581
|
+
bodyMapper: ErrorResponse
|
|
2582
|
+
}
|
|
2583
|
+
},
|
|
2584
|
+
queryParameters: [apiVersion],
|
|
2585
|
+
urlParameters: [
|
|
2586
|
+
$host,
|
|
2587
|
+
nextLink,
|
|
2588
|
+
subscriptionId,
|
|
2589
|
+
resourceGroupName,
|
|
2590
|
+
clusterName
|
|
2591
|
+
],
|
|
2592
|
+
headerParameters: [accept],
|
|
2593
|
+
serializer: serializer$3
|
|
2594
|
+
};
|
|
2595
|
+
|
|
2596
|
+
/*
|
|
2597
|
+
* Copyright (c) Microsoft Corporation.
|
|
2598
|
+
* Licensed under the MIT License.
|
|
2599
|
+
*
|
|
2600
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2601
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2602
|
+
*/
|
|
2603
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2604
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
2605
|
+
class PrivateEndpointConnectionsImpl {
|
|
2606
|
+
/**
|
|
2607
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
2608
|
+
* @param client Reference to the service client
|
|
2609
|
+
*/
|
|
2610
|
+
constructor(client) {
|
|
2611
|
+
this.client = client;
|
|
2612
|
+
}
|
|
2613
|
+
/**
|
|
2614
|
+
* Lists all the private endpoint connections associated with the RedisEnterprise cluster.
|
|
2615
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2616
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2617
|
+
* @param options The options parameters.
|
|
2618
|
+
*/
|
|
2619
|
+
list(resourceGroupName, clusterName, options) {
|
|
2620
|
+
const iter = this.listPagingAll(resourceGroupName, clusterName, options);
|
|
2621
|
+
return {
|
|
2622
|
+
next() {
|
|
2623
|
+
return iter.next();
|
|
2624
|
+
},
|
|
2625
|
+
[Symbol.asyncIterator]() {
|
|
2626
|
+
return this;
|
|
2627
|
+
},
|
|
2628
|
+
byPage: () => {
|
|
2629
|
+
return this.listPagingPage(resourceGroupName, clusterName, options);
|
|
2630
|
+
}
|
|
2631
|
+
};
|
|
2632
|
+
}
|
|
2633
|
+
listPagingPage(resourceGroupName, clusterName, options) {
|
|
2634
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2635
|
+
let result = yield tslib.__await(this._list(resourceGroupName, clusterName, options));
|
|
2636
|
+
yield yield tslib.__await(result.value || []);
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
listPagingAll(resourceGroupName, clusterName, options) {
|
|
2640
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2641
|
+
var e_1, _a;
|
|
2642
|
+
try {
|
|
2643
|
+
for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2644
|
+
const page = _c.value;
|
|
2645
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2649
|
+
finally {
|
|
2650
|
+
try {
|
|
2651
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2652
|
+
}
|
|
2653
|
+
finally { if (e_1) throw e_1.error; }
|
|
2654
|
+
}
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
/**
|
|
2658
|
+
* Lists all the private endpoint connections associated with the RedisEnterprise cluster.
|
|
2659
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2660
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2661
|
+
* @param options The options parameters.
|
|
2662
|
+
*/
|
|
2663
|
+
_list(resourceGroupName, clusterName, options) {
|
|
2664
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listOperationSpec$2);
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* Gets the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
2668
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2669
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2670
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
2671
|
+
* Azure resource
|
|
2672
|
+
* @param options The options parameters.
|
|
2673
|
+
*/
|
|
2674
|
+
get(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
2675
|
+
return this.client.sendOperationRequest({
|
|
2676
|
+
resourceGroupName,
|
|
2677
|
+
clusterName,
|
|
2678
|
+
privateEndpointConnectionName,
|
|
2679
|
+
options
|
|
2680
|
+
}, getOperationSpec$3);
|
|
2681
|
+
}
|
|
2682
|
+
/**
|
|
2683
|
+
* Updates the state of the specified private endpoint connection associated with the RedisEnterprise
|
|
2684
|
+
* cluster.
|
|
2685
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2686
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2687
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
2688
|
+
* Azure resource
|
|
2689
|
+
* @param properties The private endpoint connection properties.
|
|
2690
|
+
* @param options The options parameters.
|
|
2691
|
+
*/
|
|
2692
|
+
beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
2693
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2694
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2695
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2696
|
+
});
|
|
2697
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2698
|
+
var _a;
|
|
2699
|
+
let currentRawResponse = undefined;
|
|
2700
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2701
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2702
|
+
currentRawResponse = rawResponse;
|
|
2703
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2704
|
+
};
|
|
2705
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2706
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2707
|
+
return {
|
|
2708
|
+
flatResponse,
|
|
2709
|
+
rawResponse: {
|
|
2710
|
+
statusCode: currentRawResponse.status,
|
|
2711
|
+
body: currentRawResponse.parsedBody,
|
|
2712
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2713
|
+
}
|
|
2714
|
+
};
|
|
2715
|
+
});
|
|
2716
|
+
const lro = new LroImpl(sendOperation, {
|
|
2717
|
+
resourceGroupName,
|
|
2718
|
+
clusterName,
|
|
2719
|
+
privateEndpointConnectionName,
|
|
2720
|
+
properties,
|
|
2721
|
+
options
|
|
2722
|
+
}, putOperationSpec);
|
|
2723
|
+
return new coreLro.LroEngine(lro, {
|
|
2724
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2725
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2726
|
+
});
|
|
2727
|
+
});
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* Updates the state of the specified private endpoint connection associated with the RedisEnterprise
|
|
2731
|
+
* cluster.
|
|
2732
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2733
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2734
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
2735
|
+
* Azure resource
|
|
2736
|
+
* @param properties The private endpoint connection properties.
|
|
2737
|
+
* @param options The options parameters.
|
|
2738
|
+
*/
|
|
2739
|
+
beginPutAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
2740
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2741
|
+
const poller = yield this.beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options);
|
|
2742
|
+
return poller.pollUntilDone();
|
|
2743
|
+
});
|
|
2744
|
+
}
|
|
2745
|
+
/**
|
|
2746
|
+
* Deletes the specified private endpoint connection associated with the RedisEnterprise cluster.
|
|
2747
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2748
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2749
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
2750
|
+
* Azure resource
|
|
2751
|
+
* @param options The options parameters.
|
|
2752
|
+
*/
|
|
2753
|
+
delete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
2754
|
+
return this.client.sendOperationRequest({
|
|
2755
|
+
resourceGroupName,
|
|
2756
|
+
clusterName,
|
|
2757
|
+
privateEndpointConnectionName,
|
|
2758
|
+
options
|
|
2759
|
+
}, deleteOperationSpec$2);
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
// Operation Specifications
|
|
2763
|
+
const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2764
|
+
const listOperationSpec$2 = {
|
|
2765
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections",
|
|
2766
|
+
httpMethod: "GET",
|
|
2767
|
+
responses: {
|
|
2768
|
+
200: {
|
|
2769
|
+
bodyMapper: PrivateEndpointConnectionListResult
|
|
2770
|
+
},
|
|
2771
|
+
default: {
|
|
2772
|
+
bodyMapper: ErrorResponse
|
|
2773
|
+
}
|
|
2774
|
+
},
|
|
2775
|
+
queryParameters: [apiVersion],
|
|
2776
|
+
urlParameters: [
|
|
2777
|
+
$host,
|
|
2778
|
+
subscriptionId,
|
|
2779
|
+
resourceGroupName,
|
|
2780
|
+
clusterName
|
|
2781
|
+
],
|
|
2782
|
+
headerParameters: [accept],
|
|
2783
|
+
serializer: serializer$4
|
|
2784
|
+
};
|
|
2785
|
+
const getOperationSpec$3 = {
|
|
2786
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2787
|
+
httpMethod: "GET",
|
|
2788
|
+
responses: {
|
|
2789
|
+
200: {
|
|
2790
|
+
bodyMapper: PrivateEndpointConnection
|
|
2791
|
+
},
|
|
2792
|
+
default: {
|
|
2793
|
+
bodyMapper: ErrorResponse
|
|
2794
|
+
}
|
|
2795
|
+
},
|
|
2796
|
+
queryParameters: [apiVersion],
|
|
2797
|
+
urlParameters: [
|
|
2798
|
+
$host,
|
|
2799
|
+
subscriptionId,
|
|
2800
|
+
resourceGroupName,
|
|
2801
|
+
clusterName,
|
|
2802
|
+
privateEndpointConnectionName
|
|
2803
|
+
],
|
|
2804
|
+
headerParameters: [accept],
|
|
2805
|
+
serializer: serializer$4
|
|
2806
|
+
};
|
|
2807
|
+
const putOperationSpec = {
|
|
2808
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2809
|
+
httpMethod: "PUT",
|
|
2810
|
+
responses: {
|
|
2811
|
+
200: {
|
|
2812
|
+
bodyMapper: PrivateEndpointConnection
|
|
2813
|
+
},
|
|
2814
|
+
201: {
|
|
2815
|
+
bodyMapper: PrivateEndpointConnection
|
|
2816
|
+
},
|
|
2817
|
+
202: {
|
|
2818
|
+
bodyMapper: PrivateEndpointConnection
|
|
2819
|
+
},
|
|
2820
|
+
204: {
|
|
2821
|
+
bodyMapper: PrivateEndpointConnection
|
|
2822
|
+
},
|
|
2823
|
+
default: {
|
|
2824
|
+
bodyMapper: ErrorResponse
|
|
2825
|
+
}
|
|
2826
|
+
},
|
|
2827
|
+
requestBody: properties,
|
|
2828
|
+
queryParameters: [apiVersion],
|
|
2829
|
+
urlParameters: [
|
|
2830
|
+
$host,
|
|
2831
|
+
subscriptionId,
|
|
2832
|
+
resourceGroupName,
|
|
2833
|
+
clusterName,
|
|
2834
|
+
privateEndpointConnectionName
|
|
2835
|
+
],
|
|
2836
|
+
headerParameters: [accept, contentType],
|
|
2837
|
+
mediaType: "json",
|
|
2838
|
+
serializer: serializer$4
|
|
2839
|
+
};
|
|
2840
|
+
const deleteOperationSpec$2 = {
|
|
2841
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2842
|
+
httpMethod: "DELETE",
|
|
2843
|
+
responses: {
|
|
2844
|
+
200: {},
|
|
2845
|
+
204: {},
|
|
2846
|
+
default: {
|
|
2847
|
+
bodyMapper: ErrorResponse
|
|
2848
|
+
}
|
|
2849
|
+
},
|
|
2850
|
+
queryParameters: [apiVersion],
|
|
2851
|
+
urlParameters: [
|
|
2852
|
+
$host,
|
|
2853
|
+
subscriptionId,
|
|
2854
|
+
resourceGroupName,
|
|
2855
|
+
clusterName,
|
|
2856
|
+
privateEndpointConnectionName
|
|
2857
|
+
],
|
|
2858
|
+
headerParameters: [accept],
|
|
2859
|
+
serializer: serializer$4
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2862
|
+
/*
|
|
2863
|
+
* Copyright (c) Microsoft Corporation.
|
|
2864
|
+
* Licensed under the MIT License.
|
|
2865
|
+
*
|
|
2866
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2867
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2868
|
+
*/
|
|
2869
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2870
|
+
/** Class containing PrivateLinkResources operations. */
|
|
2871
|
+
class PrivateLinkResourcesImpl {
|
|
2872
|
+
/**
|
|
2873
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
2874
|
+
* @param client Reference to the service client
|
|
2875
|
+
*/
|
|
2876
|
+
constructor(client) {
|
|
2877
|
+
this.client = client;
|
|
2878
|
+
}
|
|
2879
|
+
/**
|
|
2880
|
+
* Gets the private link resources that need to be created for a RedisEnterprise cluster.
|
|
2881
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2882
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2883
|
+
* @param options The options parameters.
|
|
2884
|
+
*/
|
|
2885
|
+
listByCluster(resourceGroupName, clusterName, options) {
|
|
2886
|
+
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
2887
|
+
return {
|
|
2888
|
+
next() {
|
|
2889
|
+
return iter.next();
|
|
2890
|
+
},
|
|
2891
|
+
[Symbol.asyncIterator]() {
|
|
2892
|
+
return this;
|
|
2893
|
+
},
|
|
2894
|
+
byPage: () => {
|
|
2895
|
+
return this.listByClusterPagingPage(resourceGroupName, clusterName, options);
|
|
2896
|
+
}
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
listByClusterPagingPage(resourceGroupName, clusterName, options) {
|
|
2900
|
+
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
2901
|
+
let result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
2902
|
+
yield yield tslib.__await(result.value || []);
|
|
2903
|
+
});
|
|
2904
|
+
}
|
|
2905
|
+
listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
2906
|
+
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
|
|
2907
|
+
var e_1, _a;
|
|
2908
|
+
try {
|
|
2909
|
+
for (var _b = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2910
|
+
const page = _c.value;
|
|
2911
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2915
|
+
finally {
|
|
2916
|
+
try {
|
|
2917
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2918
|
+
}
|
|
2919
|
+
finally { if (e_1) throw e_1.error; }
|
|
2920
|
+
}
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
/**
|
|
2924
|
+
* Gets the private link resources that need to be created for a RedisEnterprise cluster.
|
|
2925
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2926
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
2927
|
+
* @param options The options parameters.
|
|
2928
|
+
*/
|
|
2929
|
+
_listByCluster(resourceGroupName, clusterName, options) {
|
|
2930
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec$1);
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
// Operation Specifications
|
|
2934
|
+
const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2935
|
+
const listByClusterOperationSpec$1 = {
|
|
2936
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/privateLinkResources",
|
|
2937
|
+
httpMethod: "GET",
|
|
2938
|
+
responses: {
|
|
2939
|
+
200: {
|
|
2940
|
+
bodyMapper: PrivateLinkResourceListResult
|
|
2941
|
+
},
|
|
2942
|
+
default: {
|
|
2943
|
+
bodyMapper: ErrorResponse
|
|
2944
|
+
}
|
|
2945
|
+
},
|
|
2946
|
+
queryParameters: [apiVersion],
|
|
2947
|
+
urlParameters: [
|
|
2948
|
+
$host,
|
|
2949
|
+
subscriptionId,
|
|
2950
|
+
resourceGroupName,
|
|
2951
|
+
clusterName
|
|
2952
|
+
],
|
|
2953
|
+
headerParameters: [accept],
|
|
2954
|
+
serializer: serializer$5
|
|
2955
|
+
};
|
|
2956
|
+
|
|
2957
|
+
/*
|
|
2958
|
+
* Copyright (c) Microsoft Corporation.
|
|
2959
|
+
* Licensed under the MIT License.
|
|
2960
|
+
*
|
|
2961
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2962
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2963
|
+
*/
|
|
2964
|
+
class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
2965
|
+
/**
|
|
2966
|
+
* Initializes a new instance of the RedisEnterpriseManagementClient class.
|
|
2967
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2968
|
+
* @param subscriptionId The ID of the target subscription.
|
|
2969
|
+
* @param options The parameter options
|
|
2970
|
+
*/
|
|
2971
|
+
constructor(credentials, subscriptionId, options) {
|
|
2972
|
+
if (credentials === undefined) {
|
|
2973
|
+
throw new Error("'credentials' cannot be null");
|
|
2974
|
+
}
|
|
2975
|
+
if (subscriptionId === undefined) {
|
|
2976
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
2977
|
+
}
|
|
2978
|
+
// Initializing default values for options
|
|
2979
|
+
if (!options) {
|
|
2980
|
+
options = {};
|
|
2981
|
+
}
|
|
2982
|
+
const defaults = {
|
|
2983
|
+
requestContentType: "application/json; charset=utf-8",
|
|
2984
|
+
credential: credentials
|
|
2985
|
+
};
|
|
2986
|
+
const packageDetails = `azsdk-js-arm-redisenterprisecache/2.0.0`;
|
|
2987
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2988
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2989
|
+
: `${packageDetails}`;
|
|
2990
|
+
if (!options.credentialScopes) {
|
|
2991
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
2992
|
+
}
|
|
2993
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2994
|
+
userAgentPrefix
|
|
2995
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
2996
|
+
super(optionsWithDefaults);
|
|
2997
|
+
// Parameter assignments
|
|
2998
|
+
this.subscriptionId = subscriptionId;
|
|
2999
|
+
// Assigning values to Constant parameters
|
|
3000
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
3001
|
+
this.apiVersion = options.apiVersion || "2021-08-01";
|
|
3002
|
+
this.operations = new OperationsImpl(this);
|
|
3003
|
+
this.operationsStatus = new OperationsStatusImpl(this);
|
|
3004
|
+
this.redisEnterprise = new RedisEnterpriseImpl(this);
|
|
3005
|
+
this.databases = new DatabasesImpl(this);
|
|
3006
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3007
|
+
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
exports.RedisEnterpriseManagementClient = RedisEnterpriseManagementClient;
|
|
3012
|
+
//# sourceMappingURL=index.js.map
|