From 247e9eaffa2b451ef5b65d436ada16a1d900892b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 May 2022 02:01:59 +0000 Subject: [PATCH] CodeGen from PR 19034 in Azure/azure-rest-api-specs Merge 3873c01adf26765e0775255d2d45584e530f5a31 into 9be5d475168131b188f254f5d14b23086512a9d3 --- common/config/rush/pnpm-lock.yaml | 62 +++++----- .../arm-extendedlocation/CHANGELOG.md | 18 +-- .../arm-extendedlocation/LICENSE | 2 +- .../arm-extendedlocation/README.md | 29 +++-- .../arm-extendedlocation/_meta.json | 7 +- .../arm-extendedlocation/api-extractor.json | 25 +++- .../arm-extendedlocation/package.json | 42 ++++--- .../review/arm-extendedlocation.api.md | 12 +- .../arm-extendedlocation/rollup.config.js | 78 +------------ .../src/customLocationsManagementClient.ts | 108 +++++++++++++++++- .../customLocationsManagementClientContext.ts | 70 ------------ .../arm-extendedlocation/src/index.ts | 1 - .../arm-extendedlocation/src/models/index.ts | 38 +++--- .../src/models/mappers.ts | 60 +++++----- .../src/operations/customLocations.ts | 14 ++- .../arm-extendedlocation/test/sampleTest.ts | 39 +++---- .../arm-extendedlocation/tsconfig.json | 16 ++- sdk/extendedlocation/ci.mgmt.yml | 7 +- 18 files changed, 313 insertions(+), 315 deletions(-) delete mode 100644 sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClientContext.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index aee8905b6cd9..498886905ce3 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -919,7 +919,7 @@ packages: resolution: {integrity: sha512-Q71Buur3RMcg6lCnisLL8Im562DBw+ybzgm+YQj/FbAaI8ZNu/zl/5z1fE4k3Q9LSIzYrz6HLRzlhdSBXpydlQ==} engines: {node: '>=8.0.0'} dependencies: - '@azure/core-http': 1.2.3 + '@azure/core-http': 1.2.6 '@azure/core-tracing': 1.0.0-preview.9 '@azure/logger': 1.0.3 '@azure/msal-node': 1.0.0-beta.6_debug@4.3.4 @@ -2198,7 +2198,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/chai-as-promised/7.1.5: @@ -2224,7 +2224,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/cookie/0.4.1: @@ -2259,7 +2259,7 @@ packages: /@types/express-serve-static-core/4.17.28: resolution: {integrity: sha512-P1BJAEAW3E2DJUlkgq4tOL3RyMunoWXqbSCygWo5ZIWTjUgN1YnaXWW4VWl/oc8vs/XoYibEGBKP0uZyF4AHig==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 dev: false @@ -2276,26 +2276,26 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/glob/7.2.0: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 3.0.5 - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/json-schema/7.0.11: @@ -2309,13 +2309,13 @@ packages: /@types/jsonwebtoken/8.5.8: resolution: {integrity: sha512-zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/jws/3.2.4: resolution: {integrity: sha512-aqtH4dPw1wUjFZaeMD1ak/pf8iXlu/odFe+trJrvw0g1sTh93i+SCykg0Ek8C6B7rVK3oBORbfZAsKO7P10etg==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/long/4.0.2: @@ -2358,13 +2358,13 @@ packages: /@types/mock-fs/4.13.1: resolution: {integrity: sha512-m6nFAJ3lBSnqbvDZioawRvpLXSaPyn52Srf7OfzjubYbYX8MTUdIgDxQl0wEapm4m/pNYSd9TXocpQ0TvZFlYA==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/mock-require/2.0.1: resolution: {integrity: sha512-O7U5DVGboY/Crueb5/huUCIRjKtRVRaLmRDbZJBlDQgJn966z3aiFDN+6AtYviu2ExwMkl34LjT/IiC0OPtKuQ==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/ms/0.7.31: @@ -2378,7 +2378,7 @@ packages: /@types/node-fetch/2.6.1: resolution: {integrity: sha512-oMqjURCaxoSIsHSr1E47QHzbmzNR5rK8McHuNb11BOM9cHcIK3Avy0s/b2JlXHoQGTYS3NsvWzV1M0iK7l0wbA==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 form-data: 3.0.1 dev: false @@ -2432,7 +2432,7 @@ packages: resolution: {integrity: sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==} dependencies: '@types/mime': 1.3.2 - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/sinon/10.0.11: @@ -2454,7 +2454,7 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/tough-cookie/4.0.2: @@ -2464,13 +2464,13 @@ packages: /@types/tunnel/0.0.1: resolution: {integrity: sha512-AOqu6bQu5MSWwYvehMXLukFHnupHrpZ8nvgae5Ggie9UwzDR1CCwoXgSSWNZJuyOlCdfdsWMA5F2LlmvyoTv8A==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/underscore/1.11.4: @@ -2488,26 +2488,26 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/ws/8.5.3: resolution: {integrity: sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false /@types/yauzl/2.10.0: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 12.20.52 + '@types/node': 17.0.35 dev: false optional: true @@ -3516,7 +3516,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -3757,7 +3757,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.12 - '@types/node': 12.20.52 + '@types/node': 17.0.35 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4688,7 +4688,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -5518,6 +5518,7 @@ packages: /jsrsasign/10.5.21: resolution: {integrity: sha512-o1gFFV/R/1IYeAscqfLWJlUymx+x9dLF8Pq+R89/C6o8Fkq+BN2Qts4fDmOPSR9+xxdhKJcSHZoxUl5zA+240Q==} + deprecated: serious bug package dev: false /jssha/3.2.0: @@ -8486,7 +8487,7 @@ packages: /wide-align/1.1.5: resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} dependencies: - string-width: 1.0.2 + string-width: 4.2.3 dev: false /word-wrap/1.2.3: @@ -10818,7 +10819,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-puUWerSRmNcu/F7EgdcegW8lGJkLmX697LpBUmXEWnEUSAfWhcyxX3LruypXvMEmyngV+i80TYZitSgoghof5A==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-LILOK7N8duKc1d+Kl4MmFprvmoUjBff94Dz2aovZ7onCKmdhTtFo84Ob095Nwm/CvEIpSl1uyDDSaNS7xSDeIA==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -10828,19 +10829,20 @@ packages: '@microsoft/api-extractor': 7.18.11 '@rollup/plugin-commonjs': 21.1.0_rollup@2.74.1 '@rollup/plugin-json': 4.1.0_rollup@2.74.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.74.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.74.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.74.1 + '@rollup/plugin-node-resolve': 13.3.0_rollup@2.74.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 + rimraf: 3.0.2 rollup: 2.74.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.74.1 + rollup-plugin-sourcemaps: 0.6.3_rollup@2.74.1 tslib: 2.4.0 typescript: 4.2.4 uglify-js: 3.15.5 transitivePeerDependencies: + - '@types/node' - debug - - encoding - supports-color dev: false diff --git a/sdk/extendedlocation/arm-extendedlocation/CHANGELOG.md b/sdk/extendedlocation/arm-extendedlocation/CHANGELOG.md index 5c48ad8e64aa..b6ce9f011baf 100644 --- a/sdk/extendedlocation/arm-extendedlocation/CHANGELOG.md +++ b/sdk/extendedlocation/arm-extendedlocation/CHANGELOG.md @@ -1,15 +1,5 @@ -## Release History +# Release History + +## 1.0.0 (2022-05-24) -### 1.0.0-beta.2 (Unreleased) - -#### Features Added - -#### Breaking Changes - -#### Bugs Fixed - -#### Other Changes - -### 1.0.0-beta.1 (2021-10-08) - - - Initial Release +The package of @azure/arm-extendedlocation is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/extendedlocation/arm-extendedlocation/LICENSE b/sdk/extendedlocation/arm-extendedlocation/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/extendedlocation/arm-extendedlocation/LICENSE +++ b/sdk/extendedlocation/arm-extendedlocation/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/extendedlocation/arm-extendedlocation/README.md b/sdk/extendedlocation/arm-extendedlocation/README.md index d456bf3db43b..d0230a99cb5a 100644 --- a/sdk/extendedlocation/arm-extendedlocation/README.md +++ b/sdk/extendedlocation/arm-extendedlocation/README.md @@ -1,6 +1,6 @@ -# Azure customLocationsManagement client library for JavaScript +# Azure CustomLocationsManagement client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure customLocationsManagement client. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure CustomLocationsManagement client. The customLocations Rest API spec. @@ -16,13 +16,15 @@ The customLocations Rest API spec. - [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. + ### Prerequisites - An [Azure subscription][azure_sub]. ### Install the `@azure/arm-extendedlocation` package -Install the Azure customLocationsManagement client library for JavaScript with `npm`: +Install the Azure CustomLocationsManagement client library for JavaScript with `npm`: ```bash npm install @azure/arm-extendedlocation @@ -30,8 +32,8 @@ npm install @azure/arm-extendedlocation ### Create and authenticate a `CustomLocationsManagementClient` -To create a client object to access the Azure customLocationsManagement API, you will need the `endpoint` of your Azure customLocationsManagement resource and a `credential`. The Azure customLocationsManagement client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure customLocationsManagement resource in the [Azure Portal][azure_portal]. +To create a client object to access the Azure CustomLocationsManagement API, you will need the `endpoint` of your Azure CustomLocationsManagement resource and a `credential`. The Azure CustomLocationsManagement client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure CustomLocationsManagement resource in the [Azure Portal][azure_portal]. You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). @@ -41,7 +43,7 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below npm install @azure/identity ``` -You will also need to **register a new AAD application and grant access to Azure customLocationsManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +You will also need to **register a new AAD application and grant access to Azure CustomLocationsManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -49,15 +51,28 @@ For more information about how to create an Azure AD Application check out [this ```javascript const { CustomLocationsManagementClient } = require("@azure/arm-extendedlocation"); const { DefaultAzureCredential } = require("@azure/identity"); +// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. + const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new CustomLocationsManagementClient(new DefaultAzureCredential(), subscriptionId); + +// For client-side applications running in the browser, use this code instead: +// const credential = new InteractiveBrowserCredential({ +// tenantId: "", +// clientId: "" +// }); +// const client = new CustomLocationsManagementClient(credential, subscriptionId); ``` + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + ## Key concepts ### CustomLocationsManagementClient -`CustomLocationsManagementClient` is the primary interface for developers using the Azure customLocationsManagement client library. Explore the methods on this client object to understand the different features of the Azure customLocationsManagement service that you can access. +`CustomLocationsManagementClient` is the primary interface for developers using the Azure CustomLocationsManagement client library. Explore the methods on this client object to understand the different features of the Azure CustomLocationsManagement service that you can access. ## Troubleshooting diff --git a/sdk/extendedlocation/arm-extendedlocation/_meta.json b/sdk/extendedlocation/arm-extendedlocation/_meta.json index 02b0295fadcf..a8ec649c345d 100644 --- a/sdk/extendedlocation/arm-extendedlocation/_meta.json +++ b/sdk/extendedlocation/arm-extendedlocation/_meta.json @@ -1,7 +1,8 @@ { - "commit": "5cf3e4a0c30ad5167088ac839453578b2e8e9afc", + "commit": "e828ba9cd8094372594101ffdabc2ac728b6ce61", "readme": "specification/extendedlocation/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/extendedlocation/resource-manager/readme.md --use=@autorest/typescript@6.0.0-beta.13", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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/extendedlocation/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220425.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-beta.13" + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "use": "@autorest/typescript@6.0.0-alpha.19.20220425.1" } \ No newline at end of file diff --git a/sdk/extendedlocation/arm-extendedlocation/api-extractor.json b/sdk/extendedlocation/arm-extendedlocation/api-extractor.json index 8cc49dab445d..b8c5959ce3b5 100644 --- a/sdk/extendedlocation/arm-extendedlocation/api-extractor.json +++ b/sdk/extendedlocation/arm-extendedlocation/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-extendedlocation.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/extendedlocation/arm-extendedlocation/package.json b/sdk/extendedlocation/arm-extendedlocation/package.json index fe60b068f313..16918ef7e7ed 100644 --- a/sdk/extendedlocation/arm-extendedlocation/package.json +++ b/sdk/extendedlocation/arm-extendedlocation/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for CustomLocationsManagementClient.", - "version": "1.0.0-beta.2", + "version": "1.0.0", "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", - "@azure/core-paging": "^1.1.1", - "@azure/core-client": "^1.0.0", + "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.5.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" }, "keywords": [ @@ -30,18 +30,21 @@ "devDependencies": { "@microsoft/api-extractor": "7.18.11", "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-json": "^4.0.0", - "@rollup/plugin-multi-entry": "^3.0.0", - "@rollup/plugin-node-resolve": "^8.0.0", + "@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.0.0", - "rollup-plugin-sourcemaps": "^0.4.2", + "rollup": "^2.66.1", + "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~4.2.0", "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/extendedlocation/arm-extendedlocation", "repository": { @@ -70,14 +73,14 @@ "types/*" ], "scripts": { - "build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -86,17 +89,24 @@ "execute:samples": "echo skipped", "format": "echo skipped", "test": "npm run integration-test", - "prebuild": "echo skipped", "test:node": "echo skipped", "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", "integration-test:browser": "echo skipped", "docs": "echo skipped" }, "sideEffects": false, + "//metadata": { + "constantPaths": [ + { + "path": "src/customLocationsManagementClient.ts", + "prefix": "packageDetails" + } + ] + }, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/extendedlocation/arm-extendedlocation/review/arm-extendedlocation.api.md b/sdk/extendedlocation/arm-extendedlocation/review/arm-extendedlocation.api.md index 6cb1f216dbe1..0e31232f1f7c 100644 --- a/sdk/extendedlocation/arm-extendedlocation/review/arm-extendedlocation.api.md +++ b/sdk/extendedlocation/arm-extendedlocation/review/arm-extendedlocation.api.md @@ -148,20 +148,15 @@ export interface CustomLocationsListOperationsOptionalParams extends coreClient. export type CustomLocationsListOperationsResponse = CustomLocationOperationsList; // @public (undocumented) -export class CustomLocationsManagementClient extends CustomLocationsManagementClientContext { - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams); - // (undocumented) - customLocations: CustomLocations; -} - -// @public (undocumented) -export class CustomLocationsManagementClientContext extends coreClient.ServiceClient { +export class CustomLocationsManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) + customLocations: CustomLocations; + // (undocumented) subscriptionId: string; } @@ -313,7 +308,6 @@ export type TrackedResource = Resource & { location: string; }; - // (No @packageDocumentation comment for this package) ``` diff --git a/sdk/extendedlocation/arm-extendedlocation/rollup.config.js b/sdk/extendedlocation/arm-extendedlocation/rollup.config.js index 9be1955eb7f1..3f89d7309da5 100644 --- a/sdk/extendedlocation/arm-extendedlocation/rollup.config.js +++ b/sdk/extendedlocation/arm-extendedlocation/rollup.config.js @@ -14,62 +14,14 @@ import json from "@rollup/plugin-json"; import nodeBuiltins from "builtin-modules"; -/** - * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. - * - * NOTE: this manual configuration is only needed because OpenTelemetry uses an - * __exportStar downleveled helper function to declare its exports which confuses - * rollup's automatic discovery mechanism. - * - * @returns an object reference that can be `...`'d into your cjs() configuration. - */ -export function openTelemetryCommonJs() { - const namedExports = {}; - - for (const key of [ - "@opentelemetry/api", - "@azure/core-tracing/node_modules/@opentelemetry/api" - ]) { - namedExports[key] = [ - "SpanKind", - "TraceFlags", - "getSpan", - "setSpan", - "SpanStatusCode", - "getSpanContext", - "setSpanContext" - ]; - } - - const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; - - for (const version of releasedOpenTelemetryVersions) { - namedExports[ - // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. - `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` - ] = [ - "SpanKind", - "TraceFlags", - "getSpan", - "setSpan", - "StatusCode", - "CanonicalCode", - "getSpanContext", - "setSpanContext" - ]; - } - - return namedExports; -} - // #region Warning Handler /** - * A function that can determine whether a rollupwarning should be ignored. If + * A function that can determine whether a rollup warning should be ignored. If * the function returns `true`, then the warning will not be displayed. */ -function ignoreNiseSinonEvalWarnings(warning) { +function ignoreNiseSinonEval(warning) { return ( warning.code === "EVAL" && warning.id && @@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) { ); } -function ignoreChaiCircularDependencyWarnings(warning) { +function ignoreChaiCircularDependency(warning) { return ( warning.code === "CIRCULAR_DEPENDENCY" && warning.importer && warning.importer.includes("node_modules/chai") === true ); } -const warningInhibitors = [ - ignoreChaiCircularDependencyWarnings, - ignoreNiseSinonEvalWarnings -]; +const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; /** * Construct a warning handler for the shared rollup configuration @@ -122,22 +71,7 @@ function makeBrowserTestConfig() { nodeResolve({ mainFields: ["module", "browser"] }), - cjs({ - namedExports: { - // Chai's strange internal architecture makes it impossible to statically - // analyze its exports. - chai: [ - "version", - "use", - "util", - "config", - "expect", - "should", - "assert" - ], - ...openTelemetryCommonJs() - } - }), + cjs(), json(), sourcemaps() //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) @@ -173,7 +107,7 @@ export function makeConfig(pkg, options) { ], output: { file: "dist/index.js", format: "cjs", sourcemap: true }, preserveSymlinks: false, - plugins: [sourcemaps(), nodeResolve(), cjs()] + plugins: [sourcemaps(), nodeResolve()] }; const config = [baseConfig]; diff --git a/sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClient.ts b/sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClient.ts index 1a9cc4dbbec9..04dab2e419ca 100644 --- a/sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClient.ts +++ b/sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClient.ts @@ -6,13 +6,23 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import * as coreClient from "@azure/core-client"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { CustomLocationsImpl } from "./operations"; import { CustomLocations } from "./operationsInterfaces"; -import { CustomLocationsManagementClientContext } from "./customLocationsManagementClientContext"; import { CustomLocationsManagementClientOptionalParams } from "./models"; -export class CustomLocationsManagementClient extends CustomLocationsManagementClientContext { +export class CustomLocationsManagementClient extends coreClient.ServiceClient { + $host: string; + apiVersion: string; + subscriptionId: string; + /** * Initializes a new instance of the CustomLocationsManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. @@ -24,8 +34,100 @@ export class CustomLocationsManagementClient extends CustomLocationsManagementCl subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams ) { - super(credentials, subscriptionId, options); + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: CustomLocationsManagementClientOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + + const packageDetails = `azsdk-js-arm-extendedlocation/1.0.0`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: + options.endpoint ?? options.baseUri ?? "https://management.azure.com" + }; + super(optionsWithDefaults); + + if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + (pipelinePolicy) => + pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName + ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } + } + // Parameter assignments + this.subscriptionId = subscriptionId; + + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2021-08-15"; this.customLocations = new CustomLocationsImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return item.replace(/(?<==).*$/, apiVersion); + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } customLocations: CustomLocations; diff --git a/sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClientContext.ts b/sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClientContext.ts deleted file mode 100644 index a3bc19cc2289..000000000000 --- a/sdk/extendedlocation/arm-extendedlocation/src/customLocationsManagementClientContext.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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. - */ - -import * as coreClient from "@azure/core-client"; -import * as coreAuth from "@azure/core-auth"; -import { CustomLocationsManagementClientOptionalParams } from "./models"; - -export class CustomLocationsManagementClientContext extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - - /** - * Initializes a new instance of the CustomLocationsManagementClientContext class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: CustomLocationsManagementClientOptionalParams - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: CustomLocationsManagementClientOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials - }; - - const packageDetails = `azsdk-js-arm-extendedlocation/1.0.0-beta.1`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - if (!options.credentialScopes) { - options.credentialScopes = ["https://management.azure.com/.default"]; - } - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix - }, - baseUri: options.endpoint || "https://management.azure.com" - }; - super(optionsWithDefaults); - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-08-15"; - } -} diff --git a/sdk/extendedlocation/arm-extendedlocation/src/index.ts b/sdk/extendedlocation/arm-extendedlocation/src/index.ts index 91e3a313133c..7e494646f202 100644 --- a/sdk/extendedlocation/arm-extendedlocation/src/index.ts +++ b/sdk/extendedlocation/arm-extendedlocation/src/index.ts @@ -9,5 +9,4 @@ /// export * from "./models"; export { CustomLocationsManagementClient } from "./customLocationsManagementClient"; -export { CustomLocationsManagementClientContext } from "./customLocationsManagementClientContext"; export * from "./operationsInterfaces"; diff --git a/sdk/extendedlocation/arm-extendedlocation/src/models/index.ts b/sdk/extendedlocation/arm-extendedlocation/src/models/index.ts index 83de0a370d8f..88b92b7ef882 100644 --- a/sdk/extendedlocation/arm-extendedlocation/src/models/index.ts +++ b/sdk/extendedlocation/arm-extendedlocation/src/models/index.ts @@ -118,25 +118,6 @@ export interface CustomLocationListResult { readonly value?: CustomLocation[]; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; -} - /** Identity for the resource. */ export interface Identity { /** @@ -177,6 +158,25 @@ export interface SystemData { lastModifiedAt?: Date; } +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + /** The Custom Locations patchable resource definition. */ export interface PatchableCustomLocations { /** Identity for the resource. */ diff --git a/sdk/extendedlocation/arm-extendedlocation/src/models/mappers.ts b/sdk/extendedlocation/arm-extendedlocation/src/models/mappers.ts index 032c9879f617..568b207d6d25 100644 --- a/sdk/extendedlocation/arm-extendedlocation/src/models/mappers.ts +++ b/sdk/extendedlocation/arm-extendedlocation/src/models/mappers.ts @@ -219,36 +219,6 @@ export const CustomLocationListResult: coreClient.CompositeMapper = { } }; -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -344,6 +314,36 @@ export const SystemData: coreClient.CompositeMapper = { } }; +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const PatchableCustomLocations: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/extendedlocation/arm-extendedlocation/src/operations/customLocations.ts b/sdk/extendedlocation/arm-extendedlocation/src/operations/customLocations.ts index e25a2f1fed07..8ab614d67b9f 100644 --- a/sdk/extendedlocation/arm-extendedlocation/src/operations/customLocations.ts +++ b/sdk/extendedlocation/arm-extendedlocation/src/operations/customLocations.ts @@ -11,7 +11,7 @@ import { CustomLocations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { CustomLocationsManagementClientContext } from "../customLocationsManagementClientContext"; +import { CustomLocationsManagementClient } from "../customLocationsManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -46,13 +46,13 @@ import { /// /** Class containing CustomLocations operations. */ export class CustomLocationsImpl implements CustomLocations { - private readonly client: CustomLocationsManagementClientContext; + private readonly client: CustomLocationsManagementClient; /** * Initialize a new instance of the class CustomLocations class. * @param client Reference to the service client */ - constructor(client: CustomLocationsManagementClientContext) { + constructor(client: CustomLocationsManagementClient) { this.client = client; } @@ -388,11 +388,13 @@ export class CustomLocationsImpl implements CustomLocations { { resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec ); - return new LroEngine(lro, { + const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "azure-async-operation" }); + await poller.poll(); + return poller; } /** @@ -472,11 +474,13 @@ export class CustomLocationsImpl implements CustomLocations { { resourceGroupName, resourceName, options }, deleteOperationSpec ); - return new LroEngine(lro, { + const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "azure-async-operation" }); + await poller.poll(); + return poller; } /** diff --git a/sdk/extendedlocation/arm-extendedlocation/test/sampleTest.ts b/sdk/extendedlocation/arm-extendedlocation/test/sampleTest.ts index 7ed89b043e1b..25aeb3ebcc36 100644 --- a/sdk/extendedlocation/arm-extendedlocation/test/sampleTest.ts +++ b/sdk/extendedlocation/arm-extendedlocation/test/sampleTest.ts @@ -7,35 +7,30 @@ */ import { - env, - record, - RecorderEnvironmentSetup, - Recorder + Recorder, + RecorderStartOptions, + env } from "@azure-tools/test-recorder"; -import * as assert from "assert"; +import { assert } from "chai"; +import { Context } from "mocha"; -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); }); afterEach(async function() { diff --git a/sdk/extendedlocation/arm-extendedlocation/tsconfig.json b/sdk/extendedlocation/arm-extendedlocation/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/extendedlocation/arm-extendedlocation/tsconfig.json +++ b/sdk/extendedlocation/arm-extendedlocation/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/extendedlocation/ci.mgmt.yml b/sdk/extendedlocation/ci.mgmt.yml index f5563d261002..2f33c3274f59 100644 --- a/sdk/extendedlocation/ci.mgmt.yml +++ b/sdk/extendedlocation/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -10,6 +10,7 @@ trigger: include: - sdk/extendedlocation/ci.mgmt.yml - sdk/extendedlocation/arm-extendedlocation/ + - sdk/extendedlocation/arm-extendedlocation pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/extendedlocation/ci.mgmt.yml - sdk/extendedlocation/arm-extendedlocation/ - + - sdk/extendedlocation/arm-extendedlocation extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: extendedlocation Artifacts: - name: azure-arm-extendedlocation - safeName: azurearmextendedlocation \ No newline at end of file + safeName: azurearmextendedlocation