@azure/arm-redisenterprisecache 1.1.1 → 2.0.0-alpha.20220325.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
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Databases operations. */
|
|
16
|
+
export class DatabasesImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Databases class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets all databases in the specified RedisEnterprise cluster.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByCluster(resourceGroupName, clusterName, options) {
|
|
31
|
+
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listByClusterPagingPage(resourceGroupName, clusterName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listByClusterPagingPage(resourceGroupName, clusterName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Gets all databases in the specified RedisEnterprise cluster.
|
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
_listByCluster(resourceGroupName, clusterName, options) {
|
|
81
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates a database
|
|
85
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
86
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
87
|
+
* @param databaseName The name of the database.
|
|
88
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
beginCreate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
return this.client.sendOperationRequest(args, spec);
|
|
95
|
+
});
|
|
96
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
var _a;
|
|
98
|
+
let currentRawResponse = undefined;
|
|
99
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
100
|
+
const callback = (rawResponse, flatResponse) => {
|
|
101
|
+
currentRawResponse = rawResponse;
|
|
102
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
103
|
+
};
|
|
104
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
105
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
106
|
+
return {
|
|
107
|
+
flatResponse,
|
|
108
|
+
rawResponse: {
|
|
109
|
+
statusCode: currentRawResponse.status,
|
|
110
|
+
body: currentRawResponse.parsedBody,
|
|
111
|
+
headers: currentRawResponse.headers.toJSON()
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, createOperationSpec);
|
|
116
|
+
return new LroEngine(lro, {
|
|
117
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
118
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
119
|
+
lroResourceLocationConfig: "original-uri"
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Creates a database
|
|
125
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
127
|
+
* @param databaseName The name of the database.
|
|
128
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
129
|
+
* @param options The options parameters.
|
|
130
|
+
*/
|
|
131
|
+
beginCreateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const poller = yield this.beginCreate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
134
|
+
return poller.pollUntilDone();
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Updates a database
|
|
139
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
140
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
141
|
+
* @param databaseName The name of the database.
|
|
142
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
143
|
+
* @param options The options parameters.
|
|
144
|
+
*/
|
|
145
|
+
beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
return this.client.sendOperationRequest(args, spec);
|
|
149
|
+
});
|
|
150
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
var _a;
|
|
152
|
+
let currentRawResponse = undefined;
|
|
153
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
154
|
+
const callback = (rawResponse, flatResponse) => {
|
|
155
|
+
currentRawResponse = rawResponse;
|
|
156
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
157
|
+
};
|
|
158
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
159
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
160
|
+
return {
|
|
161
|
+
flatResponse,
|
|
162
|
+
rawResponse: {
|
|
163
|
+
statusCode: currentRawResponse.status,
|
|
164
|
+
body: currentRawResponse.parsedBody,
|
|
165
|
+
headers: currentRawResponse.headers.toJSON()
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, updateOperationSpec);
|
|
170
|
+
return new LroEngine(lro, {
|
|
171
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
172
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
173
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Updates a database
|
|
179
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
180
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
181
|
+
* @param databaseName The name of the database.
|
|
182
|
+
* @param parameters Parameters supplied to the create or update database operation.
|
|
183
|
+
* @param options The options parameters.
|
|
184
|
+
*/
|
|
185
|
+
beginUpdateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const poller = yield this.beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
188
|
+
return poller.pollUntilDone();
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Gets information about a database in a RedisEnterprise cluster.
|
|
193
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
194
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
195
|
+
* @param databaseName The name of the database.
|
|
196
|
+
* @param options The options parameters.
|
|
197
|
+
*/
|
|
198
|
+
get(resourceGroupName, clusterName, databaseName, options) {
|
|
199
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, getOperationSpec);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Deletes a single database
|
|
203
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
204
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
205
|
+
* @param databaseName The name of the database.
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
beginDelete(resourceGroupName, clusterName, databaseName, options) {
|
|
209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
return this.client.sendOperationRequest(args, spec);
|
|
212
|
+
});
|
|
213
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
var _a;
|
|
215
|
+
let currentRawResponse = undefined;
|
|
216
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
217
|
+
const callback = (rawResponse, flatResponse) => {
|
|
218
|
+
currentRawResponse = rawResponse;
|
|
219
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
220
|
+
};
|
|
221
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
222
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
223
|
+
return {
|
|
224
|
+
flatResponse,
|
|
225
|
+
rawResponse: {
|
|
226
|
+
statusCode: currentRawResponse.status,
|
|
227
|
+
body: currentRawResponse.parsedBody,
|
|
228
|
+
headers: currentRawResponse.headers.toJSON()
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
});
|
|
232
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, options }, deleteOperationSpec);
|
|
233
|
+
return new LroEngine(lro, {
|
|
234
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
235
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
236
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Deletes a single database
|
|
242
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
243
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
244
|
+
* @param databaseName The name of the database.
|
|
245
|
+
* @param options The options parameters.
|
|
246
|
+
*/
|
|
247
|
+
beginDeleteAndWait(resourceGroupName, clusterName, databaseName, options) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, options);
|
|
250
|
+
return poller.pollUntilDone();
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Retrieves the access keys for the RedisEnterprise database.
|
|
255
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
256
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
257
|
+
* @param databaseName The name of the database.
|
|
258
|
+
* @param options The options parameters.
|
|
259
|
+
*/
|
|
260
|
+
listKeys(resourceGroupName, clusterName, databaseName, options) {
|
|
261
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, databaseName, options }, listKeysOperationSpec);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Regenerates the RedisEnterprise database's access keys.
|
|
265
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
266
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
267
|
+
* @param databaseName The name of the database.
|
|
268
|
+
* @param parameters Specifies which key to regenerate.
|
|
269
|
+
* @param options The options parameters.
|
|
270
|
+
*/
|
|
271
|
+
beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
return this.client.sendOperationRequest(args, spec);
|
|
275
|
+
});
|
|
276
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
277
|
+
var _a;
|
|
278
|
+
let currentRawResponse = undefined;
|
|
279
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
280
|
+
const callback = (rawResponse, flatResponse) => {
|
|
281
|
+
currentRawResponse = rawResponse;
|
|
282
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
283
|
+
};
|
|
284
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
285
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
286
|
+
return {
|
|
287
|
+
flatResponse,
|
|
288
|
+
rawResponse: {
|
|
289
|
+
statusCode: currentRawResponse.status,
|
|
290
|
+
body: currentRawResponse.parsedBody,
|
|
291
|
+
headers: currentRawResponse.headers.toJSON()
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, regenerateKeyOperationSpec);
|
|
296
|
+
return new LroEngine(lro, {
|
|
297
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
298
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
299
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Regenerates the RedisEnterprise database's access keys.
|
|
305
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
306
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
307
|
+
* @param databaseName The name of the database.
|
|
308
|
+
* @param parameters Specifies which key to regenerate.
|
|
309
|
+
* @param options The options parameters.
|
|
310
|
+
*/
|
|
311
|
+
beginRegenerateKeyAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
const poller = yield this.beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
314
|
+
return poller.pollUntilDone();
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Imports database files to target database.
|
|
319
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
320
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
321
|
+
* @param databaseName The name of the database.
|
|
322
|
+
* @param parameters Storage information for importing into the cluster
|
|
323
|
+
* @param options The options parameters.
|
|
324
|
+
*/
|
|
325
|
+
beginImport(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
return this.client.sendOperationRequest(args, spec);
|
|
329
|
+
});
|
|
330
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
331
|
+
var _a;
|
|
332
|
+
let currentRawResponse = undefined;
|
|
333
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
334
|
+
const callback = (rawResponse, flatResponse) => {
|
|
335
|
+
currentRawResponse = rawResponse;
|
|
336
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
337
|
+
};
|
|
338
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
339
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
340
|
+
return {
|
|
341
|
+
flatResponse,
|
|
342
|
+
rawResponse: {
|
|
343
|
+
statusCode: currentRawResponse.status,
|
|
344
|
+
body: currentRawResponse.parsedBody,
|
|
345
|
+
headers: currentRawResponse.headers.toJSON()
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
});
|
|
349
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, importOperationSpec);
|
|
350
|
+
return new LroEngine(lro, {
|
|
351
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
352
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
353
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Imports database files to target database.
|
|
359
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
360
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
361
|
+
* @param databaseName The name of the database.
|
|
362
|
+
* @param parameters Storage information for importing into the cluster
|
|
363
|
+
* @param options The options parameters.
|
|
364
|
+
*/
|
|
365
|
+
beginImportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
367
|
+
const poller = yield this.beginImport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
368
|
+
return poller.pollUntilDone();
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Exports a database file from target database.
|
|
373
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
374
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
375
|
+
* @param databaseName The name of the database.
|
|
376
|
+
* @param parameters Storage information for exporting into the cluster
|
|
377
|
+
* @param options The options parameters.
|
|
378
|
+
*/
|
|
379
|
+
beginExport(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
return this.client.sendOperationRequest(args, spec);
|
|
383
|
+
});
|
|
384
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
385
|
+
var _a;
|
|
386
|
+
let currentRawResponse = undefined;
|
|
387
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
388
|
+
const callback = (rawResponse, flatResponse) => {
|
|
389
|
+
currentRawResponse = rawResponse;
|
|
390
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
391
|
+
};
|
|
392
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
393
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
394
|
+
return {
|
|
395
|
+
flatResponse,
|
|
396
|
+
rawResponse: {
|
|
397
|
+
statusCode: currentRawResponse.status,
|
|
398
|
+
body: currentRawResponse.parsedBody,
|
|
399
|
+
headers: currentRawResponse.headers.toJSON()
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
});
|
|
403
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, databaseName, parameters, options }, exportOperationSpec);
|
|
404
|
+
return new LroEngine(lro, {
|
|
405
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
406
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
407
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Exports a database file from target database.
|
|
413
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
414
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
415
|
+
* @param databaseName The name of the database.
|
|
416
|
+
* @param parameters Storage information for exporting into the cluster
|
|
417
|
+
* @param options The options parameters.
|
|
418
|
+
*/
|
|
419
|
+
beginExportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
const poller = yield this.beginExport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
422
|
+
return poller.pollUntilDone();
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* ListByClusterNext
|
|
427
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
428
|
+
* @param clusterName The name of the RedisEnterprise cluster.
|
|
429
|
+
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
430
|
+
* @param options The options parameters.
|
|
431
|
+
*/
|
|
432
|
+
_listByClusterNext(resourceGroupName, clusterName, nextLink, options) {
|
|
433
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, nextLink, options }, listByClusterNextOperationSpec);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
// Operation Specifications
|
|
437
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
438
|
+
const listByClusterOperationSpec = {
|
|
439
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases",
|
|
440
|
+
httpMethod: "GET",
|
|
441
|
+
responses: {
|
|
442
|
+
200: {
|
|
443
|
+
bodyMapper: Mappers.DatabaseList
|
|
444
|
+
},
|
|
445
|
+
default: {
|
|
446
|
+
bodyMapper: Mappers.ErrorResponse
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
queryParameters: [Parameters.apiVersion],
|
|
450
|
+
urlParameters: [
|
|
451
|
+
Parameters.$host,
|
|
452
|
+
Parameters.subscriptionId,
|
|
453
|
+
Parameters.resourceGroupName,
|
|
454
|
+
Parameters.clusterName
|
|
455
|
+
],
|
|
456
|
+
headerParameters: [Parameters.accept],
|
|
457
|
+
serializer
|
|
458
|
+
};
|
|
459
|
+
const createOperationSpec = {
|
|
460
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
461
|
+
httpMethod: "PUT",
|
|
462
|
+
responses: {
|
|
463
|
+
200: {
|
|
464
|
+
bodyMapper: Mappers.Database
|
|
465
|
+
},
|
|
466
|
+
201: {
|
|
467
|
+
bodyMapper: Mappers.Database
|
|
468
|
+
},
|
|
469
|
+
202: {
|
|
470
|
+
bodyMapper: Mappers.Database
|
|
471
|
+
},
|
|
472
|
+
204: {
|
|
473
|
+
bodyMapper: Mappers.Database
|
|
474
|
+
},
|
|
475
|
+
default: {
|
|
476
|
+
bodyMapper: Mappers.ErrorResponse
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
requestBody: Parameters.parameters2,
|
|
480
|
+
queryParameters: [Parameters.apiVersion],
|
|
481
|
+
urlParameters: [
|
|
482
|
+
Parameters.$host,
|
|
483
|
+
Parameters.subscriptionId,
|
|
484
|
+
Parameters.resourceGroupName,
|
|
485
|
+
Parameters.clusterName,
|
|
486
|
+
Parameters.databaseName
|
|
487
|
+
],
|
|
488
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
489
|
+
mediaType: "json",
|
|
490
|
+
serializer
|
|
491
|
+
};
|
|
492
|
+
const updateOperationSpec = {
|
|
493
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
494
|
+
httpMethod: "PATCH",
|
|
495
|
+
responses: {
|
|
496
|
+
200: {
|
|
497
|
+
bodyMapper: Mappers.Database
|
|
498
|
+
},
|
|
499
|
+
201: {
|
|
500
|
+
bodyMapper: Mappers.Database
|
|
501
|
+
},
|
|
502
|
+
202: {
|
|
503
|
+
bodyMapper: Mappers.Database
|
|
504
|
+
},
|
|
505
|
+
204: {
|
|
506
|
+
bodyMapper: Mappers.Database
|
|
507
|
+
},
|
|
508
|
+
default: {
|
|
509
|
+
bodyMapper: Mappers.ErrorResponse
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
requestBody: Parameters.parameters3,
|
|
513
|
+
queryParameters: [Parameters.apiVersion],
|
|
514
|
+
urlParameters: [
|
|
515
|
+
Parameters.$host,
|
|
516
|
+
Parameters.subscriptionId,
|
|
517
|
+
Parameters.resourceGroupName,
|
|
518
|
+
Parameters.clusterName,
|
|
519
|
+
Parameters.databaseName
|
|
520
|
+
],
|
|
521
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
522
|
+
mediaType: "json",
|
|
523
|
+
serializer
|
|
524
|
+
};
|
|
525
|
+
const getOperationSpec = {
|
|
526
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
527
|
+
httpMethod: "GET",
|
|
528
|
+
responses: {
|
|
529
|
+
200: {
|
|
530
|
+
bodyMapper: Mappers.Database
|
|
531
|
+
},
|
|
532
|
+
default: {
|
|
533
|
+
bodyMapper: Mappers.ErrorResponse
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
queryParameters: [Parameters.apiVersion],
|
|
537
|
+
urlParameters: [
|
|
538
|
+
Parameters.$host,
|
|
539
|
+
Parameters.subscriptionId,
|
|
540
|
+
Parameters.resourceGroupName,
|
|
541
|
+
Parameters.clusterName,
|
|
542
|
+
Parameters.databaseName
|
|
543
|
+
],
|
|
544
|
+
headerParameters: [Parameters.accept],
|
|
545
|
+
serializer
|
|
546
|
+
};
|
|
547
|
+
const deleteOperationSpec = {
|
|
548
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}",
|
|
549
|
+
httpMethod: "DELETE",
|
|
550
|
+
responses: {
|
|
551
|
+
200: {},
|
|
552
|
+
201: {},
|
|
553
|
+
202: {},
|
|
554
|
+
204: {},
|
|
555
|
+
default: {
|
|
556
|
+
bodyMapper: Mappers.ErrorResponse
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
queryParameters: [Parameters.apiVersion],
|
|
560
|
+
urlParameters: [
|
|
561
|
+
Parameters.$host,
|
|
562
|
+
Parameters.subscriptionId,
|
|
563
|
+
Parameters.resourceGroupName,
|
|
564
|
+
Parameters.clusterName,
|
|
565
|
+
Parameters.databaseName
|
|
566
|
+
],
|
|
567
|
+
headerParameters: [Parameters.accept],
|
|
568
|
+
serializer
|
|
569
|
+
};
|
|
570
|
+
const listKeysOperationSpec = {
|
|
571
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys",
|
|
572
|
+
httpMethod: "POST",
|
|
573
|
+
responses: {
|
|
574
|
+
200: {
|
|
575
|
+
bodyMapper: Mappers.AccessKeys
|
|
576
|
+
},
|
|
577
|
+
default: {
|
|
578
|
+
bodyMapper: Mappers.ErrorResponse
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
queryParameters: [Parameters.apiVersion],
|
|
582
|
+
urlParameters: [
|
|
583
|
+
Parameters.$host,
|
|
584
|
+
Parameters.subscriptionId,
|
|
585
|
+
Parameters.resourceGroupName,
|
|
586
|
+
Parameters.clusterName,
|
|
587
|
+
Parameters.databaseName
|
|
588
|
+
],
|
|
589
|
+
headerParameters: [Parameters.accept],
|
|
590
|
+
serializer
|
|
591
|
+
};
|
|
592
|
+
const regenerateKeyOperationSpec = {
|
|
593
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey",
|
|
594
|
+
httpMethod: "POST",
|
|
595
|
+
responses: {
|
|
596
|
+
200: {
|
|
597
|
+
bodyMapper: Mappers.AccessKeys
|
|
598
|
+
},
|
|
599
|
+
201: {
|
|
600
|
+
bodyMapper: Mappers.AccessKeys
|
|
601
|
+
},
|
|
602
|
+
202: {
|
|
603
|
+
bodyMapper: Mappers.AccessKeys
|
|
604
|
+
},
|
|
605
|
+
204: {
|
|
606
|
+
bodyMapper: Mappers.AccessKeys
|
|
607
|
+
},
|
|
608
|
+
default: {
|
|
609
|
+
bodyMapper: Mappers.ErrorResponse
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
requestBody: Parameters.parameters4,
|
|
613
|
+
queryParameters: [Parameters.apiVersion],
|
|
614
|
+
urlParameters: [
|
|
615
|
+
Parameters.$host,
|
|
616
|
+
Parameters.subscriptionId,
|
|
617
|
+
Parameters.resourceGroupName,
|
|
618
|
+
Parameters.clusterName,
|
|
619
|
+
Parameters.databaseName
|
|
620
|
+
],
|
|
621
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
622
|
+
mediaType: "json",
|
|
623
|
+
serializer
|
|
624
|
+
};
|
|
625
|
+
const importOperationSpec = {
|
|
626
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import",
|
|
627
|
+
httpMethod: "POST",
|
|
628
|
+
responses: {
|
|
629
|
+
200: {},
|
|
630
|
+
201: {},
|
|
631
|
+
202: {},
|
|
632
|
+
204: {},
|
|
633
|
+
default: {
|
|
634
|
+
bodyMapper: Mappers.ErrorResponse
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
requestBody: Parameters.parameters5,
|
|
638
|
+
queryParameters: [Parameters.apiVersion],
|
|
639
|
+
urlParameters: [
|
|
640
|
+
Parameters.$host,
|
|
641
|
+
Parameters.subscriptionId,
|
|
642
|
+
Parameters.resourceGroupName,
|
|
643
|
+
Parameters.clusterName,
|
|
644
|
+
Parameters.databaseName
|
|
645
|
+
],
|
|
646
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
647
|
+
mediaType: "json",
|
|
648
|
+
serializer
|
|
649
|
+
};
|
|
650
|
+
const exportOperationSpec = {
|
|
651
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export",
|
|
652
|
+
httpMethod: "POST",
|
|
653
|
+
responses: {
|
|
654
|
+
200: {},
|
|
655
|
+
201: {},
|
|
656
|
+
202: {},
|
|
657
|
+
204: {},
|
|
658
|
+
default: {
|
|
659
|
+
bodyMapper: Mappers.ErrorResponse
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
requestBody: Parameters.parameters6,
|
|
663
|
+
queryParameters: [Parameters.apiVersion],
|
|
664
|
+
urlParameters: [
|
|
665
|
+
Parameters.$host,
|
|
666
|
+
Parameters.subscriptionId,
|
|
667
|
+
Parameters.resourceGroupName,
|
|
668
|
+
Parameters.clusterName,
|
|
669
|
+
Parameters.databaseName
|
|
670
|
+
],
|
|
671
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
672
|
+
mediaType: "json",
|
|
673
|
+
serializer
|
|
674
|
+
};
|
|
675
|
+
const listByClusterNextOperationSpec = {
|
|
676
|
+
path: "{nextLink}",
|
|
677
|
+
httpMethod: "GET",
|
|
678
|
+
responses: {
|
|
679
|
+
200: {
|
|
680
|
+
bodyMapper: Mappers.DatabaseList
|
|
681
|
+
},
|
|
682
|
+
default: {
|
|
683
|
+
bodyMapper: Mappers.ErrorResponse
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
queryParameters: [Parameters.apiVersion],
|
|
687
|
+
urlParameters: [
|
|
688
|
+
Parameters.$host,
|
|
689
|
+
Parameters.nextLink,
|
|
690
|
+
Parameters.subscriptionId,
|
|
691
|
+
Parameters.resourceGroupName,
|
|
692
|
+
Parameters.clusterName
|
|
693
|
+
],
|
|
694
|
+
headerParameters: [Parameters.accept],
|
|
695
|
+
serializer
|
|
696
|
+
};
|
|
697
|
+
//# sourceMappingURL=databases.js.map
|