Skip to content

Commit 1087b80

Browse files
author
SDKAuto
committed
CodeGen from PR 17437 in Azure/azure-rest-api-specs
Merge 82b6dcddec218a9e62d3f646f73e50b437eddcee into 8716084c689b0b5c1061d5d162460cf5779a76a8
1 parent bc742d5 commit 1087b80

File tree

12 files changed

+416
-39
lines changed

12 files changed

+416
-39
lines changed

sdk/redisenterprise/arm-redisenterprisecache/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 2.1.0 (2022-01-21)
4+
5+
**Features**
6+
7+
- Added operation Databases.beginForceUnlink
8+
- Added operation Databases.beginForceUnlinkAndWait
9+
- Added Interface DatabasePropertiesGeoReplication
10+
- Added Interface DatabasesForceUnlinkOptionalParams
11+
- Added Interface ForceUnlinkParameters
12+
- Added Interface LinkedDatabase
13+
- Added Type Alias LinkState
14+
- Interface DatabaseUpdate has a new optional parameter geoReplication
15+
- Type Alias Database has a new parameter geoReplication
16+
- Added Enum KnownLinkState
17+
18+
319
## 2.0.0 (2022-01-20)
420

521
The package of @azure/arm-redisenterprisecache is using our next generation design principles since version 2.0.0, which contains breaking changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
2+
"commit": "35d620995061045bd243a3cfc282706fa6868f9d",
33
"readme": "specification/redisenterprise/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md --use=@autorest/[email protected].20220114.1 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected].20220114.1"
6+
"use": "@autorest/[email protected].20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-redisenterprisecache.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/redisenterprise/arm-redisenterprisecache/package.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for RedisEnterpriseManagementClient.",
6-
"version": "2.0.0",
7-
"engines": { "node": ">=12.0.0" },
6+
"version": "2.1.0",
7+
"engines": {
8+
"node": ">=12.0.0"
9+
},
810
"dependencies": {
911
"@azure/core-lro": "^2.2.0",
1012
"@azure/abort-controller": "^1.0.0",
@@ -14,7 +16,13 @@
1416
"@azure/core-rest-pipeline": "^1.1.0",
1517
"tslib": "^2.2.0"
1618
},
17-
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19+
"keywords": [
20+
"node",
21+
"azure",
22+
"typescript",
23+
"browser",
24+
"isomorphic"
25+
],
1826
"license": "MIT",
1927
"main": "./dist/index.js",
2028
"module": "./dist-esm/src/index.js",
@@ -41,7 +49,9 @@
4149
"type": "git",
4250
"url": "https://github.com/Azure/azure-sdk-for-js.git"
4351
},
44-
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
52+
"bugs": {
53+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
54+
},
4555
"files": [
4656
"dist/**/*.js",
4757
"dist/**/*.js.map",
@@ -88,19 +98,5 @@
8898
"docs": "echo skipped"
8999
},
90100
"sideEffects": false,
91-
"//metadata": {
92-
"constantPaths": [
93-
{
94-
"path": "src/RedisEnterpriseManagementClient.ts",
95-
"prefix": "packageDetails"
96-
}
97-
]
98-
},
99-
"autoPublish": true,
100-
"//sampleConfiguration": {
101-
"productName": "",
102-
"productSlugs": ["azure"],
103-
"disableDocsMs": true,
104-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-redisenterprisecache?view=azure-node-preview"
105-
}
106-
}
101+
"autoPublish": true
102+
}

sdk/redisenterprise/arm-redisenterprisecache/review/arm-redisenterprisecache.api.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export type Database = ProxyResource & {
7070
evictionPolicy?: EvictionPolicy;
7171
persistence?: Persistence;
7272
modules?: Module[];
73+
geoReplication?: DatabasePropertiesGeoReplication;
7374
};
7475

7576
// @public
@@ -78,6 +79,12 @@ export interface DatabaseList {
7879
value?: Database[];
7980
}
8081

82+
// @public
83+
export interface DatabasePropertiesGeoReplication {
84+
groupNickname?: string;
85+
linkedDatabases?: LinkedDatabase[];
86+
}
87+
8188
// @public
8289
export interface Databases {
8390
beginCreate(resourceGroupName: string, clusterName: string, databaseName: string, parameters: Database, options?: DatabasesCreateOptionalParams): Promise<PollerLike<PollOperationState<DatabasesCreateResponse>, DatabasesCreateResponse>>;
@@ -86,6 +93,8 @@ export interface Databases {
8693
beginDeleteAndWait(resourceGroupName: string, clusterName: string, databaseName: string, options?: DatabasesDeleteOptionalParams): Promise<void>;
8794
beginExport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ExportClusterParameters, options?: DatabasesExportOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
8895
beginExportAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ExportClusterParameters, options?: DatabasesExportOptionalParams): Promise<void>;
96+
beginForceUnlink(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ForceUnlinkParameters, options?: DatabasesForceUnlinkOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
97+
beginForceUnlinkAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ForceUnlinkParameters, options?: DatabasesForceUnlinkOptionalParams): Promise<void>;
8998
beginImport(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ImportClusterParameters, options?: DatabasesImportOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
9099
beginImportAndWait(resourceGroupName: string, clusterName: string, databaseName: string, parameters: ImportClusterParameters, options?: DatabasesImportOptionalParams): Promise<void>;
91100
beginRegenerateKey(resourceGroupName: string, clusterName: string, databaseName: string, parameters: RegenerateKeyParameters, options?: DatabasesRegenerateKeyOptionalParams): Promise<PollerLike<PollOperationState<DatabasesRegenerateKeyResponse>, DatabasesRegenerateKeyResponse>>;
@@ -118,6 +127,12 @@ export interface DatabasesExportOptionalParams extends coreClient.OperationOptio
118127
updateIntervalInMs?: number;
119128
}
120129

130+
// @public
131+
export interface DatabasesForceUnlinkOptionalParams extends coreClient.OperationOptions {
132+
resumeFrom?: string;
133+
updateIntervalInMs?: number;
134+
}
135+
121136
// @public
122137
export interface DatabasesGetOptionalParams extends coreClient.OperationOptions {
123138
}
@@ -175,6 +190,7 @@ export interface DatabaseUpdate {
175190
clientProtocol?: Protocol;
176191
clusteringPolicy?: ClusteringPolicy;
177192
evictionPolicy?: EvictionPolicy;
193+
geoReplication?: DatabasePropertiesGeoReplication;
178194
modules?: Module[];
179195
persistence?: Persistence;
180196
port?: number;
@@ -210,6 +226,11 @@ export interface ExportClusterParameters {
210226
sasUri: string;
211227
}
212228

229+
// @public
230+
export interface ForceUnlinkParameters {
231+
ids: string[];
232+
}
233+
213234
// @public
214235
export interface ImportClusterParameters {
215236
sasUris: string[];
@@ -257,6 +278,20 @@ export enum KnownEvictionPolicy {
257278
VolatileTTL = "VolatileTTL"
258279
}
259280

281+
// @public
282+
export enum KnownLinkState {
283+
// (undocumented)
284+
Linked = "Linked",
285+
// (undocumented)
286+
LinkFailed = "LinkFailed",
287+
// (undocumented)
288+
Linking = "Linking",
289+
// (undocumented)
290+
UnlinkFailed = "UnlinkFailed",
291+
// (undocumented)
292+
Unlinking = "Unlinking"
293+
}
294+
260295
// @public
261296
export enum KnownOrigin {
262297
// (undocumented)
@@ -379,6 +414,15 @@ export enum KnownTlsVersion {
379414
One2 = "1.2"
380415
}
381416

417+
// @public
418+
export interface LinkedDatabase {
419+
id?: string;
420+
readonly state?: LinkState;
421+
}
422+
423+
// @public
424+
export type LinkState = string;
425+
382426
// @public
383427
export interface Module {
384428
args?: string;

sdk/redisenterprise/arm-redisenterprisecache/src/models/index.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,25 @@ export interface Module {
265265
readonly version?: string;
266266
}
267267

268+
/** Optional set of properties to configure geo replication for this database. */
269+
export interface DatabasePropertiesGeoReplication {
270+
/** Name for the group of linked database resources */
271+
groupNickname?: string;
272+
/** List of database resources to link with this database */
273+
linkedDatabases?: LinkedDatabase[];
274+
}
275+
276+
/** Specifies details of a linked database resource. */
277+
export interface LinkedDatabase {
278+
/** Resource ID of a database resource to link with this database. */
279+
id?: string;
280+
/**
281+
* State of the link between the database resources.
282+
* NOTE: This property will not be serialized. It can only be populated by the server.
283+
*/
284+
readonly state?: LinkState;
285+
}
286+
268287
/** A partial update to the RedisEnterprise database */
269288
export interface DatabaseUpdate {
270289
/** Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. */
@@ -289,6 +308,8 @@ export interface DatabaseUpdate {
289308
persistence?: Persistence;
290309
/** Optional set of redis modules to enable in this database - modules can only be added at creation time. */
291310
modules?: Module[];
311+
/** Optional set of properties to configure geo replication for this database. */
312+
geoReplication?: DatabasePropertiesGeoReplication;
292313
}
293314

294315
/** The secret access keys used for authenticating connections to redis */
@@ -335,6 +356,12 @@ export interface PrivateLinkResourceListResult {
335356
value?: PrivateLinkResource[];
336357
}
337358

359+
/** Parameters for a Redis Enterprise Active Geo Replication Force Unlink operation. */
360+
export interface ForceUnlinkParameters {
361+
/** The resource IDs of the database resources to be unlinked. */
362+
ids: string[];
363+
}
364+
338365
/** The Private Endpoint Connection resource. */
339366
export type PrivateEndpointConnection = Resource & {
340367
/** The resource of private end point. */
@@ -434,6 +461,8 @@ export type Database = ProxyResource & {
434461
persistence?: Persistence;
435462
/** Optional set of redis modules to enable in this database - modules can only be added at creation time. */
436463
modules?: Module[];
464+
/** Optional set of properties to configure geo replication for this database. */
465+
geoReplication?: DatabasePropertiesGeoReplication;
437466
};
438467

439468
/** Known values of {@link Origin} that the service accepts. */
@@ -703,6 +732,28 @@ export enum KnownRdbFrequency {
703732
* **12h**
704733
*/
705734
export type RdbFrequency = string;
735+
736+
/** Known values of {@link LinkState} that the service accepts. */
737+
export enum KnownLinkState {
738+
Linked = "Linked",
739+
Linking = "Linking",
740+
Unlinking = "Unlinking",
741+
LinkFailed = "LinkFailed",
742+
UnlinkFailed = "UnlinkFailed"
743+
}
744+
745+
/**
746+
* Defines values for LinkState. \
747+
* {@link KnownLinkState} can be used interchangeably with LinkState,
748+
* this enum contains the known values that the service supports.
749+
* ### Known values supported by the service
750+
* **Linked** \
751+
* **Linking** \
752+
* **Unlinking** \
753+
* **LinkFailed** \
754+
* **UnlinkFailed**
755+
*/
756+
export type LinkState = string;
706757
/** Defines values for AccessKeyType. */
707758
export type AccessKeyType = "Primary" | "Secondary";
708759

@@ -879,6 +930,15 @@ export interface DatabasesExportOptionalParams
879930
resumeFrom?: string;
880931
}
881932

933+
/** Optional parameters. */
934+
export interface DatabasesForceUnlinkOptionalParams
935+
extends coreClient.OperationOptions {
936+
/** Delay to wait until next poll, in milliseconds. */
937+
updateIntervalInMs?: number;
938+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
939+
resumeFrom?: string;
940+
}
941+
882942
/** Optional parameters. */
883943
export interface DatabasesListByClusterNextOptionalParams
884944
extends coreClient.OperationOptions {}

0 commit comments

Comments
 (0)