@azure/arm-redisenterprisecache 2.1.1-alpha.20221128.1 → 2.2.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 +12 -10
- package/dist/index.js +245 -49
- 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/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +73 -11
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +61 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -0
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +19 -8
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/operationsStatus.d.ts +2 -2
- package/dist-esm/src/operations/operationsStatus.js +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +8 -4
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.d.ts.map +1 -1
- package/dist-esm/src/operations/redisEnterprise.js +37 -16
- package/dist-esm/src/operations/redisEnterprise.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operationsStatus.d.ts +2 -2
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts +2 -0
- package/dist-esm/src/redisEnterpriseManagementClient.d.ts.map +1 -1
- package/dist-esm/src/redisEnterpriseManagementClient.js +54 -6
- package/dist-esm/src/redisEnterpriseManagementClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +14 -10
- package/review/arm-redisenterprisecache.api.md +26 -83
- package/src/index.ts +1 -0
- package/src/models/index.ts +72 -11
- package/src/models/parameters.ts +6 -0
- package/src/operations/databases.ts +26 -13
- package/src/operations/operations.ts +21 -9
- package/src/operations/operationsStatus.ts +2 -2
- package/src/operations/privateEndpointConnections.ts +15 -5
- package/src/operations/privateLinkResources.ts +11 -9
- package/src/operations/redisEnterprise.ts +46 -19
- package/src/operationsInterfaces/operationsStatus.ts +2 -2
- package/src/pagingHelper.ts +39 -0
- package/src/redisEnterpriseManagementClient.ts +69 -5
- package/types/arm-redisenterprisecache.d.ts +86 -13
- package/types/tsdoc-metadata.json +1 -1
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
8
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
9
11
|
import { OperationsImpl, OperationsStatusImpl, RedisEnterpriseImpl, DatabasesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl } from "./operations";
|
|
10
12
|
export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
11
13
|
/**
|
|
@@ -15,7 +17,7 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
|
15
17
|
* @param options The parameter options
|
|
16
18
|
*/
|
|
17
19
|
constructor(credentials, subscriptionId, options) {
|
|
18
|
-
var _a, _b;
|
|
20
|
+
var _a, _b, _c;
|
|
19
21
|
if (credentials === undefined) {
|
|
20
22
|
throw new Error("'credentials' cannot be null");
|
|
21
23
|
}
|
|
@@ -30,17 +32,35 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
|
30
32
|
requestContentType: "application/json; charset=utf-8",
|
|
31
33
|
credential: credentials
|
|
32
34
|
};
|
|
33
|
-
const packageDetails = `azsdk-js-arm-redisenterprisecache/2.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-redisenterprisecache/2.2.0`;
|
|
34
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
35
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
36
38
|
: `${packageDetails}`;
|
|
37
|
-
if (!options.credentialScopes) {
|
|
38
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
39
|
-
}
|
|
40
39
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
41
40
|
userAgentPrefix
|
|
42
|
-
},
|
|
41
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
43
42
|
super(optionsWithDefaults);
|
|
43
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
48
|
+
}
|
|
49
|
+
if (!options ||
|
|
50
|
+
!options.pipeline ||
|
|
51
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
52
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
53
|
+
this.pipeline.removePolicy({
|
|
54
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
55
|
+
});
|
|
56
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
|
+
credential: credentials,
|
|
58
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
59
|
+
challengeCallbacks: {
|
|
60
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
44
64
|
// Parameter assignments
|
|
45
65
|
this.subscriptionId = subscriptionId;
|
|
46
66
|
// Assigning values to Constant parameters
|
|
@@ -52,6 +72,34 @@ export class RedisEnterpriseManagementClient extends coreClient.ServiceClient {
|
|
|
52
72
|
this.databases = new DatabasesImpl(this);
|
|
53
73
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
54
74
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
75
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
76
|
+
}
|
|
77
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
78
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
79
|
+
if (!apiVersion) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const apiVersionPolicy = {
|
|
83
|
+
name: "CustomApiVersionPolicy",
|
|
84
|
+
sendRequest(request, next) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const param = request.url.split("?");
|
|
87
|
+
if (param.length > 1) {
|
|
88
|
+
const newParams = param[1].split("&").map((item) => {
|
|
89
|
+
if (item.indexOf("api-version") > -1) {
|
|
90
|
+
return "api-version=" + apiVersion;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
return item;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
97
|
+
}
|
|
98
|
+
return next(request);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
55
103
|
}
|
|
56
104
|
}
|
|
57
105
|
//# sourceMappingURL=redisEnterpriseManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redisEnterpriseManagementClient.js","sourceRoot":"","sources":["../../src/redisEnterpriseManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
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,EACzB,MAAM,cAAc,CAAC;AAWtB,MAAM,OAAO,+BAAgC,SAAQ,UAAU,CAAC,aAAa;IAK3E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAuD;;QAEvD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAkD;YAC9D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;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AAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;4BACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE;gCACpC,OAAO,cAAc,GAAG,UAAU,CAAC;6BACpC;iCAAM;gCACL,OAAO,IAAI,CAAC;6BACb;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAQF"}
|
|
@@ -6,24 +6,22 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
-
],
|
|
20
|
-
queryParametersToSkip: []
|
|
9
|
+
import { Recorder } from "@azure-tools/test-recorder";
|
|
10
|
+
const replaceableVariables = {
|
|
11
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
12
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
13
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
14
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
15
|
+
};
|
|
16
|
+
const recorderOptions = {
|
|
17
|
+
envSetupForPlayback: replaceableVariables
|
|
21
18
|
};
|
|
22
19
|
describe("My test", () => {
|
|
23
20
|
let recorder;
|
|
24
21
|
beforeEach(function () {
|
|
25
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
recorder =
|
|
23
|
+
recorder = new Recorder(this.currentTest);
|
|
24
|
+
yield recorder.start(recorderOptions);
|
|
27
25
|
});
|
|
28
26
|
});
|
|
29
27
|
afterEach(function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for RedisEnterpriseManagementClient.",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.2.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@azure/core-lro": "^2.2.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.6.1",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
|
-
"@azure/core-rest-pipeline": "^1.
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
@@ -36,13 +36,18 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~4.
|
|
39
|
+
"typescript": "~4.8.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
42
|
"@azure/identity": "^2.0.1",
|
|
43
|
-
"@azure-tools/test-recorder": "^
|
|
43
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
|
44
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
44
45
|
"mocha": "^7.1.1",
|
|
45
|
-
"
|
|
46
|
+
"@types/chai": "^4.2.8",
|
|
47
|
+
"chai": "^4.2.0",
|
|
48
|
+
"cross-env": "^7.0.2",
|
|
49
|
+
"@types/node": "^14.0.0",
|
|
50
|
+
"@azure/dev-tool": "^1.0.0"
|
|
46
51
|
},
|
|
47
52
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redisenterprise/arm-redisenterprisecache",
|
|
48
53
|
"repository": {
|
|
@@ -93,9 +98,8 @@
|
|
|
93
98
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
99
|
"unit-test:browser": "echo skipped",
|
|
95
100
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
-
"integration-test:node": "
|
|
97
|
-
"integration-test:browser": "echo skipped"
|
|
98
|
-
"docs": "echo skipped"
|
|
101
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
102
|
+
"integration-test:browser": "echo skipped"
|
|
99
103
|
},
|
|
100
104
|
"sideEffects": false,
|
|
101
105
|
"//metadata": {
|
|
@@ -115,4 +119,4 @@
|
|
|
115
119
|
"disableDocsMs": true,
|
|
116
120
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-redisenterprisecache?view=azure-node-preview"
|
|
117
121
|
}
|
|
118
|
-
}
|
|
122
|
+
}
|
|
@@ -26,16 +26,16 @@ export type ActionType = string;
|
|
|
26
26
|
export type AofFrequency = string;
|
|
27
27
|
|
|
28
28
|
// @public
|
|
29
|
-
export
|
|
30
|
-
sku: Sku;
|
|
31
|
-
zones?: string[];
|
|
32
|
-
minimumTlsVersion?: TlsVersion;
|
|
29
|
+
export interface Cluster extends TrackedResource {
|
|
33
30
|
readonly hostName?: string;
|
|
31
|
+
minimumTlsVersion?: TlsVersion;
|
|
32
|
+
readonly privateEndpointConnections?: PrivateEndpointConnection[];
|
|
34
33
|
readonly provisioningState?: ProvisioningState;
|
|
35
|
-
readonly resourceState?: ResourceState;
|
|
36
34
|
readonly redisVersion?: string;
|
|
37
|
-
readonly
|
|
38
|
-
|
|
35
|
+
readonly resourceState?: ResourceState;
|
|
36
|
+
sku: Sku;
|
|
37
|
+
zones?: string[];
|
|
38
|
+
}
|
|
39
39
|
|
|
40
40
|
// @public
|
|
41
41
|
export type ClusteringPolicy = string;
|
|
@@ -61,17 +61,17 @@ export interface ClusterUpdate {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// @public
|
|
64
|
-
export
|
|
64
|
+
export interface Database extends ProxyResource {
|
|
65
65
|
clientProtocol?: Protocol;
|
|
66
|
-
port?: number;
|
|
67
|
-
readonly provisioningState?: ProvisioningState;
|
|
68
|
-
readonly resourceState?: ResourceState;
|
|
69
66
|
clusteringPolicy?: ClusteringPolicy;
|
|
70
67
|
evictionPolicy?: EvictionPolicy;
|
|
71
|
-
persistence?: Persistence;
|
|
72
|
-
modules?: Module[];
|
|
73
68
|
geoReplication?: DatabasePropertiesGeoReplication;
|
|
74
|
-
|
|
69
|
+
modules?: Module[];
|
|
70
|
+
persistence?: Persistence;
|
|
71
|
+
port?: number;
|
|
72
|
+
readonly provisioningState?: ProvisioningState;
|
|
73
|
+
readonly resourceState?: ResourceState;
|
|
74
|
+
}
|
|
75
75
|
|
|
76
76
|
// @public
|
|
77
77
|
export interface DatabaseList {
|
|
@@ -231,6 +231,9 @@ export interface ForceUnlinkParameters {
|
|
|
231
231
|
ids: string[];
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
// @public
|
|
235
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
236
|
+
|
|
234
237
|
// @public
|
|
235
238
|
export interface ImportClusterParameters {
|
|
236
239
|
sasUris: string[];
|
|
@@ -238,179 +241,118 @@ export interface ImportClusterParameters {
|
|
|
238
241
|
|
|
239
242
|
// @public
|
|
240
243
|
export enum KnownActionType {
|
|
241
|
-
// (undocumented)
|
|
242
244
|
Internal = "Internal"
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
// @public
|
|
246
248
|
export enum KnownAofFrequency {
|
|
247
|
-
// (undocumented)
|
|
248
249
|
Always = "always",
|
|
249
|
-
// (undocumented)
|
|
250
250
|
OneS = "1s"
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
// @public
|
|
254
254
|
export enum KnownClusteringPolicy {
|
|
255
|
-
// (undocumented)
|
|
256
255
|
EnterpriseCluster = "EnterpriseCluster",
|
|
257
|
-
// (undocumented)
|
|
258
256
|
OSSCluster = "OSSCluster"
|
|
259
257
|
}
|
|
260
258
|
|
|
261
259
|
// @public
|
|
262
260
|
export enum KnownEvictionPolicy {
|
|
263
|
-
// (undocumented)
|
|
264
261
|
AllKeysLFU = "AllKeysLFU",
|
|
265
|
-
// (undocumented)
|
|
266
262
|
AllKeysLRU = "AllKeysLRU",
|
|
267
|
-
// (undocumented)
|
|
268
263
|
AllKeysRandom = "AllKeysRandom",
|
|
269
|
-
// (undocumented)
|
|
270
264
|
NoEviction = "NoEviction",
|
|
271
|
-
// (undocumented)
|
|
272
265
|
VolatileLFU = "VolatileLFU",
|
|
273
|
-
// (undocumented)
|
|
274
266
|
VolatileLRU = "VolatileLRU",
|
|
275
|
-
// (undocumented)
|
|
276
267
|
VolatileRandom = "VolatileRandom",
|
|
277
|
-
// (undocumented)
|
|
278
268
|
VolatileTTL = "VolatileTTL"
|
|
279
269
|
}
|
|
280
270
|
|
|
281
271
|
// @public
|
|
282
272
|
export enum KnownLinkState {
|
|
283
|
-
// (undocumented)
|
|
284
273
|
Linked = "Linked",
|
|
285
|
-
// (undocumented)
|
|
286
274
|
LinkFailed = "LinkFailed",
|
|
287
|
-
// (undocumented)
|
|
288
275
|
Linking = "Linking",
|
|
289
|
-
// (undocumented)
|
|
290
276
|
UnlinkFailed = "UnlinkFailed",
|
|
291
|
-
// (undocumented)
|
|
292
277
|
Unlinking = "Unlinking"
|
|
293
278
|
}
|
|
294
279
|
|
|
295
280
|
// @public
|
|
296
281
|
export enum KnownOrigin {
|
|
297
|
-
// (undocumented)
|
|
298
282
|
System = "system",
|
|
299
|
-
// (undocumented)
|
|
300
283
|
User = "user",
|
|
301
|
-
// (undocumented)
|
|
302
284
|
UserSystem = "user,system"
|
|
303
285
|
}
|
|
304
286
|
|
|
305
287
|
// @public
|
|
306
288
|
export enum KnownPrivateEndpointConnectionProvisioningState {
|
|
307
|
-
// (undocumented)
|
|
308
289
|
Creating = "Creating",
|
|
309
|
-
// (undocumented)
|
|
310
290
|
Deleting = "Deleting",
|
|
311
|
-
// (undocumented)
|
|
312
291
|
Failed = "Failed",
|
|
313
|
-
// (undocumented)
|
|
314
292
|
Succeeded = "Succeeded"
|
|
315
293
|
}
|
|
316
294
|
|
|
317
295
|
// @public
|
|
318
296
|
export enum KnownPrivateEndpointServiceConnectionStatus {
|
|
319
|
-
// (undocumented)
|
|
320
297
|
Approved = "Approved",
|
|
321
|
-
// (undocumented)
|
|
322
298
|
Pending = "Pending",
|
|
323
|
-
// (undocumented)
|
|
324
299
|
Rejected = "Rejected"
|
|
325
300
|
}
|
|
326
301
|
|
|
327
302
|
// @public
|
|
328
303
|
export enum KnownProtocol {
|
|
329
|
-
// (undocumented)
|
|
330
304
|
Encrypted = "Encrypted",
|
|
331
|
-
// (undocumented)
|
|
332
305
|
Plaintext = "Plaintext"
|
|
333
306
|
}
|
|
334
307
|
|
|
335
308
|
// @public
|
|
336
309
|
export enum KnownProvisioningState {
|
|
337
|
-
// (undocumented)
|
|
338
310
|
Canceled = "Canceled",
|
|
339
|
-
// (undocumented)
|
|
340
311
|
Creating = "Creating",
|
|
341
|
-
// (undocumented)
|
|
342
312
|
Deleting = "Deleting",
|
|
343
|
-
// (undocumented)
|
|
344
313
|
Failed = "Failed",
|
|
345
|
-
// (undocumented)
|
|
346
314
|
Succeeded = "Succeeded",
|
|
347
|
-
// (undocumented)
|
|
348
315
|
Updating = "Updating"
|
|
349
316
|
}
|
|
350
317
|
|
|
351
318
|
// @public
|
|
352
319
|
export enum KnownRdbFrequency {
|
|
353
|
-
// (undocumented)
|
|
354
320
|
OneH = "1h",
|
|
355
|
-
// (undocumented)
|
|
356
321
|
SixH = "6h",
|
|
357
|
-
// (undocumented)
|
|
358
322
|
TwelveH = "12h"
|
|
359
323
|
}
|
|
360
324
|
|
|
361
325
|
// @public
|
|
362
326
|
export enum KnownResourceState {
|
|
363
|
-
// (undocumented)
|
|
364
327
|
CreateFailed = "CreateFailed",
|
|
365
|
-
// (undocumented)
|
|
366
328
|
Creating = "Creating",
|
|
367
|
-
// (undocumented)
|
|
368
329
|
DeleteFailed = "DeleteFailed",
|
|
369
|
-
// (undocumented)
|
|
370
330
|
Deleting = "Deleting",
|
|
371
|
-
// (undocumented)
|
|
372
331
|
Disabled = "Disabled",
|
|
373
|
-
// (undocumented)
|
|
374
332
|
DisableFailed = "DisableFailed",
|
|
375
|
-
// (undocumented)
|
|
376
333
|
Disabling = "Disabling",
|
|
377
|
-
// (undocumented)
|
|
378
334
|
EnableFailed = "EnableFailed",
|
|
379
|
-
// (undocumented)
|
|
380
335
|
Enabling = "Enabling",
|
|
381
|
-
// (undocumented)
|
|
382
336
|
Running = "Running",
|
|
383
|
-
// (undocumented)
|
|
384
337
|
UpdateFailed = "UpdateFailed",
|
|
385
|
-
// (undocumented)
|
|
386
338
|
Updating = "Updating"
|
|
387
339
|
}
|
|
388
340
|
|
|
389
341
|
// @public
|
|
390
342
|
export enum KnownSkuName {
|
|
391
|
-
// (undocumented)
|
|
392
343
|
EnterpriseE10 = "Enterprise_E10",
|
|
393
|
-
// (undocumented)
|
|
394
344
|
EnterpriseE100 = "Enterprise_E100",
|
|
395
|
-
// (undocumented)
|
|
396
345
|
EnterpriseE20 = "Enterprise_E20",
|
|
397
|
-
// (undocumented)
|
|
398
346
|
EnterpriseE50 = "Enterprise_E50",
|
|
399
|
-
// (undocumented)
|
|
400
347
|
EnterpriseFlashF1500 = "EnterpriseFlash_F1500",
|
|
401
|
-
// (undocumented)
|
|
402
348
|
EnterpriseFlashF300 = "EnterpriseFlash_F300",
|
|
403
|
-
// (undocumented)
|
|
404
349
|
EnterpriseFlashF700 = "EnterpriseFlash_F700"
|
|
405
350
|
}
|
|
406
351
|
|
|
407
352
|
// @public
|
|
408
353
|
export enum KnownTlsVersion {
|
|
409
|
-
// (undocumented)
|
|
410
354
|
One0 = "1.0",
|
|
411
|
-
// (undocumented)
|
|
412
355
|
One1 = "1.1",
|
|
413
|
-
// (undocumented)
|
|
414
356
|
One2 = "1.2"
|
|
415
357
|
}
|
|
416
358
|
|
|
@@ -511,11 +453,11 @@ export interface PrivateEndpoint {
|
|
|
511
453
|
}
|
|
512
454
|
|
|
513
455
|
// @public
|
|
514
|
-
export
|
|
456
|
+
export interface PrivateEndpointConnection extends Resource {
|
|
515
457
|
privateEndpoint?: PrivateEndpoint;
|
|
516
458
|
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
|
|
517
459
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
518
|
-
}
|
|
460
|
+
}
|
|
519
461
|
|
|
520
462
|
// @public
|
|
521
463
|
export interface PrivateEndpointConnectionListResult {
|
|
@@ -565,11 +507,11 @@ export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection;
|
|
|
565
507
|
export type PrivateEndpointServiceConnectionStatus = string;
|
|
566
508
|
|
|
567
509
|
// @public
|
|
568
|
-
export
|
|
510
|
+
export interface PrivateLinkResource extends Resource {
|
|
569
511
|
readonly groupId?: string;
|
|
570
512
|
readonly requiredMembers?: string[];
|
|
571
513
|
requiredZoneNames?: string[];
|
|
572
|
-
}
|
|
514
|
+
}
|
|
573
515
|
|
|
574
516
|
// @public
|
|
575
517
|
export interface PrivateLinkResourceListResult {
|
|
@@ -602,7 +544,8 @@ export type Protocol = string;
|
|
|
602
544
|
export type ProvisioningState = string;
|
|
603
545
|
|
|
604
546
|
// @public
|
|
605
|
-
export
|
|
547
|
+
export interface ProxyResource extends Resource {
|
|
548
|
+
}
|
|
606
549
|
|
|
607
550
|
// @public
|
|
608
551
|
export type RdbFrequency = string;
|
|
@@ -737,12 +680,12 @@ export type SkuName = string;
|
|
|
737
680
|
export type TlsVersion = string;
|
|
738
681
|
|
|
739
682
|
// @public
|
|
740
|
-
export
|
|
683
|
+
export interface TrackedResource extends Resource {
|
|
684
|
+
location: string;
|
|
741
685
|
tags?: {
|
|
742
686
|
[propertyName: string]: string;
|
|
743
687
|
};
|
|
744
|
-
|
|
745
|
-
};
|
|
688
|
+
}
|
|
746
689
|
|
|
747
690
|
// (No @packageDocumentation comment for this package)
|
|
748
691
|
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
10
11
|
export * from "./models";
|
|
11
12
|
export { RedisEnterpriseManagementClient } from "./redisEnterpriseManagementClient";
|
|
12
13
|
export * from "./operationsInterfaces";
|