@azure/arm-redisenterprisecache 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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 +80 -33
- 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
|
@@ -3,26 +3,52 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Databases } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { RedisEnterpriseManagementClient } from "../redisEnterpriseManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Database,
|
|
19
|
+
DatabasesListByClusterNextOptionalParams,
|
|
20
|
+
DatabasesListByClusterOptionalParams,
|
|
21
|
+
DatabasesListByClusterResponse,
|
|
22
|
+
DatabasesCreateOptionalParams,
|
|
23
|
+
DatabasesCreateResponse,
|
|
24
|
+
DatabaseUpdate,
|
|
25
|
+
DatabasesUpdateOptionalParams,
|
|
26
|
+
DatabasesUpdateResponse,
|
|
27
|
+
DatabasesGetOptionalParams,
|
|
28
|
+
DatabasesGetResponse,
|
|
29
|
+
DatabasesDeleteOptionalParams,
|
|
30
|
+
DatabasesListKeysOptionalParams,
|
|
31
|
+
DatabasesListKeysResponse,
|
|
32
|
+
RegenerateKeyParameters,
|
|
33
|
+
DatabasesRegenerateKeyOptionalParams,
|
|
34
|
+
DatabasesRegenerateKeyResponse,
|
|
35
|
+
ImportClusterParameters,
|
|
36
|
+
DatabasesImportOptionalParams,
|
|
37
|
+
ExportClusterParameters,
|
|
38
|
+
DatabasesExportOptionalParams,
|
|
39
|
+
DatabasesListByClusterNextResponse
|
|
40
|
+
} from "../models";
|
|
16
41
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
42
|
+
/// <reference lib="esnext.asynciterable" />
|
|
43
|
+
/** Class containing Databases operations. */
|
|
44
|
+
export class DatabasesImpl implements Databases {
|
|
45
|
+
private readonly client: RedisEnterpriseManagementClient;
|
|
20
46
|
|
|
21
47
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
48
|
+
* Initialize a new instance of the class Databases class.
|
|
49
|
+
* @param client Reference to the service client
|
|
24
50
|
*/
|
|
25
|
-
constructor(client:
|
|
51
|
+
constructor(client: RedisEnterpriseManagementClient) {
|
|
26
52
|
this.client = client;
|
|
27
53
|
}
|
|
28
54
|
|
|
@@ -30,295 +56,657 @@ export class Databases {
|
|
|
30
56
|
* Gets all databases in the specified RedisEnterprise cluster.
|
|
31
57
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
58
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.DatabasesListByClusterResponse>
|
|
59
|
+
* @param options The options parameters.
|
|
35
60
|
*/
|
|
36
|
-
listByCluster(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
61
|
+
public listByCluster(
|
|
62
|
+
resourceGroupName: string,
|
|
63
|
+
clusterName: string,
|
|
64
|
+
options?: DatabasesListByClusterOptionalParams
|
|
65
|
+
): PagedAsyncIterableIterator<Database> {
|
|
66
|
+
const iter = this.listByClusterPagingAll(
|
|
67
|
+
resourceGroupName,
|
|
68
|
+
clusterName,
|
|
69
|
+
options
|
|
70
|
+
);
|
|
71
|
+
return {
|
|
72
|
+
next() {
|
|
73
|
+
return iter.next();
|
|
74
|
+
},
|
|
75
|
+
[Symbol.asyncIterator]() {
|
|
76
|
+
return this;
|
|
77
|
+
},
|
|
78
|
+
byPage: () => {
|
|
79
|
+
return this.listByClusterPagingPage(
|
|
80
|
+
resourceGroupName,
|
|
81
|
+
clusterName,
|
|
82
|
+
options
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listByClusterPagingPage(
|
|
89
|
+
resourceGroupName: string,
|
|
90
|
+
clusterName: string,
|
|
91
|
+
options?: DatabasesListByClusterOptionalParams
|
|
92
|
+
): AsyncIterableIterator<Database[]> {
|
|
93
|
+
let result = await this._listByCluster(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
clusterName,
|
|
96
|
+
options
|
|
97
|
+
);
|
|
98
|
+
yield result.value || [];
|
|
99
|
+
let continuationToken = result.nextLink;
|
|
100
|
+
while (continuationToken) {
|
|
101
|
+
result = await this._listByClusterNext(
|
|
53
102
|
resourceGroupName,
|
|
54
103
|
clusterName,
|
|
104
|
+
continuationToken,
|
|
55
105
|
options
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
106
|
+
);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
yield result.value || [];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
private async *listByClusterPagingAll(
|
|
113
|
+
resourceGroupName: string,
|
|
114
|
+
clusterName: string,
|
|
115
|
+
options?: DatabasesListByClusterOptionalParams
|
|
116
|
+
): AsyncIterableIterator<Database> {
|
|
117
|
+
for await (const page of this.listByClusterPagingPage(
|
|
118
|
+
resourceGroupName,
|
|
119
|
+
clusterName,
|
|
120
|
+
options
|
|
121
|
+
)) {
|
|
122
|
+
yield* page;
|
|
123
|
+
}
|
|
59
124
|
}
|
|
60
125
|
|
|
61
126
|
/**
|
|
62
|
-
*
|
|
127
|
+
* Gets all databases in the specified RedisEnterprise cluster.
|
|
63
128
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
64
129
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
65
|
-
* @param
|
|
66
|
-
* @param parameters Parameters supplied to the create or update database operation.
|
|
67
|
-
* @param [options] The optional parameters
|
|
68
|
-
* @returns Promise<Models.DatabasesCreateResponse>
|
|
130
|
+
* @param options The options parameters.
|
|
69
131
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
132
|
+
private _listByCluster(
|
|
133
|
+
resourceGroupName: string,
|
|
134
|
+
clusterName: string,
|
|
135
|
+
options?: DatabasesListByClusterOptionalParams
|
|
136
|
+
): Promise<DatabasesListByClusterResponse> {
|
|
137
|
+
return this.client.sendOperationRequest(
|
|
138
|
+
{ resourceGroupName, clusterName, options },
|
|
139
|
+
listByClusterOperationSpec
|
|
140
|
+
);
|
|
73
141
|
}
|
|
74
142
|
|
|
75
143
|
/**
|
|
76
|
-
*
|
|
144
|
+
* Creates a database
|
|
77
145
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
78
146
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
79
147
|
* @param databaseName The name of the database.
|
|
80
148
|
* @param parameters Parameters supplied to the create or update database operation.
|
|
81
|
-
* @param
|
|
82
|
-
* @returns Promise<Models.DatabasesUpdateResponse>
|
|
149
|
+
* @param options The options parameters.
|
|
83
150
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
151
|
+
async beginCreate(
|
|
152
|
+
resourceGroupName: string,
|
|
153
|
+
clusterName: string,
|
|
154
|
+
databaseName: string,
|
|
155
|
+
parameters: Database,
|
|
156
|
+
options?: DatabasesCreateOptionalParams
|
|
157
|
+
): Promise<
|
|
158
|
+
PollerLike<
|
|
159
|
+
PollOperationState<DatabasesCreateResponse>,
|
|
160
|
+
DatabasesCreateResponse
|
|
161
|
+
>
|
|
162
|
+
> {
|
|
163
|
+
const directSendOperation = async (
|
|
164
|
+
args: coreClient.OperationArguments,
|
|
165
|
+
spec: coreClient.OperationSpec
|
|
166
|
+
): Promise<DatabasesCreateResponse> => {
|
|
167
|
+
return this.client.sendOperationRequest(args, spec);
|
|
168
|
+
};
|
|
169
|
+
const sendOperation = async (
|
|
170
|
+
args: coreClient.OperationArguments,
|
|
171
|
+
spec: coreClient.OperationSpec
|
|
172
|
+
) => {
|
|
173
|
+
let currentRawResponse:
|
|
174
|
+
| coreClient.FullOperationResponse
|
|
175
|
+
| undefined = undefined;
|
|
176
|
+
const providedCallback = args.options?.onResponse;
|
|
177
|
+
const callback: coreClient.RawResponseCallback = (
|
|
178
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
179
|
+
flatResponse: unknown
|
|
180
|
+
) => {
|
|
181
|
+
currentRawResponse = rawResponse;
|
|
182
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
183
|
+
};
|
|
184
|
+
const updatedArgs = {
|
|
185
|
+
...args,
|
|
186
|
+
options: {
|
|
187
|
+
...args.options,
|
|
188
|
+
onResponse: callback
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
192
|
+
return {
|
|
193
|
+
flatResponse,
|
|
194
|
+
rawResponse: {
|
|
195
|
+
statusCode: currentRawResponse!.status,
|
|
196
|
+
body: currentRawResponse!.parsedBody,
|
|
197
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
const lro = new LroImpl(
|
|
203
|
+
sendOperation,
|
|
204
|
+
{ resourceGroupName, clusterName, databaseName, parameters, options },
|
|
205
|
+
createOperationSpec
|
|
206
|
+
);
|
|
207
|
+
return new LroEngine(lro, {
|
|
208
|
+
resumeFrom: options?.resumeFrom,
|
|
209
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
210
|
+
lroResourceLocationConfig: "original-uri"
|
|
211
|
+
});
|
|
87
212
|
}
|
|
88
213
|
|
|
89
214
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
92
|
-
* @param clusterName The name of the RedisEnterprise cluster.
|
|
93
|
-
* @param databaseName The name of the database.
|
|
94
|
-
* @param [options] The optional parameters
|
|
95
|
-
* @returns Promise<Models.DatabasesGetResponse>
|
|
96
|
-
*/
|
|
97
|
-
get(resourceGroupName: string, clusterName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<Models.DatabasesGetResponse>;
|
|
98
|
-
/**
|
|
99
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
100
|
-
* @param clusterName The name of the RedisEnterprise cluster.
|
|
101
|
-
* @param databaseName The name of the database.
|
|
102
|
-
* @param callback The callback
|
|
103
|
-
*/
|
|
104
|
-
get(resourceGroupName: string, clusterName: string, databaseName: string, callback: msRest.ServiceCallback<Models.Database>): void;
|
|
105
|
-
/**
|
|
215
|
+
* Creates a database
|
|
106
216
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
107
217
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
108
218
|
* @param databaseName The name of the database.
|
|
109
|
-
* @param
|
|
110
|
-
* @param
|
|
219
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
220
|
+
* @param options The options parameters.
|
|
111
221
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
222
|
+
async beginCreateAndWait(
|
|
223
|
+
resourceGroupName: string,
|
|
224
|
+
clusterName: string,
|
|
225
|
+
databaseName: string,
|
|
226
|
+
parameters: Database,
|
|
227
|
+
options?: DatabasesCreateOptionalParams
|
|
228
|
+
): Promise<DatabasesCreateResponse> {
|
|
229
|
+
const poller = await this.beginCreate(
|
|
230
|
+
resourceGroupName,
|
|
231
|
+
clusterName,
|
|
232
|
+
databaseName,
|
|
233
|
+
parameters,
|
|
234
|
+
options
|
|
235
|
+
);
|
|
236
|
+
return poller.pollUntilDone();
|
|
123
237
|
}
|
|
124
238
|
|
|
125
239
|
/**
|
|
126
|
-
*
|
|
240
|
+
* Updates a database
|
|
127
241
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
128
242
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
129
243
|
* @param databaseName The name of the database.
|
|
130
|
-
* @param
|
|
131
|
-
* @
|
|
244
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
245
|
+
* @param options The options parameters.
|
|
132
246
|
*/
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
247
|
+
async beginUpdate(
|
|
248
|
+
resourceGroupName: string,
|
|
249
|
+
clusterName: string,
|
|
250
|
+
databaseName: string,
|
|
251
|
+
parameters: DatabaseUpdate,
|
|
252
|
+
options?: DatabasesUpdateOptionalParams
|
|
253
|
+
): Promise<
|
|
254
|
+
PollerLike<
|
|
255
|
+
PollOperationState<DatabasesUpdateResponse>,
|
|
256
|
+
DatabasesUpdateResponse
|
|
257
|
+
>
|
|
258
|
+
> {
|
|
259
|
+
const directSendOperation = async (
|
|
260
|
+
args: coreClient.OperationArguments,
|
|
261
|
+
spec: coreClient.OperationSpec
|
|
262
|
+
): Promise<DatabasesUpdateResponse> => {
|
|
263
|
+
return this.client.sendOperationRequest(args, spec);
|
|
264
|
+
};
|
|
265
|
+
const sendOperation = async (
|
|
266
|
+
args: coreClient.OperationArguments,
|
|
267
|
+
spec: coreClient.OperationSpec
|
|
268
|
+
) => {
|
|
269
|
+
let currentRawResponse:
|
|
270
|
+
| coreClient.FullOperationResponse
|
|
271
|
+
| undefined = undefined;
|
|
272
|
+
const providedCallback = args.options?.onResponse;
|
|
273
|
+
const callback: coreClient.RawResponseCallback = (
|
|
274
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
275
|
+
flatResponse: unknown
|
|
276
|
+
) => {
|
|
277
|
+
currentRawResponse = rawResponse;
|
|
278
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
279
|
+
};
|
|
280
|
+
const updatedArgs = {
|
|
281
|
+
...args,
|
|
282
|
+
options: {
|
|
283
|
+
...args.options,
|
|
284
|
+
onResponse: callback
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
288
|
+
return {
|
|
289
|
+
flatResponse,
|
|
290
|
+
rawResponse: {
|
|
291
|
+
statusCode: currentRawResponse!.status,
|
|
292
|
+
body: currentRawResponse!.parsedBody,
|
|
293
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
const lro = new LroImpl(
|
|
299
|
+
sendOperation,
|
|
300
|
+
{ resourceGroupName, clusterName, databaseName, parameters, options },
|
|
301
|
+
updateOperationSpec
|
|
302
|
+
);
|
|
303
|
+
return new LroEngine(lro, {
|
|
304
|
+
resumeFrom: options?.resumeFrom,
|
|
305
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
306
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
307
|
+
});
|
|
136
308
|
}
|
|
137
309
|
|
|
138
310
|
/**
|
|
139
|
-
*
|
|
140
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
141
|
-
* @param clusterName The name of the RedisEnterprise cluster.
|
|
142
|
-
* @param databaseName The name of the database.
|
|
143
|
-
* @param [options] The optional parameters
|
|
144
|
-
* @returns Promise<Models.DatabasesListKeysResponse>
|
|
145
|
-
*/
|
|
146
|
-
listKeys(resourceGroupName: string, clusterName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise<Models.DatabasesListKeysResponse>;
|
|
147
|
-
/**
|
|
311
|
+
* Updates a database
|
|
148
312
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
149
313
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
150
314
|
* @param databaseName The name of the database.
|
|
151
|
-
* @param
|
|
315
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
316
|
+
* @param options The options parameters.
|
|
152
317
|
*/
|
|
153
|
-
|
|
318
|
+
async beginUpdateAndWait(
|
|
319
|
+
resourceGroupName: string,
|
|
320
|
+
clusterName: string,
|
|
321
|
+
databaseName: string,
|
|
322
|
+
parameters: DatabaseUpdate,
|
|
323
|
+
options?: DatabasesUpdateOptionalParams
|
|
324
|
+
): Promise<DatabasesUpdateResponse> {
|
|
325
|
+
const poller = await this.beginUpdate(
|
|
326
|
+
resourceGroupName,
|
|
327
|
+
clusterName,
|
|
328
|
+
databaseName,
|
|
329
|
+
parameters,
|
|
330
|
+
options
|
|
331
|
+
);
|
|
332
|
+
return poller.pollUntilDone();
|
|
333
|
+
}
|
|
334
|
+
|
|
154
335
|
/**
|
|
336
|
+
* Gets information about a database in a RedisEnterprise cluster.
|
|
155
337
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
156
338
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
157
339
|
* @param databaseName The name of the database.
|
|
158
|
-
* @param options The
|
|
159
|
-
* @param callback The callback
|
|
340
|
+
* @param options The options parameters.
|
|
160
341
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
342
|
+
get(
|
|
343
|
+
resourceGroupName: string,
|
|
344
|
+
clusterName: string,
|
|
345
|
+
databaseName: string,
|
|
346
|
+
options?: DatabasesGetOptionalParams
|
|
347
|
+
): Promise<DatabasesGetResponse> {
|
|
163
348
|
return this.client.sendOperationRequest(
|
|
164
|
-
{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
databaseName,
|
|
168
|
-
options
|
|
169
|
-
},
|
|
170
|
-
listKeysOperationSpec,
|
|
171
|
-
callback) as Promise<Models.DatabasesListKeysResponse>;
|
|
349
|
+
{ resourceGroupName, clusterName, databaseName, options },
|
|
350
|
+
getOperationSpec
|
|
351
|
+
);
|
|
172
352
|
}
|
|
173
353
|
|
|
174
354
|
/**
|
|
175
|
-
*
|
|
355
|
+
* Deletes a single database
|
|
176
356
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
177
357
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
178
358
|
* @param databaseName The name of the database.
|
|
179
|
-
* @param
|
|
180
|
-
* @param [options] The optional parameters
|
|
181
|
-
* @returns Promise<Models.DatabasesRegenerateKeyResponse>
|
|
359
|
+
* @param options The options parameters.
|
|
182
360
|
*/
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
361
|
+
async beginDelete(
|
|
362
|
+
resourceGroupName: string,
|
|
363
|
+
clusterName: string,
|
|
364
|
+
databaseName: string,
|
|
365
|
+
options?: DatabasesDeleteOptionalParams
|
|
366
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
367
|
+
const directSendOperation = async (
|
|
368
|
+
args: coreClient.OperationArguments,
|
|
369
|
+
spec: coreClient.OperationSpec
|
|
370
|
+
): Promise<void> => {
|
|
371
|
+
return this.client.sendOperationRequest(args, spec);
|
|
372
|
+
};
|
|
373
|
+
const sendOperation = async (
|
|
374
|
+
args: coreClient.OperationArguments,
|
|
375
|
+
spec: coreClient.OperationSpec
|
|
376
|
+
) => {
|
|
377
|
+
let currentRawResponse:
|
|
378
|
+
| coreClient.FullOperationResponse
|
|
379
|
+
| undefined = undefined;
|
|
380
|
+
const providedCallback = args.options?.onResponse;
|
|
381
|
+
const callback: coreClient.RawResponseCallback = (
|
|
382
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
383
|
+
flatResponse: unknown
|
|
384
|
+
) => {
|
|
385
|
+
currentRawResponse = rawResponse;
|
|
386
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
387
|
+
};
|
|
388
|
+
const updatedArgs = {
|
|
389
|
+
...args,
|
|
390
|
+
options: {
|
|
391
|
+
...args.options,
|
|
392
|
+
onResponse: callback
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
396
|
+
return {
|
|
397
|
+
flatResponse,
|
|
398
|
+
rawResponse: {
|
|
399
|
+
statusCode: currentRawResponse!.status,
|
|
400
|
+
body: currentRawResponse!.parsedBody,
|
|
401
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
const lro = new LroImpl(
|
|
407
|
+
sendOperation,
|
|
408
|
+
{ resourceGroupName, clusterName, databaseName, options },
|
|
409
|
+
deleteOperationSpec
|
|
410
|
+
);
|
|
411
|
+
return new LroEngine(lro, {
|
|
412
|
+
resumeFrom: options?.resumeFrom,
|
|
413
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
414
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
415
|
+
});
|
|
186
416
|
}
|
|
187
417
|
|
|
188
418
|
/**
|
|
189
|
-
*
|
|
419
|
+
* Deletes a single database
|
|
190
420
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
191
421
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
192
422
|
* @param databaseName The name of the database.
|
|
193
|
-
* @param
|
|
194
|
-
* @param [options] The optional parameters
|
|
195
|
-
* @returns Promise<msRest.RestResponse>
|
|
423
|
+
* @param options The options parameters.
|
|
196
424
|
*/
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
425
|
+
async beginDeleteAndWait(
|
|
426
|
+
resourceGroupName: string,
|
|
427
|
+
clusterName: string,
|
|
428
|
+
databaseName: string,
|
|
429
|
+
options?: DatabasesDeleteOptionalParams
|
|
430
|
+
): Promise<void> {
|
|
431
|
+
const poller = await this.beginDelete(
|
|
432
|
+
resourceGroupName,
|
|
433
|
+
clusterName,
|
|
434
|
+
databaseName,
|
|
435
|
+
options
|
|
436
|
+
);
|
|
437
|
+
return poller.pollUntilDone();
|
|
200
438
|
}
|
|
201
439
|
|
|
202
440
|
/**
|
|
203
|
-
*
|
|
441
|
+
* Retrieves the access keys for the RedisEnterprise database.
|
|
204
442
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
205
443
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
206
444
|
* @param databaseName The name of the database.
|
|
207
|
-
* @param
|
|
208
|
-
* @param [options] The optional parameters
|
|
209
|
-
* @returns Promise<msRest.RestResponse>
|
|
445
|
+
* @param options The options parameters.
|
|
210
446
|
*/
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
447
|
+
listKeys(
|
|
448
|
+
resourceGroupName: string,
|
|
449
|
+
clusterName: string,
|
|
450
|
+
databaseName: string,
|
|
451
|
+
options?: DatabasesListKeysOptionalParams
|
|
452
|
+
): Promise<DatabasesListKeysResponse> {
|
|
453
|
+
return this.client.sendOperationRequest(
|
|
454
|
+
{ resourceGroupName, clusterName, databaseName, options },
|
|
455
|
+
listKeysOperationSpec
|
|
456
|
+
);
|
|
214
457
|
}
|
|
215
458
|
|
|
216
459
|
/**
|
|
217
|
-
*
|
|
460
|
+
* Regenerates the RedisEnterprise database's access keys.
|
|
218
461
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
219
462
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
220
463
|
* @param databaseName The name of the database.
|
|
221
|
-
* @param parameters
|
|
222
|
-
* @param
|
|
223
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
464
|
+
* @param parameters Specifies which key to regenerate.
|
|
465
|
+
* @param options The options parameters.
|
|
224
466
|
*/
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
467
|
+
async beginRegenerateKey(
|
|
468
|
+
resourceGroupName: string,
|
|
469
|
+
clusterName: string,
|
|
470
|
+
databaseName: string,
|
|
471
|
+
parameters: RegenerateKeyParameters,
|
|
472
|
+
options?: DatabasesRegenerateKeyOptionalParams
|
|
473
|
+
): Promise<
|
|
474
|
+
PollerLike<
|
|
475
|
+
PollOperationState<DatabasesRegenerateKeyResponse>,
|
|
476
|
+
DatabasesRegenerateKeyResponse
|
|
477
|
+
>
|
|
478
|
+
> {
|
|
479
|
+
const directSendOperation = async (
|
|
480
|
+
args: coreClient.OperationArguments,
|
|
481
|
+
spec: coreClient.OperationSpec
|
|
482
|
+
): Promise<DatabasesRegenerateKeyResponse> => {
|
|
483
|
+
return this.client.sendOperationRequest(args, spec);
|
|
484
|
+
};
|
|
485
|
+
const sendOperation = async (
|
|
486
|
+
args: coreClient.OperationArguments,
|
|
487
|
+
spec: coreClient.OperationSpec
|
|
488
|
+
) => {
|
|
489
|
+
let currentRawResponse:
|
|
490
|
+
| coreClient.FullOperationResponse
|
|
491
|
+
| undefined = undefined;
|
|
492
|
+
const providedCallback = args.options?.onResponse;
|
|
493
|
+
const callback: coreClient.RawResponseCallback = (
|
|
494
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
495
|
+
flatResponse: unknown
|
|
496
|
+
) => {
|
|
497
|
+
currentRawResponse = rawResponse;
|
|
498
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
499
|
+
};
|
|
500
|
+
const updatedArgs = {
|
|
501
|
+
...args,
|
|
502
|
+
options: {
|
|
503
|
+
...args.options,
|
|
504
|
+
onResponse: callback
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
508
|
+
return {
|
|
509
|
+
flatResponse,
|
|
510
|
+
rawResponse: {
|
|
511
|
+
statusCode: currentRawResponse!.status,
|
|
512
|
+
body: currentRawResponse!.parsedBody,
|
|
513
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
const lro = new LroImpl(
|
|
519
|
+
sendOperation,
|
|
520
|
+
{ resourceGroupName, clusterName, databaseName, parameters, options },
|
|
521
|
+
regenerateKeyOperationSpec
|
|
522
|
+
);
|
|
523
|
+
return new LroEngine(lro, {
|
|
524
|
+
resumeFrom: options?.resumeFrom,
|
|
525
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
526
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
527
|
+
});
|
|
236
528
|
}
|
|
237
529
|
|
|
238
530
|
/**
|
|
239
|
-
*
|
|
531
|
+
* Regenerates the RedisEnterprise database's access keys.
|
|
240
532
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
241
533
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
242
534
|
* @param databaseName The name of the database.
|
|
243
|
-
* @param parameters
|
|
244
|
-
* @param
|
|
245
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
535
|
+
* @param parameters Specifies which key to regenerate.
|
|
536
|
+
* @param options The options parameters.
|
|
246
537
|
*/
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
538
|
+
async beginRegenerateKeyAndWait(
|
|
539
|
+
resourceGroupName: string,
|
|
540
|
+
clusterName: string,
|
|
541
|
+
databaseName: string,
|
|
542
|
+
parameters: RegenerateKeyParameters,
|
|
543
|
+
options?: DatabasesRegenerateKeyOptionalParams
|
|
544
|
+
): Promise<DatabasesRegenerateKeyResponse> {
|
|
545
|
+
const poller = await this.beginRegenerateKey(
|
|
546
|
+
resourceGroupName,
|
|
547
|
+
clusterName,
|
|
548
|
+
databaseName,
|
|
549
|
+
parameters,
|
|
550
|
+
options
|
|
551
|
+
);
|
|
552
|
+
return poller.pollUntilDone();
|
|
258
553
|
}
|
|
259
554
|
|
|
260
555
|
/**
|
|
261
|
-
*
|
|
556
|
+
* Imports database files to target database.
|
|
262
557
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
263
558
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
264
559
|
* @param databaseName The name of the database.
|
|
265
|
-
* @param
|
|
266
|
-
* @
|
|
560
|
+
* @param parameters Storage information for importing into the cluster
|
|
561
|
+
* @param options The options parameters.
|
|
267
562
|
*/
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
563
|
+
async beginImport(
|
|
564
|
+
resourceGroupName: string,
|
|
565
|
+
clusterName: string,
|
|
566
|
+
databaseName: string,
|
|
567
|
+
parameters: ImportClusterParameters,
|
|
568
|
+
options?: DatabasesImportOptionalParams
|
|
569
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
570
|
+
const directSendOperation = async (
|
|
571
|
+
args: coreClient.OperationArguments,
|
|
572
|
+
spec: coreClient.OperationSpec
|
|
573
|
+
): Promise<void> => {
|
|
574
|
+
return this.client.sendOperationRequest(args, spec);
|
|
575
|
+
};
|
|
576
|
+
const sendOperation = async (
|
|
577
|
+
args: coreClient.OperationArguments,
|
|
578
|
+
spec: coreClient.OperationSpec
|
|
579
|
+
) => {
|
|
580
|
+
let currentRawResponse:
|
|
581
|
+
| coreClient.FullOperationResponse
|
|
582
|
+
| undefined = undefined;
|
|
583
|
+
const providedCallback = args.options?.onResponse;
|
|
584
|
+
const callback: coreClient.RawResponseCallback = (
|
|
585
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
586
|
+
flatResponse: unknown
|
|
587
|
+
) => {
|
|
588
|
+
currentRawResponse = rawResponse;
|
|
589
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
590
|
+
};
|
|
591
|
+
const updatedArgs = {
|
|
592
|
+
...args,
|
|
593
|
+
options: {
|
|
594
|
+
...args.options,
|
|
595
|
+
onResponse: callback
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
599
|
+
return {
|
|
600
|
+
flatResponse,
|
|
601
|
+
rawResponse: {
|
|
602
|
+
statusCode: currentRawResponse!.status,
|
|
603
|
+
body: currentRawResponse!.parsedBody,
|
|
604
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
const lro = new LroImpl(
|
|
610
|
+
sendOperation,
|
|
611
|
+
{ resourceGroupName, clusterName, databaseName, parameters, options },
|
|
612
|
+
importOperationSpec
|
|
613
|
+
);
|
|
614
|
+
return new LroEngine(lro, {
|
|
615
|
+
resumeFrom: options?.resumeFrom,
|
|
616
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
617
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
618
|
+
});
|
|
278
619
|
}
|
|
279
620
|
|
|
280
621
|
/**
|
|
281
|
-
*
|
|
622
|
+
* Imports database files to target database.
|
|
282
623
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
283
624
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
284
625
|
* @param databaseName The name of the database.
|
|
285
|
-
* @param
|
|
286
|
-
* @param
|
|
287
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
626
|
+
* @param parameters Storage information for importing into the cluster
|
|
627
|
+
* @param options The options parameters.
|
|
288
628
|
*/
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
629
|
+
async beginImportAndWait(
|
|
630
|
+
resourceGroupName: string,
|
|
631
|
+
clusterName: string,
|
|
632
|
+
databaseName: string,
|
|
633
|
+
parameters: ImportClusterParameters,
|
|
634
|
+
options?: DatabasesImportOptionalParams
|
|
635
|
+
): Promise<void> {
|
|
636
|
+
const poller = await this.beginImport(
|
|
637
|
+
resourceGroupName,
|
|
638
|
+
clusterName,
|
|
639
|
+
databaseName,
|
|
640
|
+
parameters,
|
|
641
|
+
options
|
|
642
|
+
);
|
|
643
|
+
return poller.pollUntilDone();
|
|
300
644
|
}
|
|
301
645
|
|
|
302
646
|
/**
|
|
303
|
-
*
|
|
647
|
+
* Exports a database file from target database.
|
|
304
648
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
305
649
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
306
650
|
* @param databaseName The name of the database.
|
|
307
|
-
* @param
|
|
308
|
-
* @param
|
|
309
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
651
|
+
* @param parameters Storage information for exporting into the cluster
|
|
652
|
+
* @param options The options parameters.
|
|
310
653
|
*/
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
654
|
+
async beginExport(
|
|
655
|
+
resourceGroupName: string,
|
|
656
|
+
clusterName: string,
|
|
657
|
+
databaseName: string,
|
|
658
|
+
parameters: ExportClusterParameters,
|
|
659
|
+
options?: DatabasesExportOptionalParams
|
|
660
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
661
|
+
const directSendOperation = async (
|
|
662
|
+
args: coreClient.OperationArguments,
|
|
663
|
+
spec: coreClient.OperationSpec
|
|
664
|
+
): Promise<void> => {
|
|
665
|
+
return this.client.sendOperationRequest(args, spec);
|
|
666
|
+
};
|
|
667
|
+
const sendOperation = async (
|
|
668
|
+
args: coreClient.OperationArguments,
|
|
669
|
+
spec: coreClient.OperationSpec
|
|
670
|
+
) => {
|
|
671
|
+
let currentRawResponse:
|
|
672
|
+
| coreClient.FullOperationResponse
|
|
673
|
+
| undefined = undefined;
|
|
674
|
+
const providedCallback = args.options?.onResponse;
|
|
675
|
+
const callback: coreClient.RawResponseCallback = (
|
|
676
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
677
|
+
flatResponse: unknown
|
|
678
|
+
) => {
|
|
679
|
+
currentRawResponse = rawResponse;
|
|
680
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
681
|
+
};
|
|
682
|
+
const updatedArgs = {
|
|
683
|
+
...args,
|
|
684
|
+
options: {
|
|
685
|
+
...args.options,
|
|
686
|
+
onResponse: callback
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
690
|
+
return {
|
|
691
|
+
flatResponse,
|
|
692
|
+
rawResponse: {
|
|
693
|
+
statusCode: currentRawResponse!.status,
|
|
694
|
+
body: currentRawResponse!.parsedBody,
|
|
695
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
const lro = new LroImpl(
|
|
701
|
+
sendOperation,
|
|
702
|
+
{ resourceGroupName, clusterName, databaseName, parameters, options },
|
|
703
|
+
exportOperationSpec
|
|
704
|
+
);
|
|
705
|
+
return new LroEngine(lro, {
|
|
706
|
+
resumeFrom: options?.resumeFrom,
|
|
707
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
708
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
709
|
+
});
|
|
322
710
|
}
|
|
323
711
|
|
|
324
712
|
/**
|
|
@@ -326,68 +714,52 @@ export class Databases {
|
|
|
326
714
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
327
715
|
* @param clusterName The name of the RedisEnterprise cluster.
|
|
328
716
|
* @param databaseName The name of the database.
|
|
329
|
-
* @param
|
|
330
|
-
* @param
|
|
331
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
717
|
+
* @param parameters Storage information for exporting into the cluster
|
|
718
|
+
* @param options The options parameters.
|
|
332
719
|
*/
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
720
|
+
async beginExportAndWait(
|
|
721
|
+
resourceGroupName: string,
|
|
722
|
+
clusterName: string,
|
|
723
|
+
databaseName: string,
|
|
724
|
+
parameters: ExportClusterParameters,
|
|
725
|
+
options?: DatabasesExportOptionalParams
|
|
726
|
+
): Promise<void> {
|
|
727
|
+
const poller = await this.beginExport(
|
|
728
|
+
resourceGroupName,
|
|
729
|
+
clusterName,
|
|
730
|
+
databaseName,
|
|
731
|
+
parameters,
|
|
732
|
+
options
|
|
733
|
+
);
|
|
734
|
+
return poller.pollUntilDone();
|
|
344
735
|
}
|
|
345
736
|
|
|
346
737
|
/**
|
|
347
|
-
*
|
|
348
|
-
* @param
|
|
349
|
-
* @param
|
|
350
|
-
* @
|
|
351
|
-
|
|
352
|
-
listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.DatabasesListByClusterNextResponse>;
|
|
353
|
-
/**
|
|
354
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
355
|
-
* @param callback The callback
|
|
356
|
-
*/
|
|
357
|
-
listByClusterNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.DatabaseList>): void;
|
|
358
|
-
/**
|
|
359
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
360
|
-
* @param options The optional parameters
|
|
361
|
-
* @param callback The callback
|
|
738
|
+
* ListByClusterNext
|
|
739
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
740
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
741
|
+
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
742
|
+
* @param options The options parameters.
|
|
362
743
|
*/
|
|
363
|
-
|
|
364
|
-
|
|
744
|
+
private _listByClusterNext(
|
|
745
|
+
resourceGroupName: string,
|
|
746
|
+
clusterName: string,
|
|
747
|
+
nextLink: string,
|
|
748
|
+
options?: DatabasesListByClusterNextOptionalParams
|
|
749
|
+
): Promise<DatabasesListByClusterNextResponse> {
|
|
365
750
|
return this.client.sendOperationRequest(
|
|
366
|
-
{
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
},
|
|
370
|
-
listByClusterNextOperationSpec,
|
|
371
|
-
callback) as Promise<Models.DatabasesListByClusterNextResponse>;
|
|
751
|
+
{ resourceGroupName, clusterName, nextLink, options },
|
|
752
|
+
listByClusterNextOperationSpec
|
|
753
|
+
);
|
|
372
754
|
}
|
|
373
755
|
}
|
|
374
|
-
|
|
375
756
|
// Operation Specifications
|
|
376
|
-
const serializer =
|
|
377
|
-
|
|
757
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
758
|
+
|
|
759
|
+
const listByClusterOperationSpec: coreClient.OperationSpec = {
|
|
760
|
+
path:
|
|
761
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
378
762
|
httpMethod: "GET",
|
|
379
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
380
|
-
urlParameters: [
|
|
381
|
-
Parameters.subscriptionId,
|
|
382
|
-
Parameters.resourceGroupName,
|
|
383
|
-
Parameters.clusterName
|
|
384
|
-
],
|
|
385
|
-
queryParameters: [
|
|
386
|
-
Parameters.apiVersion
|
|
387
|
-
],
|
|
388
|
-
headerParameters: [
|
|
389
|
-
Parameters.acceptLanguage
|
|
390
|
-
],
|
|
391
763
|
responses: {
|
|
392
764
|
200: {
|
|
393
765
|
bodyMapper: Mappers.DatabaseList
|
|
@@ -396,83 +768,54 @@ const listByClusterOperationSpec: msRest.OperationSpec = {
|
|
|
396
768
|
bodyMapper: Mappers.ErrorResponse
|
|
397
769
|
}
|
|
398
770
|
},
|
|
399
|
-
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
403
|
-
httpMethod: "GET",
|
|
404
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
771
|
+
queryParameters: [Parameters.apiVersion],
|
|
405
772
|
urlParameters: [
|
|
773
|
+
Parameters.$host,
|
|
774
|
+
Parameters.subscriptionId,
|
|
406
775
|
Parameters.resourceGroupName,
|
|
407
|
-
Parameters.clusterName
|
|
408
|
-
Parameters.databaseName,
|
|
409
|
-
Parameters.subscriptionId
|
|
410
|
-
],
|
|
411
|
-
queryParameters: [
|
|
412
|
-
Parameters.apiVersion
|
|
413
|
-
],
|
|
414
|
-
headerParameters: [
|
|
415
|
-
Parameters.acceptLanguage
|
|
776
|
+
Parameters.clusterName
|
|
416
777
|
],
|
|
778
|
+
headerParameters: [Parameters.accept],
|
|
779
|
+
serializer
|
|
780
|
+
};
|
|
781
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
782
|
+
path:
|
|
783
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
784
|
+
httpMethod: "PUT",
|
|
417
785
|
responses: {
|
|
418
786
|
200: {
|
|
419
787
|
bodyMapper: Mappers.Database
|
|
420
788
|
},
|
|
789
|
+
201: {
|
|
790
|
+
bodyMapper: Mappers.Database
|
|
791
|
+
},
|
|
792
|
+
202: {
|
|
793
|
+
bodyMapper: Mappers.Database
|
|
794
|
+
},
|
|
795
|
+
204: {
|
|
796
|
+
bodyMapper: Mappers.Database
|
|
797
|
+
},
|
|
421
798
|
default: {
|
|
422
799
|
bodyMapper: Mappers.ErrorResponse
|
|
423
800
|
}
|
|
424
801
|
},
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
const listKeysOperationSpec: msRest.OperationSpec = {
|
|
429
|
-
httpMethod: "POST",
|
|
430
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
802
|
+
requestBody: Parameters.parameters2,
|
|
803
|
+
queryParameters: [Parameters.apiVersion],
|
|
431
804
|
urlParameters: [
|
|
805
|
+
Parameters.$host,
|
|
806
|
+
Parameters.subscriptionId,
|
|
432
807
|
Parameters.resourceGroupName,
|
|
433
808
|
Parameters.clusterName,
|
|
434
|
-
Parameters.databaseName
|
|
435
|
-
Parameters.subscriptionId
|
|
436
|
-
],
|
|
437
|
-
queryParameters: [
|
|
438
|
-
Parameters.apiVersion
|
|
809
|
+
Parameters.databaseName
|
|
439
810
|
],
|
|
440
|
-
headerParameters: [
|
|
441
|
-
|
|
442
|
-
],
|
|
443
|
-
responses: {
|
|
444
|
-
200: {
|
|
445
|
-
bodyMapper: Mappers.AccessKeys
|
|
446
|
-
},
|
|
447
|
-
default: {
|
|
448
|
-
bodyMapper: Mappers.ErrorResponse
|
|
449
|
-
}
|
|
450
|
-
},
|
|
811
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
812
|
+
mediaType: "json",
|
|
451
813
|
serializer
|
|
452
814
|
};
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
urlParameters: [
|
|
458
|
-
Parameters.resourceGroupName,
|
|
459
|
-
Parameters.clusterName,
|
|
460
|
-
Parameters.databaseName,
|
|
461
|
-
Parameters.subscriptionId
|
|
462
|
-
],
|
|
463
|
-
queryParameters: [
|
|
464
|
-
Parameters.apiVersion
|
|
465
|
-
],
|
|
466
|
-
headerParameters: [
|
|
467
|
-
Parameters.acceptLanguage
|
|
468
|
-
],
|
|
469
|
-
requestBody: {
|
|
470
|
-
parameterPath: "parameters",
|
|
471
|
-
mapper: {
|
|
472
|
-
...Mappers.Database,
|
|
473
|
-
required: true
|
|
474
|
-
}
|
|
475
|
-
},
|
|
815
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
816
|
+
path:
|
|
817
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
818
|
+
httpMethod: "PATCH",
|
|
476
819
|
responses: {
|
|
477
820
|
200: {
|
|
478
821
|
bodyMapper: Mappers.Database
|
|
@@ -480,190 +823,188 @@ const beginCreateOperationSpec: msRest.OperationSpec = {
|
|
|
480
823
|
201: {
|
|
481
824
|
bodyMapper: Mappers.Database
|
|
482
825
|
},
|
|
826
|
+
202: {
|
|
827
|
+
bodyMapper: Mappers.Database
|
|
828
|
+
},
|
|
829
|
+
204: {
|
|
830
|
+
bodyMapper: Mappers.Database
|
|
831
|
+
},
|
|
483
832
|
default: {
|
|
484
833
|
bodyMapper: Mappers.ErrorResponse
|
|
485
834
|
}
|
|
486
835
|
},
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
491
|
-
httpMethod: "PATCH",
|
|
492
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
836
|
+
requestBody: Parameters.parameters3,
|
|
837
|
+
queryParameters: [Parameters.apiVersion],
|
|
493
838
|
urlParameters: [
|
|
839
|
+
Parameters.$host,
|
|
840
|
+
Parameters.subscriptionId,
|
|
494
841
|
Parameters.resourceGroupName,
|
|
495
842
|
Parameters.clusterName,
|
|
496
|
-
Parameters.databaseName
|
|
497
|
-
Parameters.subscriptionId
|
|
498
|
-
],
|
|
499
|
-
queryParameters: [
|
|
500
|
-
Parameters.apiVersion
|
|
843
|
+
Parameters.databaseName
|
|
501
844
|
],
|
|
502
|
-
headerParameters: [
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}
|
|
511
|
-
},
|
|
845
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
846
|
+
mediaType: "json",
|
|
847
|
+
serializer
|
|
848
|
+
};
|
|
849
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
850
|
+
path:
|
|
851
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
852
|
+
httpMethod: "GET",
|
|
512
853
|
responses: {
|
|
513
854
|
200: {
|
|
514
855
|
bodyMapper: Mappers.Database
|
|
515
856
|
},
|
|
516
|
-
202: {},
|
|
517
857
|
default: {
|
|
518
858
|
bodyMapper: Mappers.ErrorResponse
|
|
519
859
|
}
|
|
520
860
|
},
|
|
521
|
-
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
525
|
-
httpMethod: "DELETE",
|
|
526
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
861
|
+
queryParameters: [Parameters.apiVersion],
|
|
527
862
|
urlParameters: [
|
|
863
|
+
Parameters.$host,
|
|
864
|
+
Parameters.subscriptionId,
|
|
528
865
|
Parameters.resourceGroupName,
|
|
529
866
|
Parameters.clusterName,
|
|
530
|
-
Parameters.databaseName
|
|
531
|
-
Parameters.subscriptionId
|
|
532
|
-
],
|
|
533
|
-
queryParameters: [
|
|
534
|
-
Parameters.apiVersion
|
|
535
|
-
],
|
|
536
|
-
headerParameters: [
|
|
537
|
-
Parameters.acceptLanguage
|
|
867
|
+
Parameters.databaseName
|
|
538
868
|
],
|
|
869
|
+
headerParameters: [Parameters.accept],
|
|
870
|
+
serializer
|
|
871
|
+
};
|
|
872
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
873
|
+
path:
|
|
874
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
875
|
+
httpMethod: "DELETE",
|
|
539
876
|
responses: {
|
|
540
877
|
200: {},
|
|
878
|
+
201: {},
|
|
541
879
|
202: {},
|
|
542
880
|
204: {},
|
|
543
881
|
default: {
|
|
544
882
|
bodyMapper: Mappers.ErrorResponse
|
|
545
883
|
}
|
|
546
884
|
},
|
|
547
|
-
|
|
548
|
-
};
|
|
549
|
-
|
|
550
|
-
const beginRegenerateKeyOperationSpec: msRest.OperationSpec = {
|
|
551
|
-
httpMethod: "POST",
|
|
552
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
885
|
+
queryParameters: [Parameters.apiVersion],
|
|
553
886
|
urlParameters: [
|
|
887
|
+
Parameters.$host,
|
|
888
|
+
Parameters.subscriptionId,
|
|
554
889
|
Parameters.resourceGroupName,
|
|
555
890
|
Parameters.clusterName,
|
|
556
|
-
Parameters.databaseName
|
|
557
|
-
Parameters.subscriptionId
|
|
558
|
-
],
|
|
559
|
-
queryParameters: [
|
|
560
|
-
Parameters.apiVersion
|
|
891
|
+
Parameters.databaseName
|
|
561
892
|
],
|
|
562
|
-
headerParameters: [
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
mapper: {
|
|
570
|
-
...Mappers.RegenerateKeyParameters,
|
|
571
|
-
required: true
|
|
572
|
-
}
|
|
573
|
-
},
|
|
893
|
+
headerParameters: [Parameters.accept],
|
|
894
|
+
serializer
|
|
895
|
+
};
|
|
896
|
+
const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
897
|
+
path:
|
|
898
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
899
|
+
httpMethod: "POST",
|
|
574
900
|
responses: {
|
|
575
901
|
200: {
|
|
576
902
|
bodyMapper: Mappers.AccessKeys
|
|
577
903
|
},
|
|
578
|
-
202: {},
|
|
579
904
|
default: {
|
|
580
905
|
bodyMapper: Mappers.ErrorResponse
|
|
581
906
|
}
|
|
582
907
|
},
|
|
583
|
-
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
const beginImportMethodOperationSpec: msRest.OperationSpec = {
|
|
587
|
-
httpMethod: "POST",
|
|
588
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
908
|
+
queryParameters: [Parameters.apiVersion],
|
|
589
909
|
urlParameters: [
|
|
910
|
+
Parameters.$host,
|
|
911
|
+
Parameters.subscriptionId,
|
|
590
912
|
Parameters.resourceGroupName,
|
|
591
913
|
Parameters.clusterName,
|
|
592
|
-
Parameters.databaseName
|
|
593
|
-
Parameters.subscriptionId
|
|
594
|
-
],
|
|
595
|
-
queryParameters: [
|
|
596
|
-
Parameters.apiVersion
|
|
597
|
-
],
|
|
598
|
-
headerParameters: [
|
|
599
|
-
Parameters.acceptLanguage
|
|
914
|
+
Parameters.databaseName
|
|
600
915
|
],
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
916
|
+
headerParameters: [Parameters.accept],
|
|
917
|
+
serializer
|
|
918
|
+
};
|
|
919
|
+
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
920
|
+
path:
|
|
921
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
922
|
+
httpMethod: "POST",
|
|
923
|
+
responses: {
|
|
924
|
+
200: {
|
|
925
|
+
bodyMapper: Mappers.AccessKeys
|
|
926
|
+
},
|
|
927
|
+
201: {
|
|
928
|
+
bodyMapper: Mappers.AccessKeys
|
|
929
|
+
},
|
|
930
|
+
202: {
|
|
931
|
+
bodyMapper: Mappers.AccessKeys
|
|
932
|
+
},
|
|
933
|
+
204: {
|
|
934
|
+
bodyMapper: Mappers.AccessKeys
|
|
604
935
|
},
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
required: true
|
|
936
|
+
default: {
|
|
937
|
+
bodyMapper: Mappers.ErrorResponse
|
|
608
938
|
}
|
|
609
939
|
},
|
|
940
|
+
requestBody: Parameters.parameters4,
|
|
941
|
+
queryParameters: [Parameters.apiVersion],
|
|
942
|
+
urlParameters: [
|
|
943
|
+
Parameters.$host,
|
|
944
|
+
Parameters.subscriptionId,
|
|
945
|
+
Parameters.resourceGroupName,
|
|
946
|
+
Parameters.clusterName,
|
|
947
|
+
Parameters.databaseName
|
|
948
|
+
],
|
|
949
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
950
|
+
mediaType: "json",
|
|
951
|
+
serializer
|
|
952
|
+
};
|
|
953
|
+
const importOperationSpec: coreClient.OperationSpec = {
|
|
954
|
+
path:
|
|
955
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
956
|
+
httpMethod: "POST",
|
|
610
957
|
responses: {
|
|
611
958
|
200: {},
|
|
959
|
+
201: {},
|
|
612
960
|
202: {},
|
|
961
|
+
204: {},
|
|
613
962
|
default: {
|
|
614
963
|
bodyMapper: Mappers.ErrorResponse
|
|
615
964
|
}
|
|
616
965
|
},
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
const beginExportMethodOperationSpec: msRest.OperationSpec = {
|
|
621
|
-
httpMethod: "POST",
|
|
622
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
966
|
+
requestBody: Parameters.parameters5,
|
|
967
|
+
queryParameters: [Parameters.apiVersion],
|
|
623
968
|
urlParameters: [
|
|
969
|
+
Parameters.$host,
|
|
970
|
+
Parameters.subscriptionId,
|
|
624
971
|
Parameters.resourceGroupName,
|
|
625
972
|
Parameters.clusterName,
|
|
626
|
-
Parameters.databaseName
|
|
627
|
-
Parameters.subscriptionId
|
|
628
|
-
],
|
|
629
|
-
queryParameters: [
|
|
630
|
-
Parameters.apiVersion
|
|
973
|
+
Parameters.databaseName
|
|
631
974
|
],
|
|
632
|
-
headerParameters: [
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
},
|
|
639
|
-
|
|
640
|
-
...Mappers.ExportClusterParameters,
|
|
641
|
-
required: true
|
|
642
|
-
}
|
|
643
|
-
},
|
|
975
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
976
|
+
mediaType: "json",
|
|
977
|
+
serializer
|
|
978
|
+
};
|
|
979
|
+
const exportOperationSpec: coreClient.OperationSpec = {
|
|
980
|
+
path:
|
|
981
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
982
|
+
httpMethod: "POST",
|
|
644
983
|
responses: {
|
|
645
984
|
200: {},
|
|
985
|
+
201: {},
|
|
646
986
|
202: {},
|
|
987
|
+
204: {},
|
|
647
988
|
default: {
|
|
648
989
|
bodyMapper: Mappers.ErrorResponse
|
|
649
990
|
}
|
|
650
991
|
},
|
|
992
|
+
requestBody: Parameters.parameters6,
|
|
993
|
+
queryParameters: [Parameters.apiVersion],
|
|
994
|
+
urlParameters: [
|
|
995
|
+
Parameters.$host,
|
|
996
|
+
Parameters.subscriptionId,
|
|
997
|
+
Parameters.resourceGroupName,
|
|
998
|
+
Parameters.clusterName,
|
|
999
|
+
Parameters.databaseName
|
|
1000
|
+
],
|
|
1001
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1002
|
+
mediaType: "json",
|
|
651
1003
|
serializer
|
|
652
1004
|
};
|
|
653
|
-
|
|
654
|
-
const listByClusterNextOperationSpec: msRest.OperationSpec = {
|
|
655
|
-
httpMethod: "GET",
|
|
656
|
-
baseUrl: "https://management.azure.com",
|
|
1005
|
+
const listByClusterNextOperationSpec: coreClient.OperationSpec = {
|
|
657
1006
|
path: "{nextLink}",
|
|
658
|
-
|
|
659
|
-
Parameters.nextPageLink
|
|
660
|
-
],
|
|
661
|
-
queryParameters: [
|
|
662
|
-
Parameters.apiVersion
|
|
663
|
-
],
|
|
664
|
-
headerParameters: [
|
|
665
|
-
Parameters.acceptLanguage
|
|
666
|
-
],
|
|
1007
|
+
httpMethod: "GET",
|
|
667
1008
|
responses: {
|
|
668
1009
|
200: {
|
|
669
1010
|
bodyMapper: Mappers.DatabaseList
|
|
@@ -672,5 +1013,14 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = {
|
|
|
672
1013
|
bodyMapper: Mappers.ErrorResponse
|
|
673
1014
|
}
|
|
674
1015
|
},
|
|
1016
|
+
queryParameters: [Parameters.apiVersion],
|
|
1017
|
+
urlParameters: [
|
|
1018
|
+
Parameters.$host,
|
|
1019
|
+
Parameters.nextLink,
|
|
1020
|
+
Parameters.subscriptionId,
|
|
1021
|
+
Parameters.resourceGroupName,
|
|
1022
|
+
Parameters.clusterName
|
|
1023
|
+
],
|
|
1024
|
+
headerParameters: [Parameters.accept],
|
|
675
1025
|
serializer
|
|
676
1026
|
};
|