From be05df12507e97cb200c9ab59ef202ccc2b3467d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 14 Mar 2022 10:50:54 +0000 Subject: [PATCH] CodeGen from PR 18202 in Azure/azure-rest-api-specs Merge 8c15a5acd231e0cf846e58a99673cf46e95c4cf1 into 96da969aa75e2beb27c3dbc2d69a76900856cc52 --- common/config/rush/pnpm-lock.yaml | 14 +++--- sdk/databricks/arm-databricks/CHANGELOG.md | 16 ++----- sdk/databricks/arm-databricks/LICENSE | 2 +- sdk/databricks/arm-databricks/_meta.json | 7 +-- .../arm-databricks/api-extractor.json | 25 +++++++--- sdk/databricks/arm-databricks/package.json | 6 +-- .../src/azureDatabricksManagementClient.ts | 2 +- .../arm-databricks/test/sampleTest.ts | 48 +++++++++++++++++++ sdk/databricks/arm-databricks/tsconfig.json | 16 +++++-- sdk/databricks/ci.mgmt.yml | 7 +-- 10 files changed, 102 insertions(+), 41 deletions(-) create mode 100644 sdk/databricks/arm-databricks/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index ab30db3a98b1..67837f6bf292 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10016,23 +10016,23 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-XqSqvTvkq0eYJg/2pIWqIZd1jAD5wlUJlg55Z4Hozn/wzx/3+ykgfBF3v6Cdzuj8wTnubV8VOU4luoqua0XUUg==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-/OKKKRKs8KZ+Jv3e0Whe3/bv4jk8RF86b+IVopO784BFStJOuVKhjJ+qxrpStiQSA/cAUjna/o0UFj/J+GJK5w==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 21.0.2_rollup@2.70.0 - '@rollup/plugin-json': 4.1.0_rollup@2.70.0 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.0 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.70.0 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.0 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.70.0 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.2 diff --git a/sdk/databricks/arm-databricks/CHANGELOG.md b/sdk/databricks/arm-databricks/CHANGELOG.md index 344fae811b1f..73e804ad67d9 100644 --- a/sdk/databricks/arm-databricks/CHANGELOG.md +++ b/sdk/databricks/arm-databricks/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 3.0.0-beta.3 (2022-03-14) -## 3.0.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 3.0.0-beta.2 (2021-12-17) - -The package of @azure/arm-databricks is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes. +The package of @azure/arm-databricks is using our next generation design principles since version 3.0.0-beta.3, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/databricks/arm-databricks/LICENSE b/sdk/databricks/arm-databricks/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/databricks/arm-databricks/LICENSE +++ b/sdk/databricks/arm-databricks/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/databricks/arm-databricks/_meta.json b/sdk/databricks/arm-databricks/_meta.json index 6e1ab7afc2ac..d5f8663830a5 100644 --- a/sdk/databricks/arm-databricks/_meta.json +++ b/sdk/databricks/arm-databricks/_meta.json @@ -1,7 +1,8 @@ { - "commit": "7086ee861c3a6196bb98f8b327af11d03e545a05", + "commit": "63b914ba1221b0019410788d5a7a8194a1c685ef", "readme": "specification/databricks/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/databricks/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1", + "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/databricks/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.20211207.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.1.1", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/databricks/arm-databricks/api-extractor.json b/sdk/databricks/arm-databricks/api-extractor.json index 1dcda6e7f13a..16f30e4dadf5 100644 --- a/sdk/databricks/arm-databricks/api-extractor.json +++ b/sdk/databricks/arm-databricks/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-databricks.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/databricks/arm-databricks/package.json b/sdk/databricks/arm-databricks/package.json index c6083ab996b3..2a21cd8c44bf 100644 --- a/sdk/databricks/arm-databricks/package.json +++ b/sdk/databricks/arm-databricks/package.json @@ -29,12 +29,12 @@ "types": "./types/arm-databricks.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts index aa8b2b234402..d58efb2fa9e3 100644 --- a/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts +++ b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts @@ -58,7 +58,7 @@ export class AzureDatabricksManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-databricks/3.0.0-beta.3`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/databricks/arm-databricks/test/sampleTest.ts b/sdk/databricks/arm-databricks/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/databricks/arm-databricks/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * 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 { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +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: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/databricks/arm-databricks/tsconfig.json b/sdk/databricks/arm-databricks/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/databricks/arm-databricks/tsconfig.json +++ b/sdk/databricks/arm-databricks/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/databricks/ci.mgmt.yml b/sdk/databricks/ci.mgmt.yml index 29c4d8edbaee..941c76bdfd3d 100644 --- a/sdk/databricks/ci.mgmt.yml +++ b/sdk/databricks/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/databricks/ci.mgmt.yml - sdk/databricks/arm-databricks/ + - sdk/databricks/arm-databricks pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/databricks/ci.mgmt.yml - sdk/databricks/arm-databricks/ - + - sdk/databricks/arm-databricks extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: databricks Artifacts: - name: azure-arm-databricks - safeName: azurearmdatabricks \ No newline at end of file + safeName: azurearmdatabricks