@azure/arm-redisenterprisecache 2.2.1-alpha.20230418.1 → 2.3.0-beta.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 +36 -10
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +777 -121
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +15 -8
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesExportSample.js +11 -4
- package/dist-esm/samples-dev/databasesExportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesFlushSample.d.ts +2 -0
- package/dist-esm/samples-dev/databasesFlushSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databasesFlushSample.js +44 -0
- package/dist-esm/samples-dev/databasesFlushSample.js.map +1 -0
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js +11 -4
- package/dist-esm/samples-dev/databasesForceUnlinkSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +11 -4
- package/dist-esm/samples-dev/databasesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesImportSample.js +11 -4
- package/dist-esm/samples-dev/databasesImportSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListByClusterSample.js +11 -4
- package/dist-esm/samples-dev/databasesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListKeysSample.js +11 -4
- package/dist-esm/samples-dev/databasesListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js +11 -4
- package/dist-esm/samples-dev/databasesRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/databasesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/databasesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsStatusGetSample.js +10 -3
- package/dist-esm/samples-dev/operationsStatusGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js +26 -4
- package/dist-esm/samples-dev/redisEnterpriseCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseGetSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseListSample.js +10 -3
- package/dist-esm/samples-dev/redisEnterpriseListSample.js.map +1 -1
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js +11 -4
- package/dist-esm/samples-dev/redisEnterpriseUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +58 -0
- package/dist-esm/samples-dev/skusListSample.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +196 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +32 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +13 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +340 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts +27 -9
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +192 -37
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +16 -12
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts +4 -4
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +29 -17
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operations/skus.d.ts +28 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +107 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/databases.d.ts +27 -9
- package/dist-esm/src/operationsInterfaces/databases.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/skus.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts +2 -1
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js +4 -3
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
- package/package.json +8 -7
- package/review/arm-redisenterprisecache.api.md +154 -13
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +216 -0
- package/src/models/mappers.ts +357 -0
- package/src/models/parameters.ts +7 -1
- package/src/operations/databases.ts +251 -75
- package/src/operations/index.ts +1 -0
- package/src/operations/privateEndpointConnections.ts +19 -12
- package/src/operations/redisEnterprise.ts +44 -34
- package/src/operations/skus.ts +117 -0
- package/src/operationsInterfaces/databases.ts +44 -12
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
- package/src/operationsInterfaces/redisEnterprise.ts +6 -6
- package/src/operationsInterfaces/skus.ts +24 -0
- package/src/redisEnterpriseManagementClient.ts +8 -4
- package/types/arm-redisenterprisecache.d.ts +260 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, OperationsStatus, RedisEnterprise, Databases, PrivateEndpointConnections, PrivateLinkResources } from "./operationsInterfaces";
|
|
3
|
+
import { Operations, OperationsStatus, RedisEnterprise, Databases, PrivateEndpointConnections, PrivateLinkResources, Skus } from "./operationsInterfaces";
|
|
4
4
|
import { RedisEnterpriseManagementClientOptionalParams } from "./models";
|
|
5
5
|
export declare class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -21,5 +21,6 @@ export declare class RedisEnterpriseManagementClient extends coreClient.ServiceC
|
|
|
21
21
|
databases: Databases;
|
|
22
22
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
23
23
|
privateLinkResources: PrivateLinkResources;
|
|
24
|
+
skus: Skus;
|
|
24
25
|
}
|
|
25
26
|
//# sourceMappingURL=redisEnterpriseManagementClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseManagementClient.d.ts","sourceRoot":"","sources":["../../src/redisEnterpriseManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"redisEnterpriseManagementClient.d.ts","sourceRoot":"","sources":["../../src/redisEnterpriseManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAU7C,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,0BAA0B,EAC1B,oBAAoB,EACpB,IAAI,EACL,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,6CAA6C,EAAE,MAAM,UAAU,CAAC;AAEzE,qBAAa,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,6CAA6C;IAkFzD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,EAAE,eAAe,CAAC;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { OperationsImpl, OperationsStatusImpl, RedisEnterpriseImpl, DatabasesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl } from "./operations";
|
|
11
|
+
import { OperationsImpl, OperationsStatusImpl, RedisEnterpriseImpl, DatabasesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, SkusImpl } from "./operations";
|
|
12
12
|
export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
13
13
|
/**
|
|
14
14
|
* Initializes a new instance of the RedisEnterpriseManagementClient class.
|
|
@@ -32,7 +32,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-redisenterprisecache/2.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-redisenterprisecache/2.3.0-beta.1`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -65,13 +65,14 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
|
65
65
|
this.subscriptionId = subscriptionId;
|
|
66
66
|
// Assigning values to Constant parameters
|
|
67
67
|
this.$host = options.$host || "https://management.azure.com";
|
|
68
|
-
this.apiVersion = options.apiVersion || "
|
|
68
|
+
this.apiVersion = options.apiVersion || "2023-03-01-preview";
|
|
69
69
|
this.operations = new OperationsImpl(this);
|
|
70
70
|
this.operationsStatus = new OperationsStatusImpl(this);
|
|
71
71
|
this.redisEnterprise = new RedisEnterpriseImpl(this);
|
|
72
72
|
this.databases = new DatabasesImpl(this);
|
|
73
73
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
74
74
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
75
|
+
this.skus = new SkusImpl(this);
|
|
75
76
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
76
77
|
}
|
|
77
78
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseManagementClient.js","sourceRoot":"","sources":["../../src/redisEnterpriseManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACb,8BAA8B,EAC9B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"redisEnterpriseManagementClient.js","sourceRoot":"","sources":["../../src/redisEnterpriseManagementClient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AC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CASF"}
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for RedisEnterpriseManagementClient.",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.3.0-beta.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.
|
|
11
|
+
"@azure/core-lro": "^2.5.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
"@rollup/plugin-json": "^6.0.0",
|
|
34
34
|
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
35
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
-
"mkdirp": "^1.
|
|
36
|
+
"mkdirp": "^2.1.2",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
39
|
"typescript": "~5.0.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
|
+
"dotenv": "^16.0.0",
|
|
42
43
|
"@azure/identity": "^2.0.1",
|
|
43
44
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
44
45
|
"@azure-tools/test-credential": "^1.0.0",
|
|
@@ -47,9 +48,8 @@
|
|
|
47
48
|
"chai": "^4.2.0",
|
|
48
49
|
"cross-env": "^7.0.2",
|
|
49
50
|
"@types/node": "^14.0.0",
|
|
50
|
-
"@azure/dev-tool": "
|
|
51
|
+
"@azure/dev-tool": "^1.0.0"
|
|
51
52
|
},
|
|
52
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redisenterprise/arm-redisenterprisecache",
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|
|
55
55
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
113
|
"autoPublish": true,
|
|
114
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redisenterprise/arm-redisenterprisecache",
|
|
114
115
|
"//sampleConfiguration": {
|
|
115
116
|
"productName": "",
|
|
116
117
|
"productSlugs": [
|
|
@@ -119,4 +120,4 @@
|
|
|
119
120
|
"disableDocsMs": true,
|
|
120
121
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-redisenterprisecache?view=azure-node-preview"
|
|
121
122
|
}
|
|
122
|
-
}
|
|
123
|
+
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
12
|
|
|
13
13
|
// @public
|
|
14
14
|
export interface AccessKeys {
|
|
@@ -25,9 +25,17 @@ export type ActionType = string;
|
|
|
25
25
|
// @public
|
|
26
26
|
export type AofFrequency = string;
|
|
27
27
|
|
|
28
|
+
// @public
|
|
29
|
+
export interface Capability {
|
|
30
|
+
name?: string;
|
|
31
|
+
value?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
// @public
|
|
29
35
|
export interface Cluster extends TrackedResource {
|
|
36
|
+
encryption?: ClusterPropertiesEncryption;
|
|
30
37
|
readonly hostName?: string;
|
|
38
|
+
identity?: ManagedServiceIdentity;
|
|
31
39
|
minimumTlsVersion?: TlsVersion;
|
|
32
40
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
33
41
|
readonly provisioningState?: ProvisioningState;
|
|
@@ -46,9 +54,28 @@ export interface ClusterList {
|
|
|
46
54
|
value?: Cluster[];
|
|
47
55
|
}
|
|
48
56
|
|
|
57
|
+
// @public
|
|
58
|
+
export interface ClusterPropertiesEncryption {
|
|
59
|
+
customerManagedKeyEncryption?: ClusterPropertiesEncryptionCustomerManagedKeyEncryption;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// @public
|
|
63
|
+
export interface ClusterPropertiesEncryptionCustomerManagedKeyEncryption {
|
|
64
|
+
keyEncryptionKeyIdentity?: ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity;
|
|
65
|
+
keyEncryptionKeyUrl?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// @public
|
|
69
|
+
export interface ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity {
|
|
70
|
+
identityType?: CmkIdentityType;
|
|
71
|
+
userAssignedIdentityResourceId?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
49
74
|
// @public
|
|
50
75
|
export interface ClusterUpdate {
|
|
76
|
+
encryption?: ClusterPropertiesEncryption;
|
|
51
77
|
readonly hostName?: string;
|
|
78
|
+
identity?: ManagedServiceIdentity;
|
|
52
79
|
minimumTlsVersion?: TlsVersion;
|
|
53
80
|
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
54
81
|
readonly provisioningState?: ProvisioningState;
|
|
@@ -60,6 +87,12 @@ export interface ClusterUpdate {
|
|
|
60
87
|
};
|
|
61
88
|
}
|
|
62
89
|
|
|
90
|
+
// @public
|
|
91
|
+
export type CmkIdentityType = string;
|
|
92
|
+
|
|
93
|
+
// @public
|
|
94
|
+
export type CreatedByType = string;
|
|
95
|
+
|
|
63
96
|
// @public
|
|
64
97
|
export interface Database extends ProxyResource {
|
|
65
98
|
clientProtocol?: Protocol;
|
|
@@ -87,19 +120,21 @@ export interface DatabasePropertiesGeoReplication {
|
|
|
87
120
|
|
|
88
121
|
// @public
|
|
89
122
|
export interface Databases {
|
|
90
|
-
beginCreate(resourceGroupName: string, clusterName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<
|
|
123
|
+
beginCreate(resourceGroupName: string, clusterName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<SimplePollerLike<OperationState<DatabasesCreateResponse>, DatabasesCreateResponse>>;
|
|
91
124
|
beginCreateAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<DatabasesCreateResponse>;
|
|
92
|
-
beginDelete(resourceGroupName: string, clusterName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<
|
|
125
|
+
beginDelete(resourceGroupName: string, clusterName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
93
126
|
beginDeleteAndWait(resourceGroupName: string, clusterName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<void>;
|
|
94
|
-
beginExport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ExportClusterParameters, options?: DatabasesExportOptionalParams): Promise<
|
|
127
|
+
beginExport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ExportClusterParameters, options?: DatabasesExportOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
95
128
|
beginExportAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ExportClusterParameters, options?: DatabasesExportOptionalParams): Promise<void>;
|
|
96
|
-
|
|
129
|
+
beginFlush(resourceGroupName: string, clusterName: string, databaseName: string, parameters: FlushParameters, options?: DatabasesFlushOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
130
|
+
beginFlushAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: FlushParameters, options?: DatabasesFlushOptionalParams): Promise<void>;
|
|
131
|
+
beginForceUnlink(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ForceUnlinkParameters, options?: DatabasesForceUnlinkOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
97
132
|
beginForceUnlinkAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ForceUnlinkParameters, options?: DatabasesForceUnlinkOptionalParams): Promise<void>;
|
|
98
|
-
beginImport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ImportClusterParameters, options?: DatabasesImportOptionalParams): Promise<
|
|
133
|
+
beginImport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ImportClusterParameters, options?: DatabasesImportOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
99
134
|
beginImportAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ImportClusterParameters, options?: DatabasesImportOptionalParams): Promise<void>;
|
|
100
|
-
beginRegenerateKey(resourceGroupName: string, clusterName: string, databaseName: string, parameters: RegenerateKeyParameters, options?: DatabasesRegenerateKeyOptionalParams): Promise<
|
|
135
|
+
beginRegenerateKey(resourceGroupName: string, clusterName: string, databaseName: string, parameters: RegenerateKeyParameters, options?: DatabasesRegenerateKeyOptionalParams): Promise<SimplePollerLike<OperationState<DatabasesRegenerateKeyResponse>, DatabasesRegenerateKeyResponse>>;
|
|
101
136
|
beginRegenerateKeyAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: RegenerateKeyParameters, options?: DatabasesRegenerateKeyOptionalParams): Promise<DatabasesRegenerateKeyResponse>;
|
|
102
|
-
beginUpdate(resourceGroupName: string, clusterName: string, databaseName: string, parameters: DatabaseUpdate, options?: DatabasesUpdateOptionalParams): Promise<
|
|
137
|
+
beginUpdate(resourceGroupName: string, clusterName: string, databaseName: string, parameters: DatabaseUpdate, options?: DatabasesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DatabasesUpdateResponse>, DatabasesUpdateResponse>>;
|
|
103
138
|
beginUpdateAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: DatabaseUpdate, options?: DatabasesUpdateOptionalParams): Promise<DatabasesUpdateResponse>;
|
|
104
139
|
get(resourceGroupName: string, clusterName: string, databaseName: string, options?: DatabasesGetOptionalParams): Promise<DatabasesGetResponse>;
|
|
105
140
|
listByCluster(resourceGroupName: string, clusterName: string, options?: DatabasesListByClusterOptionalParams): PagedAsyncIterableIterator<Database>;
|
|
@@ -127,6 +162,18 @@ export interface DatabasesExportOptionalParams extends coreClient.OperationOptio
|
|
|
127
162
|
updateIntervalInMs?: number;
|
|
128
163
|
}
|
|
129
164
|
|
|
165
|
+
// @public
|
|
166
|
+
export interface DatabasesFlushHeaders {
|
|
167
|
+
azureAsyncOperation?: string;
|
|
168
|
+
location?: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// @public
|
|
172
|
+
export interface DatabasesFlushOptionalParams extends coreClient.OperationOptions {
|
|
173
|
+
resumeFrom?: string;
|
|
174
|
+
updateIntervalInMs?: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
130
177
|
// @public
|
|
131
178
|
export interface DatabasesForceUnlinkOptionalParams extends coreClient.OperationOptions {
|
|
132
179
|
resumeFrom?: string;
|
|
@@ -226,6 +273,11 @@ export interface ExportClusterParameters {
|
|
|
226
273
|
sasUri: string;
|
|
227
274
|
}
|
|
228
275
|
|
|
276
|
+
// @public
|
|
277
|
+
export interface FlushParameters {
|
|
278
|
+
ids?: string[];
|
|
279
|
+
}
|
|
280
|
+
|
|
229
281
|
// @public
|
|
230
282
|
export interface ForceUnlinkParameters {
|
|
231
283
|
ids: string[];
|
|
@@ -256,6 +308,20 @@ export enum KnownClusteringPolicy {
|
|
|
256
308
|
OSSCluster = "OSSCluster"
|
|
257
309
|
}
|
|
258
310
|
|
|
311
|
+
// @public
|
|
312
|
+
export enum KnownCmkIdentityType {
|
|
313
|
+
SystemAssignedIdentity = "systemAssignedIdentity",
|
|
314
|
+
UserAssignedIdentity = "userAssignedIdentity"
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// @public
|
|
318
|
+
export enum KnownCreatedByType {
|
|
319
|
+
Application = "Application",
|
|
320
|
+
Key = "Key",
|
|
321
|
+
ManagedIdentity = "ManagedIdentity",
|
|
322
|
+
User = "User"
|
|
323
|
+
}
|
|
324
|
+
|
|
259
325
|
// @public
|
|
260
326
|
export enum KnownEvictionPolicy {
|
|
261
327
|
AllKeysLFU = "AllKeysLFU",
|
|
@@ -277,6 +343,14 @@ export enum KnownLinkState {
|
|
|
277
343
|
Unlinking = "Unlinking"
|
|
278
344
|
}
|
|
279
345
|
|
|
346
|
+
// @public
|
|
347
|
+
export enum KnownManagedServiceIdentityType {
|
|
348
|
+
None = "None",
|
|
349
|
+
SystemAssigned = "SystemAssigned",
|
|
350
|
+
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
|
|
351
|
+
UserAssigned = "UserAssigned"
|
|
352
|
+
}
|
|
353
|
+
|
|
280
354
|
// @public
|
|
281
355
|
export enum KnownOrigin {
|
|
282
356
|
System = "system",
|
|
@@ -365,6 +439,25 @@ export interface LinkedDatabase {
|
|
|
365
439
|
// @public
|
|
366
440
|
export type LinkState = string;
|
|
367
441
|
|
|
442
|
+
// @public
|
|
443
|
+
export interface LocationInfo {
|
|
444
|
+
capabilities?: Capability[];
|
|
445
|
+
location?: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// @public
|
|
449
|
+
export interface ManagedServiceIdentity {
|
|
450
|
+
readonly principalId?: string;
|
|
451
|
+
readonly tenantId?: string;
|
|
452
|
+
type: ManagedServiceIdentityType;
|
|
453
|
+
userAssignedIdentities?: {
|
|
454
|
+
[propertyName: string]: UserAssignedIdentity;
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
// @public
|
|
459
|
+
export type ManagedServiceIdentityType = string;
|
|
460
|
+
|
|
368
461
|
// @public
|
|
369
462
|
export interface Module {
|
|
370
463
|
args?: string;
|
|
@@ -469,7 +562,7 @@ export type PrivateEndpointConnectionProvisioningState = string;
|
|
|
469
562
|
|
|
470
563
|
// @public
|
|
471
564
|
export interface PrivateEndpointConnections {
|
|
472
|
-
beginPut(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<
|
|
565
|
+
beginPut(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsPutResponse>, PrivateEndpointConnectionsPutResponse>>;
|
|
473
566
|
beginPutAndWait(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsPutOptionalParams): Promise<PrivateEndpointConnectionsPutResponse>;
|
|
474
567
|
delete(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
|
|
475
568
|
get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
@@ -552,11 +645,11 @@ export type RdbFrequency = string;
|
|
|
552
645
|
|
|
553
646
|
// @public
|
|
554
647
|
export interface RedisEnterprise {
|
|
555
|
-
beginCreate(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: RedisEnterpriseCreateOptionalParams): Promise<
|
|
648
|
+
beginCreate(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: RedisEnterpriseCreateOptionalParams): Promise<SimplePollerLike<OperationState<RedisEnterpriseCreateResponse>, RedisEnterpriseCreateResponse>>;
|
|
556
649
|
beginCreateAndWait(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: RedisEnterpriseCreateOptionalParams): Promise<RedisEnterpriseCreateResponse>;
|
|
557
|
-
beginDelete(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseDeleteOptionalParams): Promise<
|
|
650
|
+
beginDelete(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
558
651
|
beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseDeleteOptionalParams): Promise<void>;
|
|
559
|
-
beginUpdate(resourceGroupName: string, clusterName: string, parameters: ClusterUpdate, options?: RedisEnterpriseUpdateOptionalParams): Promise<
|
|
652
|
+
beginUpdate(resourceGroupName: string, clusterName: string, parameters: ClusterUpdate, options?: RedisEnterpriseUpdateOptionalParams): Promise<SimplePollerLike<OperationState<RedisEnterpriseUpdateResponse>, RedisEnterpriseUpdateResponse>>;
|
|
560
653
|
beginUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterUpdate, options?: RedisEnterpriseUpdateOptionalParams): Promise<RedisEnterpriseUpdateResponse>;
|
|
561
654
|
get(resourceGroupName: string, clusterName: string, options?: RedisEnterpriseGetOptionalParams): Promise<RedisEnterpriseGetResponse>;
|
|
562
655
|
list(options?: RedisEnterpriseListOptionalParams): PagedAsyncIterableIterator<Cluster>;
|
|
@@ -633,6 +726,8 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
|
633
726
|
// (undocumented)
|
|
634
727
|
redisEnterprise: RedisEnterprise;
|
|
635
728
|
// (undocumented)
|
|
729
|
+
skus: Skus;
|
|
730
|
+
// (undocumented)
|
|
636
731
|
subscriptionId: string;
|
|
637
732
|
}
|
|
638
733
|
|
|
@@ -657,10 +752,23 @@ export interface RegenerateKeyParameters {
|
|
|
657
752
|
keyType: AccessKeyType;
|
|
658
753
|
}
|
|
659
754
|
|
|
755
|
+
// @public
|
|
756
|
+
export interface RegionSkuDetail {
|
|
757
|
+
locationInfo?: LocationInfo;
|
|
758
|
+
resourceType?: string;
|
|
759
|
+
skuDetails?: SkuDetail;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// @public
|
|
763
|
+
export interface RegionSkuDetails {
|
|
764
|
+
value?: RegionSkuDetail[];
|
|
765
|
+
}
|
|
766
|
+
|
|
660
767
|
// @public
|
|
661
768
|
export interface Resource {
|
|
662
769
|
readonly id?: string;
|
|
663
770
|
readonly name?: string;
|
|
771
|
+
readonly systemData?: SystemData;
|
|
664
772
|
readonly type?: string;
|
|
665
773
|
}
|
|
666
774
|
|
|
@@ -673,9 +781,36 @@ export interface Sku {
|
|
|
673
781
|
name: SkuName;
|
|
674
782
|
}
|
|
675
783
|
|
|
784
|
+
// @public
|
|
785
|
+
export interface SkuDetail {
|
|
786
|
+
name?: SkuName;
|
|
787
|
+
}
|
|
788
|
+
|
|
676
789
|
// @public
|
|
677
790
|
export type SkuName = string;
|
|
678
791
|
|
|
792
|
+
// @public
|
|
793
|
+
export interface Skus {
|
|
794
|
+
list(location: string, options?: SkusListOptionalParams): PagedAsyncIterableIterator<RegionSkuDetail>;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
// @public
|
|
798
|
+
export interface SkusListOptionalParams extends coreClient.OperationOptions {
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
// @public
|
|
802
|
+
export type SkusListResponse = RegionSkuDetails;
|
|
803
|
+
|
|
804
|
+
// @public
|
|
805
|
+
export interface SystemData {
|
|
806
|
+
createdAt?: Date;
|
|
807
|
+
createdBy?: string;
|
|
808
|
+
createdByType?: CreatedByType;
|
|
809
|
+
lastModifiedAt?: Date;
|
|
810
|
+
lastModifiedBy?: string;
|
|
811
|
+
lastModifiedByType?: CreatedByType;
|
|
812
|
+
}
|
|
813
|
+
|
|
679
814
|
// @public
|
|
680
815
|
export type TlsVersion = string;
|
|
681
816
|
|
|
@@ -687,6 +822,12 @@ export interface TrackedResource extends Resource {
|
|
|
687
822
|
};
|
|
688
823
|
}
|
|
689
824
|
|
|
825
|
+
// @public
|
|
826
|
+
export interface UserAssignedIdentity {
|
|
827
|
+
readonly clientId?: string;
|
|
828
|
+
readonly principalId?: string;
|
|
829
|
+
}
|
|
830
|
+
|
|
690
831
|
// (No @packageDocumentation comment for this package)
|
|
691
832
|
|
|
692
833
|
```
|
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|