From 3f9ff68148de2dc4c7518c8eadb6b8027468c56f Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 15 Mar 2022 08:34:13 +0000 Subject: [PATCH] CodeGen from PR 18223 in Azure/azure-rest-api-specs update readme (#18223) * update readme * Update readme.python.md --- sdk/support/arm-support/README.md | 2 +- sdk/support/arm-support/_meta.json | 7 ++-- sdk/support/arm-support/api-extractor.json | 25 ++++++++++---- sdk/support/arm-support/package.json | 33 +++++++++---------- .../arm-support/src/microsoftSupport.ts | 2 +- sdk/support/arm-support/tsconfig.json | 19 +++++++---- sdk/support/ci.mgmt.yml | 7 ++-- 7 files changed, 58 insertions(+), 37 deletions(-) diff --git a/sdk/support/arm-support/README.md b/sdk/support/arm-support/README.md index 23a8e52be59f..506fa1478fbd 100644 --- a/sdk/support/arm-support/README.md +++ b/sdk/support/arm-support/README.md @@ -6,7 +6,7 @@ Microsoft Azure Support Resource Provider. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/support/arm-support) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-support) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-support) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-support?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/support/arm-support/_meta.json b/sdk/support/arm-support/_meta.json index cb546fdc7774..894721ec2e06 100644 --- a/sdk/support/arm-support/_meta.json +++ b/sdk/support/arm-support/_meta.json @@ -1,7 +1,8 @@ { - "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb", + "commit": "2ce0ed298266ba87b9c57faec577a621c322d59b", "readme": "specification/support/resource-manager/readme.md", - "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=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/support/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true", + "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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/support/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.1.2", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/support/arm-support/api-extractor.json b/sdk/support/arm-support/api-extractor.json index a53949664cec..ac215e9baf5d 100644 --- a/sdk/support/arm-support/api-extractor.json +++ b/sdk/support/arm-support/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-support.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/support/arm-support/package.json b/sdk/support/arm-support/package.json index 7b9aa837a2fc..367727361464 100644 --- a/sdk/support/arm-support/package.json +++ b/sdk/support/arm-support/package.json @@ -3,8 +3,10 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for MicrosoftSupport.", - "version": "2.0.0", - "engines": { "node": ">=12.0.0" }, + "version": "1.0.0-beta.1", + "engines": { + "node": ">=12.0.0" + }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -14,7 +16,13 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -41,7 +49,9 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -88,16 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { "path": "src/MicrosoftSupport.ts", "prefix": "packageDetails" } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": ["azure"], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-support?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/support/arm-support/src/microsoftSupport.ts b/sdk/support/arm-support/src/microsoftSupport.ts index 5d87d19647cc..c5de2945a58d 100644 --- a/sdk/support/arm-support/src/microsoftSupport.ts +++ b/sdk/support/arm-support/src/microsoftSupport.ts @@ -56,7 +56,7 @@ export class MicrosoftSupport extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-support/2.0.0`; + const packageDetails = `azsdk-js-arm-support/1.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/support/arm-support/tsconfig.json b/sdk/support/arm-support/tsconfig.json index aec155702645..3e6ae96443f3 100644 --- a/sdk/support/arm-support/tsconfig.json +++ b/sdk/support/arm-support/tsconfig.json @@ -9,12 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { "@azure/arm-support": ["./src/index"] } + "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/support/ci.mgmt.yml b/sdk/support/ci.mgmt.yml index 5e057a574328..72e2ae00760f 100644 --- a/sdk/support/ci.mgmt.yml +++ b/sdk/support/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/support/ci.mgmt.yml - sdk/support/arm-support/ + - sdk/support/arm-support pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/support/ci.mgmt.yml - sdk/support/arm-support/ - + - sdk/support/arm-support extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: support Artifacts: - name: azure-arm-support - safeName: azurearmsupport \ No newline at end of file + safeName: azurearmsupport