Skip to content

Commit a4efd7b

Browse files
author
SDKAuto
committed
CodeGen from PR 20869 in Azure/azure-rest-api-specs
Merge d75799db51854d9ec0ce692a80c8b31cfceb2009 into 4b5fe2fb0a5066c4ff2bd429dbd5e1afda6afab3
1 parent c2914b4 commit a4efd7b

File tree

14 files changed

+175
-70
lines changed

14 files changed

+175
-70
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/redis/arm-rediscache/CHANGELOG.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
# Release History
2+
3+
## 8.0.0 (2022-09-29)
4+
5+
**Features**
26

3-
## 7.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Interface RedisLinkedServerCreateParameters has a new optional parameter geoReplicatedPrimaryHostName
8+
- Interface RedisLinkedServerCreateParameters has a new optional parameter primaryHostName
9+
- Interface RedisLinkedServerCreateProperties has a new optional parameter geoReplicatedPrimaryHostName
10+
- Interface RedisLinkedServerCreateProperties has a new optional parameter primaryHostName
11+
- Interface RedisLinkedServerWithProperties has a new optional parameter geoReplicatedPrimaryHostName
12+
- Interface RedisLinkedServerWithProperties has a new optional parameter primaryHostName
1013

11-
### Other Changes
14+
**Breaking Changes**
1215

16+
- Operation PatchSchedules.createOrUpdate has a new signature
17+
18+
1319
## 7.0.0 (2022-09-05)
1420

1521
**Features**

sdk/redis/arm-rediscache/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ REST API for Azure Redis Cache Service.
1313

1414
### Currently supported environments
1515

16-
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
16+
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
1717
- Latest versions of Safari, Chrome, Edge and Firefox.
1818

1919
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "fbe1a37cc8f1e8d2dc31f781fffdbaef4c370fa6",
2+
"commit": "c78626c17427b397a6bb774cb1347455e7c2af78",
33
"readme": "specification/redis/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\redis\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/redis/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/typescript@6.0.0-rc.1.20220727.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.3",
7+
"use": "@autorest/typescript@6.0.0-rc.1"
88
}

sdk/redis/arm-rediscache/package.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for RedisManagementClient.",
6-
"version": "7.0.1",
6+
"version": "8.0.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -28,15 +28,15 @@
2828
"module": "./dist-esm/src/index.js",
2929
"types": "./types/arm-rediscache.d.ts",
3030
"devDependencies": {
31-
"@microsoft/api-extractor": "^7.31.1",
31+
"@microsoft/api-extractor": "7.18.11",
3232
"@rollup/plugin-commonjs": "^21.0.1",
3333
"@rollup/plugin-json": "^4.1.0",
3434
"@rollup/plugin-multi-entry": "^4.1.0",
3535
"@rollup/plugin-node-resolve": "^13.1.3",
3636
"mkdirp": "^1.0.4",
3737
"rollup": "^2.66.1",
3838
"rollup-plugin-sourcemaps": "^0.6.3",
39-
"typescript": "~4.6.0",
39+
"typescript": "~4.2.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"@azure/identity": "^2.0.1",
@@ -46,8 +46,7 @@
4646
"@types/chai": "^4.2.8",
4747
"chai": "^4.2.0",
4848
"cross-env": "^7.0.2",
49-
"@azure/dev-tool": "^1.0.0",
50-
"@azure/arm-network": "^26.0.0"
49+
"@azure/dev-tool": "^1.0.0"
5150
},
5251
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redis/arm-rediscache",
5352
"repository": {
@@ -110,13 +109,5 @@
110109
}
111110
]
112111
},
113-
"autoPublish": true,
114-
"//sampleConfiguration": {
115-
"productName": "",
116-
"productSlugs": [
117-
"azure"
118-
],
119-
"disableDocsMs": true,
120-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-rediscache?view=azure-node-preview"
121-
}
122-
}
112+
"autoPublish": true
113+
}

sdk/redis/arm-rediscache/review/arm-rediscache.api.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export interface OperationStatusResult {
322322

323323
// @public
324324
export interface PatchSchedules {
325-
createOrUpdate(resourceGroupName: string, name: string, defaultParam: DefaultName, parameters: RedisPatchSchedule, options?: PatchSchedulesCreateOrUpdateOptionalParams): Promise<PatchSchedulesCreateOrUpdateResponse>;
325+
createOrUpdate(resourceGroupName: string, name: string, parameters: RedisPatchSchedule, defaultParam: DefaultName, options?: PatchSchedulesCreateOrUpdateOptionalParams): Promise<PatchSchedulesCreateOrUpdateResponse>;
326326
delete(resourceGroupName: string, name: string, defaultParam: DefaultName, options?: PatchSchedulesDeleteOptionalParams): Promise<void>;
327327
get(resourceGroupName: string, name: string, defaultParam: DefaultName, options?: PatchSchedulesGetOptionalParams): Promise<PatchSchedulesGetResponse>;
328328
listByRedisResource(resourceGroupName: string, cacheName: string, options?: PatchSchedulesListByRedisResourceOptionalParams): PagedAsyncIterableIterator<RedisPatchSchedule>;
@@ -644,15 +644,19 @@ export interface RedisLinkedServer {
644644

645645
// @public
646646
export interface RedisLinkedServerCreateParameters {
647+
readonly geoReplicatedPrimaryHostName?: string;
647648
linkedRedisCacheId: string;
648649
linkedRedisCacheLocation: string;
650+
readonly primaryHostName?: string;
649651
serverRole: ReplicationRole;
650652
}
651653

652654
// @public
653655
export interface RedisLinkedServerCreateProperties {
656+
readonly geoReplicatedPrimaryHostName?: string;
654657
linkedRedisCacheId: string;
655658
linkedRedisCacheLocation: string;
659+
readonly primaryHostName?: string;
656660
serverRole: ReplicationRole;
657661
}
658662

@@ -663,8 +667,10 @@ export interface RedisLinkedServerProperties extends RedisLinkedServerCreateProp
663667

664668
// @public
665669
export interface RedisLinkedServerWithProperties extends ProxyResource {
670+
readonly geoReplicatedPrimaryHostName?: string;
666671
linkedRedisCacheId?: string;
667672
linkedRedisCacheLocation?: string;
673+
readonly primaryHostName?: string;
668674
readonly provisioningState?: string;
669675
serverRole?: ReplicationRole;
670676
}

sdk/redis/arm-rediscache/src/models/index.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export interface RedisCommonPropertiesRedisConfiguration {
200200
[property: string]: any;
201201
/** Specifies whether the rdb backup is enabled */
202202
rdbBackupEnabled?: string;
203-
/** Specifies the frequency for creating rdb backup */
203+
/** Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440) */
204204
rdbBackupFrequency?: string;
205205
/** Specifies the maximum number of snapshots for rdb backup */
206206
rdbBackupMaxSnapshotCount?: string;
@@ -494,6 +494,16 @@ export interface RedisLinkedServerCreateParameters {
494494
linkedRedisCacheLocation: string;
495495
/** Role of the linked server. */
496496
serverRole: ReplicationRole;
497+
/**
498+
* The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
499+
* NOTE: This property will not be serialized. It can only be populated by the server.
500+
*/
501+
readonly geoReplicatedPrimaryHostName?: string;
502+
/**
503+
* The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
504+
* NOTE: This property will not be serialized. It can only be populated by the server.
505+
*/
506+
readonly primaryHostName?: string;
497507
}
498508

499509
/** Create properties for a linked server */
@@ -504,6 +514,16 @@ export interface RedisLinkedServerCreateProperties {
504514
linkedRedisCacheLocation: string;
505515
/** Role of the linked server. */
506516
serverRole: ReplicationRole;
517+
/**
518+
* The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
519+
* NOTE: This property will not be serialized. It can only be populated by the server.
520+
*/
521+
readonly geoReplicatedPrimaryHostName?: string;
522+
/**
523+
* The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
524+
* NOTE: This property will not be serialized. It can only be populated by the server.
525+
*/
526+
readonly primaryHostName?: string;
507527
}
508528

509529
/** List of linked servers (with properties) of a Redis cache. */
@@ -793,6 +813,16 @@ export interface RedisLinkedServerWithProperties extends ProxyResource {
793813
linkedRedisCacheLocation?: string;
794814
/** Role of the linked server. */
795815
serverRole?: ReplicationRole;
816+
/**
817+
* The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
818+
* NOTE: This property will not be serialized. It can only be populated by the server.
819+
*/
820+
readonly geoReplicatedPrimaryHostName?: string;
821+
/**
822+
* The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
823+
* NOTE: This property will not be serialized. It can only be populated by the server.
824+
*/
825+
readonly primaryHostName?: string;
796826
/**
797827
* Terminal state of the link between primary and secondary redis cache.
798828
* NOTE: This property will not be serialized. It can only be populated by the server.

sdk/redis/arm-rediscache/src/models/mappers.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,20 @@ export const RedisLinkedServerCreateParameters: coreClient.CompositeMapper = {
11971197
name: "Enum",
11981198
allowedValues: ["Primary", "Secondary"]
11991199
}
1200+
},
1201+
geoReplicatedPrimaryHostName: {
1202+
serializedName: "properties.geoReplicatedPrimaryHostName",
1203+
readOnly: true,
1204+
type: {
1205+
name: "String"
1206+
}
1207+
},
1208+
primaryHostName: {
1209+
serializedName: "properties.primaryHostName",
1210+
readOnly: true,
1211+
type: {
1212+
name: "String"
1213+
}
12001214
}
12011215
}
12021216
}
@@ -1228,6 +1242,20 @@ export const RedisLinkedServerCreateProperties: coreClient.CompositeMapper = {
12281242
name: "Enum",
12291243
allowedValues: ["Primary", "Secondary"]
12301244
}
1245+
},
1246+
geoReplicatedPrimaryHostName: {
1247+
serializedName: "geoReplicatedPrimaryHostName",
1248+
readOnly: true,
1249+
type: {
1250+
name: "String"
1251+
}
1252+
},
1253+
primaryHostName: {
1254+
serializedName: "primaryHostName",
1255+
readOnly: true,
1256+
type: {
1257+
name: "String"
1258+
}
12311259
}
12321260
}
12331261
}
@@ -1971,6 +1999,20 @@ export const RedisLinkedServerWithProperties: coreClient.CompositeMapper = {
19711999
allowedValues: ["Primary", "Secondary"]
19722000
}
19732001
},
2002+
geoReplicatedPrimaryHostName: {
2003+
serializedName: "properties.geoReplicatedPrimaryHostName",
2004+
readOnly: true,
2005+
type: {
2006+
name: "String"
2007+
}
2008+
},
2009+
primaryHostName: {
2010+
serializedName: "properties.primaryHostName",
2011+
readOnly: true,
2012+
type: {
2013+
name: "String"
2014+
}
2015+
},
19742016
provisioningState: {
19752017
serializedName: "properties.provisioningState",
19762018
readOnly: true,

sdk/redis/arm-rediscache/src/models/parameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const $host: OperationURLParameter = {
5252
export const apiVersion: OperationQueryParameter = {
5353
parameterPath: "apiVersion",
5454
mapper: {
55-
defaultValue: "2022-05-01",
55+
defaultValue: "2022-06-01",
5656
isConstant: true,
5757
serializedName: "api-version",
5858
type: {

sdk/redis/arm-rediscache/src/operations/patchSchedules.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ export class PatchSchedulesImpl implements PatchSchedules {
131131
* Create or replace the patching schedule for Redis cache.
132132
* @param resourceGroupName The name of the resource group.
133133
* @param name The name of the Redis cache.
134-
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
135134
* @param parameters Parameters to set the patching schedule for Redis cache.
135+
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
136136
* @param options The options parameters.
137137
*/
138138
createOrUpdate(
139139
resourceGroupName: string,
140140
name: string,
141-
defaultParam: DefaultName,
142141
parameters: RedisPatchSchedule,
142+
defaultParam: DefaultName,
143143
options?: PatchSchedulesCreateOrUpdateOptionalParams
144144
): Promise<PatchSchedulesCreateOrUpdateResponse> {
145145
return this.client.sendOperationRequest(

0 commit comments

Comments
 (0)