Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 14 additions & 8 deletions sdk/redis/arm-rediscache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# Release History

## 8.0.0 (2022-09-29)

**Features**

## 7.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Interface RedisLinkedServerCreateParameters has a new optional parameter geoReplicatedPrimaryHostName
- Interface RedisLinkedServerCreateParameters has a new optional parameter primaryHostName
- Interface RedisLinkedServerCreateProperties has a new optional parameter geoReplicatedPrimaryHostName
- Interface RedisLinkedServerCreateProperties has a new optional parameter primaryHostName
- Interface RedisLinkedServerWithProperties has a new optional parameter geoReplicatedPrimaryHostName
- Interface RedisLinkedServerWithProperties has a new optional parameter primaryHostName

### Other Changes
**Breaking Changes**

- Operation PatchSchedules.createOrUpdate has a new signature


## 7.0.0 (2022-09-05)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/redis/arm-rediscache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ REST API for Azure Redis Cache Service.

### Currently supported environments

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

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
Expand Down
8 changes: 4 additions & 4 deletions sdk/redis/arm-rediscache/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "fbe1a37cc8f1e8d2dc31f781fffdbaef4c370fa6",
"commit": "c78626c17427b397a6bb774cb1347455e7c2af78",
"readme": "specification/redis/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1.20220727.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.3",
"use": "@autorest/typescript@6.0.0-rc.1"
}
21 changes: 6 additions & 15 deletions sdk/redis/arm-rediscache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for RedisManagementClient.",
"version": "7.0.1",
"version": "8.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -28,15 +28,15 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-rediscache.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"@microsoft/api-extractor": "7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.6.0",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
Expand All @@ -46,8 +46,7 @@
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-network": "^26.0.0"
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/redis/arm-rediscache",
"repository": {
Expand Down Expand Up @@ -110,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-rediscache?view=azure-node-preview"
}
}
"autoPublish": true
}
8 changes: 7 additions & 1 deletion sdk/redis/arm-rediscache/review/arm-rediscache.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export interface OperationStatusResult {

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

// @public
export interface RedisLinkedServerCreateParameters {
readonly geoReplicatedPrimaryHostName?: string;
linkedRedisCacheId: string;
linkedRedisCacheLocation: string;
readonly primaryHostName?: string;
serverRole: ReplicationRole;
}

// @public
export interface RedisLinkedServerCreateProperties {
readonly geoReplicatedPrimaryHostName?: string;
linkedRedisCacheId: string;
linkedRedisCacheLocation: string;
readonly primaryHostName?: string;
serverRole: ReplicationRole;
}

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

// @public
export interface RedisLinkedServerWithProperties extends ProxyResource {
readonly geoReplicatedPrimaryHostName?: string;
linkedRedisCacheId?: string;
linkedRedisCacheLocation?: string;
readonly primaryHostName?: string;
readonly provisioningState?: string;
serverRole?: ReplicationRole;
}
Expand Down
32 changes: 31 additions & 1 deletion sdk/redis/arm-rediscache/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export interface RedisCommonPropertiesRedisConfiguration {
[property: string]: any;
/** Specifies whether the rdb backup is enabled */
rdbBackupEnabled?: string;
/** Specifies the frequency for creating rdb backup */
/** Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440) */
rdbBackupFrequency?: string;
/** Specifies the maximum number of snapshots for rdb backup */
rdbBackupMaxSnapshotCount?: string;
Expand Down Expand Up @@ -494,6 +494,16 @@ export interface RedisLinkedServerCreateParameters {
linkedRedisCacheLocation: string;
/** Role of the linked server. */
serverRole: ReplicationRole;
/**
* The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly geoReplicatedPrimaryHostName?: string;
/**
* The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly primaryHostName?: string;
}

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

/** List of linked servers (with properties) of a Redis cache. */
Expand Down Expand Up @@ -793,6 +813,16 @@ export interface RedisLinkedServerWithProperties extends ProxyResource {
linkedRedisCacheLocation?: string;
/** Role of the linked server. */
serverRole?: ReplicationRole;
/**
* The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly geoReplicatedPrimaryHostName?: string;
/**
* The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly primaryHostName?: string;
/**
* Terminal state of the link between primary and secondary redis cache.
* NOTE: This property will not be serialized. It can only be populated by the server.
Expand Down
42 changes: 42 additions & 0 deletions sdk/redis/arm-rediscache/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,20 @@ export const RedisLinkedServerCreateParameters: coreClient.CompositeMapper = {
name: "Enum",
allowedValues: ["Primary", "Secondary"]
}
},
geoReplicatedPrimaryHostName: {
serializedName: "properties.geoReplicatedPrimaryHostName",
readOnly: true,
type: {
name: "String"
}
},
primaryHostName: {
serializedName: "properties.primaryHostName",
readOnly: true,
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1228,6 +1242,20 @@ export const RedisLinkedServerCreateProperties: coreClient.CompositeMapper = {
name: "Enum",
allowedValues: ["Primary", "Secondary"]
}
},
geoReplicatedPrimaryHostName: {
serializedName: "geoReplicatedPrimaryHostName",
readOnly: true,
type: {
name: "String"
}
},
primaryHostName: {
serializedName: "primaryHostName",
readOnly: true,
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1971,6 +1999,20 @@ export const RedisLinkedServerWithProperties: coreClient.CompositeMapper = {
allowedValues: ["Primary", "Secondary"]
}
},
geoReplicatedPrimaryHostName: {
serializedName: "properties.geoReplicatedPrimaryHostName",
readOnly: true,
type: {
name: "String"
}
},
primaryHostName: {
serializedName: "properties.primaryHostName",
readOnly: true,
type: {
name: "String"
}
},
provisioningState: {
serializedName: "properties.provisioningState",
readOnly: true,
Expand Down
2 changes: 1 addition & 1 deletion sdk/redis/arm-rediscache/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2022-05-01",
defaultValue: "2022-06-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
4 changes: 2 additions & 2 deletions sdk/redis/arm-rediscache/src/operations/patchSchedules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ export class PatchSchedulesImpl implements PatchSchedules {
* Create or replace the patching schedule for Redis cache.
* @param resourceGroupName The name of the resource group.
* @param name The name of the Redis cache.
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
* @param parameters Parameters to set the patching schedule for Redis cache.
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
name: string,
defaultParam: DefaultName,
parameters: RedisPatchSchedule,
defaultParam: DefaultName,
options?: PatchSchedulesCreateOrUpdateOptionalParams
): Promise<PatchSchedulesCreateOrUpdateResponse> {
return this.client.sendOperationRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ export interface PatchSchedules {
* Create or replace the patching schedule for Redis cache.
* @param resourceGroupName The name of the resource group.
* @param name The name of the Redis cache.
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
* @param parameters Parameters to set the patching schedule for Redis cache.
* @param defaultParam Default string modeled as parameter for auto generation to work correctly.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
name: string,
defaultParam: DefaultName,
parameters: RedisPatchSchedule,
defaultParam: DefaultName,
options?: PatchSchedulesCreateOrUpdateOptionalParams
): Promise<PatchSchedulesCreateOrUpdateResponse>;
/**
Expand Down
Loading