add-migration-guide-for-sierecovery (#24361)

* add-migration-guide-for-sierecovery

* resolve comments and bump version
This commit is contained in:
Qiaoqiao Zhang 2023-01-05 17:08:43 +08:00 коммит произвёл GitHub
Родитель ff8805467b
Коммит 135ec74b2e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,7 +1,13 @@
# Release History
## 5.0.1 (2023-01-05)
**Migration Guide**
- To assist customers migrating from v4.0.0, since v5.0.0 release, we have moved the resourceGroupName and resourceName parameters from the SiteRecoveryManagementClient constructor method to its instance method level, to make it consistent with the client constructors of other service SDKs. For example, in the previous v4.0.0 release, we would create the client like this: `const client = new SiteRecoveryManagementClient(credentials, resourceGroupName, subscriptionId, resourceName);` and call the method like this: `client.replicationJobs.list();`. Now, we need to create the client like this: `const client = new SiteRecoveryManagementClient(credentials, subscriptionId);` and call the method like this: `client.replicationJobs.list(resourceName, resourceGroupName);`.
## 5.0.0 (2022-12-08)
**Features**
- Added operation ReplicationMigrationItems.beginPauseReplication

Просмотреть файл

@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SiteRecoveryManagementClient.",
"version": "5.0.0",
"version": "5.0.1",
"engines": {
"node": ">=14.0.0"
},

Просмотреть файл

@ -108,7 +108,7 @@ export class SiteRecoveryManagementClient extends coreClient.ServiceClient {
credential: credentials
};
const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.0.0`;
const packageDetails = `azsdk-js-arm-recoveryservices-siterecovery/5.0.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`