From 2f2ecf86ba2df8bd79472569af8dbf09cd15fe4d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 20 Nov 2020 05:51:20 +0000 Subject: [PATCH 1/2] CodeGen from PR 11739 in Azure/azure-rest-api-specs Changes to avoid Breaking changes for dotnet (#11739) --- sdk/recoveryservices/arm-recoveryservices/README.md | 9 ++++----- .../arm-recoveryservices/rollup.config.js | 4 ++-- .../arm-recoveryservices/src/models/index.ts | 5 +++-- .../arm-recoveryservices/src/models/mappers.ts | 11 +++++++++-- .../src/models/operationsMappers.ts | 4 ++-- .../arm-recoveryservices/src/models/parameters.ts | 5 ++--- .../models/privateLinkResourcesOperationsMappers.ts | 4 ++-- .../src/models/recoveryServicesMappers.ts | 4 ++-- .../src/models/registeredIdentitiesMappers.ts | 4 ++-- .../src/models/replicationUsagesMappers.ts | 4 ++-- .../arm-recoveryservices/src/models/usagesMappers.ts | 4 ++-- .../src/models/vaultCertificatesMappers.ts | 4 ++-- .../src/models/vaultExtendedInfoOperationsMappers.ts | 4 ++-- .../arm-recoveryservices/src/models/vaultsMappers.ts | 4 ++-- .../arm-recoveryservices/src/operations/index.ts | 5 ++--- .../arm-recoveryservices/src/operations/operations.ts | 8 +++++--- .../src/operations/privateLinkResourcesOperations.ts | 8 +++++--- .../src/operations/recoveryServices.ts | 5 ++--- .../src/operations/registeredIdentities.ts | 5 ++--- .../src/operations/replicationUsages.ts | 5 ++--- .../arm-recoveryservices/src/operations/usages.ts | 5 ++--- .../src/operations/vaultCertificates.ts | 5 ++--- .../src/operations/vaultExtendedInfoOperations.ts | 5 ++--- .../arm-recoveryservices/src/operations/vaults.ts | 11 ++++++++--- .../src/recoveryServicesClient.ts | 5 ++--- .../src/recoveryServicesClientContext.ts | 11 +++++------ 26 files changed, 77 insertions(+), 71 deletions(-) diff --git a/sdk/recoveryservices/arm-recoveryservices/README.md b/sdk/recoveryservices/arm-recoveryservices/README.md index cbc67cbebdc9..54336c35cd94 100644 --- a/sdk/recoveryservices/arm-recoveryservices/README.md +++ b/sdk/recoveryservices/arm-recoveryservices/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-recoveryservices ### How to use -#### nodejs - Authentication, client creation and list replicationUsages as an example written in TypeScript. +#### nodejs - client creation and list replicationUsages as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { RecoveryServicesClient, RecoveryServicesModels, RecoveryServicesMappers } from "@azure/arm-recoveryservices"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { RecoveryServicesClient } = require("@azure/arm-recoveryservices"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/recoveryservices/arm-recoveryservices/rollup.config.js b/sdk/recoveryservices/arm-recoveryservices/rollup.config.js index 6470f2be7987..2c2e21965534 100644 --- a/sdk/recoveryservices/arm-recoveryservices/rollup.config.js +++ b/sdk/recoveryservices/arm-recoveryservices/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts index c5df6a1236c9..38ce19130963 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -642,6 +642,7 @@ export interface Vault extends TrackedResource { export interface PatchVault extends PatchTrackedResource { properties?: VaultProperties; sku?: Sku; + identity?: IdentityData; } /** diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts index 03e34ca92701..f3645eb5e803 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -971,6 +971,13 @@ export const PatchVault: msRest.CompositeMapper = { name: "Composite", className: "Sku" } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityData" + } } } } diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/operationsMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/operationsMappers.ts index 2919d50d28e8..cf239cd893a5 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/operationsMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts index cf4b26a483a3..7c4f3dbc4093 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/privateLinkResourcesOperationsMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/privateLinkResourcesOperationsMappers.ts index 28c37bbb928d..8b1a986c0039 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/privateLinkResourcesOperationsMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/privateLinkResourcesOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/recoveryServicesMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/recoveryServicesMappers.ts index 4379c294d5eb..665c4167517e 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/recoveryServicesMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/recoveryServicesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/registeredIdentitiesMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/registeredIdentitiesMappers.ts index 64b4448237fa..3c4862aa38f6 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/registeredIdentitiesMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/registeredIdentitiesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/replicationUsagesMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/replicationUsagesMappers.ts index ab51487a2234..95a8a9471d53 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/replicationUsagesMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/replicationUsagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/usagesMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/usagesMappers.ts index 4576336eeadf..e0afef6fe73b 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/usagesMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/usagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/vaultCertificatesMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/vaultCertificatesMappers.ts index e47a673377bd..038a0ef44654 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/vaultCertificatesMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/vaultCertificatesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/vaultExtendedInfoOperationsMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/vaultExtendedInfoOperationsMappers.ts index 12974cf26473..cbdfd07cd245 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/vaultExtendedInfoOperationsMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/vaultExtendedInfoOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/vaultsMappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/vaultsMappers.ts index cc7683fda040..9daea6407eac 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/vaultsMappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/vaultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/index.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/index.ts index 8a9fced80e6c..ab82acbcb272 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/index.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/operations.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/operations.ts index f0eab571a15d..0db50f1ac5ea 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/operations.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/privateLinkResourcesOperations.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/privateLinkResourcesOperations.ts index d81da3b940c7..9b8d9b1b5f2d 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/privateLinkResourcesOperations.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/privateLinkResourcesOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -192,6 +191,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/recoveryServices.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/recoveryServices.ts index 5bb678c40b94..cbc9903302f0 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/recoveryServices.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/recoveryServices.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/registeredIdentities.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/registeredIdentities.ts index 040c94ffce15..12c2cf42f678 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/registeredIdentities.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/registeredIdentities.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/replicationUsages.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/replicationUsages.ts index 0a2683ba5e13..3f7eb5f69652 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/replicationUsages.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/replicationUsages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/usages.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/usages.ts index 74162ea089e5..de8d87a20545 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/usages.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/usages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultCertificates.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultCertificates.ts index 0fc34688ba83..1bb9ba7726a8 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultCertificates.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultCertificates.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultExtendedInfoOperations.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultExtendedInfoOperations.ts index 6b589975f222..549d7dd54ed6 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultExtendedInfoOperations.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/vaultExtendedInfoOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/operations/vaults.ts b/sdk/recoveryservices/arm-recoveryservices/src/operations/vaults.ts index 0fe7787ec8f5..969d6f0b82fa 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/operations/vaults.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/operations/vaults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -460,6 +459,9 @@ const listBySubscriptionIdNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -481,6 +483,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts index a14c6a9dd2f8..7e1df780c2ed 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts index 078ecd62adcb..a27c943fd763 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -37,7 +36,7 @@ export class RecoveryServicesClientContext extends msRestAzure.AzureServiceClien if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -52,10 +51,10 @@ export class RecoveryServicesClientContext extends msRestAzure.AzureServiceClien this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } From 4cec65ddab54f9982741563cbc281b9781449b43 Mon Sep 17 00:00:00 2001 From: colawwj Date: Fri, 4 Dec 2020 11:13:07 +0800 Subject: [PATCH 2/2] update --- sdk/recoveryservices/arm-recoveryservices/package.json | 2 +- .../arm-recoveryservices/src/recoveryServicesClientContext.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/recoveryservices/arm-recoveryservices/package.json b/sdk/recoveryservices/arm-recoveryservices/package.json index 2c12ee508810..8d646e7d6255 100644 --- a/sdk/recoveryservices/arm-recoveryservices/package.json +++ b/sdk/recoveryservices/arm-recoveryservices/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-recoveryservices", "author": "Microsoft Corporation", "description": "RecoveryServicesClient Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "version": "4.1.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts index a27c943fd763..01afef1bd386 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClientContext.ts @@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-recoveryservices"; -const packageVersion = "4.0.0"; +const packageVersion = "4.1.0"; export class RecoveryServicesClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials;