diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e18a1b292f5b..d98ecb2ea36f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -267,19 +267,19 @@ importers: version: file:projects/arm-datacatalog.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-datadog': specifier: file:./projects/arm-datadog.tgz - version: file:projects/arm-datadog.tgz + version: file:projects/arm-datadog.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-datafactory': specifier: file:./projects/arm-datafactory.tgz - version: file:projects/arm-datafactory.tgz + version: file:projects/arm-datafactory.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-datalake-analytics': specifier: file:./projects/arm-datalake-analytics.tgz - version: file:projects/arm-datalake-analytics.tgz + version: file:projects/arm-datalake-analytics.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-datamigration': specifier: file:./projects/arm-datamigration.tgz - version: file:projects/arm-datamigration.tgz + version: file:projects/arm-datamigration.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-dataprotection': specifier: file:./projects/arm-dataprotection.tgz - version: file:projects/arm-dataprotection.tgz + version: file:projects/arm-dataprotection.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-defendereasm': specifier: file:./projects/arm-defendereasm.tgz version: file:projects/arm-defendereasm.tgz @@ -2677,7 +2677,7 @@ packages: version: 0.0.0 '@rush-temp/arm-changes@file:projects/arm-changes.tgz': - resolution: {integrity: sha512-4CKEY1ZNr54+AmbrsSti1aeZKbD28k/gzm8hOTuvd6E0QwFI6bQUDgi9A7eCkunylj0iscah/17FpPxYLYUwuA==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-nLiXbh0eBfBazoWR3AWVC1Y0pFC4Bh492MGNAb9GldRpa0yOmVzjoSdDAvV9iZJQ+nh/WtXrnoAXhLSrEcLhoQ==, tarball: file:projects/arm-changes.tgz} version: 0.0.0 '@rush-temp/arm-chaos@file:projects/arm-chaos.tgz': @@ -2685,7 +2685,7 @@ packages: version: 0.0.0 '@rush-temp/arm-cognitiveservices@file:projects/arm-cognitiveservices.tgz': - resolution: {integrity: sha512-wVX7iLW0gh5t+5NhpQHLrmqd40QkPnBXDg6S95bcMR6oVyxH7AZjY7kSMVt0giY1HascsZvXMGRUoW+ReQRlCg==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-/yN4NCbj4d5G+FzH6mFK+rf5lpAyD+9xoxF41lWs4POWBr08H1vFZtla1V0lttZ4bSkG5pvYxyvayfw/EYtJLA==, tarball: file:projects/arm-cognitiveservices.tgz} version: 0.0.0 '@rush-temp/arm-commerce-profile-2020-09-01-hybrid@file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz': @@ -2813,23 +2813,23 @@ packages: version: 0.0.0 '@rush-temp/arm-datadog@file:projects/arm-datadog.tgz': - resolution: {integrity: sha512-UFYwBhhTm+f5u1evJf1GPaz5AhRcn9Juj1zt81VR0Z9sVmUr/l7fF89Lh+Qkt6GRg5syv8CZYaSSc1zo6Kndmw==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-z1gO7WqrUFqiOAHUp97OO4h24nSM8PUwAeKCzljMq61LyoOBSPy1RND4xVK2z76LTyXLGMw6ekzdlcv16CkP5A==, tarball: file:projects/arm-datadog.tgz} version: 0.0.0 '@rush-temp/arm-datafactory@file:projects/arm-datafactory.tgz': - resolution: {integrity: sha512-ih/+XoljaydHhxKI2AWkLQlx6fN9bknlzn3OLNppMosFZmH0g20fvzN7uUhbo8jIEHe7HTyfu6NSX+eg7OmeTQ==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-Ljnciv4+ESxjA+6lZr6NXHJc1xPJV+hw0WPYTz0Fd3dCL7Mh7UhwBnHzFrIdwIngTIIMhsu6jxmAKY/9ekec8A==, tarball: file:projects/arm-datafactory.tgz} version: 0.0.0 '@rush-temp/arm-datalake-analytics@file:projects/arm-datalake-analytics.tgz': - resolution: {integrity: sha512-Pf3sD+mtZsYhp2A8zFa7gII5UZPc/5vvj6fxe/WfBmLcqYyObhW3W4+ubBO5KN6rvxwlKXOtDDx12t+CoRCKIQ==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-EYK13CiGqVN2ImnimZy83Ai5FstWnXGyiszqR9ZrGcguOZq2fKLhBvRQzLHsViIcP+kPWzCkX6xk1sr0+apvCQ==, tarball: file:projects/arm-datalake-analytics.tgz} version: 0.0.0 '@rush-temp/arm-datamigration@file:projects/arm-datamigration.tgz': - resolution: {integrity: sha512-a+kXVuOHrzNMoPvyZDVDpwectbh8gW9CzzeeB1212yh6BiO+mSdXSxD4QMuygXxmNIxSHhgzb8MwG3r1qVToAQ==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-z0yM/0IZnIIwT7AOhrOX4RuAU4hkr3/rThD6pDHgyWkBt2bNpJq8Ukw5ADv/oqaP4POsl5u52Es9mdoGj+itAw==, tarball: file:projects/arm-datamigration.tgz} version: 0.0.0 '@rush-temp/arm-dataprotection@file:projects/arm-dataprotection.tgz': - resolution: {integrity: sha512-N2GOJeRGNBqeYF8jICoy9Iqt2x2pEE6bFIyom9EDT8v1s1XaYoqymLoKwjYMllGky+3ZGTVxKctDSxqlpDUZJQ==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-2mdPItuuJOpSwb7doJ2+HcQNpVabyJ6Bn7SMdn4vAEOAw+9uB1ZXSiNhUKHH8MJ4UZK6tXMZBbtGpBeGYW94Yg==, tarball: file:projects/arm-dataprotection.tgz} version: 0.0.0 '@rush-temp/arm-defendereasm@file:projects/arm-defendereasm.tgz': @@ -11427,7 +11427,6 @@ snapshots: dotenv: 16.4.7 playwright: 1.49.1 tslib: 2.8.1 - tsx: 4.19.2 typescript: 5.7.3 vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3)) transitivePeerDependencies: @@ -12415,104 +12414,164 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-datadog@file:projects/arm-datadog.tgz': + '@rush-temp/arm-datadog@file:projects/arm-datadog.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.70 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.3)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) + '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) dotenv: 16.4.7 - mocha: 11.1.0 - ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.3) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.3 + vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3)) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - utf-8-validate + - vite + - webdriverio - '@rush-temp/arm-datafactory@file:projects/arm-datafactory.tgz': + '@rush-temp/arm-datafactory@file:projects/arm-datafactory.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.70 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.3)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) + '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) dotenv: 16.4.7 - mocha: 10.8.2 - ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.3) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.3 + vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3)) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - utf-8-validate + - vite + - webdriverio - '@rush-temp/arm-datalake-analytics@file:projects/arm-datalake-analytics.tgz': + '@rush-temp/arm-datalake-analytics@file:projects/arm-datalake-analytics.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.70 - chai: 4.5.0 - mocha: 11.1.0 - ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.3) + '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.3)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) + '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.3 + vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3)) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - utf-8-validate + - vite + - webdriverio - '@rush-temp/arm-datamigration@file:projects/arm-datamigration.tgz': + '@rush-temp/arm-datamigration@file:projects/arm-datamigration.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.70 - chai: 4.5.0 - mocha: 11.1.0 - ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.3) + '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.3)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) + '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.3 + vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3)) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - utf-8-validate + - vite + - webdriverio - '@rush-temp/arm-dataprotection@file:projects/arm-dataprotection.tgz': + '@rush-temp/arm-dataprotection@file:projects/arm-dataprotection.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.70 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.3)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) + '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) dotenv: 16.4.7 - mocha: 11.1.0 - ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.3) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.3 + vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3)) transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' + - '@edge-runtime/vm' + - '@vitest/ui' + - bufferutil + - happy-dom + - jsdom + - less + - lightningcss + - msw + - safaridriver + - sass + - sass-embedded + - stylus + - sugarss - supports-color + - terser + - utf-8-validate + - vite + - webdriverio '@rush-temp/arm-defendereasm@file:projects/arm-defendereasm.tgz': dependencies: diff --git a/sdk/datadog/arm-datadog/api-extractor.json b/sdk/datadog/arm-datadog/api-extractor.json index 5efc2e6ee162..08feb264ce66 100644 --- a/sdk/datadog/arm-datadog/api-extractor.json +++ b/sdk/datadog/arm-datadog/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-datadog.d.ts" + "publicTrimmedFilePath": "dist/arm-datadog.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/datadog/arm-datadog/package.json b/sdk/datadog/arm-datadog/package.json index 30a4c0b718c0..35b17cca1e63 100644 --- a/sdk/datadog/arm-datadog/package.json +++ b/sdk/datadog/arm-datadog/package.json @@ -24,22 +24,22 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-datadog.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", "dotenv": "^16.0.0", - "mocha": "^11.0.2", - "ts-node": "^10.0.0", - "typescript": "~5.7.2" + "playwright": "^1.49.1", + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "repository": { "type": "git", @@ -49,24 +49,14 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", "build:node": "echo skipped", "build:samples": "echo skipped.", @@ -78,7 +68,7 @@ "format": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", @@ -88,7 +78,7 @@ "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -109,5 +99,45 @@ ], "disableDocsMs": true, "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-datadog?view=azure-node-preview" + }, + "type": "module", + "tshy": { + "project": "./tsconfig.src.json", + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/datadog/arm-datadog/samples-dev/creationSupportedGetSample.ts b/sdk/datadog/arm-datadog/samples-dev/creationSupportedGetSample.ts index 78b1b766be6a..f8a8d717fb76 100644 --- a/sdk/datadog/arm-datadog/samples-dev/creationSupportedGetSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/creationSupportedGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Informs if the current subscription is being already monitored for selected Datadog organization. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Informs if the current subscription is being already monitored for selected Datadog organization. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/CreationSupported_Get.json */ -async function creationSupportedGet() { +async function creationSupportedGet(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -31,7 +29,7 @@ async function creationSupportedGet() { console.log(result); } -async function main() { +async function main(): Promise { creationSupportedGet(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/creationSupportedListSample.ts b/sdk/datadog/arm-datadog/samples-dev/creationSupportedListSample.ts index c65412870cb1..71d85b841cac 100644 --- a/sdk/datadog/arm-datadog/samples-dev/creationSupportedListSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/creationSupportedListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Informs if the current subscription is being already monitored for selected Datadog organization. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Informs if the current subscription is being already monitored for selected Datadog organization. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/CreationSupported_List.json */ -async function creationSupportedList() { +async function creationSupportedList(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -34,7 +32,7 @@ async function creationSupportedList() { console.log(resArray); } -async function main() { +async function main(): Promise { creationSupportedList(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsCreateOrUpdateSample.ts b/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsCreateOrUpdateSample.ts index a3bb380dd861..4c2dbdced149 100644 --- a/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsCreateOrUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create Datadog marketplace agreement in the subscription. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Create Datadog marketplace agreement in the subscription. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MarketplaceAgreements_Create.json */ -async function marketplaceAgreementsCreateOrUpdate() { +async function marketplaceAgreementsCreateOrUpdate(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function marketplaceAgreementsCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { marketplaceAgreementsCreateOrUpdate(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsListSample.ts b/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsListSample.ts index 144e1884d834..2cfaea8fa48c 100644 --- a/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsListSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/marketplaceAgreementsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Datadog marketplace agreements in the subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List Datadog marketplace agreements in the subscription. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MarketplaceAgreements_List.json */ -async function marketplaceAgreementsList() { +async function marketplaceAgreementsList(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function marketplaceAgreementsList() { console.log(resArray); } -async function main() { +async function main(): Promise { marketplaceAgreementsList(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsCreateorUpdateSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsCreateorUpdateSample.ts index 9431d3c4d159..2685c9d6362d 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsCreateorUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsCreateorUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Add the subscriptions that should be monitored by the Datadog monitor resource. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Add the subscriptions that should be monitored by the Datadog monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MonitoredSubscriptions_CreateorUpdate.json */ -async function monitorsAddMonitoredSubscriptions() { +async function monitorsAddMonitoredSubscriptions(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -85,7 +83,7 @@ async function monitorsAddMonitoredSubscriptions() { console.log(result); } -async function main() { +async function main(): Promise { monitorsAddMonitoredSubscriptions(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsDeleteSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsDeleteSample.ts index 7b1d7a68737f..ed90a6f0b330 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsDeleteSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates the subscriptions that are being monitored by the Datadog monitor resource @@ -20,7 +18,7 @@ dotenv.config(); * @summary Updates the subscriptions that are being monitored by the Datadog monitor resource * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MonitoredSubscriptions_Delete.json */ -async function monitorsDeleteMonitoredSubscriptions() { +async function monitorsDeleteMonitoredSubscriptions(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function monitorsDeleteMonitoredSubscriptions() { console.log(result); } -async function main() { +async function main(): Promise { monitorsDeleteMonitoredSubscriptions(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsGetSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsGetSample.ts index c416a991f2b7..3ed45f2c5c5f 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsGetSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the subscriptions currently being monitored by the Datadog monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the subscriptions currently being monitored by the Datadog monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MonitoredSubscriptions_Get.json */ -async function monitorsGetMonitoredSubscriptions() { +async function monitorsGetMonitoredSubscriptions(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function monitorsGetMonitoredSubscriptions() { console.log(result); } -async function main() { +async function main(): Promise { monitorsGetMonitoredSubscriptions(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsListSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsListSample.ts index 2e44ec85ca71..6a1599b0c91d 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsListSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the subscriptions currently being monitored by the Datadog monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the subscriptions currently being monitored by the Datadog monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MonitoredSubscriptions_List.json */ -async function monitorsGetMonitoredSubscriptions() { +async function monitorsGetMonitoredSubscriptions(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function monitorsGetMonitoredSubscriptions() { console.log(resArray); } -async function main() { +async function main(): Promise { monitorsGetMonitoredSubscriptions(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsUpdateSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsUpdateSample.ts index 3980f38c55c1..8aba4f080255 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitoredSubscriptionsUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates the subscriptions that are being monitored by the Datadog monitor resource @@ -24,7 +22,7 @@ dotenv.config(); * @summary Updates the subscriptions that are being monitored by the Datadog monitor resource * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MonitoredSubscriptions_Update.json */ -async function monitorsUpdateMonitoredSubscriptions() { +async function monitorsUpdateMonitoredSubscriptions(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -85,7 +83,7 @@ async function monitorsUpdateMonitoredSubscriptions() { console.log(result); } -async function main() { +async function main(): Promise { monitorsUpdateMonitoredSubscriptions(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsCreateSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsCreateSample.ts index 3d42e71eec1c..61a1544f068c 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsCreateSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsCreateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a monitor resource. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Create a monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Monitors_Create.json */ -async function monitorsCreate() { +async function monitorsCreate(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -64,7 +62,7 @@ async function monitorsCreate() { console.log(result); } -async function main() { +async function main(): Promise { monitorsCreate(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsDeleteSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsDeleteSample.ts index 145ebdd43436..3132dc990340 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsDeleteSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Monitors_Delete.json */ -async function monitorsDelete() { +async function monitorsDelete(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function monitorsDelete() { console.log(result); } -async function main() { +async function main(): Promise { monitorsDelete(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsGetDefaultKeySample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsGetDefaultKeySample.ts index cd9da7a3e9c2..cc186f08568c 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsGetDefaultKeySample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsGetDefaultKeySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the default api key. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the default api key. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/ApiKeys_GetDefaultKey.json */ -async function monitorsGetDefaultKey() { +async function monitorsGetDefaultKey(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function monitorsGetDefaultKey() { console.log(result); } -async function main() { +async function main(): Promise { monitorsGetDefaultKey(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsGetSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsGetSample.ts index f1f82b946a99..a402fa8b3e01 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsGetSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the properties of a specific monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the properties of a specific monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Monitors_Get.json */ -async function monitorsGet() { +async function monitorsGet(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function monitorsGet() { console.log(result); } -async function main() { +async function main(): Promise { monitorsGet(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsListApiKeysSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsListApiKeysSample.ts index ffd0c25ee5fb..439ad5e606c2 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsListApiKeysSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsListApiKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the api keys for a given monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the api keys for a given monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/ApiKeys_List.json */ -async function monitorsListApiKeys() { +async function monitorsListApiKeys(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function monitorsListApiKeys() { console.log(resArray); } -async function main() { +async function main(): Promise { monitorsListApiKeys(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsListByResourceGroupSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsListByResourceGroupSample.ts index 15f8fda16d11..a38b479fa26c 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsListByResourceGroupSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all monitors under the specified resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all monitors under the specified resource group. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Monitors_ListByResourceGroup.json */ -async function monitorsListByResourceGroup() { +async function monitorsListByResourceGroup(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +35,7 @@ async function monitorsListByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { monitorsListByResourceGroup(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsListHostsSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsListHostsSample.ts index b1a1b71d3e58..3457a552bed3 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsListHostsSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsListHostsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the hosts for a given monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the hosts for a given monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Hosts_List.json */ -async function monitorsListHosts() { +async function monitorsListHosts(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function monitorsListHosts() { console.log(resArray); } -async function main() { +async function main(): Promise { monitorsListHosts(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsListLinkedResourcesSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsListLinkedResourcesSample.ts index ffaeb2e370ed..23d090970487 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsListLinkedResourcesSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsListLinkedResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all Azure resources associated to the same Datadog organization as the target resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all Azure resources associated to the same Datadog organization as the target resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/LinkedResources_List.json */ -async function monitorsListLinkedResources() { +async function monitorsListLinkedResources(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function monitorsListLinkedResources() { console.log(resArray); } -async function main() { +async function main(): Promise { monitorsListLinkedResources(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsListMonitoredResourcesSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsListMonitoredResourcesSample.ts index 5278e91756b8..4e3074b3267f 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsListMonitoredResourcesSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsListMonitoredResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the resources currently being monitored by the Datadog monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the resources currently being monitored by the Datadog monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/MonitoredResources_List.json */ -async function monitorsListMonitoredResources() { +async function monitorsListMonitoredResources(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function monitorsListMonitoredResources() { console.log(resArray); } -async function main() { +async function main(): Promise { monitorsListMonitoredResources(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsListSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsListSample.ts index 3f916e2ee4d9..6a2c241866b0 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsListSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all monitors under the specified subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all monitors under the specified subscription. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Monitors_List.json */ -async function monitorsList() { +async function monitorsList(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function monitorsList() { console.log(resArray); } -async function main() { +async function main(): Promise { monitorsList(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsRefreshSetPasswordLinkSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsRefreshSetPasswordLinkSample.ts index 5860703d76fc..7cd5a8e01e97 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsRefreshSetPasswordLinkSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsRefreshSetPasswordLinkSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Refresh the set password link and return a latest one. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Refresh the set password link and return a latest one. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/RefreshSetPassword_Get.json */ -async function monitorsRefreshSetPasswordLink() { +async function monitorsRefreshSetPasswordLink(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function monitorsRefreshSetPasswordLink() { console.log(result); } -async function main() { +async function main(): Promise { monitorsRefreshSetPasswordLink(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsSetDefaultKeySample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsSetDefaultKeySample.ts index f343c1e0c792..74b0eaa51b9e 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsSetDefaultKeySample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsSetDefaultKeySample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Set the default api key. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Set the default api key. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/ApiKeys_SetDefaultKey.json */ -async function monitorsSetDefaultKey() { +async function monitorsSetDefaultKey(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -43,7 +41,7 @@ async function monitorsSetDefaultKey() { console.log(result); } -async function main() { +async function main(): Promise { monitorsSetDefaultKey(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/monitorsUpdateSample.ts b/sdk/datadog/arm-datadog/samples-dev/monitorsUpdateSample.ts index f6e1c3220ea4..60e9d0740f7e 100644 --- a/sdk/datadog/arm-datadog/samples-dev/monitorsUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/monitorsUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a monitor resource. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Update a monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Monitors_Update.json */ -async function monitorsUpdate() { +async function monitorsUpdate(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -46,7 +44,7 @@ async function monitorsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { monitorsUpdate(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/operationsListSample.ts b/sdk/datadog/arm-datadog/samples-dev/operationsListSample.ts index 13a32ed21065..302948c40c23 100644 --- a/sdk/datadog/arm-datadog/samples-dev/operationsListSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all operations provided by Microsoft.Datadog for the 2023-01-01 api version. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all operations provided by Microsoft.Datadog for the 2023-01-01 api version. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/Operations_List.json */ -async function operationsList() { +async function operationsList(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function operationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { operationsList(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.ts b/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.ts index 6656a62654cb..a99b0efd57d7 100644 --- a/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Configures single-sign-on for this resource. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Configures single-sign-on for this resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/SingleSignOnConfigurations_CreateOrUpdate.json */ -async function singleSignOnConfigurationsCreateOrUpdate() { +async function singleSignOnConfigurationsCreateOrUpdate(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -52,7 +50,7 @@ async function singleSignOnConfigurationsCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { singleSignOnConfigurationsCreateOrUpdate(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsGetSample.ts b/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsGetSample.ts index ace10eeaa2bb..d1e74c39494a 100644 --- a/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsGetSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the datadog single sign-on resource for the given Monitor. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the datadog single sign-on resource for the given Monitor. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/SingleSignOnConfigurations_Get.json */ -async function singleSignOnConfigurationsGet() { +async function singleSignOnConfigurationsGet(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function singleSignOnConfigurationsGet() { console.log(result); } -async function main() { +async function main(): Promise { singleSignOnConfigurationsGet(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsListSample.ts b/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsListSample.ts index f07bdf214a84..f58299472167 100644 --- a/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsListSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/singleSignOnConfigurationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the single sign-on configurations for a given monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the single sign-on configurations for a given monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/SingleSignOnConfigurations_List.json */ -async function singleSignOnConfigurationsList() { +async function singleSignOnConfigurationsList(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function singleSignOnConfigurationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { singleSignOnConfigurationsList(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/tagRulesCreateOrUpdateSample.ts b/sdk/datadog/arm-datadog/samples-dev/tagRulesCreateOrUpdateSample.ts index c457c6a11f78..eab1337203d5 100644 --- a/sdk/datadog/arm-datadog/samples-dev/tagRulesCreateOrUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/tagRulesCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a tag rule set for a given monitor resource. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Create or update a tag rule set for a given monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/TagRules_CreateOrUpdate.json */ -async function tagRulesCreateOrUpdate() { +async function tagRulesCreateOrUpdate(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -59,7 +57,7 @@ async function tagRulesCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { tagRulesCreateOrUpdate(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/tagRulesGetSample.ts b/sdk/datadog/arm-datadog/samples-dev/tagRulesGetSample.ts index 7a5fcb73ac14..73c1c0be4182 100644 --- a/sdk/datadog/arm-datadog/samples-dev/tagRulesGetSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/tagRulesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a tag rule set for a given monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get a tag rule set for a given monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/TagRules_Get.json */ -async function tagRulesGet() { +async function tagRulesGet(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function tagRulesGet() { console.log(result); } -async function main() { +async function main(): Promise { tagRulesGet(); } diff --git a/sdk/datadog/arm-datadog/samples-dev/tagRulesListSample.ts b/sdk/datadog/arm-datadog/samples-dev/tagRulesListSample.ts index 052bc4077e24..4579493630f2 100644 --- a/sdk/datadog/arm-datadog/samples-dev/tagRulesListSample.ts +++ b/sdk/datadog/arm-datadog/samples-dev/tagRulesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the tag rules for a given monitor resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the tag rules for a given monitor resource. * x-ms-original-file: specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-01-01/examples/TagRules_List.json */ -async function tagRulesList() { +async function tagRulesList(): Promise { const subscriptionId = process.env["DATADOG_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function tagRulesList() { console.log(resArray); } -async function main() { +async function main(): Promise { tagRulesList(); } diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedGetSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedGetSample.ts index 78b1b766be6a..b480fb6bb549 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedGetSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Informs if the current subscription is being already monitored for selected Datadog organization. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedListSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedListSample.ts index c65412870cb1..165603d46875 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedListSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/creationSupportedListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Informs if the current subscription is being already monitored for selected Datadog organization. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsCreateOrUpdateSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsCreateOrUpdateSample.ts index a3bb380dd861..70eb5cfe06f1 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsCreateOrUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create Datadog marketplace agreement in the subscription. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsListSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsListSample.ts index 144e1884d834..5eba49b32a0c 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsListSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/marketplaceAgreementsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List Datadog marketplace agreements in the subscription. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsCreateorUpdateSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsCreateorUpdateSample.ts index 9431d3c4d159..14f1dc3727e8 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsCreateorUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsCreateorUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Add the subscriptions that should be monitored by the Datadog monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsDeleteSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsDeleteSample.ts index 7b1d7a68737f..3cc8e86c7271 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsDeleteSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates the subscriptions that are being monitored by the Datadog monitor resource diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsGetSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsGetSample.ts index c416a991f2b7..27efcfd40ec5 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsGetSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the subscriptions currently being monitored by the Datadog monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsListSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsListSample.ts index 2e44ec85ca71..b865d6754373 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsListSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the subscriptions currently being monitored by the Datadog monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsUpdateSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsUpdateSample.ts index 3980f38c55c1..c9a259dbd290 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitoredSubscriptionsUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates the subscriptions that are being monitored by the Datadog monitor resource diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsCreateSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsCreateSample.ts index 3d42e71eec1c..87b3b387eef4 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsCreateSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsCreateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsDeleteSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsDeleteSample.ts index 145ebdd43436..47f372ddb1ff 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsDeleteSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetDefaultKeySample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetDefaultKeySample.ts index cd9da7a3e9c2..d00024e41142 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetDefaultKeySample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetDefaultKeySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the default api key. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetSample.ts index f1f82b946a99..82546e4e20b2 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the properties of a specific monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListApiKeysSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListApiKeysSample.ts index ffd0c25ee5fb..49a1e0eafb8c 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListApiKeysSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListApiKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the api keys for a given monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListByResourceGroupSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListByResourceGroupSample.ts index 15f8fda16d11..2e612fea2eef 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListByResourceGroupSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all monitors under the specified resource group. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListHostsSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListHostsSample.ts index b1a1b71d3e58..8c03c49de9a0 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListHostsSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListHostsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the hosts for a given monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListLinkedResourcesSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListLinkedResourcesSample.ts index ffaeb2e370ed..cda21dab218a 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListLinkedResourcesSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListLinkedResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all Azure resources associated to the same Datadog organization as the target resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListMonitoredResourcesSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListMonitoredResourcesSample.ts index 5278e91756b8..947f28030079 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListMonitoredResourcesSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListMonitoredResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the resources currently being monitored by the Datadog monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListSample.ts index 3f916e2ee4d9..313e43977978 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all monitors under the specified subscription. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsRefreshSetPasswordLinkSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsRefreshSetPasswordLinkSample.ts index 5860703d76fc..8c5199a9c8fe 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsRefreshSetPasswordLinkSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsRefreshSetPasswordLinkSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Refresh the set password link and return a latest one. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsSetDefaultKeySample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsSetDefaultKeySample.ts index f343c1e0c792..f1e603d34e45 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsSetDefaultKeySample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsSetDefaultKeySample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Set the default api key. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsUpdateSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsUpdateSample.ts index f6e1c3220ea4..d4b9203139b9 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/monitorsUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/operationsListSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/operationsListSample.ts index 13a32ed21065..b7e65389243b 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/operationsListSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all operations provided by Microsoft.Datadog for the 2023-01-01 api version. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsCreateOrUpdateSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsCreateOrUpdateSample.ts index 6656a62654cb..1475009d5b88 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsCreateOrUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Configures single-sign-on for this resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsGetSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsGetSample.ts index ace10eeaa2bb..6ba22cb333b1 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsGetSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the datadog single sign-on resource for the given Monitor. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsListSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsListSample.ts index f07bdf214a84..b11ba694eb09 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsListSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/singleSignOnConfigurationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the single sign-on configurations for a given monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesCreateOrUpdateSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesCreateOrUpdateSample.ts index c457c6a11f78..5a192c0bfdd8 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesCreateOrUpdateSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesCreateOrUpdateSample.ts @@ -14,9 +14,7 @@ import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a tag rule set for a given monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesGetSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesGetSample.ts index 7a5fcb73ac14..4108d6906129 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesGetSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a tag rule set for a given monitor resource. diff --git a/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesListSample.ts b/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesListSample.ts index 052bc4077e24..31350f908f26 100644 --- a/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesListSample.ts +++ b/sdk/datadog/arm-datadog/samples/v3/typescript/src/tagRulesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { MicrosoftDatadogClient } from "@azure/arm-datadog"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the tag rules for a given monitor resource. diff --git a/sdk/datadog/arm-datadog/src/index.ts b/sdk/datadog/arm-datadog/src/index.ts index 4ee9e1414f1c..23bd4434c69f 100644 --- a/sdk/datadog/arm-datadog/src/index.ts +++ b/sdk/datadog/arm-datadog/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { MicrosoftDatadogClient } from "./microsoftDatadogClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { MicrosoftDatadogClient } from "./microsoftDatadogClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/datadog/arm-datadog/src/microsoftDatadogClient.ts b/sdk/datadog/arm-datadog/src/microsoftDatadogClient.ts index 7368418d75e3..08e2e7de78df 100644 --- a/sdk/datadog/arm-datadog/src/microsoftDatadogClient.ts +++ b/sdk/datadog/arm-datadog/src/microsoftDatadogClient.ts @@ -22,7 +22,7 @@ import { TagRulesImpl, SingleSignOnConfigurationsImpl, MonitoredSubscriptionsImpl -} from "./operations"; +} from "./operations/index.js"; import { MarketplaceAgreements, CreationSupported, @@ -31,8 +31,8 @@ import { TagRules, SingleSignOnConfigurations, MonitoredSubscriptions -} from "./operationsInterfaces"; -import { MicrosoftDatadogClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { MicrosoftDatadogClientOptionalParams } from "./models/index.js"; export class MicrosoftDatadogClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/datadog/arm-datadog/src/models/parameters.ts b/sdk/datadog/arm-datadog/src/models/parameters.ts index 8fa5b57ac477..6e74d6b1bfa2 100644 --- a/sdk/datadog/arm-datadog/src/models/parameters.ts +++ b/sdk/datadog/arm-datadog/src/models/parameters.ts @@ -19,7 +19,7 @@ import { MonitoringTagRules as MonitoringTagRulesMapper, DatadogSingleSignOnResource as DatadogSingleSignOnResourceMapper, MonitoredSubscriptionProperties as MonitoredSubscriptionPropertiesMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/datadog/arm-datadog/src/operations/creationSupported.ts b/sdk/datadog/arm-datadog/src/operations/creationSupported.ts index b13147031e1b..92322ae8e810 100644 --- a/sdk/datadog/arm-datadog/src/operations/creationSupported.ts +++ b/sdk/datadog/arm-datadog/src/operations/creationSupported.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { CreationSupported } from "../operationsInterfaces"; +import { CreationSupported } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftDatadogClient } from "../microsoftDatadogClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { MicrosoftDatadogClient } from "../microsoftDatadogClient.js"; import { CreateResourceSupportedResponse, CreationSupportedListOptionalParams, CreationSupportedListResponse, CreationSupportedGetOptionalParams, CreationSupportedGetResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing CreationSupported operations. */ diff --git a/sdk/datadog/arm-datadog/src/operations/index.ts b/sdk/datadog/arm-datadog/src/operations/index.ts index b74c8d8ec159..8b30e403c8fb 100644 --- a/sdk/datadog/arm-datadog/src/operations/index.ts +++ b/sdk/datadog/arm-datadog/src/operations/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./marketplaceAgreements"; -export * from "./creationSupported"; -export * from "./monitors"; -export * from "./operations"; -export * from "./tagRules"; -export * from "./singleSignOnConfigurations"; -export * from "./monitoredSubscriptions"; +export * from "./marketplaceAgreements.js"; +export * from "./creationSupported.js"; +export * from "./monitors.js"; +export * from "./operations.js"; +export * from "./tagRules.js"; +export * from "./singleSignOnConfigurations.js"; +export * from "./monitoredSubscriptions.js"; diff --git a/sdk/datadog/arm-datadog/src/operations/marketplaceAgreements.ts b/sdk/datadog/arm-datadog/src/operations/marketplaceAgreements.ts index 8758ae798302..c4c4cb2ff040 100644 --- a/sdk/datadog/arm-datadog/src/operations/marketplaceAgreements.ts +++ b/sdk/datadog/arm-datadog/src/operations/marketplaceAgreements.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { MarketplaceAgreements } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { MarketplaceAgreements } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftDatadogClient } from "../microsoftDatadogClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { MicrosoftDatadogClient } from "../microsoftDatadogClient.js"; import { DatadogAgreementResource, MarketplaceAgreementsListNextOptionalParams, @@ -21,7 +21,7 @@ import { MarketplaceAgreementsCreateOrUpdateOptionalParams, MarketplaceAgreementsCreateOrUpdateResponse, MarketplaceAgreementsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing MarketplaceAgreements operations. */ diff --git a/sdk/datadog/arm-datadog/src/operations/monitoredSubscriptions.ts b/sdk/datadog/arm-datadog/src/operations/monitoredSubscriptions.ts index feae21b61da1..260800f80bfb 100644 --- a/sdk/datadog/arm-datadog/src/operations/monitoredSubscriptions.ts +++ b/sdk/datadog/arm-datadog/src/operations/monitoredSubscriptions.ts @@ -7,17 +7,17 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { MonitoredSubscriptions } from "../operationsInterfaces"; +import { MonitoredSubscriptions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftDatadogClient } from "../microsoftDatadogClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { MicrosoftDatadogClient } from "../microsoftDatadogClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { MonitoredSubscriptionProperties, MonitoredSubscriptionsListOptionalParams, @@ -29,7 +29,7 @@ import { MonitoredSubscriptionsUpdateOptionalParams, MonitoredSubscriptionsUpdateResponse, MonitoredSubscriptionsDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Class containing MonitoredSubscriptions operations. */ diff --git a/sdk/datadog/arm-datadog/src/operations/monitors.ts b/sdk/datadog/arm-datadog/src/operations/monitors.ts index 5273b6576172..5e8e8313c13d 100644 --- a/sdk/datadog/arm-datadog/src/operations/monitors.ts +++ b/sdk/datadog/arm-datadog/src/operations/monitors.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Monitors } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Monitors } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftDatadogClient } from "../microsoftDatadogClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { MicrosoftDatadogClient } from "../microsoftDatadogClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DatadogApiKey, MonitorsListApiKeysNextOptionalParams, @@ -61,7 +61,7 @@ import { MonitorsListMonitoredResourcesNextResponse, MonitorsListNextResponse, MonitorsListByResourceGroupNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Monitors operations. */ diff --git a/sdk/datadog/arm-datadog/src/operations/operations.ts b/sdk/datadog/arm-datadog/src/operations/operations.ts index d7c0071549a0..68a17687b08f 100644 --- a/sdk/datadog/arm-datadog/src/operations/operations.ts +++ b/sdk/datadog/arm-datadog/src/operations/operations.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftDatadogClient } from "../microsoftDatadogClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { MicrosoftDatadogClient } from "../microsoftDatadogClient.js"; import { OperationResult, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/datadog/arm-datadog/src/operations/singleSignOnConfigurations.ts b/sdk/datadog/arm-datadog/src/operations/singleSignOnConfigurations.ts index 0b3bc274676e..63a849c389a0 100644 --- a/sdk/datadog/arm-datadog/src/operations/singleSignOnConfigurations.ts +++ b/sdk/datadog/arm-datadog/src/operations/singleSignOnConfigurations.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { SingleSignOnConfigurations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { SingleSignOnConfigurations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftDatadogClient } from "../microsoftDatadogClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { MicrosoftDatadogClient } from "../microsoftDatadogClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DatadogSingleSignOnResource, SingleSignOnConfigurationsListNextOptionalParams, @@ -29,7 +29,7 @@ import { SingleSignOnConfigurationsGetOptionalParams, SingleSignOnConfigurationsGetResponse, SingleSignOnConfigurationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing SingleSignOnConfigurations operations. */ diff --git a/sdk/datadog/arm-datadog/src/operations/tagRules.ts b/sdk/datadog/arm-datadog/src/operations/tagRules.ts index 50eae80f7c16..63fc1171118f 100644 --- a/sdk/datadog/arm-datadog/src/operations/tagRules.ts +++ b/sdk/datadog/arm-datadog/src/operations/tagRules.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { TagRules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { TagRules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { MicrosoftDatadogClient } from "../microsoftDatadogClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { MicrosoftDatadogClient } from "../microsoftDatadogClient.js"; import { MonitoringTagRules, TagRulesListNextOptionalParams, @@ -23,7 +23,7 @@ import { TagRulesGetOptionalParams, TagRulesGetResponse, TagRulesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing TagRules operations. */ diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/creationSupported.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/creationSupported.ts index 8bea9a555d34..e32a2cf2fea7 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/creationSupported.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/creationSupported.ts @@ -12,7 +12,7 @@ import { CreationSupportedListOptionalParams, CreationSupportedGetOptionalParams, CreationSupportedGetResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CreationSupported. */ diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/index.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/index.ts index b74c8d8ec159..8b30e403c8fb 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/index.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./marketplaceAgreements"; -export * from "./creationSupported"; -export * from "./monitors"; -export * from "./operations"; -export * from "./tagRules"; -export * from "./singleSignOnConfigurations"; -export * from "./monitoredSubscriptions"; +export * from "./marketplaceAgreements.js"; +export * from "./creationSupported.js"; +export * from "./monitors.js"; +export * from "./operations.js"; +export * from "./tagRules.js"; +export * from "./singleSignOnConfigurations.js"; +export * from "./monitoredSubscriptions.js"; diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/marketplaceAgreements.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/marketplaceAgreements.ts index 5dc29f8a6829..54ebf44ae013 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/marketplaceAgreements.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/marketplaceAgreements.ts @@ -12,7 +12,7 @@ import { MarketplaceAgreementsListOptionalParams, MarketplaceAgreementsCreateOrUpdateOptionalParams, MarketplaceAgreementsCreateOrUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a MarketplaceAgreements. */ diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/monitoredSubscriptions.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/monitoredSubscriptions.ts index 14046f5998dd..072ce7a227ed 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/monitoredSubscriptions.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/monitoredSubscriptions.ts @@ -18,7 +18,7 @@ import { MonitoredSubscriptionsUpdateOptionalParams, MonitoredSubscriptionsUpdateResponse, MonitoredSubscriptionsDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a MonitoredSubscriptions. */ diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/monitors.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/monitors.ts index ea773af4e238..a22091fbf495 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/monitors.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/monitors.ts @@ -32,7 +32,7 @@ import { MonitorsDeleteOptionalParams, MonitorsRefreshSetPasswordLinkOptionalParams, MonitorsRefreshSetPasswordLinkResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Monitors. */ diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/operations.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/operations.ts index 6a4fc23d2163..780d923d2604 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/operations.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/operations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { OperationResult, OperationsListOptionalParams } from "../models"; +import { OperationResult, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/singleSignOnConfigurations.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/singleSignOnConfigurations.ts index 730dbf4960e7..0a4e3ec1b18a 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/singleSignOnConfigurations.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/singleSignOnConfigurations.ts @@ -15,7 +15,7 @@ import { SingleSignOnConfigurationsCreateOrUpdateResponse, SingleSignOnConfigurationsGetOptionalParams, SingleSignOnConfigurationsGetResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a SingleSignOnConfigurations. */ diff --git a/sdk/datadog/arm-datadog/src/operationsInterfaces/tagRules.ts b/sdk/datadog/arm-datadog/src/operationsInterfaces/tagRules.ts index 66b8002b41cc..aa28db1f50de 100644 --- a/sdk/datadog/arm-datadog/src/operationsInterfaces/tagRules.ts +++ b/sdk/datadog/arm-datadog/src/operationsInterfaces/tagRules.ts @@ -14,7 +14,7 @@ import { TagRulesCreateOrUpdateResponse, TagRulesGetOptionalParams, TagRulesGetResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a TagRules. */ diff --git a/sdk/datadog/arm-datadog/test/datadog_operations_test.spec.ts b/sdk/datadog/arm-datadog/test/datadog_operations_test.spec.ts index a204291d62c4..2f21ad388950 100644 --- a/sdk/datadog/arm-datadog/test/datadog_operations_test.spec.ts +++ b/sdk/datadog/arm-datadog/test/datadog_operations_test.spec.ts @@ -10,13 +10,11 @@ import { env, Recorder, RecorderStartOptions, - delay, isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { MicrosoftDatadogClient } from "../src/microsoftDatadogClient"; +import { MicrosoftDatadogClient } from "../src/microsoftDatadogClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -41,21 +39,14 @@ describe("Datadog test", () => { let recorder: Recorder; let subscriptionId: string; let client: MicrosoftDatadogClient; - let location: string; - let resourceGroup: string; - let resourcename: string; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async function (ctx) { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used const credential = createTestCredential(); client = new MicrosoftDatadogClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "West US 2"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - }); afterEach(async function () { diff --git a/sdk/datadog/arm-datadog/tsconfig.browser.config.json b/sdk/datadog/arm-datadog/tsconfig.browser.config.json new file mode 100644 index 000000000000..b6586181d006 --- /dev/null +++ b/sdk/datadog/arm-datadog/tsconfig.browser.config.json @@ -0,0 +1,17 @@ +{ + "extends": "./.tshy/build.json", + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./test/**/*.spec.ts", + "./test/**/*.mts" + ], + "exclude": [ + "./test/**/node/**/*.ts" + ], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/datadog/arm-datadog/tsconfig.json b/sdk/datadog/arm-datadog/tsconfig.json index e10856bd8d0b..19ceb382b521 100644 --- a/sdk/datadog/arm-datadog/tsconfig.json +++ b/sdk/datadog/arm-datadog/tsconfig.json @@ -1,33 +1,13 @@ { - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-datadog": [ - "./src/index" - ] + "references": [ + { + "path": "./tsconfig.src.json" + }, + { + "path": "./tsconfig.samples.json" + }, + { + "path": "./tsconfig.test.json" } - }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" ] -} \ No newline at end of file +} diff --git a/sdk/datadog/arm-datadog/tsconfig.samples.json b/sdk/datadog/arm-datadog/tsconfig.samples.json new file mode 100644 index 000000000000..02c9626d7178 --- /dev/null +++ b/sdk/datadog/arm-datadog/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-datadog": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/datadog/arm-datadog/tsconfig.src.json b/sdk/datadog/arm-datadog/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/datadog/arm-datadog/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/datadog/arm-datadog/tsconfig.test.json b/sdk/datadog/arm-datadog/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/datadog/arm-datadog/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/datadog/arm-datadog/vitest.browser.config.ts b/sdk/datadog/arm-datadog/vitest.browser.config.ts new file mode 100644 index 000000000000..b48c61b2ef46 --- /dev/null +++ b/sdk/datadog/arm-datadog/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: [ + "dist-test/browser/test/**/*.spec.js", + ], + }, + }), +); diff --git a/sdk/datadog/arm-datadog/vitest.config.ts b/sdk/datadog/arm-datadog/vitest.config.ts new file mode 100644 index 000000000000..86a71911ccc2 --- /dev/null +++ b/sdk/datadog/arm-datadog/vitest.config.ts @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/datadog/arm-datadog/vitest.esm.config.ts b/sdk/datadog/arm-datadog/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/datadog/arm-datadog/vitest.esm.config.ts @@ -0,0 +1,12 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { mergeConfig } from "vitest/config"; +import vitestConfig from "./vitest.config.ts"; +import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; + +export default mergeConfig( + vitestConfig, + vitestEsmConfig +); diff --git a/sdk/datafactory/arm-datafactory/api-extractor.json b/sdk/datafactory/arm-datafactory/api-extractor.json index 76cff1157f82..0e76d1c7e65d 100644 --- a/sdk/datafactory/arm-datafactory/api-extractor.json +++ b/sdk/datafactory/arm-datafactory/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-datafactory.d.ts" + "publicTrimmedFilePath": "dist/arm-datafactory.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/datafactory/arm-datafactory/package.json b/sdk/datafactory/arm-datafactory/package.json index f73bc56aee6c..ecb1e00f31e3 100644 --- a/sdk/datafactory/arm-datafactory/package.json +++ b/sdk/datafactory/arm-datafactory/package.json @@ -8,11 +8,11 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^2.1.2", - "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.6.0", + "@azure/core-client": "^1.7.0", + "@azure/core-lro": "^2.5.4", + "@azure/core-paging": "^1.2.0", "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, @@ -24,23 +24,23 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-datafactory.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { - "typescript": "~5.7.2", - "dotenv": "^16.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.2.1", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.1.0", - "mocha": "^10.0.0", - "@types/mocha": "^10.0.0", - "tsx": "^4.7.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "@types/node": "^18.0.0", - "ts-node": "^10.0.0" + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", + "dotenv": "^16.0.0", + "playwright": "^1.49.1", + "tsx": "^4.7.1", + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "repository": { "type": "git", @@ -50,46 +50,36 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "minify": "dev-tool run vendored 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": "dev-tool run extract-api", - "lint": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "build:node": "echo skipped", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", - "build:test": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", + "build:test": "echo skipped", "check-format": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", + "extract-api": "dev-tool run extract-api", "format": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", + "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "pack": "npm pack 2>&1", + "prepack": "npm run build", "test": "npm run integration-test", - "test:node": "echo skipped", "test:browser": "echo skipped", + "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:node": "dev-tool run vendored 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": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -110,5 +100,45 @@ ], "disableDocsMs": true, "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview" + }, + "type": "module", + "tshy": { + "project": "./tsconfig.src.json", + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/activityRunsQueryByPipelineRunSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/activityRunsQueryByPipelineRunSample.ts index d4527e7fd97e..c1e0e7934ba4 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/activityRunsQueryByPipelineRunSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/activityRunsQueryByPipelineRunSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query activity runs based on input filter conditions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Query activity runs based on input filter conditions. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json */ -async function activityRunsQueryByPipelineRun() { +async function activityRunsQueryByPipelineRun(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -46,7 +44,7 @@ async function activityRunsQueryByPipelineRun() { console.log(result); } -async function main() { +async function main(): Promise { activityRunsQueryByPipelineRun(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureCreateOrUpdateSample.ts index 156576d687dc..0bda891add44 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a change data capture resource. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a change data capture resource. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Create.json */ -async function changeDataCaptureCreate() { +async function changeDataCaptureCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -56,7 +54,7 @@ async function changeDataCaptureCreate() { * @summary Creates or updates a change data capture resource. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Update.json */ -async function changeDataCaptureUpdate() { +async function changeDataCaptureUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -84,7 +82,7 @@ async function changeDataCaptureUpdate() { console.log(result); } -async function main() { +async function main(): Promise { changeDataCaptureCreate(); changeDataCaptureUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureDeleteSample.ts index 92afb94774aa..cb85c1410d8e 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a change data capture. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a change data capture. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Delete.json */ -async function changeDataCaptureDelete() { +async function changeDataCaptureDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function changeDataCaptureDelete() { console.log(result); } -async function main() { +async function main(): Promise { changeDataCaptureDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureGetSample.ts index 95c088ef000e..002ec57d4ed7 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a change data capture. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a change data capture. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json */ -async function changeDataCaptureGet() { +async function changeDataCaptureGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function changeDataCaptureGet() { console.log(result); } -async function main() { +async function main(): Promise { changeDataCaptureGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureListByFactorySample.ts index a225820ace20..a448edd7c182 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all resources of type change data capture. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all resources of type change data capture. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_ListByFactory.json */ -async function changeDataCaptureListByFactory() { +async function changeDataCaptureListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function changeDataCaptureListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { changeDataCaptureListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStartSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStartSample.ts index 30435451f3a2..49bdd3802146 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStartSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts a change data capture. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Starts a change data capture. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Start.json */ -async function changeDataCaptureStart() { +async function changeDataCaptureStart(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function changeDataCaptureStart() { console.log(result); } -async function main() { +async function main(): Promise { changeDataCaptureStart(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStatusSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStatusSample.ts index 8851ff89eb1c..d77436ec97e5 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStatusSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the current status for the change data capture resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the current status for the change data capture resource. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Status.json */ -async function changeDataCaptureStart() { +async function changeDataCaptureStart(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function changeDataCaptureStart() { console.log(result); } -async function main() { +async function main(): Promise { changeDataCaptureStart(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStopSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStopSample.ts index f19ba9aafb4b..b56f4fe946d5 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStopSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/changeDataCaptureStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops a change data capture. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Stops a change data capture. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Stop.json */ -async function changeDataCaptureStop() { +async function changeDataCaptureStop(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function changeDataCaptureStop() { console.log(result); } -async function main() { +async function main(): Promise { changeDataCaptureStop(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsCreateOrUpdateSample.ts index f51687f6ba3d..43b024c48187 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a credential. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a credential. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json */ -async function credentialsCreate() { +async function credentialsCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -49,7 +47,7 @@ async function credentialsCreate() { console.log(result); } -async function main() { +async function main(): Promise { credentialsCreate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsDeleteSample.ts index c527dd2f98a5..130a54e9b341 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a credential. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a credential. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json */ -async function credentialsDelete() { +async function credentialsDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function credentialsDelete() { console.log(result); } -async function main() { +async function main(): Promise { credentialsDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsGetSample.ts index 46b644f5f2f1..b03f6bbaf620 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a credential. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a credential. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json */ -async function credentialsGet() { +async function credentialsGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function credentialsGet() { console.log(result); } -async function main() { +async function main(): Promise { credentialsGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsListByFactorySample.ts index ee2ebc12e2a6..360ffb6e4d14 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List credentials. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List credentials. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json */ -async function credentialsListByFactory() { +async function credentialsListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function credentialsListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { credentialsListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionAddDataFlowSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionAddDataFlowSample.ts index 8bfbb52c00fd..e9f5a651fedb 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionAddDataFlowSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionAddDataFlowSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Add a data flow into debug session. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Add a data flow into debug session. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json */ -async function dataFlowDebugSessionAddDataFlow() { +async function dataFlowDebugSessionAddDataFlow(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -105,7 +103,7 @@ async function dataFlowDebugSessionAddDataFlow() { console.log(result); } -async function main() { +async function main(): Promise { dataFlowDebugSessionAddDataFlow(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionCreateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionCreateSample.ts index fa894cad8a95..921bac4d7040 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionCreateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionCreateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a data flow debug session. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates a data flow debug session. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json */ -async function dataFlowDebugSessionCreate() { +async function dataFlowDebugSessionCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -57,7 +55,7 @@ async function dataFlowDebugSessionCreate() { console.log(result); } -async function main() { +async function main(): Promise { dataFlowDebugSessionCreate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionDeleteSample.ts index 0875b8977356..ac006322e91f 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionDeleteSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a data flow debug session. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Deletes a data flow debug session. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json */ -async function dataFlowDebugSessionDelete() { +async function dataFlowDebugSessionDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -43,7 +41,7 @@ async function dataFlowDebugSessionDelete() { console.log(result); } -async function main() { +async function main(): Promise { dataFlowDebugSessionDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionExecuteCommandSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionExecuteCommandSample.ts index 2fc17c2cf1c7..a945c50a60c4 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionExecuteCommandSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionExecuteCommandSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Execute a data flow debug command. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Execute a data flow debug command. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json */ -async function dataFlowDebugSessionExecuteCommand() { +async function dataFlowDebugSessionExecuteCommand(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -45,7 +43,7 @@ async function dataFlowDebugSessionExecuteCommand() { console.log(result); } -async function main() { +async function main(): Promise { dataFlowDebugSessionExecuteCommand(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionQueryByFactorySample.ts index 5f0153425ab4..fc5f1062a810 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowDebugSessionQueryByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query all active data flow debug sessions. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Query all active data flow debug sessions. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json */ -async function dataFlowDebugSessionQueryByFactory() { +async function dataFlowDebugSessionQueryByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function dataFlowDebugSessionQueryByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { dataFlowDebugSessionQueryByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsCreateOrUpdateSample.ts index 7079de0afda4..eac5af045a3f 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a data flow. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a data flow. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json */ -async function dataFlowsCreate() { +async function dataFlowsCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -105,7 +103,7 @@ async function dataFlowsCreate() { * @summary Creates or updates a data flow. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json */ -async function dataFlowsUpdate() { +async function dataFlowsUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -181,7 +179,7 @@ async function dataFlowsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { dataFlowsCreate(); dataFlowsUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsDeleteSample.ts index 7388a7daa068..b33d7be8a45e 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a data flow. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a data flow. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json */ -async function dataFlowsDelete() { +async function dataFlowsDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function dataFlowsDelete() { console.log(result); } -async function main() { +async function main(): Promise { dataFlowsDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsGetSample.ts index 28b3c5876dd3..f2bb06a663d9 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a data flow. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a data flow. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json */ -async function dataFlowsGet() { +async function dataFlowsGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function dataFlowsGet() { console.log(result); } -async function main() { +async function main(): Promise { dataFlowsGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsListByFactorySample.ts index e1aea598bf36..e2fa941c67e3 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/dataFlowsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists data flows. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists data flows. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json */ -async function dataFlowsListByFactory() { +async function dataFlowsListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function dataFlowsListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { dataFlowsListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/datasetsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/datasetsCreateOrUpdateSample.ts index a8a5ef60b627..a12e3a49af14 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/datasetsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/datasetsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a dataset. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a dataset. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json */ -async function datasetsCreate() { +async function datasetsCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -64,7 +62,7 @@ async function datasetsCreate() { * @summary Creates or updates a dataset. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json */ -async function datasetsUpdate() { +async function datasetsUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -100,7 +98,7 @@ async function datasetsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { datasetsCreate(); datasetsUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/datasetsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/datasetsDeleteSample.ts index 58f600b259ab..6592bfdadebb 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/datasetsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/datasetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a dataset. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a dataset. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json */ -async function datasetsDelete() { +async function datasetsDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function datasetsDelete() { console.log(result); } -async function main() { +async function main(): Promise { datasetsDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/datasetsGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/datasetsGetSample.ts index 4bcabeceb1b1..0f81d2893013 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/datasetsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/datasetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a dataset. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a dataset. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json */ -async function datasetsGet() { +async function datasetsGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function datasetsGet() { console.log(result); } -async function main() { +async function main(): Promise { datasetsGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/datasetsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/datasetsListByFactorySample.ts index d8459bffe3f9..87f3ac184523 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/datasetsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/datasetsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists datasets. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists datasets. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json */ -async function datasetsListByFactory() { +async function datasetsListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function datasetsListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { datasetsListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueByFactorySample.ts index fa403ffd6f79..0eda9b5b7410 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get exposure control feature for specific factory. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Get exposure control feature for specific factory. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json */ -async function exposureControlGetFeatureValueByFactory() { +async function exposureControlGetFeatureValueByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -44,7 +42,7 @@ async function exposureControlGetFeatureValueByFactory() { console.log(result); } -async function main() { +async function main(): Promise { exposureControlGetFeatureValueByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueSample.ts index 56b38bb3ead9..7085cf2494b5 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/exposureControlGetFeatureValueSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get exposure control feature for specific location. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Get exposure control feature for specific location. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json */ -async function exposureControlGetFeatureValue() { +async function exposureControlGetFeatureValue(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -41,7 +39,7 @@ async function exposureControlGetFeatureValue() { console.log(result); } -async function main() { +async function main(): Promise { exposureControlGetFeatureValue(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/exposureControlQueryFeatureValuesByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/exposureControlQueryFeatureValuesByFactorySample.ts index dc0881bce904..4b6347a74828 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/exposureControlQueryFeatureValuesByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/exposureControlQueryFeatureValuesByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get list of exposure control features for specific factory. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Get list of exposure control features for specific factory. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json */ -async function exposureControlQueryFeatureValuesByFactory() { +async function exposureControlQueryFeatureValuesByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -49,7 +47,7 @@ async function exposureControlQueryFeatureValuesByFactory() { console.log(result); } -async function main() { +async function main(): Promise { exposureControlQueryFeatureValuesByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesConfigureFactoryRepoSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesConfigureFactoryRepoSample.ts index 0c423009c28e..26a18321e037 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesConfigureFactoryRepoSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesConfigureFactoryRepoSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a factory's repo information. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates a factory's repo information. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json */ -async function factoriesConfigureFactoryRepo() { +async function factoriesConfigureFactoryRepo(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -51,7 +49,7 @@ async function factoriesConfigureFactoryRepo() { console.log(result); } -async function main() { +async function main(): Promise { factoriesConfigureFactoryRepo(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesCreateOrUpdateSample.ts index 816fe390eeb3..f3990f744df9 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Factory, DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a factory. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Creates or updates a factory. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json */ -async function factoriesCreateOrUpdate() { +async function factoriesCreateOrUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function factoriesCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { factoriesCreateOrUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesDeleteSample.ts index 8d9fef67aa5a..1d4cb8cd4ce7 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a factory. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a factory. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json */ -async function factoriesDelete() { +async function factoriesDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -33,7 +31,7 @@ async function factoriesDelete() { console.log(result); } -async function main() { +async function main(): Promise { factoriesDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetDataPlaneAccessSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetDataPlaneAccessSample.ts index ee830ae45fea..2e84cf30a755 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetDataPlaneAccessSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetDataPlaneAccessSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Data Plane access. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Get Data Plane access. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json */ -async function factoriesGetDataPlaneAccess() { +async function factoriesGetDataPlaneAccess(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -47,7 +45,7 @@ async function factoriesGetDataPlaneAccess() { console.log(result); } -async function main() { +async function main(): Promise { factoriesGetDataPlaneAccess(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetGitHubAccessTokenSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetGitHubAccessTokenSample.ts index a34d7bdd2a1d..67a1067556a3 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetGitHubAccessTokenSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetGitHubAccessTokenSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get GitHub Access Token. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Get GitHub Access Token. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json */ -async function factoriesGetGitHubAccessToken() { +async function factoriesGetGitHubAccessToken(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -45,7 +43,7 @@ async function factoriesGetGitHubAccessToken() { console.log(result); } -async function main() { +async function main(): Promise { factoriesGetGitHubAccessToken(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetSample.ts index ee27528602e8..9fbc12557a5f 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a factory. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a factory. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json */ -async function factoriesGet() { +async function factoriesGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -33,7 +31,7 @@ async function factoriesGet() { console.log(result); } -async function main() { +async function main(): Promise { factoriesGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesListByResourceGroupSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesListByResourceGroupSample.ts index 64b26f8bc63b..9cb240c62afd 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesListByResourceGroupSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists factories. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists factories. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json */ -async function factoriesListByResourceGroup() { +async function factoriesListByResourceGroup(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -37,7 +35,7 @@ async function factoriesListByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { factoriesListByResourceGroup(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesListSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesListSample.ts index 6f2489fefce0..cb7c3cfb93c8 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesListSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists factories under the specified subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists factories under the specified subscription. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json */ -async function factoriesList() { +async function factoriesList(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -33,7 +31,7 @@ async function factoriesList() { console.log(resArray); } -async function main() { +async function main(): Promise { factoriesList(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/factoriesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/factoriesUpdateSample.ts index 20e85e4249b4..fd960b43680a 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/factoriesUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/factoriesUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a factory. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates a factory. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json */ -async function factoriesUpdate() { +async function factoriesUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -43,7 +41,7 @@ async function factoriesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { factoriesUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersCreateOrUpdateSample.ts index 2a3ded2669a1..f32f03ea9bfb 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a Global parameter @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a Global parameter * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json */ -async function globalParametersCreate() { +async function globalParametersCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -51,7 +49,7 @@ async function globalParametersCreate() { * @summary Creates or updates a Global parameter * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json */ -async function globalParametersUpdate() { +async function globalParametersUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -73,7 +71,7 @@ async function globalParametersUpdate() { console.log(result); } -async function main() { +async function main(): Promise { globalParametersCreate(); globalParametersUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersDeleteSample.ts index 72c66a27b258..88d440d374e2 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a Global parameter @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a Global parameter * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json */ -async function globalParametersDelete() { +async function globalParametersDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function globalParametersDelete() { console.log(result); } -async function main() { +async function main(): Promise { globalParametersDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersGetSample.ts index 5312b521b3a2..74e9190e5a72 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Global parameter @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a Global parameter * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json */ -async function globalParametersGet() { +async function globalParametersGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function globalParametersGet() { console.log(result); } -async function main() { +async function main(): Promise { globalParametersGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersListByFactorySample.ts index 97b15dc13914..e56e59d83d10 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/globalParametersListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/globalParametersListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Global parameters @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists Global parameters * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json */ -async function globalParametersListByFactory() { +async function globalParametersListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function globalParametersListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { globalParametersListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesDeleteSample.ts index b09ec45340d7..853a2a5f9a74 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a self-hosted integration runtime node. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a self-hosted integration runtime node. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json */ -async function integrationRuntimesNodesDelete() { +async function integrationRuntimesNodesDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -40,7 +38,7 @@ async function integrationRuntimesNodesDelete() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesNodesDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetIPAddressSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetIPAddressSample.ts index 7e87f0406a40..db43ea5e53d1 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetIPAddressSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetIPAddressSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the IP address of self-hosted integration runtime node. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the IP address of self-hosted integration runtime node. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json */ -async function integrationRuntimeNodesGetIPAddress() { +async function integrationRuntimeNodesGetIPAddress(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -40,7 +38,7 @@ async function integrationRuntimeNodesGetIPAddress() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimeNodesGetIPAddress(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetSample.ts index ee999af1fe2c..ec1bbdf4972a 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a self-hosted integration runtime node. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a self-hosted integration runtime node. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json */ -async function integrationRuntimeNodesGet() { +async function integrationRuntimeNodesGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -40,7 +38,7 @@ async function integrationRuntimeNodesGet() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimeNodesGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesUpdateSample.ts index 1d301a9c74d6..b87bef2dcbb8 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeNodesUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a self-hosted integration runtime node. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates a self-hosted integration runtime node. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json */ -async function integrationRuntimeNodesUpdate() { +async function integrationRuntimeNodesUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -46,7 +44,7 @@ async function integrationRuntimeNodesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimeNodesUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataGetSample.ts index 882b892b9499..b53fb33d51ff 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataGetSample.ts @@ -14,9 +14,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. @@ -24,7 +22,7 @@ dotenv.config(); * @summary Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json */ -async function integrationRuntimeObjectMetadataGet() { +async function integrationRuntimeObjectMetadataGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -49,7 +47,7 @@ async function integrationRuntimeObjectMetadataGet() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimeObjectMetadataGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataRefreshSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataRefreshSample.ts index fc228a035522..00da6131c7f7 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataRefreshSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimeObjectMetadataRefreshSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Refresh a SSIS integration runtime object metadata. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Refresh a SSIS integration runtime object metadata. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json */ -async function integrationRuntimeObjectMetadataRefresh() { +async function integrationRuntimeObjectMetadataRefresh(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function integrationRuntimeObjectMetadataRefresh() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimeObjectMetadataRefresh(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts index bd412b2c83b4..b561c024ae52 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a linked integration runtime entry in a shared integration runtime. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create a linked integration runtime entry in a shared integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json */ -async function integrationRuntimesCreateLinkedIntegrationRuntime() { +async function integrationRuntimesCreateLinkedIntegrationRuntime(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -32,12 +30,12 @@ async function integrationRuntimesCreateLinkedIntegrationRuntime() { const factoryName = "exampleFactoryName"; const integrationRuntimeName = "exampleIntegrationRuntime"; const createLinkedIntegrationRuntimeRequest: CreateLinkedIntegrationRuntimeRequest = - { - name: "bfa92911-9fb6-4fbe-8f23-beae87bc1c83", - dataFactoryLocation: "West US", - dataFactoryName: "e9955d6d-56ea-4be3-841c-52a12c1a9981", - subscriptionId: "061774c7-4b5a-4159-a55b-365581830283", - }; + { + name: "bfa92911-9fb6-4fbe-8f23-beae87bc1c83", + dataFactoryLocation: "West US", + dataFactoryName: "e9955d6d-56ea-4be3-841c-52a12c1a9981", + subscriptionId: "061774c7-4b5a-4159-a55b-365581830283", + }; const credential = new DefaultAzureCredential(); const client = new DataFactoryManagementClient(credential, subscriptionId); const result = @@ -50,7 +48,7 @@ async function integrationRuntimesCreateLinkedIntegrationRuntime() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesCreateLinkedIntegrationRuntime(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateOrUpdateSample.ts index 951dc8c86fbb..a5d730b26d37 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an integration runtime. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates an integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json */ -async function integrationRuntimesCreate() { +async function integrationRuntimesCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -48,7 +46,7 @@ async function integrationRuntimesCreate() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesCreate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesDeleteSample.ts index ed1d08596ca0..157dd4683cb7 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes an integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json */ -async function integrationRuntimesDelete() { +async function integrationRuntimesDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesDelete() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetConnectionInfoSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetConnectionInfoSample.ts index 44d8bed9fa74..028006239048 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetConnectionInfoSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetConnectionInfoSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json */ -async function integrationRuntimesGetConnectionInfo() { +async function integrationRuntimesGetConnectionInfo(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesGetConnectionInfo() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesGetConnectionInfo(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetMonitoringDataSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetMonitoringDataSample.ts index f58dbde83c02..f23880e9f6f8 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetMonitoringDataSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetMonitoringDataSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json */ -async function integrationRuntimesGetMonitoringData() { +async function integrationRuntimesGetMonitoringData(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesGetMonitoringData() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesGetMonitoringData(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetSample.ts index f42d26424aaf..4076a90db4e1 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets an integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets an integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json */ -async function integrationRuntimesGet() { +async function integrationRuntimesGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesGet() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetStatusSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetStatusSample.ts index 5e242c154015..c9e5072be8f3 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetStatusSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesGetStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets detailed status information for an integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets detailed status information for an integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json */ -async function integrationRuntimesGetStatus() { +async function integrationRuntimesGetStatus(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesGetStatus() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesGetStatus(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListAuthKeysSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListAuthKeysSample.ts index 6883bc6f169f..898441cfef4c 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListAuthKeysSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListAuthKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Retrieves the authentication keys for an integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Retrieves the authentication keys for an integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json */ -async function integrationRuntimesListAuthKeys() { +async function integrationRuntimesListAuthKeys(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesListAuthKeys() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesListAuthKeys(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListByFactorySample.ts index 8406d5da6486..39655599e7f9 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists integration runtimes. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists integration runtimes. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json */ -async function integrationRuntimesListByFactory() { +async function integrationRuntimesListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function integrationRuntimesListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { integrationRuntimesListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts index 6ae1590850b3..a94b4ff4f067 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json */ -async function integrationRuntimesOutboundNetworkDependenciesEndpoints() { +async function integrationRuntimesOutboundNetworkDependenciesEndpoints(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "7ad7c73b-38b8-4df3-84ee-52ff91092f61"; @@ -39,7 +37,7 @@ async function integrationRuntimesOutboundNetworkDependenciesEndpoints() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesOutboundNetworkDependenciesEndpoints(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRegenerateAuthKeySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRegenerateAuthKeySample.ts index 8233d7c2259f..06f53902da38 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRegenerateAuthKeySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRegenerateAuthKeySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerates the authentication key for an integration runtime. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Regenerates the authentication key for an integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json */ -async function integrationRuntimesRegenerateAuthKey() { +async function integrationRuntimesRegenerateAuthKey(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -45,7 +43,7 @@ async function integrationRuntimesRegenerateAuthKey() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesRegenerateAuthKey(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRemoveLinksSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRemoveLinksSample.ts index becc74948e20..117e9d6aeca6 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRemoveLinksSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesRemoveLinksSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json */ -async function integrationRuntimesUpgrade() { +async function integrationRuntimesUpgrade(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -45,7 +43,7 @@ async function integrationRuntimesUpgrade() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesUpgrade(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStartSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStartSample.ts index bf35fbae7cae..ffc4f2a61dce 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStartSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts a ManagedReserved type integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Starts a ManagedReserved type integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json */ -async function integrationRuntimesStart() { +async function integrationRuntimesStart(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesStart() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesStart(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStopSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStopSample.ts index 287c51c08600..c61f7cdd02fd 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStopSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops a ManagedReserved type integration runtime. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Stops a ManagedReserved type integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json */ -async function integrationRuntimesStop() { +async function integrationRuntimesStop(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesStop() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesStop(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesSyncCredentialsSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesSyncCredentialsSample.ts index 5c5cf696a5a2..191811cd2990 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesSyncCredentialsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesSyncCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json */ -async function integrationRuntimesSyncCredentials() { +async function integrationRuntimesSyncCredentials(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesSyncCredentials() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesSyncCredentials(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpdateSample.ts index cb070063d0e7..ac1cc98eb62d 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates an integration runtime. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates an integration runtime. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json */ -async function integrationRuntimesUpdate() { +async function integrationRuntimesUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -46,7 +44,7 @@ async function integrationRuntimesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpgradeSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpgradeSample.ts index 619c99bf967f..f73695f77af2 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpgradeSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/integrationRuntimesUpgradeSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Upgrade self-hosted integration runtime to latest version if availability. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Upgrade self-hosted integration runtime to latest version if availability. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json */ -async function integrationRuntimesUpgrade() { +async function integrationRuntimesUpgrade(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function integrationRuntimesUpgrade() { console.log(result); } -async function main() { +async function main(): Promise { integrationRuntimesUpgrade(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesCreateOrUpdateSample.ts index 9dad16e787dc..966677ab03b5 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a linked service. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a linked service. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json */ -async function linkedServicesCreate() { +async function linkedServicesCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -58,7 +56,7 @@ async function linkedServicesCreate() { * @summary Creates or updates a linked service. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json */ -async function linkedServicesUpdate() { +async function linkedServicesUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -88,7 +86,7 @@ async function linkedServicesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { linkedServicesCreate(); linkedServicesUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesDeleteSample.ts index af81386b988e..a1769b47637e 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a linked service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a linked service. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json */ -async function linkedServicesDelete() { +async function linkedServicesDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function linkedServicesDelete() { console.log(result); } -async function main() { +async function main(): Promise { linkedServicesDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesGetSample.ts index 20ce79383f0c..f996b2b0e32e 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a linked service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a linked service. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json */ -async function linkedServicesGet() { +async function linkedServicesGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function linkedServicesGet() { console.log(result); } -async function main() { +async function main(): Promise { linkedServicesGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesListByFactorySample.ts index e717fffa7d5a..0b20bf8e4dbe 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/linkedServicesListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists linked services. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists linked services. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json */ -async function linkedServicesListByFactory() { +async function linkedServicesListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function linkedServicesListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { linkedServicesListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsCreateOrUpdateSample.ts index a519407160f7..f52479ac12cc 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed private endpoint. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a managed private endpoint. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json */ -async function managedVirtualNetworksCreate() { +async function managedVirtualNetworksCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -52,7 +50,7 @@ async function managedVirtualNetworksCreate() { console.log(result); } -async function main() { +async function main(): Promise { managedVirtualNetworksCreate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsDeleteSample.ts index f2db309dc4ed..2fcffde8eb60 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a managed private endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a managed private endpoint. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json */ -async function managedVirtualNetworksDelete() { +async function managedVirtualNetworksDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -40,7 +38,7 @@ async function managedVirtualNetworksDelete() { console.log(result); } -async function main() { +async function main(): Promise { managedVirtualNetworksDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsGetSample.ts index 92e14eb1a9d3..dd460d866fa2 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed private endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a managed private endpoint. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json */ -async function managedPrivateEndpointsGet() { +async function managedPrivateEndpointsGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -40,7 +38,7 @@ async function managedPrivateEndpointsGet() { console.log(result); } -async function main() { +async function main(): Promise { managedPrivateEndpointsGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsListByFactorySample.ts index 994925cec782..3b51b61aa0cb 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/managedPrivateEndpointsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed private endpoints. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists managed private endpoints. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json */ -async function managedPrivateEndpointsListByFactory() { +async function managedPrivateEndpointsListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -41,7 +39,7 @@ async function managedPrivateEndpointsListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { managedPrivateEndpointsListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksCreateOrUpdateSample.ts index ba71a1d4dbef..13210078e73d 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed Virtual Network. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a managed Virtual Network. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json */ -async function managedVirtualNetworksCreate() { +async function managedVirtualNetworksCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -45,7 +43,7 @@ async function managedVirtualNetworksCreate() { console.log(result); } -async function main() { +async function main(): Promise { managedVirtualNetworksCreate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksGetSample.ts index c6b444d51180..3a898084aab9 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed Virtual Network. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a managed Virtual Network. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json */ -async function managedVirtualNetworksGet() { +async function managedVirtualNetworksGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function managedVirtualNetworksGet() { console.log(result); } -async function main() { +async function main(): Promise { managedVirtualNetworksGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksListByFactorySample.ts index b83f27ea9319..0daaaeece079 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/managedVirtualNetworksListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed Virtual Networks. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists managed Virtual Networks. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json */ -async function managedVirtualNetworksListByFactory() { +async function managedVirtualNetworksListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function managedVirtualNetworksListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { managedVirtualNetworksListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/operationsListSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/operationsListSample.ts index 0dbddfbfddef..8e6c8bacc521 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/operationsListSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the available Azure Data Factory API operations. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists the available Azure Data Factory API operations. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json */ -async function operationsList() { +async function operationsList(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function operationsList() { console.log(resArray); } -async function main() { +async function main(): Promise { operationsList(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsCancelSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsCancelSample.ts index 21a64af76d85..df6d7dd87159 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsCancelSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancel a pipeline run by its run ID. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Cancel a pipeline run by its run ID. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json */ -async function pipelineRunsCancel() { +async function pipelineRunsCancel(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function pipelineRunsCancel() { console.log(result); } -async function main() { +async function main(): Promise { pipelineRunsCancel(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsGetSample.ts index 4e91d9d91981..723e5989362c 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a pipeline run by its run ID. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get a pipeline run by its run ID. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json */ -async function pipelineRunsGet() { +async function pipelineRunsGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function pipelineRunsGet() { console.log(result); } -async function main() { +async function main(): Promise { pipelineRunsGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsQueryByFactorySample.ts index f2cf2e863548..acd261906640 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelineRunsQueryByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query pipeline runs in the factory based on input filter conditions. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Query pipeline runs in the factory based on input filter conditions. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json */ -async function pipelineRunsQueryByFactory() { +async function pipelineRunsQueryByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -51,7 +49,7 @@ async function pipelineRunsQueryByFactory() { console.log(result); } -async function main() { +async function main(): Promise { pipelineRunsQueryByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateOrUpdateSample.ts index a5fa92445f04..a8415c4fbb95 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a pipeline. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a pipeline. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json */ -async function pipelinesCreate() { +async function pipelinesCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -99,7 +97,7 @@ async function pipelinesCreate() { * @summary Creates or updates a pipeline. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json */ -async function pipelinesUpdate() { +async function pipelinesUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -163,7 +161,7 @@ async function pipelinesUpdate() { console.log(result); } -async function main() { +async function main(): Promise { pipelinesCreate(); pipelinesUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateRunSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateRunSample.ts index ed15cc2b3267..06dbf4f400f0 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateRunSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesCreateRunSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a run of a pipeline. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates a run of a pipeline. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json */ -async function pipelinesCreateRun() { +async function pipelinesCreateRun(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -50,7 +48,7 @@ async function pipelinesCreateRun() { console.log(result); } -async function main() { +async function main(): Promise { pipelinesCreateRun(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesDeleteSample.ts index 4e1dead20020..51846a50d9fd 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a pipeline. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a pipeline. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json */ -async function pipelinesDelete() { +async function pipelinesDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function pipelinesDelete() { console.log(result); } -async function main() { +async function main(): Promise { pipelinesDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesGetSample.ts index f3577db7432a..ade6a6d4a3c8 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a pipeline. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a pipeline. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json */ -async function pipelinesGet() { +async function pipelinesGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function pipelinesGet() { console.log(result); } -async function main() { +async function main(): Promise { pipelinesGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesListByFactorySample.ts index ab97d7392a7b..08e27179718a 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/pipelinesListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/pipelinesListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists pipelines. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists pipelines. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json */ -async function pipelinesListByFactory() { +async function pipelinesListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function pipelinesListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { pipelinesListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/privateEndPointConnectionsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/privateEndPointConnectionsListByFactorySample.ts index 8e5ed06abfd1..e40bf9e9b060 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/privateEndPointConnectionsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/privateEndPointConnectionsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Private endpoint connections @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists Private endpoint connections * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json */ -async function privateEndPointConnectionsListByFactory() { +async function privateEndPointConnectionsListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function privateEndPointConnectionsListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { privateEndPointConnectionsListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts index eab272076128..10b1d3749d48 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Approves or rejects a private endpoint connection @@ -23,7 +21,7 @@ dotenv.config(); * @summary Approves or rejects a private endpoint connection * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json */ -async function approvesOrRejectsAPrivateEndpointConnectionForAFactory() { +async function approvesOrRejectsAPrivateEndpointConnectionForAFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -54,7 +52,7 @@ async function approvesOrRejectsAPrivateEndpointConnectionForAFactory() { console.log(result); } -async function main() { +async function main(): Promise { approvesOrRejectsAPrivateEndpointConnectionForAFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionDeleteSample.ts index 01fa27a306ce..a6e2bd681630 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a private endpoint connection @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a private endpoint connection * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json */ -async function deleteAPrivateEndpointConnectionForADatafactory() { +async function deleteAPrivateEndpointConnectionForADatafactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -38,7 +36,7 @@ async function deleteAPrivateEndpointConnectionForADatafactory() { console.log(result); } -async function main() { +async function main(): Promise { deleteAPrivateEndpointConnectionForADatafactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionGetSample.ts index 208860c1c4b5..750db784789b 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/privateEndpointConnectionGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a private endpoint connection @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a private endpoint connection * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json */ -async function getAPrivateEndpointConnectionForADatafactory() { +async function getAPrivateEndpointConnectionForADatafactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -38,7 +36,7 @@ async function getAPrivateEndpointConnectionForADatafactory() { console.log(result); } -async function main() { +async function main(): Promise { getAPrivateEndpointConnectionForADatafactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/privateLinkResourcesGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/privateLinkResourcesGetSample.ts index ca3a1bd84c78..6cf1aa364c6e 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/privateLinkResourcesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/privateLinkResourcesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the private link resources @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the private link resources * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json */ -async function getPrivateLinkResourcesOfASite() { +async function getPrivateLinkResourcesOfASite(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; @@ -36,7 +34,7 @@ async function getPrivateLinkResourcesOfASite() { console.log(result); } -async function main() { +async function main(): Promise { getPrivateLinkResourcesOfASite(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsCancelSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsCancelSample.ts index 9c5ff234a490..6cd93f4497c8 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsCancelSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancel a single trigger instance by runId. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Cancel a single trigger instance by runId. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json */ -async function triggersCancel() { +async function triggersCancel(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -40,7 +38,7 @@ async function triggersCancel() { console.log(result); } -async function main() { +async function main(): Promise { triggersCancel(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsQueryByFactorySample.ts index 307754c8fe67..fad41e83260b 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsQueryByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query trigger runs. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Query trigger runs. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json */ -async function triggerRunsQueryByFactory() { +async function triggerRunsQueryByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -51,7 +49,7 @@ async function triggerRunsQueryByFactory() { console.log(result); } -async function main() { +async function main(): Promise { triggerRunsQueryByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsRerunSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsRerunSample.ts index acdc8340ef8f..0607938d7f4c 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsRerunSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggerRunsRerunSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Rerun single trigger instance by runId. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Rerun single trigger instance by runId. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json */ -async function triggersRerun() { +async function triggersRerun(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -40,7 +38,7 @@ async function triggersRerun() { console.log(result); } -async function main() { +async function main(): Promise { triggersRerun(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersCreateOrUpdateSample.ts index 88726d4ac6f7..ce20a338b207 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a trigger. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a trigger. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json */ -async function triggersCreate() { +async function triggersCreate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -69,7 +67,7 @@ async function triggersCreate() { * @summary Creates or updates a trigger. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json */ -async function triggersUpdate() { +async function triggersUpdate(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -110,7 +108,7 @@ async function triggersUpdate() { console.log(result); } -async function main() { +async function main(): Promise { triggersCreate(); triggersUpdate(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersDeleteSample.ts index 7132d21900d2..3a4c55715979 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a trigger. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a trigger. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json */ -async function triggersDelete() { +async function triggersDelete(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function triggersDelete() { console.log(result); } -async function main() { +async function main(): Promise { triggersDelete(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersGetEventSubscriptionStatusSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersGetEventSubscriptionStatusSample.ts index 27e712b91e1e..95be08801d4a 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersGetEventSubscriptionStatusSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersGetEventSubscriptionStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a trigger's event subscription status. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get a trigger's event subscription status. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json */ -async function triggersGetEventSubscriptionStatus() { +async function triggersGetEventSubscriptionStatus(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function triggersGetEventSubscriptionStatus() { console.log(result); } -async function main() { +async function main(): Promise { triggersGetEventSubscriptionStatus(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersGetSample.ts index bd974fa4fa7d..bfc840269bc9 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a trigger. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a trigger. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json */ -async function triggersGet() { +async function triggersGet(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function triggersGet() { console.log(result); } -async function main() { +async function main(): Promise { triggersGet(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersListByFactorySample.ts index f5b5397fb32e..2aadd8caac81 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists triggers. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists triggers. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json */ -async function triggersListByFactory() { +async function triggersListByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -39,7 +37,7 @@ async function triggersListByFactory() { console.log(resArray); } -async function main() { +async function main(): Promise { triggersListByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersQueryByFactorySample.ts index 643a40b8ccea..55d4c46ce358 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersQueryByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query triggers. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Query triggers. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json */ -async function triggersQueryByFactory() { +async function triggersQueryByFactory(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -43,7 +41,7 @@ async function triggersQueryByFactory() { console.log(result); } -async function main() { +async function main(): Promise { triggersQueryByFactory(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersStartSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersStartSample.ts index 5d4e2762a78e..713f397b573e 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersStartSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts a trigger. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Starts a trigger. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json */ -async function triggersStart() { +async function triggersStart(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function triggersStart() { console.log(result); } -async function main() { +async function main(): Promise { triggersStart(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersStopSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersStopSample.ts index f7bb3561ad8a..2b919bccd6ff 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersStopSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops a trigger. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Stops a trigger. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json */ -async function triggersStop() { +async function triggersStop(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function triggersStop() { console.log(result); } -async function main() { +async function main(): Promise { triggersStop(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersSubscribeToEventsSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersSubscribeToEventsSample.ts index aa0a27416b06..531a764dc5ad 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersSubscribeToEventsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersSubscribeToEventsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Subscribe event trigger to events. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Subscribe event trigger to events. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json */ -async function triggersSubscribeToEvents() { +async function triggersSubscribeToEvents(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function triggersSubscribeToEvents() { console.log(result); } -async function main() { +async function main(): Promise { triggersSubscribeToEvents(); } diff --git a/sdk/datafactory/arm-datafactory/samples-dev/triggersUnsubscribeFromEventsSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/triggersUnsubscribeFromEventsSample.ts index e15c36198a67..654e6a007798 100644 --- a/sdk/datafactory/arm-datafactory/samples-dev/triggersUnsubscribeFromEventsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples-dev/triggersUnsubscribeFromEventsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Unsubscribe event trigger from events. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Unsubscribe event trigger from events. * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json */ -async function triggersUnsubscribeFromEvents() { +async function triggersUnsubscribeFromEvents(): Promise { const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; @@ -38,7 +36,7 @@ async function triggersUnsubscribeFromEvents() { console.log(result); } -async function main() { +async function main(): Promise { triggersUnsubscribeFromEvents(); } diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/activityRunsQueryByPipelineRunSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/activityRunsQueryByPipelineRunSample.ts index d4527e7fd97e..a4a74b0d5eba 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/activityRunsQueryByPipelineRunSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/activityRunsQueryByPipelineRunSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query activity runs based on input filter conditions. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureCreateOrUpdateSample.ts index 156576d687dc..20479ef8fee9 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a change data capture resource. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureDeleteSample.ts index 92afb94774aa..cafad56dfbc7 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a change data capture. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureGetSample.ts index 95c088ef000e..fbaf81bdf671 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a change data capture. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureListByFactorySample.ts index a225820ace20..f56ab088c628 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all resources of type change data capture. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStartSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStartSample.ts index 30435451f3a2..ea5bea534916 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStartSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts a change data capture. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStatusSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStatusSample.ts index 8851ff89eb1c..767eeeb37919 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStatusSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the current status for the change data capture resource. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStopSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStopSample.ts index f19ba9aafb4b..5c2dc95493de 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStopSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/changeDataCaptureStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops a change data capture. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsCreateOrUpdateSample.ts index f51687f6ba3d..c5f89eff1aef 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a credential. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsDeleteSample.ts index c527dd2f98a5..415a1794bdb0 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a credential. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsGetSample.ts index 46b644f5f2f1..faf9584d18f8 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a credential. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsListByFactorySample.ts index ee2ebc12e2a6..a59db22cde66 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/credentialOperationsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List credentials. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts index 8bfbb52c00fd..ef47d224aa83 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Add a data flow into debug session. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionCreateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionCreateSample.ts index fa894cad8a95..cedd0ed8e9a0 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionCreateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionCreateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a data flow debug session. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionDeleteSample.ts index 0875b8977356..7efd5ea51296 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionDeleteSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a data flow debug session. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts index 2fc17c2cf1c7..6eb9e151ff3a 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Execute a data flow debug command. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts index 5f0153425ab4..19e4d92be169 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query all active data flow debug sessions. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsCreateOrUpdateSample.ts index 7079de0afda4..cc2d6043570e 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a data flow. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsDeleteSample.ts index 7388a7daa068..eb7282597dd0 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a data flow. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsGetSample.ts index 28b3c5876dd3..48968ebb948a 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a data flow. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsListByFactorySample.ts index e1aea598bf36..10e8ba149f79 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/dataFlowsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists data flows. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsCreateOrUpdateSample.ts index a8a5ef60b627..8a6a51f23580 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a dataset. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsDeleteSample.ts index 58f600b259ab..60c17f42bb02 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a dataset. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsGetSample.ts index 4bcabeceb1b1..157256222860 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a dataset. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsListByFactorySample.ts index d8459bffe3f9..15297dfc44fb 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/datasetsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists datasets. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueByFactorySample.ts index fa403ffd6f79..dd198bdab29f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get exposure control feature for specific factory. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueSample.ts index 56b38bb3ead9..7f98cf9a7bc9 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlGetFeatureValueSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get exposure control feature for specific location. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts index dc0881bce904..4905dc9402ae 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get list of exposure control features for specific factory. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesConfigureFactoryRepoSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesConfigureFactoryRepoSample.ts index 0c423009c28e..1a1e88af13fe 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesConfigureFactoryRepoSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesConfigureFactoryRepoSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a factory's repo information. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesCreateOrUpdateSample.ts index 816fe390eeb3..d91e58548269 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Factory, DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a factory. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesDeleteSample.ts index 8d9fef67aa5a..dd3a99f26617 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a factory. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetDataPlaneAccessSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetDataPlaneAccessSample.ts index ee830ae45fea..020ddad3e750 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetDataPlaneAccessSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetDataPlaneAccessSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get Data Plane access. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetGitHubAccessTokenSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetGitHubAccessTokenSample.ts index a34d7bdd2a1d..0d30cd01d25b 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetGitHubAccessTokenSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetGitHubAccessTokenSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get GitHub Access Token. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetSample.ts index ee27528602e8..439a0028abff 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a factory. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListByResourceGroupSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListByResourceGroupSample.ts index 64b26f8bc63b..8deced337ecd 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListByResourceGroupSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists factories. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListSample.ts index 6f2489fefce0..4b6c5a57b8de 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists factories under the specified subscription. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesUpdateSample.ts index 20e85e4249b4..a2f3149543d3 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/factoriesUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a factory. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersCreateOrUpdateSample.ts index 2a3ded2669a1..c4e0e93d8e13 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a Global parameter diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersDeleteSample.ts index 72c66a27b258..45a2705717f1 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a Global parameter diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersGetSample.ts index 5312b521b3a2..fa015c286fb9 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Global parameter diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersListByFactorySample.ts index 97b15dc13914..1b615adef1b8 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/globalParametersListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Global parameters diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesDeleteSample.ts index b09ec45340d7..5ca96f01d32f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a self-hosted integration runtime node. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts index 7e87f0406a40..13a99d314f16 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the IP address of self-hosted integration runtime node. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetSample.ts index ee999af1fe2c..c1c02dae6e47 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a self-hosted integration runtime node. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesUpdateSample.ts index 1d301a9c74d6..f8b98d0f2d4f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeNodesUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a self-hosted integration runtime node. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataGetSample.ts index 882b892b9499..e036501cb11f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataGetSample.ts @@ -14,9 +14,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts index fc228a035522..60fd0491921f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Refresh a SSIS integration runtime object metadata. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts index bd412b2c83b4..bf4a0699205f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a linked integration runtime entry in a shared integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateOrUpdateSample.ts index 951dc8c86fbb..71836dc95356 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesDeleteSample.ts index ed1d08596ca0..954e4da164ce 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetConnectionInfoSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetConnectionInfoSample.ts index 44d8bed9fa74..e34d6c8e30f3 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetConnectionInfoSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetConnectionInfoSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetMonitoringDataSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetMonitoringDataSample.ts index f58dbde83c02..1bb1dd19f392 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetMonitoringDataSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetMonitoringDataSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetSample.ts index f42d26424aaf..178d49a451ab 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets an integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetStatusSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetStatusSample.ts index 5e242c154015..1528186c4b5a 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetStatusSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesGetStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets detailed status information for an integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListAuthKeysSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListAuthKeysSample.ts index 6883bc6f169f..d77fc5114c37 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListAuthKeysSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListAuthKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Retrieves the authentication keys for an integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListByFactorySample.ts index 8406d5da6486..7c3d4b1e2e9f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists integration runtimes. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts index 6ae1590850b3..80894190e9d4 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts index 8233d7c2259f..dccf7f48588f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerates the authentication key for an integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRemoveLinksSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRemoveLinksSample.ts index becc74948e20..cdc5253a19b4 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRemoveLinksSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesRemoveLinksSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStartSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStartSample.ts index bf35fbae7cae..cf4c2e84e501 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStartSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts a ManagedReserved type integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStopSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStopSample.ts index 287c51c08600..f2f9f052a9c1 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStopSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops a ManagedReserved type integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesSyncCredentialsSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesSyncCredentialsSample.ts index 5c5cf696a5a2..adee20934b48 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesSyncCredentialsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesSyncCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpdateSample.ts index cb070063d0e7..f599beef8ef1 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates an integration runtime. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpgradeSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpgradeSample.ts index 619c99bf967f..1b5c4bb67155 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpgradeSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/integrationRuntimesUpgradeSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Upgrade self-hosted integration runtime to latest version if availability. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesCreateOrUpdateSample.ts index 9dad16e787dc..f088afd5a030 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a linked service. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesDeleteSample.ts index af81386b988e..7ed96b434f03 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a linked service. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesGetSample.ts index 20ce79383f0c..1c6be2d9d846 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a linked service. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesListByFactorySample.ts index e717fffa7d5a..bc48b78c4471 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/linkedServicesListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists linked services. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts index a519407160f7..5e0fc5f25f84 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed private endpoint. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsDeleteSample.ts index f2db309dc4ed..37d4f3cc2950 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a managed private endpoint. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsGetSample.ts index 92e14eb1a9d3..5d5dbe05fd04 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed private endpoint. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsListByFactorySample.ts index 994925cec782..92b323b4adc3 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedPrivateEndpointsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed private endpoints. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts index ba71a1d4dbef..34a9ce41521a 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed Virtual Network. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksGetSample.ts index c6b444d51180..1ba5add39464 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed Virtual Network. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksListByFactorySample.ts index b83f27ea9319..ed14444daa25 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/managedVirtualNetworksListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed Virtual Networks. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/operationsListSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/operationsListSample.ts index 0dbddfbfddef..7238b6166a38 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/operationsListSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the available Azure Data Factory API operations. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsCancelSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsCancelSample.ts index 21a64af76d85..10d96561ec64 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsCancelSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancel a pipeline run by its run ID. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsGetSample.ts index 4e91d9d91981..6026311347f9 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a pipeline run by its run ID. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsQueryByFactorySample.ts index f2cf2e863548..dcfcaa682b2c 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelineRunsQueryByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query pipeline runs in the factory based on input filter conditions. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateOrUpdateSample.ts index a5fa92445f04..412773a47f73 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a pipeline. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateRunSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateRunSample.ts index ed15cc2b3267..8f2a28826698 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateRunSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesCreateRunSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a run of a pipeline. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesDeleteSample.ts index 4e1dead20020..4d757bb515f7 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a pipeline. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesGetSample.ts index f3577db7432a..3d4854f2b69f 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a pipeline. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesListByFactorySample.ts index ab97d7392a7b..452248c11c7b 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/pipelinesListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists pipelines. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndPointConnectionsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndPointConnectionsListByFactorySample.ts index 8e5ed06abfd1..d73c930f28c0 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndPointConnectionsListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndPointConnectionsListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists Private endpoint connections diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts index eab272076128..e4358063b2aa 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Approves or rejects a private endpoint connection diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionDeleteSample.ts index 01fa27a306ce..ce9e65410ade 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a private endpoint connection diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionGetSample.ts index 208860c1c4b5..c501e01cb9e6 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateEndpointConnectionGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a private endpoint connection diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateLinkResourcesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateLinkResourcesGetSample.ts index ca3a1bd84c78..b38cc1773e62 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateLinkResourcesGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/privateLinkResourcesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the private link resources diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsCancelSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsCancelSample.ts index 9c5ff234a490..7ef2a8fa9734 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsCancelSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancel a single trigger instance by runId. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsQueryByFactorySample.ts index 307754c8fe67..67de358cdbe7 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsQueryByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query trigger runs. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsRerunSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsRerunSample.ts index acdc8340ef8f..abe024fd37e7 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsRerunSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggerRunsRerunSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Rerun single trigger instance by runId. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersCreateOrUpdateSample.ts index 88726d4ac6f7..2aea4229fe22 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersCreateOrUpdateSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a trigger. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersDeleteSample.ts index 7132d21900d2..044d4f069557 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersDeleteSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a trigger. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetEventSubscriptionStatusSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetEventSubscriptionStatusSample.ts index 27e712b91e1e..cf0d7f09c464 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetEventSubscriptionStatusSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetEventSubscriptionStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a trigger's event subscription status. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetSample.ts index bd974fa4fa7d..4c299fed5007 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a trigger. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersListByFactorySample.ts index f5b5397fb32e..a4706a75a74c 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersListByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersListByFactorySample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists triggers. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersQueryByFactorySample.ts index 643a40b8ccea..4ce3575fe42a 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersQueryByFactorySample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersQueryByFactorySample.ts @@ -13,9 +13,7 @@ import { DataFactoryManagementClient, } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Query triggers. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStartSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStartSample.ts index 5d4e2762a78e..81e6eaad0342 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStartSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts a trigger. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStopSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStopSample.ts index f7bb3561ad8a..f38554416fe4 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStopSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops a trigger. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersSubscribeToEventsSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersSubscribeToEventsSample.ts index aa0a27416b06..f16ba931a900 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersSubscribeToEventsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersSubscribeToEventsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Subscribe event trigger to events. diff --git a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersUnsubscribeFromEventsSample.ts b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersUnsubscribeFromEventsSample.ts index e15c36198a67..e8bc4e69bf52 100644 --- a/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersUnsubscribeFromEventsSample.ts +++ b/sdk/datafactory/arm-datafactory/samples/v18/typescript/src/triggersUnsubscribeFromEventsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataFactoryManagementClient } from "@azure/arm-datafactory"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Unsubscribe event trigger from events. diff --git a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts index c3b13ffe2a82..af044cc4a34e 100644 --- a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts +++ b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts @@ -38,7 +38,7 @@ import { PrivateLinkResourcesImpl, GlobalParametersImpl, ChangeDataCaptureImpl, -} from "./operations"; +} from "./operations/index.js"; import { Operations, Factories, @@ -63,8 +63,8 @@ import { PrivateLinkResources, GlobalParameters, ChangeDataCapture, -} from "./operationsInterfaces"; -import { DataFactoryManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DataFactoryManagementClientOptionalParams } from "./models/index.js"; export class DataFactoryManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/datafactory/arm-datafactory/src/index.ts b/sdk/datafactory/arm-datafactory/src/index.ts index b3b8db1ab5fc..af412e491b92 100644 --- a/sdk/datafactory/arm-datafactory/src/index.ts +++ b/sdk/datafactory/arm-datafactory/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DataFactoryManagementClient } from "./dataFactoryManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DataFactoryManagementClient } from "./dataFactoryManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/datafactory/arm-datafactory/src/models/parameters.ts b/sdk/datafactory/arm-datafactory/src/models/parameters.ts index cd0233ee837d..88e2e69ed26b 100644 --- a/sdk/datafactory/arm-datafactory/src/models/parameters.ts +++ b/sdk/datafactory/arm-datafactory/src/models/parameters.ts @@ -43,7 +43,7 @@ import { PrivateLinkConnectionApprovalRequestResource as PrivateLinkConnectionApprovalRequestResourceMapper, GlobalParameterResource as GlobalParameterResourceMapper, ChangeDataCaptureResource as ChangeDataCaptureResourceMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/datafactory/arm-datafactory/src/operations/activityRuns.ts b/sdk/datafactory/arm-datafactory/src/operations/activityRuns.ts index 9aaab402a546..2a19293359c3 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/activityRuns.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/activityRuns.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ActivityRuns } from "../operationsInterfaces"; +import { ActivityRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { RunFilterParameters, ActivityRunsQueryByPipelineRunOptionalParams, ActivityRunsQueryByPipelineRunResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ActivityRuns operations. */ export class ActivityRunsImpl implements ActivityRuns { diff --git a/sdk/datafactory/arm-datafactory/src/operations/changeDataCapture.ts b/sdk/datafactory/arm-datafactory/src/operations/changeDataCapture.ts index 6c15f9a97761..aa2471ab05a8 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/changeDataCapture.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/changeDataCapture.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ChangeDataCapture } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ChangeDataCapture } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { ChangeDataCaptureResource, ChangeDataCaptureListByFactoryNextOptionalParams, @@ -28,7 +28,7 @@ import { ChangeDataCaptureStatusOptionalParams, ChangeDataCaptureStatusResponse, ChangeDataCaptureListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ChangeDataCapture operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/credentialOperations.ts b/sdk/datafactory/arm-datafactory/src/operations/credentialOperations.ts index 7f50ba5dd62d..60c4d3ac09d4 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/credentialOperations.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/credentialOperations.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CredentialOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CredentialOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { CredentialResource, CredentialOperationsListByFactoryNextOptionalParams, @@ -24,7 +24,7 @@ import { CredentialOperationsGetResponse, CredentialOperationsDeleteOptionalParams, CredentialOperationsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing CredentialOperations operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts b/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts index d2c848139842..102ca4e5e157 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataFlowDebugSession } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataFlowDebugSession } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DataFlowDebugSessionInfo, DataFlowDebugSessionQueryByFactoryNextOptionalParams, @@ -36,7 +36,7 @@ import { DataFlowDebugSessionExecuteCommandOptionalParams, DataFlowDebugSessionExecuteCommandResponse, DataFlowDebugSessionQueryByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataFlowDebugSession operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/dataFlows.ts b/sdk/datafactory/arm-datafactory/src/operations/dataFlows.ts index 84672f925990..3d00d10165c1 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/dataFlows.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/dataFlows.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataFlows } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataFlows } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { DataFlowResource, DataFlowsListByFactoryNextOptionalParams, @@ -24,7 +24,7 @@ import { DataFlowsGetResponse, DataFlowsDeleteOptionalParams, DataFlowsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataFlows operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/datasets.ts b/sdk/datafactory/arm-datafactory/src/operations/datasets.ts index 5e5ab632d5b1..d33369b630e8 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/datasets.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/datasets.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Datasets } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Datasets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { DatasetResource, DatasetsListByFactoryNextOptionalParams, @@ -24,7 +24,7 @@ import { DatasetsGetResponse, DatasetsDeleteOptionalParams, DatasetsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Datasets operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/exposureControl.ts b/sdk/datafactory/arm-datafactory/src/operations/exposureControl.ts index 48dfb68c8fe3..a5c9560378ce 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/exposureControl.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/exposureControl.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ExposureControl } from "../operationsInterfaces"; +import { ExposureControl } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { ExposureControlRequest, ExposureControlGetFeatureValueOptionalParams, @@ -20,7 +20,7 @@ import { ExposureControlBatchRequest, ExposureControlQueryFeatureValuesByFactoryOptionalParams, ExposureControlQueryFeatureValuesByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ExposureControl operations. */ export class ExposureControlImpl implements ExposureControl { diff --git a/sdk/datafactory/arm-datafactory/src/operations/factories.ts b/sdk/datafactory/arm-datafactory/src/operations/factories.ts index 00898c1efc4e..ba8157825d3c 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/factories.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/factories.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Factories } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Factories } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { Factory, FactoriesListNextOptionalParams, @@ -40,7 +40,7 @@ import { FactoriesGetDataPlaneAccessResponse, FactoriesListNextResponse, FactoriesListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Factories operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/globalParameters.ts b/sdk/datafactory/arm-datafactory/src/operations/globalParameters.ts index d767ef92f1e9..f408ae605cd5 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/globalParameters.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/globalParameters.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { GlobalParameters } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { GlobalParameters } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { GlobalParameterResource, GlobalParametersListByFactoryNextOptionalParams, @@ -24,7 +24,7 @@ import { GlobalParametersCreateOrUpdateResponse, GlobalParametersDeleteOptionalParams, GlobalParametersListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing GlobalParameters operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/index.ts b/sdk/datafactory/arm-datafactory/src/operations/index.ts index f72a62d3670c..7bce476019f7 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/index.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/index.ts @@ -6,26 +6,26 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./factories"; -export * from "./exposureControl"; -export * from "./integrationRuntimes"; -export * from "./integrationRuntimeObjectMetadata"; -export * from "./integrationRuntimeNodes"; -export * from "./linkedServices"; -export * from "./datasets"; -export * from "./pipelines"; -export * from "./pipelineRuns"; -export * from "./activityRuns"; -export * from "./triggers"; -export * from "./triggerRuns"; -export * from "./dataFlows"; -export * from "./dataFlowDebugSession"; -export * from "./managedVirtualNetworks"; -export * from "./managedPrivateEndpoints"; -export * from "./credentialOperations"; -export * from "./privateEndPointConnections"; -export * from "./privateEndpointConnection"; -export * from "./privateLinkResources"; -export * from "./globalParameters"; -export * from "./changeDataCapture"; +export * from "./operations.js"; +export * from "./factories.js"; +export * from "./exposureControl.js"; +export * from "./integrationRuntimes.js"; +export * from "./integrationRuntimeObjectMetadata.js"; +export * from "./integrationRuntimeNodes.js"; +export * from "./linkedServices.js"; +export * from "./datasets.js"; +export * from "./pipelines.js"; +export * from "./pipelineRuns.js"; +export * from "./activityRuns.js"; +export * from "./triggers.js"; +export * from "./triggerRuns.js"; +export * from "./dataFlows.js"; +export * from "./dataFlowDebugSession.js"; +export * from "./managedVirtualNetworks.js"; +export * from "./managedPrivateEndpoints.js"; +export * from "./credentialOperations.js"; +export * from "./privateEndPointConnections.js"; +export * from "./privateEndpointConnection.js"; +export * from "./privateLinkResources.js"; +export * from "./globalParameters.js"; +export * from "./changeDataCapture.js"; diff --git a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeNodes.ts b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeNodes.ts index 62907bb1c0d9..85027a382d26 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeNodes.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeNodes.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { IntegrationRuntimeNodes } from "../operationsInterfaces"; +import { IntegrationRuntimeNodes } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { IntegrationRuntimeNodesGetOptionalParams, IntegrationRuntimeNodesGetResponse, @@ -20,7 +20,7 @@ import { IntegrationRuntimeNodesUpdateResponse, IntegrationRuntimeNodesGetIpAddressOptionalParams, IntegrationRuntimeNodesGetIpAddressResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing IntegrationRuntimeNodes operations. */ export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { diff --git a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts index 5ab9a382fa82..6d0601d2f3d8 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts @@ -6,23 +6,23 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { IntegrationRuntimeObjectMetadata } from "../operationsInterfaces"; +import { IntegrationRuntimeObjectMetadata } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { IntegrationRuntimeObjectMetadataRefreshOptionalParams, IntegrationRuntimeObjectMetadataRefreshResponse, IntegrationRuntimeObjectMetadataGetOptionalParams, IntegrationRuntimeObjectMetadataGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing IntegrationRuntimeObjectMetadata operations. */ export class IntegrationRuntimeObjectMetadataImpl diff --git a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts index 7eecdc06784e..9125b37f5229 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { IntegrationRuntimes } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { IntegrationRuntimes } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { IntegrationRuntimeResource, IntegrationRuntimesListByFactoryNextOptionalParams, @@ -56,7 +56,7 @@ import { IntegrationRuntimesCreateLinkedIntegrationRuntimeOptionalParams, IntegrationRuntimesCreateLinkedIntegrationRuntimeResponse, IntegrationRuntimesListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing IntegrationRuntimes operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/linkedServices.ts b/sdk/datafactory/arm-datafactory/src/operations/linkedServices.ts index 04c735f2104e..db7c58b9ab37 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/linkedServices.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/linkedServices.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { LinkedServices } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { LinkedServices } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { LinkedServiceResource, LinkedServicesListByFactoryNextOptionalParams, @@ -24,7 +24,7 @@ import { LinkedServicesGetResponse, LinkedServicesDeleteOptionalParams, LinkedServicesListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing LinkedServices operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/managedPrivateEndpoints.ts b/sdk/datafactory/arm-datafactory/src/operations/managedPrivateEndpoints.ts index 64d5d8498d5f..557615163072 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/managedPrivateEndpoints.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/managedPrivateEndpoints.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedPrivateEndpoints } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ManagedPrivateEndpoints } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { ManagedPrivateEndpointResource, ManagedPrivateEndpointsListByFactoryNextOptionalParams, @@ -24,7 +24,7 @@ import { ManagedPrivateEndpointsGetResponse, ManagedPrivateEndpointsDeleteOptionalParams, ManagedPrivateEndpointsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ManagedPrivateEndpoints operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/managedVirtualNetworks.ts b/sdk/datafactory/arm-datafactory/src/operations/managedVirtualNetworks.ts index bc466caf2748..5934f987751f 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/managedVirtualNetworks.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/managedVirtualNetworks.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedVirtualNetworks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ManagedVirtualNetworks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { ManagedVirtualNetworkResource, ManagedVirtualNetworksListByFactoryNextOptionalParams, @@ -23,7 +23,7 @@ import { ManagedVirtualNetworksGetOptionalParams, ManagedVirtualNetworksGetResponse, ManagedVirtualNetworksListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ManagedVirtualNetworks operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/operations.ts b/sdk/datafactory/arm-datafactory/src/operations/operations.ts index 2272cdab25ed..37b7f59c7acc 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/operations.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/operations.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/pipelineRuns.ts b/sdk/datafactory/arm-datafactory/src/operations/pipelineRuns.ts index 5b73acfb84e1..ebf3bb6e8655 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/pipelineRuns.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/pipelineRuns.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PipelineRuns } from "../operationsInterfaces"; +import { PipelineRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { RunFilterParameters, PipelineRunsQueryByFactoryOptionalParams, @@ -18,7 +18,7 @@ import { PipelineRunsGetOptionalParams, PipelineRunsGetResponse, PipelineRunsCancelOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing PipelineRuns operations. */ export class PipelineRunsImpl implements PipelineRuns { diff --git a/sdk/datafactory/arm-datafactory/src/operations/pipelines.ts b/sdk/datafactory/arm-datafactory/src/operations/pipelines.ts index 2bce8216ae7f..7fd84341d79f 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/pipelines.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/pipelines.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Pipelines } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Pipelines } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { PipelineResource, PipelinesListByFactoryNextOptionalParams, @@ -26,7 +26,7 @@ import { PipelinesCreateRunOptionalParams, PipelinesCreateRunResponse, PipelinesListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Pipelines operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/privateEndPointConnections.ts b/sdk/datafactory/arm-datafactory/src/operations/privateEndPointConnections.ts index 0f4a70d6978c..c37dd4207ad0 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/privateEndPointConnections.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/privateEndPointConnections.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { PrivateEndPointConnections } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { PrivateEndPointConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { PrivateEndpointConnectionResource, PrivateEndPointConnectionsListByFactoryNextOptionalParams, PrivateEndPointConnectionsListByFactoryOptionalParams, PrivateEndPointConnectionsListByFactoryResponse, PrivateEndPointConnectionsListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateEndPointConnections operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operations/privateEndpointConnection.ts b/sdk/datafactory/arm-datafactory/src/operations/privateEndpointConnection.ts index 3c84e812f9c6..616b87192c29 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/privateEndpointConnection.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/privateEndpointConnection.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PrivateEndpointConnection } from "../operationsInterfaces"; +import { PrivateEndpointConnection } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { PrivateLinkConnectionApprovalRequestResource, PrivateEndpointConnectionCreateOrUpdateOptionalParams, @@ -18,7 +18,7 @@ import { PrivateEndpointConnectionGetOptionalParams, PrivateEndpointConnectionGetResponse, PrivateEndpointConnectionDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateEndpointConnection operations. */ export class PrivateEndpointConnectionImpl diff --git a/sdk/datafactory/arm-datafactory/src/operations/privateLinkResources.ts b/sdk/datafactory/arm-datafactory/src/operations/privateLinkResources.ts index b069cea6a29f..6615aee44a5c 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/privateLinkResources.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/privateLinkResources.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PrivateLinkResources } from "../operationsInterfaces"; +import { PrivateLinkResources } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { diff --git a/sdk/datafactory/arm-datafactory/src/operations/triggerRuns.ts b/sdk/datafactory/arm-datafactory/src/operations/triggerRuns.ts index 0655a7af0b89..9d5df3ea6f96 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/triggerRuns.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/triggerRuns.ts @@ -6,18 +6,18 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { TriggerRuns } from "../operationsInterfaces"; +import { TriggerRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { TriggerRunsRerunOptionalParams, TriggerRunsCancelOptionalParams, RunFilterParameters, TriggerRunsQueryByFactoryOptionalParams, TriggerRunsQueryByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing TriggerRuns operations. */ export class TriggerRunsImpl implements TriggerRuns { diff --git a/sdk/datafactory/arm-datafactory/src/operations/triggers.ts b/sdk/datafactory/arm-datafactory/src/operations/triggers.ts index b3bf19ee295b..84d5b7c229cf 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/triggers.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/triggers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Triggers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Triggers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { TriggerResource, TriggersListByFactoryNextOptionalParams, @@ -41,7 +41,7 @@ import { TriggersStartOptionalParams, TriggersStopOptionalParams, TriggersListByFactoryNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Triggers operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/activityRuns.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/activityRuns.ts index 945d96205c37..35f5d9f58fe2 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/activityRuns.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/activityRuns.ts @@ -10,7 +10,7 @@ import { RunFilterParameters, ActivityRunsQueryByPipelineRunOptionalParams, ActivityRunsQueryByPipelineRunResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ActivityRuns. */ export interface ActivityRuns { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/changeDataCapture.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/changeDataCapture.ts index de8b3aefe74d..31fe1f7f3a72 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/changeDataCapture.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/changeDataCapture.ts @@ -19,7 +19,7 @@ import { ChangeDataCaptureStopOptionalParams, ChangeDataCaptureStatusOptionalParams, ChangeDataCaptureStatusResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ChangeDataCapture. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/credentialOperations.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/credentialOperations.ts index 2289af1ba452..f8a953e3ffd5 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/credentialOperations.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/credentialOperations.ts @@ -15,7 +15,7 @@ import { CredentialOperationsGetOptionalParams, CredentialOperationsGetResponse, CredentialOperationsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CredentialOperations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts index 5dd0b3dca96b..cb0a4dabddcf 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts @@ -22,7 +22,7 @@ import { DataFlowDebugCommandRequest, DataFlowDebugSessionExecuteCommandOptionalParams, DataFlowDebugSessionExecuteCommandResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataFlowDebugSession. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlows.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlows.ts index 69dbd092352e..ff455c0cda38 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlows.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlows.ts @@ -15,7 +15,7 @@ import { DataFlowsGetOptionalParams, DataFlowsGetResponse, DataFlowsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataFlows. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/datasets.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/datasets.ts index ede5935687fc..ef9d6c12192a 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/datasets.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/datasets.ts @@ -15,7 +15,7 @@ import { DatasetsGetOptionalParams, DatasetsGetResponse, DatasetsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Datasets. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/exposureControl.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/exposureControl.ts index fa0c8ff3765e..643506fd656f 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/exposureControl.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/exposureControl.ts @@ -15,7 +15,7 @@ import { ExposureControlBatchRequest, ExposureControlQueryFeatureValuesByFactoryOptionalParams, ExposureControlQueryFeatureValuesByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ExposureControl. */ export interface ExposureControl { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/factories.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/factories.ts index 0d62b6b996a8..979a8d04c128 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/factories.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/factories.ts @@ -28,7 +28,7 @@ import { UserAccessPolicy, FactoriesGetDataPlaneAccessOptionalParams, FactoriesGetDataPlaneAccessResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Factories. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/globalParameters.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/globalParameters.ts index 6a30671aae20..d02acac98511 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/globalParameters.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/globalParameters.ts @@ -15,7 +15,7 @@ import { GlobalParametersCreateOrUpdateOptionalParams, GlobalParametersCreateOrUpdateResponse, GlobalParametersDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a GlobalParameters. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts index f72a62d3670c..7bce476019f7 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts @@ -6,26 +6,26 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./factories"; -export * from "./exposureControl"; -export * from "./integrationRuntimes"; -export * from "./integrationRuntimeObjectMetadata"; -export * from "./integrationRuntimeNodes"; -export * from "./linkedServices"; -export * from "./datasets"; -export * from "./pipelines"; -export * from "./pipelineRuns"; -export * from "./activityRuns"; -export * from "./triggers"; -export * from "./triggerRuns"; -export * from "./dataFlows"; -export * from "./dataFlowDebugSession"; -export * from "./managedVirtualNetworks"; -export * from "./managedPrivateEndpoints"; -export * from "./credentialOperations"; -export * from "./privateEndPointConnections"; -export * from "./privateEndpointConnection"; -export * from "./privateLinkResources"; -export * from "./globalParameters"; -export * from "./changeDataCapture"; +export * from "./operations.js"; +export * from "./factories.js"; +export * from "./exposureControl.js"; +export * from "./integrationRuntimes.js"; +export * from "./integrationRuntimeObjectMetadata.js"; +export * from "./integrationRuntimeNodes.js"; +export * from "./linkedServices.js"; +export * from "./datasets.js"; +export * from "./pipelines.js"; +export * from "./pipelineRuns.js"; +export * from "./activityRuns.js"; +export * from "./triggers.js"; +export * from "./triggerRuns.js"; +export * from "./dataFlows.js"; +export * from "./dataFlowDebugSession.js"; +export * from "./managedVirtualNetworks.js"; +export * from "./managedPrivateEndpoints.js"; +export * from "./credentialOperations.js"; +export * from "./privateEndPointConnections.js"; +export * from "./privateEndpointConnection.js"; +export * from "./privateLinkResources.js"; +export * from "./globalParameters.js"; +export * from "./changeDataCapture.js"; diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts index 959cfbe72985..37e8529e3245 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeNodes.ts @@ -15,7 +15,7 @@ import { IntegrationRuntimeNodesUpdateResponse, IntegrationRuntimeNodesGetIpAddressOptionalParams, IntegrationRuntimeNodesGetIpAddressResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a IntegrationRuntimeNodes. */ export interface IntegrationRuntimeNodes { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts index d86420e0eea8..b425b536d74b 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts @@ -12,7 +12,7 @@ import { IntegrationRuntimeObjectMetadataRefreshResponse, IntegrationRuntimeObjectMetadataGetOptionalParams, IntegrationRuntimeObjectMetadataGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a IntegrationRuntimeObjectMetadata. */ export interface IntegrationRuntimeObjectMetadata { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts index 3250f9208449..1bba4893ac28 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts @@ -42,7 +42,7 @@ import { CreateLinkedIntegrationRuntimeRequest, IntegrationRuntimesCreateLinkedIntegrationRuntimeOptionalParams, IntegrationRuntimesCreateLinkedIntegrationRuntimeResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a IntegrationRuntimes. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/linkedServices.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/linkedServices.ts index ea4092dfa5d1..4059e964d4c8 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/linkedServices.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/linkedServices.ts @@ -15,7 +15,7 @@ import { LinkedServicesGetOptionalParams, LinkedServicesGetResponse, LinkedServicesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a LinkedServices. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts index ec24e8268306..341a0ada4ee9 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedPrivateEndpoints.ts @@ -15,7 +15,7 @@ import { ManagedPrivateEndpointsGetOptionalParams, ManagedPrivateEndpointsGetResponse, ManagedPrivateEndpointsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ManagedPrivateEndpoints. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedVirtualNetworks.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedVirtualNetworks.ts index e6d356ded6f7..1c4374970eab 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedVirtualNetworks.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/managedVirtualNetworks.ts @@ -14,7 +14,7 @@ import { ManagedVirtualNetworksCreateOrUpdateResponse, ManagedVirtualNetworksGetOptionalParams, ManagedVirtualNetworksGetResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ManagedVirtualNetworks. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/operations.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/operations.ts index 267701ac842e..fbf7c5c08ead 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/operations.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/operations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; +import { Operation, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelineRuns.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelineRuns.ts index 2f0900d48f6e..3b8917edc9e1 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelineRuns.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelineRuns.ts @@ -13,7 +13,7 @@ import { PipelineRunsGetOptionalParams, PipelineRunsGetResponse, PipelineRunsCancelOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PipelineRuns. */ export interface PipelineRuns { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelines.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelines.ts index 9e9873bbac06..a1cc9860ae94 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelines.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/pipelines.ts @@ -17,7 +17,7 @@ import { PipelinesDeleteOptionalParams, PipelinesCreateRunOptionalParams, PipelinesCreateRunResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Pipelines. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndPointConnections.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndPointConnections.ts index 21bfedd7a10b..7bc8953938eb 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndPointConnections.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndPointConnections.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpointConnectionResource, PrivateEndPointConnectionsListByFactoryOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PrivateEndPointConnections. */ diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndpointConnection.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndpointConnection.ts index 3b4f6a87f2d6..ccf86cbd8bc9 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndpointConnection.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateEndpointConnection.ts @@ -13,7 +13,7 @@ import { PrivateEndpointConnectionGetOptionalParams, PrivateEndpointConnectionGetResponse, PrivateEndpointConnectionDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateEndpointConnection. */ export interface PrivateEndpointConnection { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateLinkResources.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateLinkResources.ts index e1a670400891..d406acfc7c11 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/privateLinkResources.ts @@ -9,7 +9,7 @@ import { PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggerRuns.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggerRuns.ts index f7e759026e97..3a23280ec65d 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggerRuns.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggerRuns.ts @@ -12,7 +12,7 @@ import { RunFilterParameters, TriggerRunsQueryByFactoryOptionalParams, TriggerRunsQueryByFactoryResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a TriggerRuns. */ export interface TriggerRuns { diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts index a62aded23ffe..664ba79f04ce 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts @@ -27,7 +27,7 @@ import { TriggersUnsubscribeFromEventsResponse, TriggersStartOptionalParams, TriggersStopOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Triggers. */ diff --git a/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts b/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts index 0046503dbd71..147f96700f82 100644 --- a/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts +++ b/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts @@ -10,15 +10,12 @@ import { env, Recorder, RecorderStartOptions, - delay, isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { DataFactoryManagementClient } from "../src/dataFactoryManagementClient"; -import { Factory, PipelineResource } from "../src/models"; -import { dataFlow } from "../src/models/parameters"; +import { DataFactoryManagementClient } from "../src/dataFactoryManagementClient.js"; +import { Factory, PipelineResource } from "../src/models/index.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -49,14 +46,13 @@ describe("Datafactory test", () => { let resourceGroup: string; let factoryName: string; let factory: Factory; - let sessionId: string; let pipelineName: string; let datasetName: string; let linkedServiceName: string; let dataFlowName: string; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async function (ctx) { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used @@ -109,7 +105,7 @@ describe("Datafactory test", () => { }, testPollingOptions ); - return sessionId = String(res.sessionId) + assert.ok(res); }); it("linkedService create test", async function () { @@ -157,48 +153,6 @@ describe("Datafactory test", () => { }); it("dataflow create test", async function () { - const res1 = await client.datasets.createOrUpdate( - resourceGroup, - factoryName, - "CurrencyDatasetUSD", - { - properties: { - type: "AzureBlob", - format: { type: "TextFormat" }, - fileName: { type: "Expression", value: "@dataset().MyFileName" }, - folderPath: { type: "Expression", value: "@dataset().MyFolderPath" }, - linkedServiceName: { - type: "LinkedServiceReference", - referenceName: "exampleLinkedService" - }, - parameters: { - myFileName: { type: "String" }, - myFolderPath: { type: "String" } - } - } - } - ); - const res2 = await client.datasets.createOrUpdate( - resourceGroup, - factoryName, - "CurrencyDatasetCAD", - { - properties: { - type: "AzureBlob", - format: { type: "TextFormat" }, - fileName: { type: "Expression", value: "@dataset().MyFileName" }, - folderPath: { type: "Expression", value: "@dataset().MyFolderPath" }, - linkedServiceName: { - type: "LinkedServiceReference", - referenceName: "exampleLinkedService" - }, - parameters: { - myFileName: { type: "String" }, - myFolderPath: { type: "String" } - } - } - } - ); const res = await client.dataFlows.createOrUpdate( resourceGroup, factoryName, @@ -303,18 +257,10 @@ describe("Datafactory test", () => { }); it("dataFlowDebugSession delete test", async function () { - const result = await client.dataFlowDebugSession.delete( - resourceGroup, - factoryName, - { - sessionId - } - ); }); it("pipeline delete test", async function () { const resArray = new Array(); - const res = await client.pipelines.delete(resourceGroup, factoryName, pipelineName) for await (let item of client.pipelines.listByFactory(resourceGroup, factoryName)) { resArray.push(item); } @@ -323,7 +269,6 @@ describe("Datafactory test", () => { it("dataflow delete test", async function () { const resArray = new Array(); - const res = await client.dataFlows.delete(resourceGroup, factoryName, dataFlowName) for await (let item of client.dataFlows.listByFactory(resourceGroup, factoryName)) { resArray.push(item); } @@ -332,9 +277,6 @@ describe("Datafactory test", () => { it("datasets delete test", async function () { const resArray = new Array(); - const res = await client.datasets.delete(resourceGroup, factoryName, datasetName) - const res1 = await client.datasets.delete(resourceGroup, factoryName, "CurrencyDatasetUSD") - const res2 = await client.datasets.delete(resourceGroup, factoryName, "CurrencyDatasetCAD") for await (let item of client.datasets.listByFactory(resourceGroup, factoryName)) { resArray.push(item); } @@ -343,7 +285,6 @@ describe("Datafactory test", () => { it("datafactory delete test", async function () { const resArray = new Array(); - const res = await client.factories.delete(resourceGroup, factoryName) for await (let item of client.factories.listByResourceGroup(resourceGroup)) { resArray.push(item); } diff --git a/sdk/datafactory/arm-datafactory/tsconfig.browser.config.json b/sdk/datafactory/arm-datafactory/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/datafactory/arm-datafactory/tsconfig.json b/sdk/datafactory/arm-datafactory/tsconfig.json index 8b6b24907f29..19ceb382b521 100644 --- a/sdk/datafactory/arm-datafactory/tsconfig.json +++ b/sdk/datafactory/arm-datafactory/tsconfig.json @@ -1,33 +1,13 @@ { - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-datafactory": [ - "./src/index" - ] + "references": [ + { + "path": "./tsconfig.src.json" + }, + { + "path": "./tsconfig.samples.json" + }, + { + "path": "./tsconfig.test.json" } - }, - "include": [ - "src/**/*.ts", - "test/**/*.ts", - "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" ] -} \ No newline at end of file +} diff --git a/sdk/datafactory/arm-datafactory/tsconfig.samples.json b/sdk/datafactory/arm-datafactory/tsconfig.samples.json new file mode 100644 index 000000000000..e21ea547dfc9 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-datafactory": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/datafactory/arm-datafactory/tsconfig.src.json b/sdk/datafactory/arm-datafactory/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/datafactory/arm-datafactory/tsconfig.test.json b/sdk/datafactory/arm-datafactory/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/datafactory/arm-datafactory/vitest.browser.config.ts b/sdk/datafactory/arm-datafactory/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js",], + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/datafactory/arm-datafactory/vitest.config.ts b/sdk/datafactory/arm-datafactory/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/vitest.config.ts @@ -0,0 +1,16 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/datafactory/arm-datafactory/vitest.esm.config.ts b/sdk/datafactory/arm-datafactory/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/vitest.esm.config.ts @@ -0,0 +1,12 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { mergeConfig } from "vitest/config"; +import vitestConfig from "./vitest.config.ts"; +import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; + +export default mergeConfig( + vitestConfig, + vitestEsmConfig +); diff --git a/sdk/datalake-analytics/arm-datalake-analytics/api-extractor.json b/sdk/datalake-analytics/arm-datalake-analytics/api-extractor.json index 278fee732475..62fc27518253 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/api-extractor.json +++ b/sdk/datalake-analytics/arm-datalake-analytics/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-datalake-analytics.d.ts" + "publicTrimmedFilePath": "dist/arm-datalake-analytics.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/assets.json b/sdk/datalake-analytics/arm-datalake-analytics/assets.json index 22492fd94fc0..493923bb9f08 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/assets.json +++ b/sdk/datalake-analytics/arm-datalake-analytics/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/datalake-analytics/arm-datalake-analytics", - "Tag": "js/datalake-analytics/arm-datalake-analytics_3dcbc712fe" + "Tag": "js/datalake-analytics/arm-datalake-analytics_78b6c2d78c" } diff --git a/sdk/datalake-analytics/arm-datalake-analytics/package.json b/sdk/datalake-analytics/arm-datalake-analytics/package.json index 4792962f1f36..24dcd580f6ae 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/package.json +++ b/sdk/datalake-analytics/arm-datalake-analytics/package.json @@ -24,21 +24,21 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-datalake-analytics.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", - "mocha": "^11.0.2", - "ts-node": "^10.0.0", - "typescript": "~5.7.2" + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", + "playwright": "^1.49.1", + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datalake-analytics/arm-datalake-analytics", "repository": { @@ -49,24 +49,14 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", "build:node": "echo skipped", "build:samples": "echo skipped.", @@ -78,7 +68,7 @@ "format": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", @@ -88,7 +78,7 @@ "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -108,5 +98,45 @@ ], "disableDocsMs": true, "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-datalake-analytics?view=azure-node-preview" + }, + "type": "module", + "tshy": { + "project": "./tsconfig.src.json", + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCheckNameAvailabilitySample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCheckNameAvailabilitySample.ts index 4a9a7ebebd97..e97c29512652 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCheckNameAvailabilitySample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCheckNameAvailabilitySample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Checks whether the specified account name is available or taken. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_CheckNameAvailability.json */ -async function checksWhetherTheSpecifiedAccountNameIsAvailableOrTaken() { +async function checksWhetherTheSpecifiedAccountNameIsAvailableOrTaken(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const location = "EastUS2"; const parameters: CheckNameAvailabilityParameters = { diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCreateSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCreateSample.ts index 098429c252a8..cbdf2c0f1520 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCreateSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsCreateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Create.json */ -async function createsTheSpecifiedDataLakeAnalyticsAccountThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads() { +async function createsTheSpecifiedDataLakeAnalyticsAccountThisSuppliesTheUserWithComputationServicesForDataLakeAnalyticsWorkloads(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsDeleteSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsDeleteSample.ts index 53943735ae0a..c6ccad4bcd42 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsDeleteSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Begins the delete process for the Data Lake Analytics account object specified by the account name. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Delete.json */ -async function beginsTheDeleteProcessForTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountName() { +async function beginsTheDeleteProcessForTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountName(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsGetSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsGetSample.ts index ae9af0fb5123..78467954f56a 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsGetSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets details of the specified Data Lake Analytics account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Get.json */ -async function getsDetailsOfTheSpecifiedDataLakeAnalyticsAccount() { +async function getsDetailsOfTheSpecifiedDataLakeAnalyticsAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListByResourceGroupSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListByResourceGroupSample.ts index db0f3dd2edda..539bb61accc1 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListByResourceGroupSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListByResourceGroupSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_ListByResourceGroup.json */ -async function getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinASpecificResourceGroupThisIncludesALinkToTheNextPageIfAny() { +async function getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinASpecificResourceGroupThisIncludesALinkToTheNextPageIfAny(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const filter = "test_filter"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListSample.ts index 3d4b829c6078..b1ad7c7ad885 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsListSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_List.json */ -async function getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinTheCurrentSubscriptionThisIncludesALinkToTheNextPageIfAny() { +async function getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinTheCurrentSubscriptionThisIncludesALinkToTheNextPageIfAny(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const filter = "test_filter"; const top = 1; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsUpdateSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsUpdateSample.ts index f7f91715fb6f..24a09e46c2cf 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsUpdateSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/accountsUpdateSample.ts @@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Update.json */ -async function updatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountNameWithTheContentsOfTheAccountObject() { +async function updatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountNameWithTheContentsOfTheAccountObject(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesCreateOrUpdateSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesCreateOrUpdateSample.ts index 1bb7e26fde2e..b7d1d7aa0b38 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesCreateOrUpdateSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_CreateOrUpdate.json */ -async function createsOrUpdatesTheSpecifiedComputePolicy() { +async function createsOrUpdatesTheSpecifiedComputePolicy(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesDeleteSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesDeleteSample.ts index 243691244248..30c902a253ed 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesDeleteSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Deletes the specified compute policy from the specified Data Lake Analytics account * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Delete.json */ -async function deletesTheSpecifiedComputePolicyFromTheAdlaAccount() { +async function deletesTheSpecifiedComputePolicyFromTheAdlaAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesGetSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesGetSample.ts index 6497d59656d7..564669cdecf0 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesGetSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the specified Data Lake Analytics compute policy. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Get.json */ -async function getsTheSpecifiedComputePolicy() { +async function getsTheSpecifiedComputePolicy(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesListByAccountSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesListByAccountSample.ts index 3f40b4caecff..3dbfad2a3070 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesListByAccountSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesListByAccountSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_ListByAccount.json */ -async function listsTheComputePoliciesWithinTheAdlaAccount() { +async function listsTheComputePoliciesWithinTheAdlaAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesUpdateSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesUpdateSample.ts index 15184821b934..8b6096f31d10 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesUpdateSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/computePoliciesUpdateSample.ts @@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the specified compute policy. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Update.json */ -async function updatesTheSpecifiedComputePolicy() { +async function updatesTheSpecifiedComputePolicy(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsAddSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsAddSample.ts index e8af9efbee93..cdc914485a12 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsAddSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsAddSample.ts @@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the specified Data Lake Analytics account to include the additional Data Lake Store account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Add.json */ -async function addsADataLakeStoreAccount() { +async function addsADataLakeStoreAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsDeleteSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsDeleteSample.ts index a971ce5f6b1e..f4114f388a15 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsDeleteSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Delete.json */ -async function removesTheSpecifiedDataLakeStoreAccount() { +async function removesTheSpecifiedDataLakeStoreAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsGetSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsGetSample.ts index 49901b78b865..724790f35a3f 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsGetSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the specified Data Lake Store account details in the specified Data Lake Analytics account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Get.json */ -async function getsTheSpecifiedDataLakeStoreAccountDetails() { +async function getsTheSpecifiedDataLakeStoreAccountDetails(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1669ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsListByAccountSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsListByAccountSample.ts index 5904d4dfde2c..c01d0ecfb379 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsListByAccountSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/dataLakeStoreAccountsListByAccountSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_ListByAccount.json */ -async function getsTheFirstPageOfDataLakeStoreAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount() { +async function getsTheFirstPageOfDataLakeStoreAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesCreateOrUpdateSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesCreateOrUpdateSample.ts index bf4fa94d918f..e04185ce662a 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesCreateOrUpdateSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be replaced with this new firewall rule. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_CreateOrUpdate.json */ -async function createsOrUpdatesTheSpecifiedFirewallRule() { +async function createsOrUpdatesTheSpecifiedFirewallRule(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesDeleteSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesDeleteSample.ts index 01d60418fcc8..77f5486a96cb 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesDeleteSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Deletes the specified firewall rule from the specified Data Lake Analytics account * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Delete.json */ -async function deletesTheSpecifiedFirewallRule() { +async function deletesTheSpecifiedFirewallRule(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesGetSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesGetSample.ts index 0a2c934ace86..27ec56106e2e 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesGetSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the specified Data Lake Analytics firewall rule. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Get.json */ -async function getsTheSpecifiedDataLakeAnalyticsFirewallRule() { +async function getsTheSpecifiedDataLakeAnalyticsFirewallRule(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesListByAccountSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesListByAccountSample.ts index 5cfce071bec7..32a14b9ffb43 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesListByAccountSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesListByAccountSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists the Data Lake Analytics firewall rules within the specified Data Lake Analytics account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_ListByAccount.json */ -async function listsTheDataLakeAnalyticsFirewallRules() { +async function listsTheDataLakeAnalyticsFirewallRules(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesUpdateSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesUpdateSample.ts index eee3ccb5072c..d6b0cc88ae24 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesUpdateSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/firewallRulesUpdateSample.ts @@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the specified firewall rule. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/FirewallRules_Update.json */ -async function updatesTheSpecifiedFirewallRule() { +async function updatesTheSpecifiedFirewallRule(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/locationsGetCapabilitySample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/locationsGetCapabilitySample.ts index 0d5a03693da7..c3560e753264 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/locationsGetCapabilitySample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/locationsGetCapabilitySample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets subscription-level properties and limits for Data Lake Analytics specified by resource location. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Locations_GetCapability.json */ -async function getsSubscriptionLevelPropertiesAndLimitsForDataLakeAnalyticsSpecifiedByResourceLocation() { +async function getsSubscriptionLevelPropertiesAndLimitsForDataLakeAnalyticsSpecifiedByResourceLocation(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const location = "EastUS2"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/operationsListSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/operationsListSample.ts index acfe3f35e355..cf1234797fa6 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/operationsListSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/operationsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists all of the available Data Lake Analytics REST API operations. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Operations_List.json */ -async function listsAllOfTheAvailableDataLakeAnalyticsRestApiOperations() { +async function listsAllOfTheAvailableDataLakeAnalyticsRestApiOperations(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new DataLakeAnalyticsAccountManagementClient( diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsAddSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsAddSample.ts index 84e2565d647f..7686e2928dd6 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsAddSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsAddSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the specified Data Lake Analytics account to add an Azure Storage account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Add.json */ -async function addsAnAzureStorageAccount() { +async function addsAnAzureStorageAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsDeleteSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsDeleteSample.ts index a3d1a415f1ec..e7faae9df976 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsDeleteSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the specified Data Lake Analytics account to remove an Azure Storage account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Delete.json */ -async function removesAnAzureStorageAccount() { +async function removesAnAzureStorageAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetSample.ts index ce38da0b062b..3d4851d3beb6 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the specified Azure Storage account linked to the given Data Lake Analytics account. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Get.json */ -async function getsTheSpecifiedAzureStorageAccount() { +async function getsTheSpecifiedAzureStorageAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetStorageContainerSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetStorageContainerSample.ts index d4a2f9743362..19f8bf655803 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetStorageContainerSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsGetStorageContainerSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_GetStorageContainer.json */ -async function getsTheSpecifiedAzureStorageContainer() { +async function getsTheSpecifiedAzureStorageContainer(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListByAccountSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListByAccountSample.ts index 4cf8f31299ef..0329128e43a8 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListByAccountSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListByAccountSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListByAccount.json */ -async function getsTheFirstPageOfAzureStorageAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount() { +async function getsTheFirstPageOfAzureStorageAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListSasTokensSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListSasTokensSample.ts index 6bd40e0ae40b..2ea09b6b3213 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListSasTokensSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListSasTokensSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListSasTokens.json */ -async function getsTheSasToken() { +async function getsTheSasToken(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListStorageContainersSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListStorageContainersSample.ts index 6e1d6ee000d9..c5e50f77f64c 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListStorageContainersSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsListStorageContainersSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_ListStorageContainers.json */ -async function listsTheAzureStorageContainers() { +async function listsTheAzureStorageContainers(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsUpdateSample.ts b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsUpdateSample.ts index f9a597a6607d..c85d91f53415 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsUpdateSample.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/samples-dev/storageAccountsUpdateSample.ts @@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix. * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/StorageAccounts_Update.json */ -async function replacesAzureStorageBlobAccountDetails() { +async function replacesAzureStorageBlobAccountDetails(): Promise { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; const resourceGroupName = "contosorg"; const accountName = "contosoadla"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClient.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClient.ts index c9f064caa704..67b2d844f590 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClient.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/dataLakeAnalyticsAccountManagementClient.ts @@ -22,7 +22,7 @@ import { FirewallRulesImpl, OperationsImpl, LocationsImpl -} from "./operations"; +} from "./operations/index.js"; import { Accounts, DataLakeStoreAccounts, @@ -31,8 +31,8 @@ import { FirewallRules, Operations, Locations -} from "./operationsInterfaces"; -import { DataLakeAnalyticsAccountManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DataLakeAnalyticsAccountManagementClientOptionalParams } from "./models/index.js"; export class DataLakeAnalyticsAccountManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/index.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/index.ts index c7d95d6064b7..70cc168a89de 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/index.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DataLakeAnalyticsAccountManagementClient } from "./dataLakeAnalyticsAccountManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DataLakeAnalyticsAccountManagementClient } from "./dataLakeAnalyticsAccountManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/models/parameters.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/models/parameters.ts index 33f74d2acc30..c2412dbb9ad4 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/models/parameters.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/models/parameters.ts @@ -22,7 +22,7 @@ import { UpdateComputePolicyParameters as UpdateComputePolicyParametersMapper, CreateOrUpdateFirewallRuleParameters as CreateOrUpdateFirewallRuleParametersMapper, UpdateFirewallRuleParameters as UpdateFirewallRuleParametersMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/accounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/accounts.ts index 0d12409c2cd4..ffd9eae2fbc1 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/accounts.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/accounts.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Accounts } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Accounts } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { DataLakeAnalyticsAccountBasic, AccountsListNextOptionalParams, @@ -36,7 +36,7 @@ import { AccountsCheckNameAvailabilityResponse, AccountsListNextResponse, AccountsListByResourceGroupNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Accounts operations. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/computePolicies.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/computePolicies.ts index 0d8ae81a98e0..7ca016fd07d2 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/computePolicies.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/computePolicies.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ComputePolicies } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ComputePolicies } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient.js"; import { ComputePolicy, ComputePoliciesListByAccountNextOptionalParams, @@ -27,7 +27,7 @@ import { ComputePoliciesUpdateResponse, ComputePoliciesDeleteOptionalParams, ComputePoliciesListByAccountNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ComputePolicies operations. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/dataLakeStoreAccounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/dataLakeStoreAccounts.ts index ec92836541f6..2a481496470c 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/dataLakeStoreAccounts.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/dataLakeStoreAccounts.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataLakeStoreAccounts } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataLakeStoreAccounts } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient.js"; import { DataLakeStoreAccountInformation, DataLakeStoreAccountsListByAccountNextOptionalParams, @@ -23,7 +23,7 @@ import { DataLakeStoreAccountsGetResponse, DataLakeStoreAccountsDeleteOptionalParams, DataLakeStoreAccountsListByAccountNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataLakeStoreAccounts operations. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/firewallRules.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/firewallRules.ts index bb157db80357..1a46fa06d406 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/firewallRules.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/firewallRules.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FirewallRules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FirewallRules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient.js"; import { FirewallRule, FirewallRulesListByAccountNextOptionalParams, @@ -27,7 +27,7 @@ import { FirewallRulesUpdateResponse, FirewallRulesDeleteOptionalParams, FirewallRulesListByAccountNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing FirewallRules operations. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/index.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/index.ts index 49e4340e9813..393c430b3437 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/index.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./accounts"; -export * from "./dataLakeStoreAccounts"; -export * from "./storageAccounts"; -export * from "./computePolicies"; -export * from "./firewallRules"; -export * from "./operations"; -export * from "./locations"; +export * from "./accounts.js"; +export * from "./dataLakeStoreAccounts.js"; +export * from "./storageAccounts.js"; +export * from "./computePolicies.js"; +export * from "./firewallRules.js"; +export * from "./operations.js"; +export * from "./locations.js"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/locations.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/locations.ts index 1d4ceec4eafe..d1aca1e45b42 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/locations.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/locations.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Locations } from "../operationsInterfaces"; +import { Locations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient.js"; import { LocationsGetCapabilityOptionalParams, LocationsGetCapabilityResponse -} from "../models"; +} from "../models/index.js"; /** Class containing Locations operations. */ export class LocationsImpl implements Locations { diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/operations.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/operations.ts index 323eb05963d4..aac922e62e3a 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/operations.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/operations.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Operations } from "../operationsInterfaces"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient.js"; import { OperationsListOptionalParams, OperationsListResponse -} from "../models"; +} from "../models/index.js"; /** Class containing Operations operations. */ export class OperationsImpl implements Operations { diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/storageAccounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/storageAccounts.ts index ca5c0c6fdc87..c981d1ec21b3 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operations/storageAccounts.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operations/storageAccounts.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { StorageAccounts } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { StorageAccounts } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient.js"; import { StorageAccountInformation, StorageAccountsListByAccountNextOptionalParams, @@ -37,7 +37,7 @@ import { StorageAccountsListByAccountNextResponse, StorageAccountsListStorageContainersNextResponse, StorageAccountsListSasTokensNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing StorageAccounts operations. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/accounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/accounts.ts index 4acfb5fc2d2d..3342c8dd9d93 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/accounts.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/accounts.ts @@ -23,7 +23,7 @@ import { CheckNameAvailabilityParameters, AccountsCheckNameAvailabilityOptionalParams, AccountsCheckNameAvailabilityResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Accounts. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/computePolicies.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/computePolicies.ts index d3e06113af86..f9825b40eb85 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/computePolicies.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/computePolicies.ts @@ -18,7 +18,7 @@ import { ComputePoliciesUpdateOptionalParams, ComputePoliciesUpdateResponse, ComputePoliciesDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ComputePolicies. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/dataLakeStoreAccounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/dataLakeStoreAccounts.ts index 5519feb235ee..b2d8395c84e0 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/dataLakeStoreAccounts.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/dataLakeStoreAccounts.ts @@ -14,7 +14,7 @@ import { DataLakeStoreAccountsGetOptionalParams, DataLakeStoreAccountsGetResponse, DataLakeStoreAccountsDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataLakeStoreAccounts. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/firewallRules.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/firewallRules.ts index 17c234526aa5..80ffd6ad076a 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/firewallRules.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/firewallRules.ts @@ -18,7 +18,7 @@ import { FirewallRulesUpdateOptionalParams, FirewallRulesUpdateResponse, FirewallRulesDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FirewallRules. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/index.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/index.ts index 49e4340e9813..393c430b3437 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/index.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./accounts"; -export * from "./dataLakeStoreAccounts"; -export * from "./storageAccounts"; -export * from "./computePolicies"; -export * from "./firewallRules"; -export * from "./operations"; -export * from "./locations"; +export * from "./accounts.js"; +export * from "./dataLakeStoreAccounts.js"; +export * from "./storageAccounts.js"; +export * from "./computePolicies.js"; +export * from "./firewallRules.js"; +export * from "./operations.js"; +export * from "./locations.js"; diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/locations.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/locations.ts index d90fbd7b9ba3..2416d4cd7163 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/locations.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/locations.ts @@ -9,7 +9,7 @@ import { LocationsGetCapabilityOptionalParams, LocationsGetCapabilityResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a Locations. */ export interface Locations { diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/operations.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/operations.ts index 3fa47253543a..55cb9bc93f38 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/operations.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/operations.ts @@ -9,7 +9,7 @@ import { OperationsListOptionalParams, OperationsListResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a Operations. */ export interface Operations { diff --git a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/storageAccounts.ts b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/storageAccounts.ts index 3cd2c4c07624..7e5b7f059e94 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/storageAccounts.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/src/operationsInterfaces/storageAccounts.ts @@ -22,7 +22,7 @@ import { StorageAccountsDeleteOptionalParams, StorageAccountsGetStorageContainerOptionalParams, StorageAccountsGetStorageContainerResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a StorageAccounts. */ diff --git a/sdk/datalake-analytics/arm-datalake-analytics/test/datalake-analytics_examples.spec.ts b/sdk/datalake-analytics/arm-datalake-analytics/test/datalake-analytics_examples.spec.ts index b99255a244d1..d7b346e3e9f5 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/test/datalake-analytics_examples.spec.ts +++ b/sdk/datalake-analytics/arm-datalake-analytics/test/datalake-analytics_examples.spec.ts @@ -10,13 +10,11 @@ import { env, Recorder, RecorderStartOptions, - delay, isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { DataLakeAnalyticsAccountManagementClient } from "../src/dataLakeAnalyticsAccountManagementClient"; +import { DataLakeAnalyticsAccountManagementClient } from "../src/dataLakeAnalyticsAccountManagementClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -41,27 +39,22 @@ describe("DatalakeAnalytics test", () => { let recorder: Recorder; let subscriptionId: string; let client: DataLakeAnalyticsAccountManagementClient; - let location: string; - let resourceGroup: string; - let accountName: string; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async function (ctx) { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used const credential = createTestCredential(); client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus2"; - resourceGroup = "myjstest"; - accountName = "myaccountxxx"; }); afterEach(async function () { await recorder.stop(); }); - it("accounts create test", async function () { + it("operations list test", async function () { const res = await client.operations.list(); + assert.ok(res); }); }); diff --git a/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.browser.config.json b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.json b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.json index f0c3ab37c401..19ceb382b521 100644 --- a/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.json +++ b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.json @@ -1,33 +1,13 @@ { - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-datalake-analytics": [ - "./src/index" - ] + "references": [ + { + "path": "./tsconfig.src.json" + }, + { + "path": "./tsconfig.samples.json" + }, + { + "path": "./tsconfig.test.json" } - }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" ] -} \ No newline at end of file +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.samples.json b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.samples.json new file mode 100644 index 000000000000..60d056a099a1 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-datalake-analytics": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.src.json b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.test.json b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/datalake-analytics/arm-datalake-analytics/vitest.browser.config.ts b/sdk/datalake-analytics/arm-datalake-analytics/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js",], + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/datalake-analytics/arm-datalake-analytics/vitest.config.ts b/sdk/datalake-analytics/arm-datalake-analytics/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/vitest.config.ts @@ -0,0 +1,16 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/datalake-analytics/arm-datalake-analytics/vitest.esm.config.ts b/sdk/datalake-analytics/arm-datalake-analytics/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/datalake-analytics/arm-datalake-analytics/vitest.esm.config.ts @@ -0,0 +1,12 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { mergeConfig } from "vitest/config"; +import vitestConfig from "./vitest.config.ts"; +import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; + +export default mergeConfig( + vitestConfig, + vitestEsmConfig +); diff --git a/sdk/datamigration/arm-datamigration/api-extractor.json b/sdk/datamigration/arm-datamigration/api-extractor.json index 1613066a4220..486506605b7a 100644 --- a/sdk/datamigration/arm-datamigration/api-extractor.json +++ b/sdk/datamigration/arm-datamigration/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-datamigration.d.ts" + "publicTrimmedFilePath": "dist/arm-datamigration.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/datamigration/arm-datamigration/package.json b/sdk/datamigration/arm-datamigration/package.json index 2b7a211de117..ec367f562893 100644 --- a/sdk/datamigration/arm-datamigration/package.json +++ b/sdk/datamigration/arm-datamigration/package.json @@ -24,21 +24,21 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-datamigration.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", - "mocha": "^11.0.2", - "ts-node": "^10.0.0", - "typescript": "~5.7.2" + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", + "playwright": "^1.49.1", + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datamigration/arm-datamigration", "repository": { @@ -49,24 +49,14 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", "build:node": "echo skipped", "build:samples": "echo skipped.", @@ -78,7 +68,7 @@ "format": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", @@ -88,7 +78,7 @@ "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -108,5 +98,45 @@ ], "disableDocsMs": true, "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-datamigration?view=azure-node-preview" + }, + "type": "module", + "tshy": { + "project": "./tsconfig.src.json", + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.ts b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.ts index d33faea2fba5..4fb1df918196 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMaximumParameters.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function createOrUpdateDatabaseMigrationResourceWithMaximumParameters() { +async function createOrUpdateDatabaseMigrationResourceWithMaximumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.ts b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.ts index c8a33a11600d..237b409f6255 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateDatabaseMigrationResourceWithMinimumParameters.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function createOrUpdateDatabaseMigrationResourceWithMinimumParameters() { +async function createOrUpdateDatabaseMigrationResourceWithMinimumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.ts b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.ts index f6ad9801efaf..9738e736e6d2 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMaximumParameters.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function createOrUpdateSqlMigrationServiceWithMaximumParameters() { +async function createOrUpdateSqlMigrationServiceWithMaximumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "testagent"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.ts b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.ts index f352d409af7b..042ea26e69b3 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/createOrUpdateSqlMigrationServiceWithMinimumParameters.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function createOrUpdateSqlMigrationServiceWithMinimumParameters() { +async function createOrUpdateSqlMigrationServiceWithMinimumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "testagent"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.ts b/sdk/datamigration/arm-datamigration/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.ts index e27af568300b..5116b3df13ca 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/cutoverOnlineMigrationOperationForTheDatabase.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function cutoverOnlineMigrationOperationForTheDatabase() { +async function cutoverOnlineMigrationOperationForTheDatabase(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCancelSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCancelSample.ts index f0896cd3a58e..33dca92ab17f 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCancelSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCancelSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Stop migrations in progress for the database * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCancelDatabaseMigration.json */ -async function stopOngoingMigrationForTheDatabase() { +async function stopOngoingMigrationForTheDatabase(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const managedInstanceName = "managedInstance1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.ts index a79ca4192aa3..9971bb9c565e 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or Update Database Migration resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json */ -async function createOrUpdateDatabaseMigrationResourceWithMaximumParameters() { +async function createOrUpdateDatabaseMigrationResourceWithMaximumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const managedInstanceName = "managedInstance1"; @@ -81,7 +81,7 @@ createOrUpdateDatabaseMigrationResourceWithMaximumParameters().catch( * @summary Create or Update Database Migration resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json */ -async function createOrUpdateDatabaseMigrationResourceWithMinimumParameters() { +async function createOrUpdateDatabaseMigrationResourceWithMinimumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const managedInstanceName = "managedInstance1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCutoverSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCutoverSample.ts index f23063acf40b..4162e63abf8d 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCutoverSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiCutoverSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Initiate cutover for online migration in progress for the database. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiCutoverDatabaseMigration.json */ -async function cutoverOnlineMigrationOperationForTheDatabase() { +async function cutoverOnlineMigrationOperationForTheDatabase(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const managedInstanceName = "managedInstance1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiGetSample.ts index 5a9b719885c0..cc227f81083c 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlMiGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve the Database Migration resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlMiGetDatabaseMigration.json */ -async function getDatabaseMigrationResource() { +async function getDatabaseMigrationResource(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const managedInstanceName = "managedInstance1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCancelSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCancelSample.ts index b6e9ed8d1668..f502969fa381 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCancelSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCancelSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Stop ongoing migration for the database. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCancelDatabaseMigration.json */ -async function stopOngoingMigrationForTheDatabase() { +async function stopOngoingMigrationForTheDatabase(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.ts index 0830b1a5f183..d91628f90f0a 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or Update Database Migration resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json */ -async function createOrUpdateDatabaseMigrationResourceWithMaximumParameters() { +async function createOrUpdateDatabaseMigrationResourceWithMaximumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; @@ -81,7 +81,7 @@ createOrUpdateDatabaseMigrationResourceWithMaximumParameters().catch( * @summary Create or Update Database Migration resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json */ -async function createOrUpdateDatabaseMigrationResourceWithMinimumParameters() { +async function createOrUpdateDatabaseMigrationResourceWithMinimumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCutoverSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCutoverSample.ts index aa53a32f0012..ba456dc40626 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCutoverSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMCutoverSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Cutover online migration operation for the database. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmCutoverDatabaseMigration.json */ -async function cutoverOnlineMigrationOperationForTheDatabase() { +async function cutoverOnlineMigrationOperationForTheDatabase(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMGetSample.ts index 0f8cdd63af54..ae8e76c3ed3b 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/databaseMigrationsSqlVMGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve the Database Migration resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/SqlVmGetDatabaseMigration.json */ -async function getDatabaseMigrationResource() { +async function getDatabaseMigrationResource(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/deleteSqlMigrationService.ts b/sdk/datamigration/arm-datamigration/samples-dev/deleteSqlMigrationService.ts index 41180ee34bd8..a021182aedf3 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/deleteSqlMigrationService.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/deleteSqlMigrationService.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function deleteSqlMigrationService() { +async function deleteSqlMigrationService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/deleteTheIntegrationRuntimeNode.ts b/sdk/datamigration/arm-datamigration/samples-dev/deleteTheIntegrationRuntimeNode.ts index 04d173bf4444..0732a3ee4599 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/deleteTheIntegrationRuntimeNode.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/deleteTheIntegrationRuntimeNode.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function deleteTheIntegrationRuntimeNode() { +async function deleteTheIntegrationRuntimeNode(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdate.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdate.ts index d95161a7ab34..ec419568bf05 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdate.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdate.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function filesCreateOrUpdate() { +async function filesCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdateSample.ts index 6ab8542a1cba..5a8419d74d86 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The PUT method creates a new file or updates an existing one. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_CreateOrUpdate.json */ -async function filesCreateOrUpdate() { +async function filesCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesDelete.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesDelete.ts index acdc5f869a28..810ba65814ce 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesDelete.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesDelete.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function filesDelete() { +async function filesDelete(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesDeleteSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesDeleteSample.ts index 0eba77f74068..0933487179e2 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesDeleteSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary This method deletes a file. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Delete.json */ -async function filesDelete() { +async function filesDelete(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesGetSample.ts index a7e23e46fa11..c96bec2d1029 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Get.json */ -async function filesList() { +async function filesList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesList.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesList.ts index de2a85d9ea9c..bdbb76aa9237 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesList.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesList.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function filesList() { +async function filesList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesListSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesListSample.ts index fe4e5415c51f..886f05152100 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesListSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The project resource is a nested resource representing a stored migration project. This method returns a list of files owned by a project resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_List.json */ -async function filesList() { +async function filesList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesReadSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesReadSample.ts index 7377eb06e34c..02d3d3cf60a6 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesReadSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesReadSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary This method is used for requesting storage information using which contents of the file can be downloaded. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Read.json */ -async function filesList() { +async function filesList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesReadWriteSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesReadWriteSample.ts index 0fca89fe81f8..54efd2665974 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesReadWriteSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesReadWriteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary This method is used for requesting information for reading and writing the file content. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_ReadWrite.json */ -async function filesList() { +async function filesList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesUpdate.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesUpdate.ts index c84aa364135c..7998bd7c4ae4 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesUpdate.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesUpdate.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function filesUpdate() { +async function filesUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/filesUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/filesUpdateSample.ts index 93e3c116a809..4ce93066e341 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/filesUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/filesUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary This method updates an existing file. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Update.json */ -async function filesUpdate() { +async function filesUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/getDatabaseMigrationResource.ts b/sdk/datamigration/arm-datamigration/samples-dev/getDatabaseMigrationResource.ts index 3f7a9130d33d..c5fe9c2a8017 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/getDatabaseMigrationResource.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/getDatabaseMigrationResource.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function getDatabaseMigrationResource() { +async function getDatabaseMigrationResource(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/getMigrationService.ts b/sdk/datamigration/arm-datamigration/samples-dev/getMigrationService.ts index e0e9f3724d03..9ac50afe5dd8 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/getMigrationService.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/getMigrationService.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function getMigrationService() { +async function getMigrationService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/getMigrationServicesInTheResourceGroup.ts b/sdk/datamigration/arm-datamigration/samples-dev/getMigrationServicesInTheResourceGroup.ts index 88ba97b5d252..46906b40fed3 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/getMigrationServicesInTheResourceGroup.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/getMigrationServicesInTheResourceGroup.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function getMigrationServicesInTheResourceGroup() { +async function getMigrationServicesInTheResourceGroup(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/getServicesInTheSubscriptions.ts b/sdk/datamigration/arm-datamigration/samples-dev/getServicesInTheSubscriptions.ts index 8b71bce7e337..f1d1f957e6ba 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/getServicesInTheSubscriptions.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/getServicesInTheSubscriptions.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function getServicesInTheSubscriptions() { +async function getServicesInTheSubscriptions(): Promise { const subscriptionId = "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/listDatabaseMigrationsAttachedToTheService.ts b/sdk/datamigration/arm-datamigration/samples-dev/listDatabaseMigrationsAttachedToTheService.ts index 27b420dbe2f0..e7d5db344e0e 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/listDatabaseMigrationsAttachedToTheService.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/listDatabaseMigrationsAttachedToTheService.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function listDatabaseMigrationsAttachedToTheService() { +async function listDatabaseMigrationsAttachedToTheService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/listSkus.ts b/sdk/datamigration/arm-datamigration/samples-dev/listSkus.ts index c432b42f5883..3f87098db589 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/listSkus.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/listSkus.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function listSkus() { +async function listSkus(): Promise { const subscriptionId = "subid"; const credential = new DefaultAzureCredential(); const client = new DataMigrationManagementClient(credential, subscriptionId); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.ts b/sdk/datamigration/arm-datamigration/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.ts index 36f2be009f0a..4b31777bafc4 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function listsAllOfTheAvailableSqlRestApiOperations() { +async function listsAllOfTheAvailableSqlRestApiOperations(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new DataMigrationManagementClient(credential, subscriptionId); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/operationsListSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/operationsListSample.ts index a271ebc65436..3df90d5f5032 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/operationsListSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/operationsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists all of the available SQL Migration REST API operations. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListOperation.json */ -async function listsAllOfTheAvailableSqlRestApiOperations() { +async function listsAllOfTheAvailableSqlRestApiOperations(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new DataMigrationManagementClient(credential, subscriptionId); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdate.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdate.ts index c445dd21a1af..b52dc98d528b 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdate.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdate.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function projectsCreateOrUpdate() { +async function projectsCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdateSample.ts index 15fdc15e23c5..508e9912f31c 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_CreateOrUpdate.json */ -async function projectsCreateOrUpdate() { +async function projectsCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsDelete.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsDelete.ts index d01fbf04bf87..95da345bf64d 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsDelete.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsDelete.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function projectsDelete() { +async function projectsDelete(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsDeleteSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsDeleteSample.ts index bbcb08ec1d6c..6b0c956b0838 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsDeleteSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_Delete.json */ -async function projectsDelete() { +async function projectsDelete(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsGet.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsGet.ts index c433b89caaf3..df5dc7d06b41 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsGet.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsGet.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function projectsGet() { +async function projectsGet(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsGetSample.ts index 6515c081f383..3af947beab78 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_Get.json */ -async function projectsGet() { +async function projectsGet(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsList.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsList.ts index ba31e997d1b2..d32bcd8ef33c 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsList.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsList.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function projectsList() { +async function projectsList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsListSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsListSample.ts index c6d7a9e41c50..56682c1c6f03 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsListSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_List.json */ -async function projectsList() { +async function projectsList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdate.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdate.ts index d93d773fd1c1..de149880a8f5 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdate.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdate.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function projectsUpdate() { +async function projectsUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdateSample.ts index e23ea2253fd7..cb1ba6d76057 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/projectsUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_Update.json */ -async function projectsUpdate() { +async function projectsUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/regenerateTheOfAuthenticationKeys.ts b/sdk/datamigration/arm-datamigration/samples-dev/regenerateTheOfAuthenticationKeys.ts index 95a76c8887ac..3db2c743ebe7 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/regenerateTheOfAuthenticationKeys.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/regenerateTheOfAuthenticationKeys.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function regenerateTheOfAuthenticationKeys() { +async function regenerateTheOfAuthenticationKeys(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/resourceSkusListSkusSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/resourceSkusListSkusSample.ts index 2bce65ae2393..db3d4314519b 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/resourceSkusListSkusSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/resourceSkusListSkusSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The skus action returns the list of SKUs that DMS supports. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ResourceSkus_ListSkus.json */ -async function listSkus() { +async function listSkus(): Promise { const subscriptionId = "subid"; const credential = new DefaultAzureCredential(); const client = new DataMigrationManagementClient(credential, subscriptionId); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheListOfAuthenticationKeys.ts b/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheListOfAuthenticationKeys.ts index 0bf70bcd8791..babcf72b58aa 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheListOfAuthenticationKeys.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheListOfAuthenticationKeys.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function retrieveTheListOfAuthenticationKeys() { +async function retrieveTheListOfAuthenticationKeys(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheMonitoringData.ts b/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheMonitoringData.ts index 37ecc1c54dea..f2da16b8ea10 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheMonitoringData.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/retrieveTheMonitoringData.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function retrieveTheMonitoringData() { +async function retrieveTheMonitoringData(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCancelSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCancelSample.ts index c7ac08c110c0..984d53d1f5a1 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCancelSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCancelSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a service task if it's currently queued or running. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ServiceTasks_Cancel.json */ -async function tasksCancel() { +async function tasksCancel(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCreateOrUpdateSample.ts index 12634978b1c7..71cb3bbcecd5 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new service task or updates an existing one, although since service tasks have no mutable custom properties, there is little reason to update an existing one. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ServiceTasks_CreateOrUpdate.json */ -async function tasksCreateOrUpdate() { +async function tasksCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksDeleteSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksDeleteSample.ts index 323ac6934662..5a4fb2e97d2a 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksDeleteSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The DELETE method deletes a service task, canceling it first if it's running. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ServiceTasks_Delete.json */ -async function tasksDelete() { +async function tasksDelete(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksGetSample.ts index 4e536e285dc6..29f18324f808 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The GET method retrieves information about a service task. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ServiceTasks_Get.json */ -async function tasksGet() { +async function tasksGet(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksList.ts b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksList.ts index 69c333d78c07..5aef5338f451 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksList.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksList.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function serviceTasksList() { +async function serviceTasksList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksListSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksListSample.ts index 99e2a8d5226c..3c705ac93425 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksListSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service level tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ServiceTasks_List.json */ -async function serviceTasksList() { +async function serviceTasksList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksUpdateSample.ts index 401fd08ee666..96ac7de65940 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/serviceTasksUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The service tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PATCH method updates an existing service task, but since service tasks have no mutable custom properties, there is little reason to do so. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ServiceTasks_Update.json */ -async function tasksUpdate() { +async function tasksUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailability.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailability.ts index a18c3b01b61b..132e4cb9754c 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailability.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailability.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesCheckChildrenNameAvailability() { +async function servicesCheckChildrenNameAvailability(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailabilitySample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailabilitySample.ts index 19763d837d26..0828e8ac8115 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailabilitySample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckChildrenNameAvailabilitySample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary This method checks whether a proposed nested resource name is valid and available. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_CheckChildrenNameAvailability.json */ -async function servicesCheckChildrenNameAvailability() { +async function servicesCheckChildrenNameAvailability(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailability.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailability.ts index ef8a5eeb450d..b4a981f9b50f 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailability.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailability.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesCheckNameAvailability() { +async function servicesCheckNameAvailability(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const location = "eastus"; const parameters: NameAvailabilityRequest = { diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailabilitySample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailabilitySample.ts index 7b9ffa503eed..6930a185754e 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailabilitySample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckNameAvailabilitySample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary This method checks whether a proposed top-level resource name is valid and available. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_CheckNameAvailability.json */ -async function servicesCheckNameAvailability() { +async function servicesCheckNameAvailability(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const location = "eastus"; const parameters: NameAvailabilityRequest = { diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatus.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatus.ts index 91bb821d1d2f..903635b76746 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatus.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatus.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesCheckStatus() { +async function servicesCheckStatus(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatusSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatusSample.ts index 200924feb4c5..040564a4c559 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatusSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCheckStatusSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. This action performs a health check and returns the status of the service and virtual machine size. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_CheckStatus.json */ -async function servicesCheckStatus() { +async function servicesCheckStatus(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdate.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdate.ts index d9ae0744dbd8..4b71b2550175 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdate.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdate.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesCreateOrUpdate() { +async function servicesCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdateSample.ts index 4c8b6af1af67..fd6de0b7ae5a 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. The PUT method creates a new service or updates an existing one. When a service is updated, existing child resources (i.e. tasks) are unaffected. Services currently support a single kind, "vm", which refers to a VM-based service, although other kinds may be added in the future. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. Long-running operations use the provisioningState property. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_CreateOrUpdate.json */ -async function servicesCreateOrUpdate() { +async function servicesCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesDeleteSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesDeleteSample.ts index 5769ed13e7d2..0c6180c0fe69 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesDeleteSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. The DELETE method deletes a service. Any running tasks will be canceled. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_Delete.json */ -async function servicesCreateOrUpdate() { +async function servicesCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesGetSample.ts index 10c16260c075..2a5175171602 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. The GET method retrieves information about a service instance. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_Get.json */ -async function servicesCreateOrUpdate() { +async function servicesCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesList.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesList.ts index 6c7b29057c1e..89c68db783e8 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesList.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesList.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesList() { +async function servicesList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const credential = new DefaultAzureCredential(); const client = new DataMigrationManagementClient(credential, subscriptionId); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroup.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroup.ts index dea0ddb48afc..312f3f8db124 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroup.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroup.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesListByResourceGroup() { +async function servicesListByResourceGroup(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroupSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroupSample.ts index f8245db7bfa4..20dade7939ec 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroupSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesListByResourceGroupSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The Services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a resource group. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_ListByResourceGroup.json */ -async function servicesListByResourceGroup() { +async function servicesListByResourceGroup(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesListSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesListSample.ts index 3340e5eec51b..cfb0bc67c716 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesListSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of service resources in a subscription. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_List.json */ -async function servicesList() { +async function servicesList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const credential = new DefaultAzureCredential(); const client = new DataMigrationManagementClient(credential, subscriptionId); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkus.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkus.ts index 8784e2cbc62e..c69d90c1f089 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkus.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkus.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesListSkus() { +async function servicesListSkus(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkusSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkusSample.ts index ba0f4e29264f..d7ed70743362 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkusSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesListSkusSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. The skus action returns the list of SKUs that a service resource can be updated to. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_ListSkus.json */ -async function servicesListSkus() { +async function servicesListSkus(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesStart.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesStart.ts index b6f286f5e421..b4657a8f7d55 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesStart.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesStart.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesStart() { +async function servicesStart(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesStartSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesStartSample.ts index 41638c6e4a15..a1677729ca71 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesStartSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesStartSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. This action starts the service and the service can be used for data migration. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_Start.json */ -async function servicesStart() { +async function servicesStart(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesStop.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesStop.ts index d802bc2cb4d8..9ca993b68eb5 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesStop.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesStop.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesStop() { +async function servicesStop(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesStopSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesStopSample.ts index 0d8a53687a45..947d3ff85ae1 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesStopSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesStopSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won't be billed when the service is stopped. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_Stop.json */ -async function servicesStop() { +async function servicesStop(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesUpdateSample.ts index 1606ec6b8ef8..1840e6cfa74f 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. The PATCH method updates an existing service. This method can change the kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request ("ServiceIsBusy"). * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_Update.json */ -async function servicesCreateOrUpdate() { +async function servicesCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/servicesUsages.ts b/sdk/datamigration/arm-datamigration/samples-dev/servicesUsages.ts index a5f67667d8c6..24ee86cd1f8e 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/servicesUsages.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/servicesUsages.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function servicesUsages() { +async function servicesUsages(): Promise { const subscriptionId = "90fb80a6-0f71-4761-8f03-921e7396f3c0"; const location = "westus"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesCreateOrUpdateSample.ts index 72c62480083f..49bd2d3597b0 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or Update SQL Migration Service. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/CreateOrUpdateMigrationServiceMAX.json */ -async function createOrUpdateSqlMigrationServiceWithMaximumParameters() { +async function createOrUpdateSqlMigrationServiceWithMaximumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "testagent"; @@ -43,7 +43,7 @@ createOrUpdateSqlMigrationServiceWithMaximumParameters().catch(console.error); * @summary Create or Update SQL Migration Service. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/CreateOrUpdateMigrationServiceMIN.json */ -async function createOrUpdateSqlMigrationServiceWithMinimumParameters() { +async function createOrUpdateSqlMigrationServiceWithMinimumParameters(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "testagent"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteNodeSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteNodeSample.ts index 55edb44926ce..3f56138bd78a 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteNodeSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteNodeSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete the integration runtime node. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/DeleteIntegrationRuntimeNode.json */ -async function deleteTheIntegrationRuntimeNode() { +async function deleteTheIntegrationRuntimeNode(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteSample.ts index c81f2af81e1a..3735c03540a8 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete SQL Migration Service. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/DeleteMigrationService.json */ -async function deleteSqlMigrationService() { +async function deleteSqlMigrationService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesGetSample.ts index 995e949ced6c..fef6a6aa82c2 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve the Migration Service. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/GetMigrationService.json */ -async function getMigrationService() { +async function getMigrationService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListAuthKeysSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListAuthKeysSample.ts index b72e11f80fec..6ee6acc551c0 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListAuthKeysSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListAuthKeysSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListAuthKeysMigrationService.json */ -async function retrieveTheListOfAuthenticationKeys() { +async function retrieveTheListOfAuthenticationKeys(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListByResourceGroupSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListByResourceGroupSample.ts index 8e306572a261..67a14f80167b 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListByResourceGroupSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListByResourceGroupSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve all SQL migration services in the resource group. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListByResourceGroupMigrationService.json */ -async function getMigrationServicesInTheResourceGroup() { +async function getMigrationServicesInTheResourceGroup(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListBySubscriptionSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListBySubscriptionSample.ts index 3585ce76469c..e1df9c3a0b9a 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListBySubscriptionSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListBySubscriptionSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve all SQL migration services in the subscriptions. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListBySubscriptionMigrationService.json */ -async function getServicesInTheSubscriptions() { +async function getServicesInTheSubscriptions(): Promise { const subscriptionId = "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMigrationsSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMigrationsSample.ts index e91b8c63f774..b15f9a5dc038 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMigrationsSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMigrationsSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve the List of database migrations attached to the service. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListMigrationsByMigrationService.json */ -async function listDatabaseMigrationsAttachedToTheService() { +async function listDatabaseMigrationsAttachedToTheService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMonitoringDataSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMonitoringDataSample.ts index 97aa7d0ec2b5..f62f547e67ed 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMonitoringDataSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesListMonitoringDataSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Retrieve the Monitoring Data. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/GetMonitorDataMigrationService.json */ -async function retrieveTheMonitoringData() { +async function retrieveTheMonitoringData(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.ts index 932dabefc23e..4d2ef27ad109 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/RegenAuthKeysMigrationService.json */ -async function regenerateTheOfAuthenticationKeys() { +async function regenerateTheOfAuthenticationKeys(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "service1"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesUpdateSample.ts index 3ccb8551d5ff..b10c99ef5e04 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/sqlMigrationServicesUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Update SQL Migration Service. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/UpdateMigrationService.json */ -async function updateSqlMigrationService() { +async function updateSqlMigrationService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "testagent"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/stopOngoingMigrationForTheDatabase.ts b/sdk/datamigration/arm-datamigration/samples-dev/stopOngoingMigrationForTheDatabase.ts index ad00efc8a232..a5df74f3c497 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/stopOngoingMigrationForTheDatabase.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/stopOngoingMigrationForTheDatabase.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function stopOngoingMigrationForTheDatabase() { +async function stopOngoingMigrationForTheDatabase(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlVirtualMachineName = "testvm"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksCancel.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksCancel.ts index 71af98105ba1..60ae390af2dd 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksCancel.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksCancel.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function tasksCancel() { +async function tasksCancel(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksCancelSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksCancelSample.ts index 192b7f1b8455..a70aa7a5fc13 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksCancelSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksCancelSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a task if it's currently queued or running. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_Cancel.json */ -async function tasksCancel() { +async function tasksCancel(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksCommand.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksCommand.ts index e3da09b6dcca..01514a13ceb5 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksCommand.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksCommand.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function tasksCommand() { +async function tasksCommand(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksCommandSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksCommandSample.ts index 665fe29a95b5..38d2f32bc7df 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksCommandSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksCommandSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method executes a command on a running task. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_Command.json */ -async function tasksCommand() { +async function tasksCommand(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdate.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdate.ts index d355442accb3..08c12db36cd6 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdate.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdate.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function tasksCreateOrUpdate() { +async function tasksCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdateSample.ts index 6c12c8fbc399..c184668d4806 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksCreateOrUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_CreateOrUpdate.json */ -async function tasksCreateOrUpdate() { +async function tasksCreateOrUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksDelete.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksDelete.ts index 7432e605f31c..a384eb1f4eda 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksDelete.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksDelete.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function tasksDelete() { +async function tasksDelete(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksDeleteSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksDeleteSample.ts index bd09f3eebc5d..d2e7781cfeba 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksDeleteSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The DELETE method deletes a task, canceling it first if it's running. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_Delete.json */ -async function tasksDelete() { +async function tasksDelete(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksGet.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksGet.ts index 90abfa127827..47ce5ec7edd2 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksGet.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksGet.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function tasksGet() { +async function tasksGet(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksGetSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksGetSample.ts index c7370e5aef7e..a71a8facc30d 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksGetSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The GET method retrieves information about a task. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_Get.json */ -async function tasksGet() { +async function tasksGet(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksList.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksList.ts index af6d7bf2ab76..b912ed83d48d 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksList.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksList.ts @@ -17,7 +17,7 @@ import { DataMigrationManagementClient } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function tasksList() { +async function tasksList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksListSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksListSample.ts index ef5f7ee8fe35..335cf321968e 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksListSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_List.json */ -async function tasksList() { +async function tasksList(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdate.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdate.ts index ac74abeba570..8bef23973347 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdate.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdate.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function tasksUpdate() { +async function tasksUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdateSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdateSample.ts index 80b1a8b70072..972530748ac9 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdateSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/tasksUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PATCH method updates an existing task, but since tasks have no mutable custom properties, there is little reason to do so. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_Update.json */ -async function tasksUpdate() { +async function tasksUpdate(): Promise { const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f"; const groupName = "DmsSdkRg"; const serviceName = "DmsSdkService"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/updateSqlMigrationService.ts b/sdk/datamigration/arm-datamigration/samples-dev/updateSqlMigrationService.ts index f3761c9e522d..0d4cc89ce138 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/updateSqlMigrationService.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/updateSqlMigrationService.ts @@ -20,7 +20,7 @@ import { } from "@azure/arm-datamigration"; import { DefaultAzureCredential } from "@azure/identity"; -async function updateSqlMigrationService() { +async function updateSqlMigrationService(): Promise { const subscriptionId = "00000000-1111-2222-3333-444444444444"; const resourceGroupName = "testrg"; const sqlMigrationServiceName = "testagent"; diff --git a/sdk/datamigration/arm-datamigration/samples-dev/usagesListSample.ts b/sdk/datamigration/arm-datamigration/samples-dev/usagesListSample.ts index f963ce620ab0..0d3a57813880 100644 --- a/sdk/datamigration/arm-datamigration/samples-dev/usagesListSample.ts +++ b/sdk/datamigration/arm-datamigration/samples-dev/usagesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary This method returns region-specific quotas and resource usage information for the Database Migration Service. * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Usages_List.json */ -async function servicesUsages() { +async function servicesUsages(): Promise { const subscriptionId = "90fb80a6-0f71-4761-8f03-921e7396f3c0"; const location = "westus"; const credential = new DefaultAzureCredential(); diff --git a/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts b/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts index 043d5e1244f0..1b9e7c715dd2 100644 --- a/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts +++ b/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts @@ -26,7 +26,7 @@ import { ProjectsImpl, UsagesImpl, FilesImpl -} from "./operations"; +} from "./operations/index.js"; import { DatabaseMigrationsSqlMi, DatabaseMigrationsSqlVm, @@ -39,8 +39,8 @@ import { Projects, Usages, Files -} from "./operationsInterfaces"; -import { DataMigrationManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DataMigrationManagementClientOptionalParams } from "./models/index.js"; export class DataMigrationManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/datamigration/arm-datamigration/src/index.ts b/sdk/datamigration/arm-datamigration/src/index.ts index 3c1c8a031888..7b9836980c4c 100644 --- a/sdk/datamigration/arm-datamigration/src/index.ts +++ b/sdk/datamigration/arm-datamigration/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DataMigrationManagementClient } from "./dataMigrationManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DataMigrationManagementClient } from "./dataMigrationManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/datamigration/arm-datamigration/src/models/parameters.ts b/sdk/datamigration/arm-datamigration/src/models/parameters.ts index eab420a209c7..5ab1187e799e 100644 --- a/sdk/datamigration/arm-datamigration/src/models/parameters.ts +++ b/sdk/datamigration/arm-datamigration/src/models/parameters.ts @@ -25,7 +25,7 @@ import { CommandProperties as CommandPropertiesMapper, Project as ProjectMapper, ProjectFile as ProjectFileMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts index b627f531b69f..77ad780989a4 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts @@ -6,13 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { DatabaseMigrationsSqlMi } from "../operationsInterfaces"; +import { DatabaseMigrationsSqlMi } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { DatabaseMigrationsSqlMiGetOptionalParams, DatabaseMigrationsSqlMiGetResponse, @@ -22,7 +22,7 @@ import { MigrationOperationInput, DatabaseMigrationsSqlMiCancelOptionalParams, DatabaseMigrationsSqlMiCutoverOptionalParams -} from "../models"; +} from "../models/index.js"; /** Class containing DatabaseMigrationsSqlMi operations. */ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { diff --git a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts index 6135da2e5145..e662abef2004 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts @@ -6,13 +6,13 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { DatabaseMigrationsSqlVm } from "../operationsInterfaces"; +import { DatabaseMigrationsSqlVm } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { DatabaseMigrationsSqlVmGetOptionalParams, DatabaseMigrationsSqlVmGetResponse, @@ -22,7 +22,7 @@ import { MigrationOperationInput, DatabaseMigrationsSqlVmCancelOptionalParams, DatabaseMigrationsSqlVmCutoverOptionalParams -} from "../models"; +} from "../models/index.js"; /** Class containing DatabaseMigrationsSqlVm operations. */ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { diff --git a/sdk/datamigration/arm-datamigration/src/operations/files.ts b/sdk/datamigration/arm-datamigration/src/operations/files.ts index 90537e9a76cf..aeaf22ca7762 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/files.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/files.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Files } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Files } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { ProjectFile, FilesListNextOptionalParams, @@ -30,7 +30,7 @@ import { FilesReadWriteOptionalParams, FilesReadWriteResponse, FilesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Files operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/index.ts b/sdk/datamigration/arm-datamigration/src/operations/index.ts index cfb4920408d2..84427b55a788 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/index.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/index.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./databaseMigrationsSqlMi"; -export * from "./databaseMigrationsSqlVm"; -export * from "./operations"; -export * from "./sqlMigrationServices"; -export * from "./resourceSkus"; -export * from "./services"; -export * from "./tasks"; -export * from "./serviceTasks"; -export * from "./projects"; -export * from "./usages"; -export * from "./files"; +export * from "./databaseMigrationsSqlMi.js"; +export * from "./databaseMigrationsSqlVm.js"; +export * from "./operations.js"; +export * from "./sqlMigrationServices.js"; +export * from "./resourceSkus.js"; +export * from "./services.js"; +export * from "./tasks.js"; +export * from "./serviceTasks.js"; +export * from "./projects.js"; +export * from "./usages.js"; +export * from "./files.js"; diff --git a/sdk/datamigration/arm-datamigration/src/operations/operations.ts b/sdk/datamigration/arm-datamigration/src/operations/operations.ts index d03bed58ab44..67ae9bfb40e4 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/operations.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/operations.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Operations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { OperationsDefinition, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/projects.ts b/sdk/datamigration/arm-datamigration/src/operations/projects.ts index 726bb34926a6..abe383cc71e4 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/projects.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/projects.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Projects } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Projects } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { Project, ProjectsListNextOptionalParams, @@ -26,7 +26,7 @@ import { ProjectsUpdateOptionalParams, ProjectsUpdateResponse, ProjectsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Projects operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts b/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts index c9ac2ee3f77c..00cad952476e 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ResourceSkus } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ResourceSkus } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { ResourceSku, ResourceSkusListSkusNextOptionalParams, ResourceSkusListSkusOptionalParams, ResourceSkusListSkusResponse, ResourceSkusListSkusNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ResourceSkus operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts b/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts index b5018e2050b0..ad9e558e96b1 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ServiceTasks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ServiceTasks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { ProjectTask, ServiceTasksListNextOptionalParams, @@ -28,7 +28,7 @@ import { ServiceTasksCancelOptionalParams, ServiceTasksCancelResponse, ServiceTasksListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ServiceTasks operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/services.ts b/sdk/datamigration/arm-datamigration/src/operations/services.ts index 7ca8ed7e9465..f4dda7108803 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/services.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/services.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Services } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Services } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { AvailableServiceSku, ServicesListSkusNextOptionalParams, @@ -46,7 +46,7 @@ import { ServicesListSkusNextResponse, ServicesListByResourceGroupNextResponse, ServicesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Services operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts b/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts index fa3dd1c2caed..80d14404191b 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { SqlMigrationServices } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { SqlMigrationServices } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { SqlMigrationService, SqlMigrationServicesListByResourceGroupNextOptionalParams, @@ -48,7 +48,7 @@ import { SqlMigrationServicesListByResourceGroupNextResponse, SqlMigrationServicesListMigrationsNextResponse, SqlMigrationServicesListBySubscriptionNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing SqlMigrationServices operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/tasks.ts b/sdk/datamigration/arm-datamigration/src/operations/tasks.ts index 1cd57477bda3..019447a61ef6 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/tasks.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/tasks.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Tasks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Tasks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { ProjectTask, TasksListNextOptionalParams, @@ -31,7 +31,7 @@ import { TasksCommandOptionalParams, TasksCommandResponse, TasksListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Tasks operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operations/usages.ts b/sdk/datamigration/arm-datamigration/src/operations/usages.ts index 4b1d49519298..852493a01c36 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/usages.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/usages.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Usages } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Usages } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataMigrationManagementClient } from "../dataMigrationManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js"; import { Quota, UsagesListNextOptionalParams, UsagesListOptionalParams, UsagesListResponse, UsagesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Usages operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts index cea3cd271004..df5fb044d8c3 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts @@ -16,7 +16,7 @@ import { MigrationOperationInput, DatabaseMigrationsSqlMiCancelOptionalParams, DatabaseMigrationsSqlMiCutoverOptionalParams -} from "../models"; +} from "../models/index.js"; /** Interface representing a DatabaseMigrationsSqlMi. */ export interface DatabaseMigrationsSqlMi { diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts index e2caa5cbd00c..b093aeae8411 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts @@ -16,7 +16,7 @@ import { MigrationOperationInput, DatabaseMigrationsSqlVmCancelOptionalParams, DatabaseMigrationsSqlVmCutoverOptionalParams -} from "../models"; +} from "../models/index.js"; /** Interface representing a DatabaseMigrationsSqlVm. */ export interface DatabaseMigrationsSqlVm { diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/files.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/files.ts index 2ed3ee3706f7..4924e242f628 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/files.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/files.ts @@ -21,7 +21,7 @@ import { FilesReadResponse, FilesReadWriteOptionalParams, FilesReadWriteResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Files. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/index.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/index.ts index cfb4920408d2..84427b55a788 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/index.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/index.ts @@ -6,14 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./databaseMigrationsSqlMi"; -export * from "./databaseMigrationsSqlVm"; -export * from "./operations"; -export * from "./sqlMigrationServices"; -export * from "./resourceSkus"; -export * from "./services"; -export * from "./tasks"; -export * from "./serviceTasks"; -export * from "./projects"; -export * from "./usages"; -export * from "./files"; +export * from "./databaseMigrationsSqlMi.js"; +export * from "./databaseMigrationsSqlVm.js"; +export * from "./operations.js"; +export * from "./sqlMigrationServices.js"; +export * from "./resourceSkus.js"; +export * from "./services.js"; +export * from "./tasks.js"; +export * from "./serviceTasks.js"; +export * from "./projects.js"; +export * from "./usages.js"; +export * from "./files.js"; diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/operations.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/operations.ts index 26d06ba88f01..7662c4ae4686 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/operations.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/operations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { OperationsDefinition, OperationsListOptionalParams } from "../models"; +import { OperationsDefinition, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/projects.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/projects.ts index 3d4958b38a01..0108e17826dd 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/projects.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/projects.ts @@ -17,7 +17,7 @@ import { ProjectsDeleteOptionalParams, ProjectsUpdateOptionalParams, ProjectsUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Projects. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/resourceSkus.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/resourceSkus.ts index 6599226c4532..e9dc09e8e071 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/resourceSkus.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/resourceSkus.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ResourceSku, ResourceSkusListSkusOptionalParams } from "../models"; +import { ResourceSku, ResourceSkusListSkusOptionalParams } from "../models/index.js"; /// /** Interface representing a ResourceSkus. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/serviceTasks.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/serviceTasks.ts index baaa4487b337..cc5a3961465f 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/serviceTasks.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/serviceTasks.ts @@ -19,7 +19,7 @@ import { ServiceTasksUpdateResponse, ServiceTasksCancelOptionalParams, ServiceTasksCancelResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ServiceTasks. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/services.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/services.ts index a332fcacebcb..f7a3afc60e12 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/services.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/services.ts @@ -30,7 +30,7 @@ import { ServicesCheckChildrenNameAvailabilityResponse, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Services. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts index 57daeb82095f..394d3ba5d91e 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts @@ -32,7 +32,7 @@ import { SqlMigrationServicesDeleteNodeResponse, SqlMigrationServicesListMonitoringDataOptionalParams, SqlMigrationServicesListMonitoringDataResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a SqlMigrationServices. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/tasks.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/tasks.ts index da79a5a42006..b3eb29d6bbf0 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/tasks.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/tasks.ts @@ -22,7 +22,7 @@ import { CommandPropertiesUnion, TasksCommandOptionalParams, TasksCommandResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Tasks. */ diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/usages.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/usages.ts index 05d65ebae47e..2eefe9a733df 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/usages.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/usages.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Quota, UsagesListOptionalParams } from "../models"; +import { Quota, UsagesListOptionalParams } from "../models/index.js"; /// /** Interface representing a Usages. */ diff --git a/sdk/datamigration/arm-datamigration/test/sampleTest.ts b/sdk/datamigration/arm-datamigration/test/sampleTest.spec.ts similarity index 82% rename from sdk/datamigration/arm-datamigration/test/sampleTest.ts rename to sdk/datamigration/arm-datamigration/test/sampleTest.spec.ts index 8ff7deb0acbe..2a396bab6996 100644 --- a/sdk/datamigration/arm-datamigration/test/sampleTest.ts +++ b/sdk/datamigration/arm-datamigration/test/sampleTest.spec.ts @@ -8,11 +8,8 @@ import { Recorder, - RecorderStartOptions, - env -} from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { Context } from "mocha"; + RecorderStartOptions} from "@azure-tools/test-recorder"; +import { describe, it, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -32,8 +29,8 @@ const recorderOptions: RecorderStartOptions = { describe("My test", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async function (ctx) { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); }); diff --git a/sdk/datamigration/arm-datamigration/tsconfig.browser.config.json b/sdk/datamigration/arm-datamigration/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/datamigration/arm-datamigration/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/datamigration/arm-datamigration/tsconfig.json b/sdk/datamigration/arm-datamigration/tsconfig.json index d771f630bc69..19ceb382b521 100644 --- a/sdk/datamigration/arm-datamigration/tsconfig.json +++ b/sdk/datamigration/arm-datamigration/tsconfig.json @@ -1,33 +1,13 @@ { - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-datamigration": [ - "./src/index" - ] + "references": [ + { + "path": "./tsconfig.src.json" + }, + { + "path": "./tsconfig.samples.json" + }, + { + "path": "./tsconfig.test.json" } - }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" ] -} \ No newline at end of file +} diff --git a/sdk/datamigration/arm-datamigration/tsconfig.samples.json b/sdk/datamigration/arm-datamigration/tsconfig.samples.json new file mode 100644 index 000000000000..403d2c38af97 --- /dev/null +++ b/sdk/datamigration/arm-datamigration/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-datamigration": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/datamigration/arm-datamigration/tsconfig.src.json b/sdk/datamigration/arm-datamigration/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/datamigration/arm-datamigration/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/datamigration/arm-datamigration/tsconfig.test.json b/sdk/datamigration/arm-datamigration/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/datamigration/arm-datamigration/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/datamigration/arm-datamigration/vitest.browser.config.ts b/sdk/datamigration/arm-datamigration/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/datamigration/arm-datamigration/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js",], + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/datamigration/arm-datamigration/vitest.config.ts b/sdk/datamigration/arm-datamigration/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/datamigration/arm-datamigration/vitest.config.ts @@ -0,0 +1,16 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/datamigration/arm-datamigration/vitest.esm.config.ts b/sdk/datamigration/arm-datamigration/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/datamigration/arm-datamigration/vitest.esm.config.ts @@ -0,0 +1,12 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { mergeConfig } from "vitest/config"; +import vitestConfig from "./vitest.config.ts"; +import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; + +export default mergeConfig( + vitestConfig, + vitestEsmConfig +); diff --git a/sdk/dataprotection/arm-dataprotection/api-extractor.json b/sdk/dataprotection/arm-dataprotection/api-extractor.json index 54a9da9f3825..65a9150f0578 100644 --- a/sdk/dataprotection/arm-dataprotection/api-extractor.json +++ b/sdk/dataprotection/arm-dataprotection/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "mainEntryPointFilePath": "dist/esm/index.d.ts", "docModel": { "enabled": true }, @@ -11,7 +11,7 @@ "dtsRollup": { "enabled": true, "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-dataprotection.d.ts" + "publicTrimmedFilePath": "dist/arm-dataprotection.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/dataprotection/arm-dataprotection/package.json b/sdk/dataprotection/arm-dataprotection/package.json index ed68b8da573b..ab321cc68475 100644 --- a/sdk/dataprotection/arm-dataprotection/package.json +++ b/sdk/dataprotection/arm-dataprotection/package.json @@ -24,23 +24,23 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-dataprotection.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.1.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "chai": "^4.2.0", + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", "dotenv": "^16.0.0", - "mocha": "^11.0.2", - "ts-node": "^10.0.0", + "playwright": "^1.49.1", "tsx": "^4.7.1", - "typescript": "~5.7.2" + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "repository": { "type": "git", @@ -50,24 +50,14 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", "build:node": "echo skipped", "build:samples": "echo skipped.", @@ -79,7 +69,7 @@ "format": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", @@ -89,7 +79,7 @@ "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -110,5 +100,45 @@ ], "disableDocsMs": true, "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-dataprotection?view=azure-node-preview" + }, + "type": "module", + "tshy": { + "project": "./tsconfig.src.json", + "exports": { + "./package.json": "./package.json", + ".": "./src/index.ts" + }, + "dialects": [ + "esm", + "commonjs" + ], + "esmDialects": [ + "browser", + "react-native" + ], + "selfLink": false + }, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", + "exports": { + "./package.json": "./package.json", + ".": { + "browser": { + "types": "./dist/browser/index.d.ts", + "default": "./dist/browser/index.js" + }, + "react-native": { + "types": "./dist/react-native/index.d.ts", + "default": "./dist/react-native/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "require": { + "types": "./dist/commonjs/index.d.ts", + "default": "./dist/commonjs/index.js" + } + } } } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesAdhocBackupSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesAdhocBackupSample.ts index f31021a6c352..389fd52754d9 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesAdhocBackupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesAdhocBackupSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Trigger adhoc backup @@ -23,7 +21,7 @@ dotenv.config(); * @summary Trigger adhoc backup * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/TriggerBackup.json */ -async function triggerAdhocBackup() { +async function triggerAdhocBackup(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -48,7 +46,7 @@ async function triggerAdhocBackup() { console.log(result); } -async function main() { +async function main(): Promise { triggerAdhocBackup(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesCreateOrUpdateSample.ts index 389a30e5f75d..3a2204809d55 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a backup instance in a backup vault @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update a backup instance in a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/PutBackupInstance.json */ -async function createBackupInstance() { +async function createBackupInstance(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -97,7 +95,7 @@ async function createBackupInstance() { * @summary Create or update a backup instance in a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json */ -async function createBackupInstanceToPerformCriticalOperationWithMua() { +async function createBackupInstanceToPerformCriticalOperationWithMua(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -168,7 +166,7 @@ async function createBackupInstanceToPerformCriticalOperationWithMua() { console.log(result); } -async function main() { +async function main(): Promise { createBackupInstance(); createBackupInstanceToPerformCriticalOperationWithMua(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesDeleteSample.ts index 44878ffe598a..572fab96da04 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a backup instance in a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a backup instance in a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/DeleteBackupInstance.json */ -async function deleteBackupInstance() { +async function deleteBackupInstance(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function deleteBackupInstance() { console.log(result); } -async function main() { +async function main(): Promise { deleteBackupInstance(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesExtensionRoutingListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesExtensionRoutingListSample.ts index 7773ec195dc4..29da013d0ade 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesExtensionRoutingListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesExtensionRoutingListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of backup instances associated with a tracked resource @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a list of backup instances associated with a tracked resource * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json */ -async function listBackupInstancesAssociatedWithAnAzureResource() { +async function listBackupInstancesAssociatedWithAnAzureResource(): Promise { const resourceId = "subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk"; const credential = new DefaultAzureCredential(); @@ -34,7 +32,7 @@ async function listBackupInstancesAssociatedWithAnAzureResource() { console.log(resArray); } -async function main() { +async function main(): Promise { listBackupInstancesAssociatedWithAnAzureResource(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.ts index de29870326a4..4dcbd0d376d9 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get result of backup instance creation operation @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get result of backup instance creation operation * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json */ -async function getBackupInstanceOperationResult() { +async function getBackupInstanceOperationResult(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -41,7 +39,7 @@ async function getBackupInstanceOperationResult() { console.log(result); } -async function main() { +async function main(): Promise { getBackupInstanceOperationResult(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetSample.ts index 65a27741330f..5cdcc1ca55a7 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a backup instance with name in a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a backup instance with name in a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/GetBackupInstance.json */ -async function getBackupInstance() { +async function getBackupInstance(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function getBackupInstance() { console.log(result); } -async function main() { +async function main(): Promise { getBackupInstance(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesListSample.ts index 5794edb5b716..9a31d10e8fb4 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a backup instances belonging to a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a backup instances belonging to a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/ListBackupInstances.json */ -async function listBackupInstancesInAVault() { +async function listBackupInstancesInAVault(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -39,7 +37,7 @@ async function listBackupInstancesInAVault() { console.log(resArray); } -async function main() { +async function main(): Promise { listBackupInstancesInAVault(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeBackupsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeBackupsSample.ts index 8cb59497cae3..609a15e4f76d 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeBackupsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeBackupsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will resume backups for backup instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary This operation will resume backups for backup instance * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/ResumeBackups.json */ -async function resumeBackups() { +async function resumeBackups(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function resumeBackups() { console.log(result); } -async function main() { +async function main(): Promise { resumeBackups(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeProtectionSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeProtectionSample.ts index cac979a8daea..0af499752d1a 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeProtectionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesResumeProtectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will resume protection for a stopped backup instance @@ -20,7 +18,7 @@ dotenv.config(); * @summary This operation will resume protection for a stopped backup instance * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/ResumeProtection.json */ -async function resumeProtection() { +async function resumeProtection(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function resumeProtection() { console.log(result); } -async function main() { +async function main(): Promise { resumeProtection(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesStopProtectionSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesStopProtectionSample.ts index 90f55ea32983..13a505c412be 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesStopProtectionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesStopProtectionSample.ts @@ -14,9 +14,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will stop protection of a backup instance and data will be held forever @@ -24,7 +22,7 @@ dotenv.config(); * @summary This operation will stop protection of a backup instance and data will be held forever * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/StopProtection.json */ -async function stopProtection() { +async function stopProtection(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -48,7 +46,7 @@ async function stopProtection() { * @summary This operation will stop protection of a backup instance and data will be held forever * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json */ -async function stopProtectionWithMua() { +async function stopProtectionWithMua(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -73,7 +71,7 @@ async function stopProtectionWithMua() { console.log(result); } -async function main() { +async function main(): Promise { stopProtection(); stopProtectionWithMua(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSuspendBackupsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSuspendBackupsSample.ts index 320ce809ca11..69831c701412 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSuspendBackupsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSuspendBackupsSample.ts @@ -14,9 +14,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) @@ -24,7 +22,7 @@ dotenv.config(); * @summary This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/SuspendBackups.json */ -async function suspendBackups() { +async function suspendBackups(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -48,7 +46,7 @@ async function suspendBackups() { * @summary This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json */ -async function suspendBackupsWithMua() { +async function suspendBackupsWithMua(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -73,7 +71,7 @@ async function suspendBackupsWithMua() { console.log(result); } -async function main() { +async function main(): Promise { suspendBackups(); suspendBackupsWithMua(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSyncBackupInstanceSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSyncBackupInstanceSample.ts index 2f5a2fc9e0a1..87284b6a9a7b 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSyncBackupInstanceSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesSyncBackupInstanceSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Sync backup instance again in case of failure @@ -25,7 +23,7 @@ This action will retry last failed operation and will bring backup instance to v This action will retry last failed operation and will bring backup instance to valid state * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/SyncBackupInstance.json */ -async function syncBackupInstance() { +async function syncBackupInstance(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -45,7 +43,7 @@ async function syncBackupInstance() { console.log(result); } -async function main() { +async function main(): Promise { syncBackupInstance(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerCrossRegionRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerCrossRegionRestoreSample.ts index a0035fad1c96..d2d0aa648572 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerCrossRegionRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerCrossRegionRestoreSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers Cross Region Restore for BackupInstance. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Triggers Cross Region Restore for BackupInstance. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/CrossRegionRestore/TriggerCrossRegionRestore.json */ -async function triggerCrossRegionRestore() { +async function triggerCrossRegionRestore(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -87,7 +85,7 @@ async function triggerCrossRegionRestore() { console.log(result); } -async function main() { +async function main(): Promise { triggerCrossRegionRestore(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRehydrateSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRehydrateSample.ts index 849521f509c5..1938004f0d58 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRehydrateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRehydrateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to rehydrate recovery point for restore for a BackupInstance @@ -23,7 +21,7 @@ dotenv.config(); * @summary rehydrate recovery point for restore for a BackupInstance * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/TriggerRehydrate.json */ -async function triggerRehydrate() { +async function triggerRehydrate(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -47,7 +45,7 @@ async function triggerRehydrate() { console.log(result); } -async function main() { +async function main(): Promise { triggerRehydrate(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRestoreSample.ts index 24d4c6153ea3..41773ac8c6c6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesTriggerRestoreSample.ts @@ -14,9 +14,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers restore for a BackupInstance @@ -24,7 +22,7 @@ dotenv.config(); * @summary Triggers restore for a BackupInstance * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/TriggerRestore.json */ -async function triggerRestore() { +async function triggerRestore(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -88,7 +86,7 @@ async function triggerRestore() { * @summary Triggers restore for a BackupInstance * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json */ -async function triggerRestoreAsFiles() { +async function triggerRestoreAsFiles(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -130,7 +128,7 @@ async function triggerRestoreAsFiles() { * @summary Triggers restore for a BackupInstance * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json */ -async function triggerRestoreWithRehydration() { +async function triggerRestoreWithRehydration(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -183,7 +181,7 @@ async function triggerRestoreWithRehydration() { console.log(result); } -async function main() { +async function main(): Promise { triggerRestore(); triggerRestoreAsFiles(); triggerRestoreWithRehydration(); diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateCrossRegionRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateCrossRegionRestoreSample.ts index 4c0c3f4e27d4..3f3f35d24f00 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateCrossRegionRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateCrossRegionRestoreSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validates whether Cross Region Restore can be triggered for DataSource. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Validates whether Cross Region Restore can be triggered for DataSource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/CrossRegionRestore/ValidateCrossRegionRestore.json */ -async function validateCrossRegionRestore() { +async function validateCrossRegionRestore(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -87,7 +85,7 @@ async function validateCrossRegionRestore() { console.log(result); } -async function main() { +async function main(): Promise { validateCrossRegionRestore(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForBackupSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForBackupSample.ts index 71817863e44b..b3a40a3e72c7 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForBackupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForBackupSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validate whether adhoc backup will be successful or not @@ -23,7 +21,7 @@ dotenv.config(); * @summary Validate whether adhoc backup will be successful or not * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/ValidateForBackup.json */ -async function validateForBackup() { +async function validateForBackup(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -77,7 +75,7 @@ async function validateForBackup() { console.log(result); } -async function main() { +async function main(): Promise { validateForBackup(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForRestoreSample.ts index cb65f24fef2b..2f63e832ec4c 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupInstancesValidateForRestoreSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validates if Restore can be triggered for a DataSource @@ -23,7 +21,7 @@ dotenv.config(); * @summary Validates if Restore can be triggered for a DataSource * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/ValidateRestore.json */ -async function validateRestore() { +async function validateRestore(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -83,7 +81,7 @@ async function validateRestore() { console.log(result); } -async function main() { +async function main(): Promise { validateRestore(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesCreateOrUpdateSample.ts index 6c6d0c6e165d..7c7684238d98 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or Updates a backup policy belonging to a backup vault @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or Updates a backup policy belonging to a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json */ -async function createOrUpdateBackupPolicy() { +async function createOrUpdateBackupPolicy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -121,7 +119,7 @@ async function createOrUpdateBackupPolicy() { console.log(result); } -async function main() { +async function main(): Promise { createOrUpdateBackupPolicy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesDeleteSample.ts index 3dc8e1995c8c..61bc4a118cb0 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a backup policy belonging to a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a backup policy belonging to a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/DeleteBackupPolicy.json */ -async function deleteBackupPolicy() { +async function deleteBackupPolicy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function deleteBackupPolicy() { console.log(result); } -async function main() { +async function main(): Promise { deleteBackupPolicy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesGetSample.ts index 969e134d5b9c..8f85ed648bc1 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a backup policy belonging to a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a backup policy belonging to a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/GetBackupPolicy.json */ -async function getBackupPolicy() { +async function getBackupPolicy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function getBackupPolicy() { console.log(result); } -async function main() { +async function main(): Promise { getBackupPolicy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesListSample.ts index 785a57393700..327c410787d3 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupPoliciesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of backup policies belonging to a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns list of backup policies belonging to a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/PolicyCRUD/ListBackupPolicy.json */ -async function listBackupPolicy() { +async function listBackupPolicy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -39,7 +37,7 @@ async function listBackupPolicy() { console.log(resArray); } -async function main() { +async function main(): Promise { listBackupPolicy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultOperationResultsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultOperationResultsGetSample.ts index 8c1432bc8f4c..119342ebb3b6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultOperationResultsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultOperationResultsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -20,7 +18,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/GetOperationResultPatch.json */ -async function getOperationResultPatch() { +async function getOperationResultPatch(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -39,7 +37,7 @@ async function getOperationResultPatch() { console.log(result); } -async function main() { +async function main(): Promise { getOperationResultPatch(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCheckNameAvailabilitySample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCheckNameAvailabilitySample.ts index bc763be57486..ec0fcd4d5b7c 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCheckNameAvailabilitySample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCheckNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to API to check for resource name availability @@ -23,7 +21,7 @@ dotenv.config(); * @summary API to check for resource name availability * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json */ -async function checkBackupVaultsNameAvailability() { +async function checkBackupVaultsNameAvailability(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -44,7 +42,7 @@ async function checkBackupVaultsNameAvailability() { console.log(result); } -async function main() { +async function main(): Promise { checkBackupVaultsNameAvailability(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCreateOrUpdateSample.ts index 751e33e8bdef..c710f6bfee74 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a BackupVault resource belonging to a resource group. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a BackupVault resource belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/PutBackupVault.json */ -async function createBackupVault() { +async function createBackupVault(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -63,7 +61,7 @@ async function createBackupVault() { * @summary Creates or updates a BackupVault resource belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/PutBackupVaultWithCMK.json */ -async function createBackupVaultWithCmk() { +async function createBackupVaultWithCmk(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -116,7 +114,7 @@ async function createBackupVaultWithCmk() { * @summary Creates or updates a BackupVault resource belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/PutBackupVaultWithMSI.json */ -async function createBackupVaultWithMsi() { +async function createBackupVaultWithMsi(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -150,7 +148,7 @@ async function createBackupVaultWithMsi() { console.log(result); } -async function main() { +async function main(): Promise { createBackupVault(); createBackupVaultWithCmk(); createBackupVaultWithMsi(); diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsDeleteSample.ts index 2dcba754bf9c..c9e4e352ca87 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a BackupVault resource from the resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a BackupVault resource from the resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/DeleteBackupVault.json */ -async function deleteBackupVault() { +async function deleteBackupVault(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -36,7 +34,7 @@ async function deleteBackupVault() { console.log(result); } -async function main() { +async function main(): Promise { deleteBackupVault(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInResourceGroupSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInResourceGroupSample.ts index af02b112e926..d29d083d14c7 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInResourceGroupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns resource collection belonging to a resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns resource collection belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json */ -async function getBackupVaultsInResourceGroup() { +async function getBackupVaultsInResourceGroup(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -37,7 +35,7 @@ async function getBackupVaultsInResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { getBackupVaultsInResourceGroup(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInSubscriptionSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInSubscriptionSample.ts index fb340136a870..7a495a876e9a 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInSubscriptionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetInSubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns resource collection belonging to a subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns resource collection belonging to a subscription. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json */ -async function getBackupVaultsInSubscription() { +async function getBackupVaultsInSubscription(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -33,7 +31,7 @@ async function getBackupVaultsInSubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { getBackupVaultsInSubscription(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetSample.ts index 474a29dc6fcf..615ece1d74d8 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a resource belonging to a resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns a resource belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/GetBackupVault.json */ -async function getBackupVault() { +async function getBackupVault(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getBackupVault() { * @summary Returns a resource belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/GetBackupVaultWithCMK.json */ -async function getBackupVaultWithCmk() { +async function getBackupVaultWithCmk(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -58,7 +56,7 @@ async function getBackupVaultWithCmk() { * @summary Returns a resource belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/GetBackupVaultWithMSI.json */ -async function getBackupVaultWithMsi() { +async function getBackupVaultWithMsi(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -71,7 +69,7 @@ async function getBackupVaultWithMsi() { console.log(result); } -async function main() { +async function main(): Promise { getBackupVault(); getBackupVaultWithCmk(); getBackupVaultWithMsi(); diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsUpdateSample.ts index 58fb187644d4..2b82fb9fd2ab 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/backupVaultsUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/PatchBackupVault.json */ -async function patchBackupVault() { +async function patchBackupVault(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -54,7 +52,7 @@ async function patchBackupVault() { * @summary Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/VaultCRUD/PatchBackupVaultWithCMK.json */ -async function patchBackupVaultWithCmk() { +async function patchBackupVaultWithCmk(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -92,7 +90,7 @@ async function patchBackupVaultWithCmk() { console.log(result); } -async function main() { +async function main(): Promise { patchBackupVault(); patchBackupVaultWithCmk(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionCheckFeatureSupportSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionCheckFeatureSupportSample.ts index 626d4294f229..9beeb6160455 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionCheckFeatureSupportSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionCheckFeatureSupportSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validates if a feature is supported @@ -23,7 +21,7 @@ dotenv.config(); * @summary Validates if a feature is supported * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/CheckfeatureSupport.json */ -async function checkAzureVMBackupFeatureSupport() { +async function checkAzureVMBackupFeatureSupport(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -41,7 +39,7 @@ async function checkAzureVMBackupFeatureSupport() { console.log(result); } -async function main() { +async function main(): Promise { checkAzureVMBackupFeatureSupport(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionOperationsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionOperationsListSample.ts index 998274eba237..f1f1d933cb4a 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionOperationsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/dataProtectionOperationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns the list of available operations. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns the list of available operations. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/Operations/List.json */ -async function returnsTheListOfSupportedRestOperations() { +async function returnsTheListOfSupportedRestOperations(): Promise { const credential = new DefaultAzureCredential(); const client = new DataProtectionClient(credential); const resArray = new Array(); @@ -30,7 +28,7 @@ async function returnsTheListOfSupportedRestOperations() { console.log(resArray); } -async function main() { +async function main(): Promise { returnsTheListOfSupportedRestOperations(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesGetSample.ts index 086e7d2f49d9..dc890e6d3fad 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a deleted backup instance with name in a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a deleted backup instance with name in a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json */ -async function getDeletedBackupInstance() { +async function getDeletedBackupInstance(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function getDeletedBackupInstance() { console.log(result); } -async function main() { +async function main(): Promise { getDeletedBackupInstance(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesListSample.ts index 5e1f88f3e8cc..7b5936aa383f 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets deleted backup instances belonging to a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets deleted backup instances belonging to a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json */ -async function listDeletedBackupInstancesInAVault() { +async function listDeletedBackupInstancesInAVault(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -39,7 +37,7 @@ async function listDeletedBackupInstancesInAVault() { console.log(resArray); } -async function main() { +async function main(): Promise { listDeletedBackupInstancesInAVault(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesUndeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesUndeleteSample.ts index 477a0821d6ce..2bae1c696cdf 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesUndeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/deletedBackupInstancesUndeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -20,7 +18,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json */ -async function undeleteDeletedBackupInstance() { +async function undeleteDeletedBackupInstance(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -38,7 +36,7 @@ async function undeleteDeletedBackupInstance() { console.log(result); } -async function main() { +async function main(): Promise { undeleteDeletedBackupInstance(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyCreateOrUpdateSample.ts index 44da082b76c5..fe175635c12e 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or Updates a ResourceGuardProxy @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or Updates a ResourceGuardProxy * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json */ -async function createResourceGuardProxy() { +async function createResourceGuardProxy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "5e13b949-1218-4d18-8b99-7e12155ec4f7"; @@ -48,7 +46,7 @@ async function createResourceGuardProxy() { console.log(result); } -async function main() { +async function main(): Promise { createResourceGuardProxy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyDeleteSample.ts index 20230775deed..5a7fcf7d63ad 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the ResourceGuardProxy @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes the ResourceGuardProxy * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json */ -async function deleteResourceGuardProxy() { +async function deleteResourceGuardProxy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "5e13b949-1218-4d18-8b99-7e12155ec4f7"; @@ -38,7 +36,7 @@ async function deleteResourceGuardProxy() { console.log(result); } -async function main() { +async function main(): Promise { deleteResourceGuardProxy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyGetSample.ts index 5c6d70ff59b0..d32691f110ce 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns the ResourceGuardProxy object associated with the vault, and that matches the name in the request @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns the ResourceGuardProxy object associated with the vault, and that matches the name in the request * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json */ -async function getResourceGuardProxy() { +async function getResourceGuardProxy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "5e13b949-1218-4d18-8b99-7e12155ec4f7"; @@ -38,7 +36,7 @@ async function getResourceGuardProxy() { console.log(result); } -async function main() { +async function main(): Promise { getResourceGuardProxy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyListSample.ts index 7616f6f5e6b2..ea7c01068967 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns the list of ResourceGuardProxies associated with the vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns the list of ResourceGuardProxies associated with the vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json */ -async function getResourceGuardProxies() { +async function getResourceGuardProxies(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "5e13b949-1218-4d18-8b99-7e12155ec4f7"; @@ -39,7 +37,7 @@ async function getResourceGuardProxies() { console.log(resArray); } -async function main() { +async function main(): Promise { getResourceGuardProxies(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyUnlockDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyUnlockDeleteSample.ts index d37c9f610651..ea01d0f32037 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyUnlockDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/dppResourceGuardProxyUnlockDeleteSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to UnlockDelete call for ResourceGuardProxy, executed before one can delete it @@ -23,7 +21,7 @@ dotenv.config(); * @summary UnlockDelete call for ResourceGuardProxy, executed before one can delete it * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json */ -async function unlockDeleteResourceGuardProxy() { +async function unlockDeleteResourceGuardProxy(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "5e13b949-1218-4d18-8b99-7e12155ec4f7"; @@ -49,7 +47,7 @@ async function unlockDeleteResourceGuardProxy() { console.log(result); } -async function main() { +async function main(): Promise { unlockDeleteResourceGuardProxy(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsOperationResultGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsOperationResultGetSample.ts index 336360ce645f..e1135a513d77 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsOperationResultGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsOperationResultGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/GetExportJobsOperationResult.json */ -async function getExportJobsOperationResult() { +async function getExportJobsOperationResult(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function getExportJobsOperationResult() { console.log(result); } -async function main() { +async function main(): Promise { getExportJobsOperationResult(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsTriggerSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsTriggerSample.ts index 18e396df4c5c..4368cc7d0f03 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsTriggerSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/exportJobsTriggerSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers export of jobs and returns an OperationID to track. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Triggers export of jobs and returns an OperationID to track. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/TriggerExportJobs.json */ -async function triggerExportJobs() { +async function triggerExportJobs(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function triggerExportJobs() { console.log(result); } -async function main() { +async function main(): Promise { triggerExportJobs(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobGetSample.ts index e84f763a0f6d..11a21e8087f9 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobGetSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Fetches the Cross Region Restore Job @@ -23,7 +21,7 @@ dotenv.config(); * @summary Fetches the Cross Region Restore Job * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/CrossRegionRestore/FetchCrossRegionRestoreJob.json */ -async function getCrossRegionRestoreJob() { +async function getCrossRegionRestoreJob(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "62b829ee-7936-40c9-a1c9-47a93f9f3965"; @@ -46,7 +44,7 @@ async function getCrossRegionRestoreJob() { console.log(result); } -async function main() { +async function main(): Promise { getCrossRegionRestoreJob(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobsListSample.ts index baac42d64db4..895b145a1299 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/fetchCrossRegionRestoreJobsListSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Fetches list of Cross Region Restore job belonging to the vault @@ -23,7 +21,7 @@ dotenv.config(); * @summary Fetches list of Cross Region Restore job belonging to the vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/CrossRegionRestore/FetchCrossRegionRestoreJobs.json */ -async function listCrossRegionRestoreJobs() { +async function listCrossRegionRestoreJobs(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "62b829ee-7936-40c9-a1c9-47a93f9f3965"; @@ -48,7 +46,7 @@ async function listCrossRegionRestoreJobs() { console.log(resArray); } -async function main() { +async function main(): Promise { listCrossRegionRestoreJobs(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/fetchSecondaryRecoveryPointsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/fetchSecondaryRecoveryPointsListSample.ts index 906fb28f2fe8..799c52556efa 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/fetchSecondaryRecoveryPointsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/fetchSecondaryRecoveryPointsListSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a list of Secondary Recovery Points for a DataSource in a vault, that can be used for Cross Region Restore. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Returns a list of Secondary Recovery Points for a DataSource in a vault, that can be used for Cross Region Restore. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/CrossRegionRestore/FetchSecondaryRPs.json */ -async function fetchSecondaryRPs() { +async function fetchSecondaryRPs(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -48,7 +46,7 @@ async function fetchSecondaryRPs() { console.log(resArray); } -async function main() { +async function main(): Promise { fetchSecondaryRPs(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/jobsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/jobsGetSample.ts index 30eafce8920d..7e83c4417995 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/jobsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/jobsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a job with id in a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a job with id in a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/GetJob.json */ -async function getJob() { +async function getJob(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "62b829ee-7936-40c9-a1c9-47a93f9f3965"; @@ -34,7 +32,7 @@ async function getJob() { console.log(result); } -async function main() { +async function main(): Promise { getJob(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/jobsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/jobsListSample.ts index 26db384125b9..da9702421488 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/jobsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/jobsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of jobs belonging to a backup vault @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns list of jobs belonging to a backup vault * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/JobCRUD/ListJobs.json */ -async function getJobs() { +async function getJobs(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "62b829ee-7936-40c9-a1c9-47a93f9f3965"; @@ -36,7 +34,7 @@ async function getJobs() { console.log(resArray); } -async function main() { +async function main(): Promise { getJobs(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/operationResultGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/operationResultGetSample.ts index 0cb9c9cb3716..1da8e3741548 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/operationResultGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/operationResultGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation result for a resource @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the operation result for a resource * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/GetOperationResult.json */ -async function getOperationResult() { +async function getOperationResult(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -33,7 +31,7 @@ async function getOperationResult() { console.log(result); } -async function main() { +async function main(): Promise { getOperationResult(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusBackupVaultContextGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusBackupVaultContextGetSample.ts index f05dac1ef560..9d69c33d095a 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusBackupVaultContextGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusBackupVaultContextGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation status for an operation over a BackupVault's context. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the operation status for an operation over a BackupVault's context. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/GetOperationStatusVaultContext.json */ -async function getOperationStatus() { +async function getOperationStatus(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getOperationStatus() { console.log(result); } -async function main() { +async function main(): Promise { getOperationStatus(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusGetSample.ts index 4c15bde46fba..4d4b9de759ed 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation status for a resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the operation status for a resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/GetOperationStatus.json */ -async function getOperationStatus() { +async function getOperationStatus(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -33,7 +31,7 @@ async function getOperationStatus() { console.log(result); } -async function main() { +async function main(): Promise { getOperationStatus(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusResourceGroupContextGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusResourceGroupContextGetSample.ts index e8070e4d535d..93acccd834c6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusResourceGroupContextGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/operationStatusResourceGroupContextGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation status for an operation over a ResourceGroup's context. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the operation status for an operation over a ResourceGroup's context. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/GetOperationStatusRGContext.json */ -async function getOperationStatus() { +async function getOperationStatus(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -37,7 +35,7 @@ async function getOperationStatus() { console.log(result); } -async function main() { +async function main(): Promise { getOperationStatus(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsGetSample.ts index 32fc2efd95fa..e9fe5a03a414 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Recovery Point using recoveryPointId for a Datasource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets a Recovery Point using recoveryPointId for a Datasource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/GetRecoveryPoint.json */ -async function getRecoveryPoint() { +async function getRecoveryPoint(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -40,7 +38,7 @@ async function getRecoveryPoint() { console.log(result); } -async function main() { +async function main(): Promise { getRecoveryPoint(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsListSample.ts index d09aa17fa50e..0f8b414ea0ff 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/recoveryPointsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a list of Recovery Points for a DataSource in a vault. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns a list of Recovery Points for a DataSource in a vault. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/ListRecoveryPoints.json */ -async function listRecoveryPointsInAVault() { +async function listRecoveryPointsInAVault(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -41,7 +39,7 @@ async function listRecoveryPointsInAVault() { console.log(resArray); } -async function main() { +async function main(): Promise { listRecoveryPointsInAVault(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsDeleteSample.ts index 82afd87df775..f576eaba351f 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a ResourceGuard resource from the resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes a ResourceGuard resource from the resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/DeleteResourceGuard.json */ -async function deleteResourceGuard() { +async function deleteResourceGuard(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -36,7 +34,7 @@ async function deleteResourceGuard() { console.log(result); } -async function main() { +async function main(): Promise { deleteResourceGuard(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts index 11d0232e8d1d..caf17c0b3bd9 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json */ -async function listOperationsRequestObject() { +async function listOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function listOperationsRequestObject() { console.log(resArray); } -async function main() { +async function main(): Promise { listOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts index 24472a17f04b..328046ce3509 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json */ -async function getDefaultOperationsRequestObject() { +async function getDefaultOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getDefaultOperationsRequestObject() { console.log(result); } -async function main() { +async function main(): Promise { getDefaultOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts index 75989cd851f9..5a23031899b6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json */ -async function getDefaultOperationsRequestObject() { +async function getDefaultOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getDefaultOperationsRequestObject() { console.log(result); } -async function main() { +async function main(): Promise { getDefaultOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts index ce9febdd0995..47526672cfd3 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json */ -async function getDefaultOperationsRequestObject() { +async function getDefaultOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getDefaultOperationsRequestObject() { console.log(result); } -async function main() { +async function main(): Promise { getDefaultOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts index 7357816da021..55a1e0aef825 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json */ -async function getDefaultOperationsRequestObject() { +async function getDefaultOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getDefaultOperationsRequestObject() { console.log(result); } -async function main() { +async function main(): Promise { getDefaultOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts index 758f4c584ad4..e6fe19d36ea8 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json */ -async function getDefaultOperationsRequestObject() { +async function getDefaultOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getDefaultOperationsRequestObject() { console.log(result); } -async function main() { +async function main(): Promise { getDefaultOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts index a24717307f04..2c35da1ed55a 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json */ -async function getDefaultOperationsRequestObject() { +async function getDefaultOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function getDefaultOperationsRequestObject() { console.log(result); } -async function main() { +async function main(): Promise { getDefaultOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts index e1cae6fd11f6..c225e36b23f9 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json */ -async function listOperationsRequestObject() { +async function listOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function listOperationsRequestObject() { console.log(resArray); } -async function main() { +async function main(): Promise { listOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts index 15e11c16c466..2b10e65a6b76 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json */ -async function listOperationsRequestObject() { +async function listOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function listOperationsRequestObject() { console.log(resArray); } -async function main() { +async function main(): Promise { listOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts index 45e691e2776e..dc20307b998c 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json */ -async function listOperationsRequestObject() { +async function listOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function listOperationsRequestObject() { console.log(resArray); } -async function main() { +async function main(): Promise { listOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.ts index ab268ab0a2ef..808e371c3594 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns ResourceGuards collection belonging to a ResourceGroup. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns ResourceGuards collection belonging to a ResourceGroup. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json */ -async function getResourceGuardsInResourceGroup() { +async function getResourceGuardsInResourceGroup(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -37,7 +35,7 @@ async function getResourceGuardsInResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { getResourceGuardsInResourceGroup(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.ts index a152aef19c4e..4e84659a2aad 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns ResourceGuards collection belonging to a subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns ResourceGuards collection belonging to a subscription. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json */ -async function getResourceGuardsInSubscription() { +async function getResourceGuardsInSubscription(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -33,7 +31,7 @@ async function getResourceGuardsInSubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { getResourceGuardsInSubscription(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetSample.ts index 8515ffe6839f..651004a97ff5 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a ResourceGuard belonging to a resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns a ResourceGuard belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/GetResourceGuard.json */ -async function getResourceGuard() { +async function getResourceGuard(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -36,7 +34,7 @@ async function getResourceGuard() { console.log(result); } -async function main() { +async function main(): Promise { getResourceGuard(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts index a5bd630891e8..2ee0ebd39838 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json */ -async function listOperationsRequestObject() { +async function listOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function listOperationsRequestObject() { console.log(resArray); } -async function main() { +async function main(): Promise { listOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts index a39f9f4a8e97..46151e9dcd44 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json */ -async function listOperationsRequestObject() { +async function listOperationsRequestObject(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -39,7 +37,7 @@ async function listOperationsRequestObject() { console.log(resArray); } -async function main() { +async function main(): Promise { listOperationsRequestObject(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPatchSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPatchSample.ts index 3bba17693fac..90646b7d37f0 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPatchSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPatchSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/PatchResourceGuard.json */ -async function patchResourceGuard() { +async function patchResourceGuard(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -41,7 +39,7 @@ async function patchResourceGuard() { console.log(result); } -async function main() { +async function main(): Promise { patchResourceGuard(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPutSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPutSample.ts index bcd83572fb0f..7fef6fd948fe 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPutSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/resourceGuardsPutSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a ResourceGuard resource belonging to a resource group. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Creates or updates a ResourceGuard resource belonging to a resource group. * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/ResourceGuardCRUD/PutResourceGuard.json */ -async function createResourceGuard() { +async function createResourceGuard(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "0b352192-dcac-4cc7-992e-a96190ccc68c"; @@ -44,7 +42,7 @@ async function createResourceGuard() { console.log(result); } -async function main() { +async function main(): Promise { createResourceGuard(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples-dev/restorableTimeRangesFindSample.ts b/sdk/dataprotection/arm-dataprotection/samples-dev/restorableTimeRangesFindSample.ts index af5a76516c6d..ffcd27f71dc9 100644 --- a/sdk/dataprotection/arm-dataprotection/samples-dev/restorableTimeRangesFindSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples-dev/restorableTimeRangesFindSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to @@ -23,7 +21,7 @@ dotenv.config(); * @summary * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-01/examples/BackupInstanceOperations/FindRestorableTimeRanges.json */ -async function findRestorableTimeRanges() { +async function findRestorableTimeRanges(): Promise { const subscriptionId = process.env["DATAPROTECTION_SUBSCRIPTION_ID"] || "04cf684a-d41f-4550-9f70-7708a3a2283b"; @@ -47,7 +45,7 @@ async function findRestorableTimeRanges() { console.log(result); } -async function main() { +async function main(): Promise { findRestorableTimeRanges(); } diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesAdhocBackupSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesAdhocBackupSample.ts index f31021a6c352..5f91f4aac757 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesAdhocBackupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesAdhocBackupSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Trigger adhoc backup diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesCreateOrUpdateSample.ts index 389a30e5f75d..d8066b5dd124 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a backup instance in a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesDeleteSample.ts index 44878ffe598a..2c07fb660420 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a backup instance in a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesExtensionRoutingListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesExtensionRoutingListSample.ts index 7773ec195dc4..b54ed39b6288 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesExtensionRoutingListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesExtensionRoutingListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of backup instances associated with a tracked resource diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetBackupInstanceOperationResultSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetBackupInstanceOperationResultSample.ts index de29870326a4..7d89227b92f6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetBackupInstanceOperationResultSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetBackupInstanceOperationResultSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get result of backup instance creation operation diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetSample.ts index 65a27741330f..a6fc67703c95 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a backup instance with name in a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesListSample.ts index 5794edb5b716..bfce782fc0b7 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a backup instances belonging to a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeBackupsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeBackupsSample.ts index 8cb59497cae3..09a2962a55c6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeBackupsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeBackupsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will resume backups for backup instance diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeProtectionSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeProtectionSample.ts index cac979a8daea..52eda4b28a04 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeProtectionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesResumeProtectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will resume protection for a stopped backup instance diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesStopProtectionSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesStopProtectionSample.ts index 90f55ea32983..2a51e4bba6bc 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesStopProtectionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesStopProtectionSample.ts @@ -14,9 +14,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will stop protection of a backup instance and data will be held forever diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSuspendBackupsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSuspendBackupsSample.ts index 320ce809ca11..91982bfaee87 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSuspendBackupsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSuspendBackupsSample.ts @@ -14,9 +14,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSyncBackupInstanceSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSyncBackupInstanceSample.ts index 2f5a2fc9e0a1..5b07694b7b33 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSyncBackupInstanceSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesSyncBackupInstanceSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Sync backup instance again in case of failure diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerCrossRegionRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerCrossRegionRestoreSample.ts index a0035fad1c96..e8b0e5990a68 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerCrossRegionRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerCrossRegionRestoreSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers Cross Region Restore for BackupInstance. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRehydrateSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRehydrateSample.ts index 849521f509c5..9dc3b14cba92 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRehydrateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRehydrateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to rehydrate recovery point for restore for a BackupInstance diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRestoreSample.ts index 24d4c6153ea3..b76e8e70a338 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesTriggerRestoreSample.ts @@ -14,9 +14,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers restore for a BackupInstance diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateCrossRegionRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateCrossRegionRestoreSample.ts index 4c0c3f4e27d4..746537c64d20 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateCrossRegionRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateCrossRegionRestoreSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validates whether Cross Region Restore can be triggered for DataSource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForBackupSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForBackupSample.ts index 71817863e44b..f5b8a10324d0 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForBackupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForBackupSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validate whether adhoc backup will be successful or not diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForRestoreSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForRestoreSample.ts index cb65f24fef2b..546c87664ae6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForRestoreSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupInstancesValidateForRestoreSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validates if Restore can be triggered for a DataSource diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesCreateOrUpdateSample.ts index 6c6d0c6e165d..b3634c89f49d 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or Updates a backup policy belonging to a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesDeleteSample.ts index 3dc8e1995c8c..805effcf750f 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a backup policy belonging to a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesGetSample.ts index 969e134d5b9c..4e1631779372 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a backup policy belonging to a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesListSample.ts index 785a57393700..610839881001 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupPoliciesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of backup policies belonging to a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultOperationResultsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultOperationResultsGetSample.ts index 8c1432bc8f4c..28eed446d63a 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultOperationResultsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultOperationResultsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCheckNameAvailabilitySample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCheckNameAvailabilitySample.ts index bc763be57486..d1eb381f564b 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCheckNameAvailabilitySample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCheckNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to API to check for resource name availability diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCreateOrUpdateSample.ts index 751e33e8bdef..7534c46813b2 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a BackupVault resource belonging to a resource group. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsDeleteSample.ts index 2dcba754bf9c..bfb8db171f8c 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a BackupVault resource from the resource group. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInResourceGroupSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInResourceGroupSample.ts index af02b112e926..47c109df2657 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInResourceGroupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns resource collection belonging to a resource group. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInSubscriptionSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInSubscriptionSample.ts index fb340136a870..a2ad88cd178a 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInSubscriptionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetInSubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns resource collection belonging to a subscription. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetSample.ts index 474a29dc6fcf..208ea9ac708d 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a resource belonging to a resource group. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsUpdateSample.ts index 58fb187644d4..14f86cb83f6d 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/backupVaultsUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionCheckFeatureSupportSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionCheckFeatureSupportSample.ts index 626d4294f229..9f1ec767cdf5 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionCheckFeatureSupportSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionCheckFeatureSupportSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Validates if a feature is supported diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionOperationsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionOperationsListSample.ts index 998274eba237..92709387c6b3 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionOperationsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dataProtectionOperationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns the list of available operations. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesGetSample.ts index 086e7d2f49d9..be2f72beccee 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a deleted backup instance with name in a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesListSample.ts index 5e1f88f3e8cc..ea0fc6bc8e66 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets deleted backup instances belonging to a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesUndeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesUndeleteSample.ts index 477a0821d6ce..bb6513338b12 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesUndeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/deletedBackupInstancesUndeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyCreateOrUpdateSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyCreateOrUpdateSample.ts index 44da082b76c5..ed1c3b1a88f5 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyCreateOrUpdateSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or Updates a ResourceGuardProxy diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyDeleteSample.ts index 20230775deed..9ed653a7c180 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the ResourceGuardProxy diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyGetSample.ts index 5c6d70ff59b0..8f8046d1e5b3 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns the ResourceGuardProxy object associated with the vault, and that matches the name in the request diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyListSample.ts index 7616f6f5e6b2..7a47b449c0c5 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns the list of ResourceGuardProxies associated with the vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyUnlockDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyUnlockDeleteSample.ts index d37c9f610651..9f6d948b4734 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyUnlockDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/dppResourceGuardProxyUnlockDeleteSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to UnlockDelete call for ResourceGuardProxy, executed before one can delete it diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsOperationResultGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsOperationResultGetSample.ts index 336360ce645f..06ff2631191e 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsOperationResultGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsOperationResultGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsTriggerSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsTriggerSample.ts index 18e396df4c5c..6f8d23a2a018 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsTriggerSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/exportJobsTriggerSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers export of jobs and returns an OperationID to track. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobGetSample.ts index e84f763a0f6d..922a81243001 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobGetSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Fetches the Cross Region Restore Job diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobsListSample.ts index baac42d64db4..3b30571a7238 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchCrossRegionRestoreJobsListSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Fetches list of Cross Region Restore job belonging to the vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchSecondaryRecoveryPointsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchSecondaryRecoveryPointsListSample.ts index 906fb28f2fe8..7c84484a1ade 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchSecondaryRecoveryPointsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/fetchSecondaryRecoveryPointsListSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a list of Secondary Recovery Points for a DataSource in a vault, that can be used for Cross Region Restore. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsGetSample.ts index 30eafce8920d..3437e8e04367 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a job with id in a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsListSample.ts index 26db384125b9..aa3d26c72085 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/jobsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of jobs belonging to a backup vault diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationResultGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationResultGetSample.ts index 0cb9c9cb3716..3f19e5d75932 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationResultGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationResultGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation result for a resource diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusBackupVaultContextGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusBackupVaultContextGetSample.ts index f05dac1ef560..469ee7716b2c 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusBackupVaultContextGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusBackupVaultContextGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation status for an operation over a BackupVault's context. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusGetSample.ts index 4c15bde46fba..79e6dc6c3f71 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation status for a resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusResourceGroupContextGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusResourceGroupContextGetSample.ts index e8070e4d535d..c559ace94067 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusResourceGroupContextGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/operationStatusResourceGroupContextGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the operation status for an operation over a ResourceGroup's context. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsGetSample.ts index 32fc2efd95fa..aea3a60ae9e6 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Recovery Point using recoveryPointId for a Datasource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsListSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsListSample.ts index d09aa17fa50e..816b2875acab 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsListSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/recoveryPointsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a list of Recovery Points for a DataSource in a vault. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsDeleteSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsDeleteSample.ts index 82afd87df775..e4f62b7cd742 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsDeleteSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a ResourceGuard resource from the resource group. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts index 11d0232e8d1d..1046084a9a6d 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts index 24472a17f04b..3618d71f6436 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts index 75989cd851f9..d73449d0a502 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts index ce9febdd0995..9c60b46a3248 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts index 7357816da021..20cd81c40351 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts index 758f4c584ad4..33f3240dd70b 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts index a24717307f04..d75d29b6c8a1 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts index e1cae6fd11f6..6b8c27eb85c0 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts index 15e11c16c466..769873c1cd77 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts index 45e691e2776e..e4e68f5d9da5 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInResourceGroupSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInResourceGroupSample.ts index ab268ab0a2ef..ea203c17b3ca 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInResourceGroupSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns ResourceGuards collection belonging to a ResourceGroup. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInSubscriptionSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInSubscriptionSample.ts index a152aef19c4e..82d4a59085e4 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInSubscriptionSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetResourcesInSubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns ResourceGuards collection belonging to a subscription. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetSample.ts index 8515ffe6839f..faaea70dfd20 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a ResourceGuard belonging to a resource group. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts index a5bd630891e8..6299b14d04b5 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts index a39f9f4a8e97..a1d56fe2c5e2 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DataProtectionClient } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPatchSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPatchSample.ts index 3bba17693fac..e1553e6b2415 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPatchSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPatchSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPutSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPutSample.ts index bcd83572fb0f..72287743c99d 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPutSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/resourceGuardsPutSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a ResourceGuard resource belonging to a resource group. diff --git a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/restorableTimeRangesFindSample.ts b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/restorableTimeRangesFindSample.ts index af5a76516c6d..3ce9940257f1 100644 --- a/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/restorableTimeRangesFindSample.ts +++ b/sdk/dataprotection/arm-dataprotection/samples/v2/typescript/src/restorableTimeRangesFindSample.ts @@ -13,9 +13,7 @@ import { DataProtectionClient, } from "@azure/arm-dataprotection"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to diff --git a/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts b/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts index c1e203019b33..1cc4a35e3a06 100644 --- a/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts +++ b/sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts @@ -37,7 +37,7 @@ import { DeletedBackupInstancesImpl, ResourceGuardsImpl, DppResourceGuardProxyImpl, -} from "./operations"; +} from "./operations/index.js"; import { BackupVaults, OperationResult, @@ -61,8 +61,8 @@ import { DeletedBackupInstances, ResourceGuards, DppResourceGuardProxy, -} from "./operationsInterfaces"; -import { DataProtectionClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DataProtectionClientOptionalParams } from "./models/index.js"; export class DataProtectionClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/dataprotection/arm-dataprotection/src/index.ts b/sdk/dataprotection/arm-dataprotection/src/index.ts index 78f31debd8fe..44eb3dfe2e22 100644 --- a/sdk/dataprotection/arm-dataprotection/src/index.ts +++ b/sdk/dataprotection/arm-dataprotection/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DataProtectionClient } from "./dataProtectionClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DataProtectionClient } from "./dataProtectionClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts b/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts index 9c87568442cf..45668ee12fee 100644 --- a/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts +++ b/sdk/dataprotection/arm-dataprotection/src/models/parameters.ts @@ -36,7 +36,7 @@ import { PatchResourceGuardInput as PatchResourceGuardInputMapper, ResourceGuardProxyBaseResource as ResourceGuardProxyBaseResourceMapper, UnlockDeleteRequest as UnlockDeleteRequestMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts index 345ee82d02a8..bd4f5709d754 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupInstances.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BackupInstances } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { BackupInstances } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { BackupInstanceResource, BackupInstancesListNextOptionalParams, @@ -59,7 +59,7 @@ import { BackupInstancesValidateForRestoreOptionalParams, BackupInstancesValidateForRestoreResponse, BackupInstancesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing BackupInstances operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupInstancesExtensionRouting.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupInstancesExtensionRouting.ts index 7398762059b3..c2b79463ab3c 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupInstancesExtensionRouting.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupInstancesExtensionRouting.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BackupInstancesExtensionRouting } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { BackupInstancesExtensionRouting } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { BackupInstanceResource, BackupInstancesExtensionRoutingListNextOptionalParams, BackupInstancesExtensionRoutingListOptionalParams, BackupInstancesExtensionRoutingListResponse, BackupInstancesExtensionRoutingListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing BackupInstancesExtensionRouting operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts index 292b869ae781..109489fb2329 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupPolicies.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BackupPolicies } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { BackupPolicies } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { BaseBackupPolicyResource, BackupPoliciesListNextOptionalParams, @@ -24,7 +24,7 @@ import { BackupPoliciesCreateOrUpdateResponse, BackupPoliciesDeleteOptionalParams, BackupPoliciesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing BackupPolicies operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts index 293b72f29fd4..9e1b861e4b72 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaultOperationResults.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BackupVaultOperationResults } from "../operationsInterfaces"; +import { BackupVaultOperationResults } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { BackupVaultOperationResultsGetOptionalParams, BackupVaultOperationResultsGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing BackupVaultOperationResults operations. */ export class BackupVaultOperationResultsImpl diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts index c0c09ef407a8..30767e3747a2 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/backupVaults.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { BackupVaults } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { BackupVaults } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { BackupVaultResource, BackupVaultsGetInSubscriptionNextOptionalParams, @@ -40,7 +40,7 @@ import { BackupVaultsCheckNameAvailabilityResponse, BackupVaultsGetInSubscriptionNextResponse, BackupVaultsGetInResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing BackupVaults operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts index 758b7d4605c4..36403319af67 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtection.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { DataProtection } from "../operationsInterfaces"; +import { DataProtection } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { FeatureValidationRequestBaseUnion, DataProtectionCheckFeatureSupportOptionalParams, DataProtectionCheckFeatureSupportResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing DataProtection operations. */ export class DataProtectionImpl implements DataProtection { diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts index 333d0cf7a2a3..ea65a77f64e4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/dataProtectionOperations.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DataProtectionOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DataProtectionOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { ClientDiscoveryValueForSingleApi, DataProtectionOperationsListNextOptionalParams, DataProtectionOperationsListOptionalParams, DataProtectionOperationsListResponse, DataProtectionOperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DataProtectionOperations operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts index 4f345a0bbb1a..5843ead5c1f7 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/deletedBackupInstances.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DeletedBackupInstances } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DeletedBackupInstances } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DeletedBackupInstanceResource, DeletedBackupInstancesListNextOptionalParams, @@ -28,7 +28,7 @@ import { DeletedBackupInstancesGetResponse, DeletedBackupInstancesUndeleteOptionalParams, DeletedBackupInstancesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DeletedBackupInstances operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts b/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts index 076c417ea47c..155d138d737b 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/dppResourceGuardProxy.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DppResourceGuardProxy } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DppResourceGuardProxy } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { ResourceGuardProxyBaseResource, DppResourceGuardProxyListNextOptionalParams, @@ -27,7 +27,7 @@ import { DppResourceGuardProxyUnlockDeleteOptionalParams, DppResourceGuardProxyUnlockDeleteResponse, DppResourceGuardProxyListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing DppResourceGuardProxy operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts index 7fcb37f9fa68..1de93e9c0e8a 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobs.ts @@ -6,21 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ExportJobs } from "../operationsInterfaces"; +import { ExportJobs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ExportJobsTriggerOptionalParams, ExportJobsTriggerResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ExportJobs operations. */ export class ExportJobsImpl implements ExportJobs { diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts index eefc7b9906e8..71fed74aac78 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/exportJobsOperationResult.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ExportJobsOperationResult } from "../operationsInterfaces"; +import { ExportJobsOperationResult } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { ExportJobsOperationResultGetOptionalParams, ExportJobsOperationResultGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ExportJobsOperationResult operations. */ export class ExportJobsOperationResultImpl diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts index 917767f670f8..9424df458266 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJob.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { FetchCrossRegionRestoreJob } from "../operationsInterfaces"; +import { FetchCrossRegionRestoreJob } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { CrossRegionRestoreJobRequest, FetchCrossRegionRestoreJobGetOptionalParams, FetchCrossRegionRestoreJobGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing FetchCrossRegionRestoreJob operations. */ export class FetchCrossRegionRestoreJobImpl diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts index 1d2ffdde0939..8269de2eb408 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/fetchCrossRegionRestoreJobs.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FetchCrossRegionRestoreJobs } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FetchCrossRegionRestoreJobs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { AzureBackupJobResource, CrossRegionRestoreJobsRequest, @@ -20,7 +20,7 @@ import { FetchCrossRegionRestoreJobsListOptionalParams, FetchCrossRegionRestoreJobsListResponse, FetchCrossRegionRestoreJobsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FetchCrossRegionRestoreJobs operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts index 2563c9cb118e..472b2c310178 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/fetchSecondaryRecoveryPoints.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FetchSecondaryRecoveryPoints } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FetchSecondaryRecoveryPoints } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { AzureBackupRecoveryPointResource, FetchSecondaryRPsRequestParameters, @@ -20,7 +20,7 @@ import { FetchSecondaryRecoveryPointsListOptionalParams, FetchSecondaryRecoveryPointsListResponse, FetchSecondaryRecoveryPointsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FetchSecondaryRecoveryPoints operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/index.ts b/sdk/dataprotection/arm-dataprotection/src/operations/index.ts index 6914edb8423d..472fb79efda6 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/index.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/index.ts @@ -6,25 +6,25 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./backupVaults"; -export * from "./operationResult"; -export * from "./operationStatus"; -export * from "./operationStatusBackupVaultContext"; -export * from "./operationStatusResourceGroupContext"; -export * from "./backupVaultOperationResults"; -export * from "./dataProtection"; -export * from "./dataProtectionOperations"; -export * from "./backupPolicies"; -export * from "./backupInstances"; -export * from "./recoveryPoints"; -export * from "./fetchSecondaryRecoveryPoints"; -export * from "./fetchCrossRegionRestoreJob"; -export * from "./fetchCrossRegionRestoreJobs"; -export * from "./backupInstancesExtensionRouting"; -export * from "./jobs"; -export * from "./restorableTimeRanges"; -export * from "./exportJobs"; -export * from "./exportJobsOperationResult"; -export * from "./deletedBackupInstances"; -export * from "./resourceGuards"; -export * from "./dppResourceGuardProxy"; +export * from "./backupVaults.js"; +export * from "./operationResult.js"; +export * from "./operationStatus.js"; +export * from "./operationStatusBackupVaultContext.js"; +export * from "./operationStatusResourceGroupContext.js"; +export * from "./backupVaultOperationResults.js"; +export * from "./dataProtection.js"; +export * from "./dataProtectionOperations.js"; +export * from "./backupPolicies.js"; +export * from "./backupInstances.js"; +export * from "./recoveryPoints.js"; +export * from "./fetchSecondaryRecoveryPoints.js"; +export * from "./fetchCrossRegionRestoreJob.js"; +export * from "./fetchCrossRegionRestoreJobs.js"; +export * from "./backupInstancesExtensionRouting.js"; +export * from "./jobs.js"; +export * from "./restorableTimeRanges.js"; +export * from "./exportJobs.js"; +export * from "./exportJobsOperationResult.js"; +export * from "./deletedBackupInstances.js"; +export * from "./resourceGuards.js"; +export * from "./dppResourceGuardProxy.js"; diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts b/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts index efd2161153ef..28fc10c11ab1 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/jobs.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Jobs } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Jobs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { AzureBackupJobResource, JobsListNextOptionalParams, @@ -21,7 +21,7 @@ import { JobsGetOptionalParams, JobsGetResponse, JobsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Jobs operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts index ed30f5af0c7e..07f5ff7db940 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationResult.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { OperationResult } from "../operationsInterfaces"; +import { OperationResult } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { OperationResultGetOptionalParams, OperationResultGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing OperationResult operations. */ export class OperationResultImpl implements OperationResult { diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts index c46d6d003c65..5492bc3d45cd 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatus.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { OperationStatus } from "../operationsInterfaces"; +import { OperationStatus } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { OperationStatusGetOptionalParams, OperationStatusGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing OperationStatus operations. */ export class OperationStatusImpl implements OperationStatus { diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts index d68562bfea71..9af0445ee0d1 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusBackupVaultContext.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { OperationStatusBackupVaultContext } from "../operationsInterfaces"; +import { OperationStatusBackupVaultContext } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { OperationStatusBackupVaultContextGetOptionalParams, OperationStatusBackupVaultContextGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing OperationStatusBackupVaultContext operations. */ export class OperationStatusBackupVaultContextImpl diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts index 7ff062e01133..9ceacb9d9317 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/operationStatusResourceGroupContext.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { OperationStatusResourceGroupContext } from "../operationsInterfaces"; +import { OperationStatusResourceGroupContext } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { OperationStatusResourceGroupContextGetOptionalParams, OperationStatusResourceGroupContextGetResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing OperationStatusResourceGroupContext operations. */ export class OperationStatusResourceGroupContextImpl diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts index 9fa4e06cd0cc..c308f82b7b58 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/recoveryPoints.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { RecoveryPoints } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { RecoveryPoints } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { AzureBackupRecoveryPointResource, RecoveryPointsListNextOptionalParams, @@ -21,7 +21,7 @@ import { RecoveryPointsGetOptionalParams, RecoveryPointsGetResponse, RecoveryPointsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing RecoveryPoints operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts b/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts index b17f951ed684..2a972494ea6d 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/resourceGuards.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ResourceGuards } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ResourceGuards } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { ResourceGuardResource, ResourceGuardsGetResourcesInSubscriptionNextOptionalParams, @@ -68,7 +68,7 @@ import { ResourceGuardsGetDeleteProtectedItemRequestsObjectsNextResponse, ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsNextResponse, ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ResourceGuards operations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts b/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts index 04e727f96120..f2f07ac0b927 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operations/restorableTimeRanges.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { RestorableTimeRanges } from "../operationsInterfaces"; +import { RestorableTimeRanges } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DataProtectionClient } from "../dataProtectionClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DataProtectionClient } from "../dataProtectionClient.js"; import { AzureBackupFindRestorableTimeRangesRequest, RestorableTimeRangesFindOptionalParams, RestorableTimeRangesFindResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing RestorableTimeRanges operations. */ export class RestorableTimeRangesImpl implements RestorableTimeRanges { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts index 6e17875f4d0f..85b00a8102a1 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstances.ts @@ -45,7 +45,7 @@ import { ValidateRestoreRequestObject, BackupInstancesValidateForRestoreOptionalParams, BackupInstancesValidateForRestoreResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a BackupInstances. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstancesExtensionRouting.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstancesExtensionRouting.ts index 38291600e591..43bb7bd7a542 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstancesExtensionRouting.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupInstancesExtensionRouting.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { BackupInstanceResource, BackupInstancesExtensionRoutingListOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a BackupInstancesExtensionRouting. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts index bd48bcc3f5dd..0b4f8186a049 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupPolicies.ts @@ -15,7 +15,7 @@ import { BackupPoliciesCreateOrUpdateOptionalParams, BackupPoliciesCreateOrUpdateResponse, BackupPoliciesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a BackupPolicies. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts index 3d9a399d379b..4dfd382ee8d6 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaultOperationResults.ts @@ -9,7 +9,7 @@ import { BackupVaultOperationResultsGetOptionalParams, BackupVaultOperationResultsGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a BackupVaultOperationResults. */ export interface BackupVaultOperationResults { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts index 32f8d3d2e494..23a3f7501315 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/backupVaults.ts @@ -23,7 +23,7 @@ import { CheckNameAvailabilityRequest, BackupVaultsCheckNameAvailabilityOptionalParams, BackupVaultsCheckNameAvailabilityResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a BackupVaults. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts index 6d2c1ba10a77..044d40544830 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtection.ts @@ -10,7 +10,7 @@ import { FeatureValidationRequestBaseUnion, DataProtectionCheckFeatureSupportOptionalParams, DataProtectionCheckFeatureSupportResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a DataProtection. */ export interface DataProtection { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts index 442419831d28..2fc51795b5fc 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dataProtectionOperations.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ClientDiscoveryValueForSingleApi, DataProtectionOperationsListOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DataProtectionOperations. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts index 75bd4a978fce..3b097fc89b94 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/deletedBackupInstances.ts @@ -14,7 +14,7 @@ import { DeletedBackupInstancesGetOptionalParams, DeletedBackupInstancesGetResponse, DeletedBackupInstancesUndeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DeletedBackupInstances. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts index c3adcd70e5fa..6fe3b6ecdeb4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/dppResourceGuardProxy.ts @@ -18,7 +18,7 @@ import { UnlockDeleteRequest, DppResourceGuardProxyUnlockDeleteOptionalParams, DppResourceGuardProxyUnlockDeleteResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DppResourceGuardProxy. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts index c35e00fbf786..0d46595279b4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobs.ts @@ -10,7 +10,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ExportJobsTriggerOptionalParams, ExportJobsTriggerResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ExportJobs. */ export interface ExportJobs { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts index c5834e3374b6..3b7c50223cb0 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/exportJobsOperationResult.ts @@ -9,7 +9,7 @@ import { ExportJobsOperationResultGetOptionalParams, ExportJobsOperationResultGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ExportJobsOperationResult. */ export interface ExportJobsOperationResult { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts index 18c5d8b70c37..9e811c506cd4 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJob.ts @@ -10,7 +10,7 @@ import { CrossRegionRestoreJobRequest, FetchCrossRegionRestoreJobGetOptionalParams, FetchCrossRegionRestoreJobGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a FetchCrossRegionRestoreJob. */ export interface FetchCrossRegionRestoreJob { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts index ebe7893ca95d..be9a287b27bd 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchCrossRegionRestoreJobs.ts @@ -11,7 +11,7 @@ import { AzureBackupJobResource, CrossRegionRestoreJobsRequest, FetchCrossRegionRestoreJobsListOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FetchCrossRegionRestoreJobs. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts index e9cdcf49f271..bcd2c0ca6e2d 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/fetchSecondaryRecoveryPoints.ts @@ -11,7 +11,7 @@ import { AzureBackupRecoveryPointResource, FetchSecondaryRPsRequestParameters, FetchSecondaryRecoveryPointsListOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FetchSecondaryRecoveryPoints. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/index.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/index.ts index 6914edb8423d..472fb79efda6 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/index.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/index.ts @@ -6,25 +6,25 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./backupVaults"; -export * from "./operationResult"; -export * from "./operationStatus"; -export * from "./operationStatusBackupVaultContext"; -export * from "./operationStatusResourceGroupContext"; -export * from "./backupVaultOperationResults"; -export * from "./dataProtection"; -export * from "./dataProtectionOperations"; -export * from "./backupPolicies"; -export * from "./backupInstances"; -export * from "./recoveryPoints"; -export * from "./fetchSecondaryRecoveryPoints"; -export * from "./fetchCrossRegionRestoreJob"; -export * from "./fetchCrossRegionRestoreJobs"; -export * from "./backupInstancesExtensionRouting"; -export * from "./jobs"; -export * from "./restorableTimeRanges"; -export * from "./exportJobs"; -export * from "./exportJobsOperationResult"; -export * from "./deletedBackupInstances"; -export * from "./resourceGuards"; -export * from "./dppResourceGuardProxy"; +export * from "./backupVaults.js"; +export * from "./operationResult.js"; +export * from "./operationStatus.js"; +export * from "./operationStatusBackupVaultContext.js"; +export * from "./operationStatusResourceGroupContext.js"; +export * from "./backupVaultOperationResults.js"; +export * from "./dataProtection.js"; +export * from "./dataProtectionOperations.js"; +export * from "./backupPolicies.js"; +export * from "./backupInstances.js"; +export * from "./recoveryPoints.js"; +export * from "./fetchSecondaryRecoveryPoints.js"; +export * from "./fetchCrossRegionRestoreJob.js"; +export * from "./fetchCrossRegionRestoreJobs.js"; +export * from "./backupInstancesExtensionRouting.js"; +export * from "./jobs.js"; +export * from "./restorableTimeRanges.js"; +export * from "./exportJobs.js"; +export * from "./exportJobsOperationResult.js"; +export * from "./deletedBackupInstances.js"; +export * from "./resourceGuards.js"; +export * from "./dppResourceGuardProxy.js"; diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts index 7ea68a66c4f4..58c1d2a46a5f 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/jobs.ts @@ -12,7 +12,7 @@ import { JobsListOptionalParams, JobsGetOptionalParams, JobsGetResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Jobs. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts index c3acd6ab4e09..8fea844e7a19 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationResult.ts @@ -9,7 +9,7 @@ import { OperationResultGetOptionalParams, OperationResultGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a OperationResult. */ export interface OperationResult { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts index ecf40013f221..965bbc638f5f 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatus.ts @@ -9,7 +9,7 @@ import { OperationStatusGetOptionalParams, OperationStatusGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a OperationStatus. */ export interface OperationStatus { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts index af682fefa6ae..4bc2f260f7c2 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusBackupVaultContext.ts @@ -9,7 +9,7 @@ import { OperationStatusBackupVaultContextGetOptionalParams, OperationStatusBackupVaultContextGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a OperationStatusBackupVaultContext. */ export interface OperationStatusBackupVaultContext { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts index e86dc5e2e3e8..0f0158897e10 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/operationStatusResourceGroupContext.ts @@ -9,7 +9,7 @@ import { OperationStatusResourceGroupContextGetOptionalParams, OperationStatusResourceGroupContextGetResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a OperationStatusResourceGroupContext. */ export interface OperationStatusResourceGroupContext { diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts index 7a199387eaa0..36b1f593359f 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/recoveryPoints.ts @@ -12,7 +12,7 @@ import { RecoveryPointsListOptionalParams, RecoveryPointsGetOptionalParams, RecoveryPointsGetResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a RecoveryPoints. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts index c1f1b48c7c4c..b5dc814c5985 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/resourceGuards.ts @@ -38,7 +38,7 @@ import { ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResponse, ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptionalParams, ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ResourceGuards. */ diff --git a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts index be1e357061a4..465293c43999 100644 --- a/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts +++ b/sdk/dataprotection/arm-dataprotection/src/operationsInterfaces/restorableTimeRanges.ts @@ -10,7 +10,7 @@ import { AzureBackupFindRestorableTimeRangesRequest, RestorableTimeRangesFindOptionalParams, RestorableTimeRangesFindResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a RestorableTimeRanges. */ export interface RestorableTimeRanges { diff --git a/sdk/dataprotection/arm-dataprotection/test/dataprotection_operations_test.spec.ts b/sdk/dataprotection/arm-dataprotection/test/dataprotection_operations_test.spec.ts index 729160aadd8a..4b936896fd6f 100644 --- a/sdk/dataprotection/arm-dataprotection/test/dataprotection_operations_test.spec.ts +++ b/sdk/dataprotection/arm-dataprotection/test/dataprotection_operations_test.spec.ts @@ -10,13 +10,11 @@ import { env, Recorder, RecorderStartOptions, - delay, isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { DataProtectionClient } from "../src/dataProtectionClient"; +import { DataProtectionClient } from "../src/dataProtectionClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" @@ -42,8 +40,8 @@ describe("DataProtection test", () => { let resourceGroup: string; let vaultName: string; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async function (ctx) { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used @@ -94,7 +92,7 @@ describe("DataProtection test", () => { it("backupVaults delete test", async function () { const resArray = new Array(); - const res = await client.backupVaults.beginDeleteAndWait(resourceGroup, vaultName, testPollingOptions) + await client.backupVaults.beginDeleteAndWait(resourceGroup, vaultName, testPollingOptions) for await (let item of client.backupVaults.listInResourceGroup(resourceGroup)) { resArray.push(item); } diff --git a/sdk/dataprotection/arm-dataprotection/tsconfig.browser.config.json b/sdk/dataprotection/arm-dataprotection/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/dataprotection/arm-dataprotection/tsconfig.json b/sdk/dataprotection/arm-dataprotection/tsconfig.json index 1f65f09046a1..19ceb382b521 100644 --- a/sdk/dataprotection/arm-dataprotection/tsconfig.json +++ b/sdk/dataprotection/arm-dataprotection/tsconfig.json @@ -1,33 +1,13 @@ { - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-dataprotection": [ - "./src/index" - ] + "references": [ + { + "path": "./tsconfig.src.json" + }, + { + "path": "./tsconfig.samples.json" + }, + { + "path": "./tsconfig.test.json" } - }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" ] -} \ No newline at end of file +} diff --git a/sdk/dataprotection/arm-dataprotection/tsconfig.samples.json b/sdk/dataprotection/arm-dataprotection/tsconfig.samples.json new file mode 100644 index 000000000000..8aaab5bbcc35 --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-dataprotection": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/dataprotection/arm-dataprotection/tsconfig.src.json b/sdk/dataprotection/arm-dataprotection/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/dataprotection/arm-dataprotection/tsconfig.test.json b/sdk/dataprotection/arm-dataprotection/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/dataprotection/arm-dataprotection/vitest.browser.config.ts b/sdk/dataprotection/arm-dataprotection/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: ["dist-test/browser/test/**/*.spec.js",], + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/dataprotection/arm-dataprotection/vitest.config.ts b/sdk/dataprotection/arm-dataprotection/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/vitest.config.ts @@ -0,0 +1,16 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + testTimeout: 1200000, + hookTimeout: 1200000, + }, + }), +); diff --git a/sdk/dataprotection/arm-dataprotection/vitest.esm.config.ts b/sdk/dataprotection/arm-dataprotection/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/dataprotection/arm-dataprotection/vitest.esm.config.ts @@ -0,0 +1,12 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { mergeConfig } from "vitest/config"; +import vitestConfig from "./vitest.config.ts"; +import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; + +export default mergeConfig( + vitestConfig, + vitestEsmConfig +);