From 3847a0aab711d4bff8364a62446ac070177d77a4 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 23 Nov 2021 08:48:06 +0000 Subject: [PATCH] CodeGen from PR 16847 in Azure/azure-rest-api-specs Merge 00eb338b0fb5d1e0e07a3e1fff50f1f7137a36d8 into 47b551f58ee1b24f4783c2e927b1673b39d87348 --- sdk/changeanalysis/arm-changeanalysis/README.md | 8 +++----- sdk/changeanalysis/arm-changeanalysis/package.json | 2 +- .../src/azureChangeAnalysisManagementClientContext.ts | 2 +- .../arm-changeanalysis/src/models/parameters.ts | 3 +-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sdk/changeanalysis/arm-changeanalysis/README.md b/sdk/changeanalysis/arm-changeanalysis/README.md index ee3668c3ea89..db7f92954dd1 100644 --- a/sdk/changeanalysis/arm-changeanalysis/README.md +++ b/sdk/changeanalysis/arm-changeanalysis/README.md @@ -1,11 +1,11 @@ ## Azure AzureChangeAnalysisManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureChangeAnalysisManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureChangeAnalysisManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-changeanalysis @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -86,7 +84,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmChangeanalysis.AzureChangeAnalysisManagementClient(creds, subscriptionId); const skipToken = "testskipToken"; diff --git a/sdk/changeanalysis/arm-changeanalysis/package.json b/sdk/changeanalysis/arm-changeanalysis/package.json index 94a66d9eab59..bfc438869fc1 100644 --- a/sdk/changeanalysis/arm-changeanalysis/package.json +++ b/sdk/changeanalysis/arm-changeanalysis/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/changeanalysis/arm-changeanalysis", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/changeanalysis/arm-changeanalysis", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/changeanalysis/arm-changeanalysis/src/azureChangeAnalysisManagementClientContext.ts b/sdk/changeanalysis/arm-changeanalysis/src/azureChangeAnalysisManagementClientContext.ts index 94a9368cd47c..1f8e72d7a131 100644 --- a/sdk/changeanalysis/arm-changeanalysis/src/azureChangeAnalysisManagementClientContext.ts +++ b/sdk/changeanalysis/arm-changeanalysis/src/azureChangeAnalysisManagementClientContext.ts @@ -9,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-changeanalysis"; const packageVersion = "1.1.1"; diff --git a/sdk/changeanalysis/arm-changeanalysis/src/models/parameters.ts b/sdk/changeanalysis/arm-changeanalysis/src/models/parameters.ts index e8eec2569ffd..e921b4bcfd99 100644 --- a/sdk/changeanalysis/arm-changeanalysis/src/models/parameters.ts +++ b/sdk/changeanalysis/arm-changeanalysis/src/models/parameters.ts @@ -60,8 +60,7 @@ export const resourceGroupName: msRest.OperationURLParameter = { serializedName: "resourceGroupName", constraints: { MaxLength: 90, - MinLength: 1, - Pattern: /^[-\w\._\(\)]+$/ + MinLength: 1 }, type: { name: "String"