diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index a1fd7c386fc3..2e43b5874141 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -297,25 +297,25 @@ importers: version: file:projects/arm-devhub.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-deviceprovisioningservices': specifier: file:./projects/arm-deviceprovisioningservices.tgz - version: file:projects/arm-deviceprovisioningservices.tgz + version: file:projects/arm-deviceprovisioningservices.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-deviceregistry': specifier: file:./projects/arm-deviceregistry.tgz version: file:projects/arm-deviceregistry.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-deviceupdate': specifier: file:./projects/arm-deviceupdate.tgz - version: file:projects/arm-deviceupdate.tgz + version: file:projects/arm-deviceupdate.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-devopsinfrastructure': specifier: file:./projects/arm-devopsinfrastructure.tgz version: file:projects/arm-devopsinfrastructure.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-devspaces': specifier: file:./projects/arm-devspaces.tgz - version: file:projects/arm-devspaces.tgz + version: file:projects/arm-devspaces.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-devtestlabs': specifier: file:./projects/arm-devtestlabs.tgz - version: file:projects/arm-devtestlabs.tgz + version: file:projects/arm-devtestlabs.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-digitaltwins': specifier: file:./projects/arm-digitaltwins.tgz - version: file:projects/arm-digitaltwins.tgz + version: file:projects/arm-digitaltwins.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-dns': specifier: file:./projects/arm-dns.tgz version: file:projects/arm-dns.tgz @@ -2861,7 +2861,7 @@ packages: version: 0.0.0 '@rush-temp/arm-deviceprovisioningservices@file:projects/arm-deviceprovisioningservices.tgz': - resolution: {integrity: sha512-LtsvjluihZbDOjb19qdSo+VdU9HOcMbGdXrdYWz6EaT1t9lff1Fczfr6MhLUK3H2JF92a+ANgGZ83I7yHJVSLA==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-OlrFXDQYrhoppXLxhRiBMleZtto0njDOMWFjlTHnUf4d2sXjTDem7LkdSYBarn3l+lIJ+iLvnK0yyFxtu1Mwdg==, tarball: file:projects/arm-deviceprovisioningservices.tgz} version: 0.0.0 '@rush-temp/arm-deviceregistry@file:projects/arm-deviceregistry.tgz': @@ -2869,7 +2869,7 @@ packages: version: 0.0.0 '@rush-temp/arm-deviceupdate@file:projects/arm-deviceupdate.tgz': - resolution: {integrity: sha512-O8T8MSzp0+T1BREa9gE91zzR0GA38D3kBosDUTY0gff7y6hG+sKFg15W/wmK4PLNda2rS2luNHivVid9cB0eEw==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-sfV75iaC7YnwNgPCg9M7ILBd3sm5lscMliq7S6MPxqJvgun3DhOv5/HMfpETGQ40Jqg6cRONszX4AwdNIdaCng==, tarball: file:projects/arm-deviceupdate.tgz} version: 0.0.0 '@rush-temp/arm-devopsinfrastructure@file:projects/arm-devopsinfrastructure.tgz': @@ -2877,15 +2877,15 @@ packages: version: 0.0.0 '@rush-temp/arm-devspaces@file:projects/arm-devspaces.tgz': - resolution: {integrity: sha512-M+g3ehZVqHp8ZmRdIIw7OOak0xE8wLi8QB82lK4jqhpdftPnToxYqGNTVHzsLJKRC0P9L3EUjyb3kL+WJNgA3g==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-3YAlBLTEM0ELe0RuuLfkA5/kROeMmwMcTd8NbEUlKeojRFmllE9srqAAhqEdFLGjyOzyqo5ORs9FGWHzMvT2iA==, tarball: file:projects/arm-devspaces.tgz} version: 0.0.0 '@rush-temp/arm-devtestlabs@file:projects/arm-devtestlabs.tgz': - resolution: {integrity: sha512-kJi/YWvLwigtrX95bHndXd4J9JzMwCe7D5sz7NByvI7t7Hb6tKBBNILlK9jMv0lKCKrVhWW/oMzVMRqfjqyfrw==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-X2O83wjy3e+zSpWdB4MYFf+NS8U2BDqTzLePburCkuhVfDn+DVRErapBDBoZ1n925+MKk36PlHxTMASdyG87Wg==, tarball: file:projects/arm-devtestlabs.tgz} version: 0.0.0 '@rush-temp/arm-digitaltwins@file:projects/arm-digitaltwins.tgz': - resolution: {integrity: sha512-qjYFTmBcvdfjTFfMp9Hpfhjcz5s5PnLzFZGqMlFFfOHlws3HPj2Qvg7ZQL1N0EgelTscVBGl0gDqEJb421kepg==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-2x1m6qmOWNX6bewbmRSo3oXvPNe2XvuKnYghNd63uDx165kNcvfaIO7otMW/l2kB9uRr1AkCZ06OQ/rihhIwYQ==, tarball: file:projects/arm-digitaltwins.tgz} version: 0.0.0 '@rush-temp/arm-dns-profile-2020-09-01-hybrid@file:projects/arm-dns-profile-2020-09-01-hybrid.tgz': @@ -12742,25 +12742,37 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-deviceprovisioningservices@file:projects/arm-deviceprovisioningservices.tgz': + '@rush-temp/arm-deviceprovisioningservices@file:projects/arm-deviceprovisioningservices.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-deviceregistry@file:projects/arm-deviceregistry.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: @@ -12794,25 +12806,37 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-deviceupdate@file:projects/arm-deviceupdate.tgz': + '@rush-temp/arm-deviceupdate@file:projects/arm-deviceupdate.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-devopsinfrastructure@file:projects/arm-devopsinfrastructure.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: @@ -12846,63 +12870,99 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-devspaces@file:projects/arm-devspaces.tgz': + '@rush-temp/arm-devspaces@file:projects/arm-devspaces.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-devtestlabs@file:projects/arm-devtestlabs.tgz': + '@rush-temp/arm-devtestlabs@file:projects/arm-devtestlabs.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-digitaltwins@file:projects/arm-digitaltwins.tgz': + '@rush-temp/arm-digitaltwins@file:projects/arm-digitaltwins.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-dns-profile-2020-09-01-hybrid@file:projects/arm-dns-profile-2020-09-01-hybrid.tgz': dependencies: diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/api-extractor.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/api-extractor.json index 741448181d46..9e9264e585d0 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/api-extractor.json +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/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-deviceprovisioningservices.d.ts" + "publicTrimmedFilePath": "dist/arm-deviceprovisioningservices.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json index ff558187cc40..dd7ebbc6428f 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/package.json @@ -24,22 +24,22 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-deviceprovisioningservices.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-deviceprovisioningservices?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/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateCreateOrUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateCreateOrUpdateSample.ts index cf9f8c64d77e..0ba020acfd83 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateCreateOrUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Add new certificate or update an existing certificate. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Add new certificate or update an existing certificate. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCertificateCreateOrUpdate.json */ -async function dpsCreateOrUpdateCertificate() { +async function dpsCreateOrUpdateCertificate(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -46,7 +44,7 @@ async function dpsCreateOrUpdateCertificate() { console.log(result); } -async function main() { +async function main(): Promise { dpsCreateOrUpdateCertificate(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateDeleteSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateDeleteSample.ts index 86fe6c0958fd..1ea1439379c2 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateDeleteSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the specified certificate associated with the Provisioning Service @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes the specified certificate associated with the Provisioning Service * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSDeleteCertificate.json */ -async function dpsDeleteCertificate() { +async function dpsDeleteCertificate(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -41,7 +39,7 @@ async function dpsDeleteCertificate() { console.log(result); } -async function main() { +async function main(): Promise { dpsDeleteCertificate(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGenerateVerificationCodeSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGenerateVerificationCodeSample.ts index 368b3f459a30..0eb173c0031b 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGenerateVerificationCodeSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGenerateVerificationCodeSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate verification code for Proof of Possession. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Generate verification code for Proof of Possession. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGenerateVerificationCode.json */ -async function dpsGenerateVerificationCode() { +async function dpsGenerateVerificationCode(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -41,7 +39,7 @@ async function dpsGenerateVerificationCode() { console.log(result); } -async function main() { +async function main(): Promise { dpsGenerateVerificationCode(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGetSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGetSample.ts index 448bcba3307f..847af65d56cd 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGetSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the certificate from the provisioning service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the certificate from the provisioning service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetCertificate.json */ -async function dpsGetCertificate() { +async function dpsGetCertificate(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -39,7 +37,7 @@ async function dpsGetCertificate() { console.log(result); } -async function main() { +async function main(): Promise { dpsGetCertificate(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateListSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateListSample.ts index 994d64c3fc24..7bdf13ffd899 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateListSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all the certificates tied to the provisioning service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get all the certificates tied to the provisioning service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetCertificates.json */ -async function dpsGetCertificates() { +async function dpsGetCertificates(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -37,7 +35,7 @@ async function dpsGetCertificates() { console.log(result); } -async function main() { +async function main(): Promise { dpsGetCertificates(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateVerifyCertificateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateVerifyCertificateSample.ts index 4d592f1dd515..bc8ffc4cc494 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateVerifyCertificateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/dpsCertificateVerifyCertificateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSVerifyCertificate.json */ -async function dpsVerifyCertificate() { +async function dpsVerifyCertificate(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -48,7 +46,7 @@ async function dpsVerifyCertificate() { console.log(result); } -async function main() { +async function main(): Promise { dpsVerifyCertificate(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts index 1c3f13a16e1e..228ade9118ac 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable @@ -23,7 +21,7 @@ dotenv.config(); * @summary Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCheckNameAvailability.json */ -async function dpsCheckName() { +async function dpsCheckName(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -36,7 +34,7 @@ async function dpsCheckName() { console.log(result); } -async function main() { +async function main(): Promise { dpsCheckName(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts index 916bac4798f7..b197e8f4af2c 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the status of a private endpoint connection with the specified name @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update the status of a private endpoint connection with the specified name * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCreateOrUpdatePrivateEndpointConnection.json */ -async function privateEndpointConnectionCreateOrUpdate() { +async function privateEndpointConnectionCreateOrUpdate(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -51,7 +49,7 @@ async function privateEndpointConnectionCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionCreateOrUpdate(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdateSample.ts index 77be2e6d2ed1..f7fdfafd5378 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSCreate.json */ -async function dpsCreate() { +async function dpsCreate(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -53,7 +51,7 @@ async function dpsCreate() { * @summary Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSUpdate.json */ -async function dpsUpdate() { +async function dpsUpdate(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -83,7 +81,7 @@ async function dpsUpdate() { console.log(result); } -async function main() { +async function main(): Promise { dpsCreate(); dpsUpdate(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.ts index 277b78d54b34..85087747e497 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete private endpoint connection with the specified name @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete private endpoint connection with the specified name * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSDeletePrivateEndpointConnection.json */ -async function privateEndpointConnectionDelete() { +async function privateEndpointConnectionDelete(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -39,7 +37,7 @@ async function privateEndpointConnectionDelete() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionDelete(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeleteSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeleteSample.ts index 6da424913591..7afaf0932bb7 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeleteSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the Provisioning Service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes the Provisioning Service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSDelete.json */ -async function dpsDelete() { +async function dpsDelete(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -37,7 +35,7 @@ async function dpsDelete() { console.log(result); } -async function main() { +async function main(): Promise { dpsDelete(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetOperationResultSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetOperationResultSample.ts index 93ff420ac834..8f525dc7cdac 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetOperationResultSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetOperationResultSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the status of a long running operation, such as create, update or delete a provisioning service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the status of a long running operation, such as create, update or delete a provisioning service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetOperationResult.json */ -async function dpsGetOperationResult() { +async function dpsGetOperationResult(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -41,7 +39,7 @@ async function dpsGetOperationResult() { console.log(result); } -async function main() { +async function main(): Promise { dpsGetOperationResult(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.ts index 0e4224b05695..56e978c29dda 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get private endpoint connection properties @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get private endpoint connection properties * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetPrivateEndpointConnection.json */ -async function privateEndpointConnectionGet() { +async function privateEndpointConnectionGet(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -39,7 +37,7 @@ async function privateEndpointConnectionGet() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionGet(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.ts index 66c4453060d9..6eb823dc9a16 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private link resource for the given provisioning service @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the specified private link resource for the given provisioning service * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetPrivateLinkResources.json */ -async function privateLinkResourcesList() { +async function privateLinkResourcesList(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -39,7 +37,7 @@ async function privateLinkResourcesList() { console.log(result); } -async function main() { +async function main(): Promise { privateLinkResourcesList(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetSample.ts index 09103e5d0339..a3a913c76f6c 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the metadata of the provisioning service without SAS keys. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the metadata of the provisioning service without SAS keys. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGet.json */ -async function dpsGet() { +async function dpsGet(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -37,7 +35,7 @@ async function dpsGet() { console.log(result); } -async function main() { +async function main(): Promise { dpsGet(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListByResourceGroupSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListByResourceGroupSample.ts index 3c9fd3cf4b12..e1636ea60076 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListByResourceGroupSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of all provisioning services in the given resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get a list of all provisioning services in the given resource group. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListByResourceGroup.json */ -async function dpsListByResourceGroup() { +async function dpsListByResourceGroup(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -38,7 +36,7 @@ async function dpsListByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { dpsListByResourceGroup(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListBySubscriptionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListBySubscriptionSample.ts index d9f585d02862..a62b8ca4d641 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListBySubscriptionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all the provisioning services for a given subscription id. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all the provisioning services for a given subscription id. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListBySubscription.json */ -async function dpsListBySubscription() { +async function dpsListBySubscription(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -33,7 +31,7 @@ async function dpsListBySubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { dpsListBySubscription(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysForKeyNameSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysForKeyNameSample.ts index 4c502e7784c0..d1057cef3db6 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysForKeyNameSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysForKeyNameSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List primary and secondary keys for a specific key name @@ -20,7 +18,7 @@ dotenv.config(); * @summary List primary and secondary keys for a specific key name * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetKey.json */ -async function dpsGetKey() { +async function dpsGetKey(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -39,7 +37,7 @@ async function dpsGetKey() { console.log(result); } -async function main() { +async function main(): Promise { dpsGetKey(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysSample.ts index d7a63b5db593..1a1ddfd27634 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the primary and secondary keys for a provisioning service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List the primary and secondary keys for a provisioning service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListKeys.json */ -async function dpsListKeys() { +async function dpsListKeys(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -40,7 +38,7 @@ async function dpsListKeys() { console.log(resArray); } -async function main() { +async function main(): Promise { dpsListKeys(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.ts index 66ca8b2ac0fb..127cb0e2d800 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private endpoint connection properties @@ -20,7 +18,7 @@ dotenv.config(); * @summary List private endpoint connection properties * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListPrivateEndpointConnections.json */ -async function privateEndpointConnectionsList() { +async function privateEndpointConnectionsList(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -37,7 +35,7 @@ async function privateEndpointConnectionsList() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionsList(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.ts index f6a8c22fc50d..dbca18db9f41 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private link resources for the given provisioning service @@ -20,7 +18,7 @@ dotenv.config(); * @summary List private link resources for the given provisioning service * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSListPrivateLinkResources.json */ -async function privateLinkResourcesList() { +async function privateLinkResourcesList(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -37,7 +35,7 @@ async function privateLinkResourcesList() { console.log(result); } -async function main() { +async function main(): Promise { privateLinkResourcesList(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListValidSkusSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListValidSkusSample.ts index a7d7d4c9e687..ec612d9fa7aa 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListValidSkusSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceListValidSkusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the list of valid SKUs and tiers for a provisioning service. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Gets the list of valid SKUs and tiers for a provisioning service. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSGetValidSku.json */ -async function dpsGetValidSku() { +async function dpsGetValidSku(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -40,7 +38,7 @@ async function dpsGetValidSku() { console.log(resArray); } -async function main() { +async function main(): Promise { dpsGetValidSku(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceUpdateSample.ts index 7db555c160af..0919384b1097 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/iotDpsResourceUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSPatch.json */ -async function dpsPatch() { +async function dpsPatch(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "91d12660-3dec-467a-be2a-213b5544ddc0"; @@ -42,7 +40,7 @@ async function dpsPatch() { console.log(result); } -async function main() { +async function main(): Promise { dpsPatch(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/operationsListSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/operationsListSample.ts index df3f049f63d5..5cc00b6f16cf 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/operationsListSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all of the available Microsoft.Devices REST API operations. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all of the available Microsoft.Devices REST API operations. * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/preview/2023-03-01-preview/examples/DPSOperations.json */ -async function dpsOperations() { +async function dpsOperations(): Promise { const subscriptionId = process.env["DEVICEPROVISIONINGSERVICES_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function dpsOperations() { console.log(resArray); } -async function main() { +async function main(): Promise { dpsOperations(); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateCreateOrUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateCreateOrUpdateSample.ts index f39aad2f82e5..9d13ceab8600 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateCreateOrUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Add new certificate or update an existing certificate. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateDeleteSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateDeleteSample.ts index aeffd80f73eb..414f0d1ee2fe 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateDeleteSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the specified certificate associated with the Provisioning Service diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts index 7e314edb00f7..b1bdcd61cb4c 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate verification code for Proof of Possession. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGetSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGetSample.ts index e34734d1d632..d90df28b0dff 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGetSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the certificate from the provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateListSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateListSample.ts index 664c0fef548a..2f857ed12e17 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateListSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all the certificates tied to the provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateVerifyCertificateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateVerifyCertificateSample.ts index fc723d96b102..6cf825c5e199 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateVerifyCertificateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/dpsCertificateVerifyCertificateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts index 11c45dd46365..b097a41d8701 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts index f6ddb95ad792..4e29a20381df 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the status of a private endpoint connection with the specified name diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdateSample.ts index fab793c77472..0d8664f1374b 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts index 45d877ac85db..4f3f0cfb3c3d 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete private endpoint connection with the specified name diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeleteSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeleteSample.ts index 1d17b149a5fb..82ad27b633c1 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeleteSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the Provisioning Service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetOperationResultSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetOperationResultSample.ts index 56b951d6787c..604a53211afc 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetOperationResultSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetOperationResultSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the status of a long running operation, such as create, update or delete a provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts index 70ed188aec9d..8801ca9c3eee 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get private endpoint connection properties diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts index efc9761e7336..ef1902ce1ed0 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private link resource for the given provisioning service diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetSample.ts index 7dcb28589b36..8e2095874157 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the metadata of the provisioning service without SAS keys. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListByResourceGroupSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListByResourceGroupSample.ts index dc6256b20641..8a8bb08a604c 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListByResourceGroupSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of all provisioning services in the given resource group. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListBySubscriptionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListBySubscriptionSample.ts index 30bb1c044b3c..9d3c9cc185c3 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListBySubscriptionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all the provisioning services for a given subscription id. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts index 15a52d495530..3d0b801bd557 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List primary and secondary keys for a specific key name diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysSample.ts index e1ac0f228af8..58ad6cab631e 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the primary and secondary keys for a provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts index ea8c9156d7c3..1d661d2237b7 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private endpoint connection properties diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts index c5dcf76ad3c5..c1d6090ba641 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private link resources for the given provisioning service diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListValidSkusSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListValidSkusSample.ts index 8d703a3f9aa5..58bfacf3babd 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListValidSkusSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceListValidSkusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the list of valid SKUs and tiers for a provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceUpdateSample.ts index ec00b675ed82..713ae6f4bea7 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/iotDpsResourceUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/operationsListSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/operationsListSample.ts index 1f506810a17b..356b5fa450ff 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/operationsListSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v5/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all of the available Microsoft.Devices REST API operations. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateCreateOrUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateCreateOrUpdateSample.ts index cf9f8c64d77e..bfab8aaac1f2 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateCreateOrUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Add new certificate or update an existing certificate. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateDeleteSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateDeleteSample.ts index 86fe6c0958fd..97e4eefd2274 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateDeleteSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the specified certificate associated with the Provisioning Service diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts index 368b3f459a30..ee2ccab37841 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGenerateVerificationCodeSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate verification code for Proof of Possession. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGetSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGetSample.ts index 448bcba3307f..42753a557908 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGetSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the certificate from the provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateListSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateListSample.ts index 994d64c3fc24..63e654361c28 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateListSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all the certificates tied to the provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateVerifyCertificateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateVerifyCertificateSample.ts index 4d592f1dd515..460cf5c53c6a 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateVerifyCertificateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/dpsCertificateVerifyCertificateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts index 1c3f13a16e1e..0cfae9677f7b 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts index 916bac4798f7..a95b769f8763 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the status of a private endpoint connection with the specified name diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdateSample.ts index 77be2e6d2ed1..c6507787cd3c 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts index 277b78d54b34..ed43ae236bd2 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeletePrivateEndpointConnectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete private endpoint connection with the specified name diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeleteSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeleteSample.ts index 6da424913591..663b6ece0baf 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeleteSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the Provisioning Service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetOperationResultSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetOperationResultSample.ts index 93ff420ac834..525f99313845 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetOperationResultSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetOperationResultSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the status of a long running operation, such as create, update or delete a provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts index 0e4224b05695..394b8ab1e09d 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateEndpointConnectionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get private endpoint connection properties diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts index 66c4453060d9..e5893ea65238 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private link resource for the given provisioning service diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetSample.ts index 09103e5d0339..e383f685d928 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the metadata of the provisioning service without SAS keys. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListByResourceGroupSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListByResourceGroupSample.ts index 3c9fd3cf4b12..cf46377030e8 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListByResourceGroupSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of all provisioning services in the given resource group. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListBySubscriptionSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListBySubscriptionSample.ts index d9f585d02862..36dae83c580e 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListBySubscriptionSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all the provisioning services for a given subscription id. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts index 4c502e7784c0..797a9fa70090 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysForKeyNameSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List primary and secondary keys for a specific key name diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysSample.ts index d7a63b5db593..b9cfac3cf7ec 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the primary and secondary keys for a provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts index 66ca8b2ac0fb..baeb03324be7 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateEndpointConnectionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private endpoint connection properties diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts index f6a8c22fc50d..49e445b43171 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private link resources for the given provisioning service diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListValidSkusSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListValidSkusSample.ts index a7d7d4c9e687..17f51f7c3c02 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListValidSkusSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceListValidSkusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the list of valid SKUs and tiers for a provisioning service. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceUpdateSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceUpdateSample.ts index 7db555c160af..30f0bec7033c 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceUpdateSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/iotDpsResourceUpdateSample.ts @@ -13,9 +13,7 @@ import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/operationsListSample.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/operationsListSample.ts index df3f049f63d5..7b473c1fbf04 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/operationsListSample.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/samples/v6-beta/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { IotDpsClient } from "@azure/arm-deviceprovisioningservices"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all of the available Microsoft.Devices REST API operations. diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/index.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/index.ts index 37f5cb3b6369..dc85f2361220 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/index.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { IotDpsClient } from "./iotDpsClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { IotDpsClient } from "./iotDpsClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts index 46323bae3fa4..eda39fd7d624 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/iotDpsClient.ts @@ -18,13 +18,13 @@ import { OperationsImpl, DpsCertificateImpl, IotDpsResourceImpl -} from "./operations"; +} from "./operations/index.js"; import { Operations, DpsCertificate, IotDpsResource -} from "./operationsInterfaces"; -import { IotDpsClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { IotDpsClientOptionalParams } from "./models/index.js"; export class IotDpsClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/parameters.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/parameters.ts index 524301e60eee..bbb11b23f6ff 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/parameters.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/models/parameters.ts @@ -18,7 +18,7 @@ import { TagsResource as TagsResourceMapper, OperationInputs as OperationInputsMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/dpsCertificate.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/dpsCertificate.ts index 94860ac1f0bd..0a4fb72d236f 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/dpsCertificate.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/dpsCertificate.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { DpsCertificate } from "../operationsInterfaces"; +import { DpsCertificate } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { IotDpsClient } from "../iotDpsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { IotDpsClient } from "../iotDpsClient.js"; import { DpsCertificateGetOptionalParams, DpsCertificateGetResponse, @@ -25,7 +25,7 @@ import { VerificationCodeRequest, DpsCertificateVerifyCertificateOptionalParams, DpsCertificateVerifyCertificateResponse -} from "../models"; +} from "../models/index.js"; /** Class containing DpsCertificate operations. */ export class DpsCertificateImpl implements DpsCertificate { diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/index.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/index.ts index c81af0ebcdb9..2c12193bc6a8 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/index.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./dpsCertificate"; -export * from "./iotDpsResource"; +export * from "./operations.js"; +export * from "./dpsCertificate.js"; +export * from "./iotDpsResource.js"; diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/iotDpsResource.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/iotDpsResource.ts index b6bfd774dd1e..5a9e9b38806d 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/iotDpsResource.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/iotDpsResource.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { IotDpsResource } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { IotDpsResource } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { IotDpsClient } from "../iotDpsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { IotDpsClient } from "../iotDpsClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ProvisioningServiceDescription, IotDpsResourceListBySubscriptionNextOptionalParams, @@ -67,7 +67,7 @@ import { IotDpsResourceListByResourceGroupNextResponse, IotDpsResourceListValidSkusNextResponse, IotDpsResourceListKeysNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing IotDpsResource operations. */ diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/operations.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/operations.ts index b42d6d668620..68c4a8fc53ad 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operations/operations.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/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 { IotDpsClient } from "../iotDpsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { IotDpsClient } from "../iotDpsClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/dpsCertificate.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/dpsCertificate.ts index a1682492b9d5..84d2037cfdf6 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/dpsCertificate.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/dpsCertificate.ts @@ -20,7 +20,7 @@ import { VerificationCodeRequest, DpsCertificateVerifyCertificateOptionalParams, DpsCertificateVerifyCertificateResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a DpsCertificate. */ export interface DpsCertificate { diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/index.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/index.ts index c81af0ebcdb9..2c12193bc6a8 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/index.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./dpsCertificate"; -export * from "./iotDpsResource"; +export * from "./operations.js"; +export * from "./dpsCertificate.js"; +export * from "./iotDpsResource.js"; diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/iotDpsResource.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/iotDpsResource.ts index 917efc8063b8..d6e15701ab0b 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/iotDpsResource.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/iotDpsResource.ts @@ -44,7 +44,7 @@ import { IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse, IotDpsResourceDeletePrivateEndpointConnectionOptionalParams, IotDpsResourceDeletePrivateEndpointConnectionResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a IotDpsResource. */ diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/operations.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/operations.ts index 1f3ee5b36a08..3d66be6873bd 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/src/operationsInterfaces/operations.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/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/deviceprovisioningservices/arm-deviceprovisioningservices/test/deviceprovisioningservices_operations_test.spec.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/test/deviceprovisioningservices_operations_test.spec.ts index a35a670b8f36..9b5ca6d19317 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/test/deviceprovisioningservices_operations_test.spec.ts +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/test/deviceprovisioningservices_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 { IotDpsClient } from "../src/iotDpsClient"; +import { IotDpsClient } from "../src/iotDpsClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -45,8 +43,8 @@ describe("deviceprovisioningservices test", () => { 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 @@ -91,7 +89,7 @@ describe("deviceprovisioningservices test", () => { it("iotDpsResource delete test", async function () { const resArray = new Array(); - const res = await client.iotDpsResource.beginDeleteAndWait(resourceGroup, resourcename, testPollingOptions) + await client.iotDpsResource.beginDeleteAndWait(resourceGroup, resourcename, testPollingOptions) for await (let item of client.iotDpsResource.listByResourceGroup(resourceGroup)) { resArray.push(item); } diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.browser.config.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.json index 8bfdb03c3341..19ceb382b521 100644 --- a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.json +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/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-deviceprovisioningservices": [ - "./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/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.samples.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.samples.json new file mode 100644 index 000000000000..dacc5812f411 --- /dev/null +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-deviceprovisioningservices": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.src.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.test.json b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/vitest.browser.config.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/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/deviceprovisioningservices/arm-deviceprovisioningservices/vitest.config.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/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/deviceprovisioningservices/arm-deviceprovisioningservices/vitest.esm.config.ts b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/deviceprovisioningservices/arm-deviceprovisioningservices/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/deviceupdate/arm-deviceupdate/api-extractor.json b/sdk/deviceupdate/arm-deviceupdate/api-extractor.json index 502f89b063d9..6d4875caee65 100644 --- a/sdk/deviceupdate/arm-deviceupdate/api-extractor.json +++ b/sdk/deviceupdate/arm-deviceupdate/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-deviceupdate.d.ts" + "publicTrimmedFilePath": "dist/arm-deviceupdate.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/deviceupdate/arm-deviceupdate/package.json b/sdk/deviceupdate/arm-deviceupdate/package.json index db8efb82398a..7bfff6f65feb 100644 --- a/sdk/deviceupdate/arm-deviceupdate/package.json +++ b/sdk/deviceupdate/arm-deviceupdate/package.json @@ -24,22 +24,22 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-deviceupdate.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-deviceupdate?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/deviceupdate/arm-deviceupdate/samples-dev/accountsCreateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsCreateSample.ts index fb613f8c9218..b7611a1f1c5b 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsCreateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsCreateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Account, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates Account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Creates or updates Account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Accounts/Accounts_Create.json */ -async function createsOrUpdatesAccount() { +async function createsOrUpdatesAccount(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -51,7 +49,7 @@ async function createsOrUpdatesAccount() { console.log(result); } -async function main() { +async function main(): Promise { createsOrUpdatesAccount(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsDeleteSample.ts index e656ecbe7b35..b589299dfe0a 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Accounts/Accounts_Delete.json */ -async function deletesAnAccount() { +async function deletesAnAccount(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function deletesAnAccount() { console.log(result); } -async function main() { +async function main(): Promise { deletesAnAccount(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsGetSample.ts index 57f588d5ca16..1e5c01751689 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns account details for the given account name. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns account details for the given account name. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Accounts/Accounts_Get.json */ -async function getsAccountDetails() { +async function getsAccountDetails(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function getsAccountDetails() { console.log(result); } -async function main() { +async function main(): Promise { getsAccountDetails(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsHeadSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsHeadSample.ts index fa161ac82087..fde4095a828f 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsHeadSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsHeadSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks whether account exists. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Checks whether account exists. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Accounts/Accounts_Head.json */ -async function checksWhetherAccountExists() { +async function checksWhetherAccountExists(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function checksWhetherAccountExists() { console.log(result); } -async function main() { +async function main(): Promise { checksWhetherAccountExists(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListByResourceGroupSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListByResourceGroupSample.ts index 29665488ecdd..e7fb8e15ea2a 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListByResourceGroupSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of Accounts. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns list of Accounts. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Accounts/Accounts_List.json */ -async function getsListOfAccounts() { +async function getsListOfAccounts(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -37,7 +35,7 @@ async function getsListOfAccounts() { console.log(resArray); } -async function main() { +async function main(): Promise { getsListOfAccounts(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListBySubscriptionSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListBySubscriptionSample.ts index 04e86a5327cf..2d97e37e5003 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListBySubscriptionSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of Accounts. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns list of Accounts. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Accounts/Accounts_List.json */ -async function getListOfAccounts() { +async function getListOfAccounts(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function getListOfAccounts() { console.log(resArray); } -async function main() { +async function main(): Promise { getListOfAccounts(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsUpdateSample.ts index 651dd524f732..5eeb295b0634 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/accountsUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AccountUpdate, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates account's patchable properties @@ -20,7 +18,7 @@ dotenv.config(); * @summary Updates account's patchable properties * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Accounts/Accounts_Update.json */ -async function updatesAccount() { +async function updatesAccount(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function updatesAccount() { console.log(result); } -async function main() { +async function main(): Promise { updatesAccount(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/checkNameAvailabilitySample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/checkNameAvailabilitySample.ts index e255e87b1308..b0b8132bfc2e 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/checkNameAvailabilitySample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/checkNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks ADU resource name availability. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Checks ADU resource name availability. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/CheckNameAvailability_AlreadyExists.json */ -async function checkNameAvailabilityAlreadyExists() { +async function checkNameAvailabilityAlreadyExists(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -43,7 +41,7 @@ async function checkNameAvailabilityAlreadyExists() { * @summary Checks ADU resource name availability. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/CheckNameAvailability_Available.json */ -async function checkNameAvailabilityAvailable() { +async function checkNameAvailabilityAvailable(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -57,7 +55,7 @@ async function checkNameAvailabilityAvailable() { console.log(result); } -async function main() { +async function main(): Promise { checkNameAvailabilityAlreadyExists(); checkNameAvailabilityAvailable(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesCreateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesCreateSample.ts index 853b6d02b365..2be87a292e17 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesCreateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesCreateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Instance, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates instance. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Creates or updates instance. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Instances/Instances_Create.json */ -async function createsOrUpdatesInstance() { +async function createsOrUpdatesInstance(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -55,7 +53,7 @@ async function createsOrUpdatesInstance() { console.log(result); } -async function main() { +async function main(): Promise { createsOrUpdatesInstance(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesDeleteSample.ts index dfda85477d50..89a3772a8ae3 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes instance. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes instance. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Instances/Instances_Delete.json */ -async function deletesInstance() { +async function deletesInstance(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function deletesInstance() { console.log(result); } -async function main() { +async function main(): Promise { deletesInstance(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesGetSample.ts index a6254684fc25..da96737be822 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns instance details for the given instance and account name. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns instance details for the given instance and account name. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Instances/Instances_Get.json */ -async function getsListOfInstances() { +async function getsListOfInstances(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function getsListOfInstances() { console.log(result); } -async function main() { +async function main(): Promise { getsListOfInstances(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesHeadSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesHeadSample.ts index 29739110595a..6472097ddeb6 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesHeadSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesHeadSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks whether instance exists. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Checks whether instance exists. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Instances/Instances_Head.json */ -async function checksWhetherInstanceExists() { +async function checksWhetherInstanceExists(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function checksWhetherInstanceExists() { console.log(result); } -async function main() { +async function main(): Promise { checksWhetherInstanceExists(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesListByAccountSample.ts index c7146702b84c..6e3fb2719abc 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns instances for the given account name. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns instances for the given account name. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Instances/Instances_ListByAccount.json */ -async function getsListOfInstancesByAccount() { +async function getsListOfInstancesByAccount(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function getsListOfInstancesByAccount() { console.log(resArray); } -async function main() { +async function main(): Promise { getsListOfInstancesByAccount(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesUpdateSample.ts index b9219c09ac06..84155b2e944a 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/instancesUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { TagUpdate, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates instance's tags. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Updates instance's tags. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Instances/Instances_Update.json */ -async function updatesInstance() { +async function updatesInstance(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -40,7 +38,7 @@ async function updatesInstance() { console.log(result); } -async function main() { +async function main(): Promise { updatesInstance(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/operationsListSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/operationsListSample.ts index 193f33deb270..856281118a2b 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/operationsListSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of operations for Microsoft.DeviceUpdate resource provider. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Returns list of operations for Microsoft.DeviceUpdate resource provider. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/Operations_List.json */ -async function getsListOfOperations() { +async function getsListOfOperations(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -33,7 +31,7 @@ async function getsListOfOperations() { console.log(resArray); } -async function main() { +async function main(): Promise { getsListOfOperations(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.ts index 0a093808845f..685fa699d6a0 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Creates or updates the specified private endpoint connection proxy resource associated with the device update account. @@ -23,7 +21,7 @@ dotenv.config(); * @summary (INTERNAL - DO NOT USE) Creates or updates the specified private endpoint connection proxy resource associated with the device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_CreateOrUpdate.json */ -async function privateEndpointConnectionProxyCreateOrUpdate() { +async function privateEndpointConnectionProxyCreateOrUpdate(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -66,7 +64,7 @@ async function privateEndpointConnectionProxyCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionProxyCreateOrUpdate(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesDeleteSample.ts index 20c363860ca0..33ac206dd728 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Deletes the specified private endpoint connection proxy associated with the device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary (INTERNAL - DO NOT USE) Deletes the specified private endpoint connection proxy associated with the device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Delete.json */ -async function privateEndpointConnectionProxyDelete() { +async function privateEndpointConnectionProxyDelete(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function privateEndpointConnectionProxyDelete() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionProxyDelete(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesGetSample.ts index 8585c6155428..3125bb418886 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Get the specified private endpoint connection proxy associated with the device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary (INTERNAL - DO NOT USE) Get the specified private endpoint connection proxy associated with the device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Get.json */ -async function privateEndpointConnectionProxyGet() { +async function privateEndpointConnectionProxyGet(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function privateEndpointConnectionProxyGet() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionProxyGet(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesListByAccountSample.ts index a1eacf534ac8..b31af2c4e9ac 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) List all private endpoint connection proxies in a device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary (INTERNAL - DO NOT USE) List all private endpoint connection proxies in a device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_ListByAccount.json */ -async function privateEndpointConnectionProxyList() { +async function privateEndpointConnectionProxyList(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function privateEndpointConnectionProxyList() { console.log(resArray); } -async function main() { +async function main(): Promise { privateEndpointConnectionProxyList(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts index bb27b5765650..16382062f5c5 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointUpdate, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object. @@ -20,7 +18,7 @@ dotenv.config(); * @summary (INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json */ -async function privateEndpointConnectionProxyPrivateEndpointUpdate() { +async function privateEndpointConnectionProxyPrivateEndpointUpdate(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -48,7 +46,7 @@ async function privateEndpointConnectionProxyPrivateEndpointUpdate() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionProxyPrivateEndpointUpdate(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesValidateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesValidateSample.ts index 87e7cc1b0216..519f0295eb7f 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesValidateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionProxiesValidateSample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Validates a private endpoint connection proxy object. @@ -23,7 +21,7 @@ dotenv.config(); * @summary (INTERNAL - DO NOT USE) Validates a private endpoint connection proxy object. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_Validate.json */ -async function privateEndpointConnectionProxyValidate() { +async function privateEndpointConnectionProxyValidate(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -66,7 +64,7 @@ async function privateEndpointConnectionProxyValidate() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionProxyValidate(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index 5c75b3fa536c..95284705f7ac 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update the state of specified private endpoint connection associated with the device update account. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update the state of specified private endpoint connection associated with the device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnections/PrivateEndpointConnection_CreateOrUpdate.json */ -async function privateEndpointConnectionCreateOrUpdate() { +async function privateEndpointConnectionCreateOrUpdate(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -48,7 +46,7 @@ async function privateEndpointConnectionCreateOrUpdate() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionCreateOrUpdate(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsDeleteSample.ts index a1788179b452..c8aebc30496e 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the specified private endpoint connection associated with the device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Deletes the specified private endpoint connection associated with the device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnections/PrivateEndpointConnection_Delete.json */ -async function privateEndpointConnectionDelete() { +async function privateEndpointConnectionDelete(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function privateEndpointConnectionDelete() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionDelete(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsGetSample.ts index d74158bd3163..21ca15b7e898 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private endpoint connection associated with the device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the specified private endpoint connection associated with the device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnections/PrivateEndpointConnection_Get.json */ -async function privateEndpointConnectionGet() { +async function privateEndpointConnectionGet(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function privateEndpointConnectionGet() { console.log(result); } -async function main() { +async function main(): Promise { privateEndpointConnectionGet(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsListByAccountSample.ts index c1abd393daeb..0361d1f3e432 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateEndpointConnectionsListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all private endpoint connections in a device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all private endpoint connections in a device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateEndpointConnections/PrivateEndpointConnection_ListByAccount.json */ -async function privateEndpointConnectionList() { +async function privateEndpointConnectionList(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function privateEndpointConnectionList() { console.log(resArray); } -async function main() { +async function main(): Promise { privateEndpointConnectionList(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesGetSample.ts index d7c623385b32..8b66aa791d1e 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private link resource associated with the device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the specified private link resource associated with the device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateLinkResources/PrivateLinkResources_Get.json */ -async function privateLinkResourcesGet() { +async function privateLinkResourcesGet(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -38,7 +36,7 @@ async function privateLinkResourcesGet() { console.log(result); } -async function main() { +async function main(): Promise { privateLinkResourcesGet(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesListByAccountSample.ts index 3cb684ff6914..43cf745166ec 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples-dev/privateLinkResourcesListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all private link resources in a device update account. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List all private link resources in a device update account. * x-ms-original-file: specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/stable/2023-07-01/examples/PrivateLinkResources/PrivateLinkResources_ListByAccount.json */ -async function privateLinkResourcesList() { +async function privateLinkResourcesList(): Promise { const subscriptionId = process.env["DEVICEUPDATE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -39,7 +37,7 @@ async function privateLinkResourcesList() { console.log(resArray); } -async function main() { +async function main(): Promise { privateLinkResourcesList(); } diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsCreateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsCreateSample.ts index fb613f8c9218..a516305b3f66 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsCreateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsCreateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Account, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates Account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsDeleteSample.ts index e656ecbe7b35..78b34a80a2dc 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsGetSample.ts index 57f588d5ca16..cc4b928e829a 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns account details for the given account name. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsHeadSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsHeadSample.ts index fa161ac82087..f75099560e3e 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsHeadSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsHeadSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks whether account exists. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListByResourceGroupSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListByResourceGroupSample.ts index 29665488ecdd..b3600a4765a8 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListByResourceGroupSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of Accounts. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListBySubscriptionSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListBySubscriptionSample.ts index 04e86a5327cf..050ba60ef314 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListBySubscriptionSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of Accounts. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsUpdateSample.ts index 651dd524f732..4e8f3e220e0c 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/accountsUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AccountUpdate, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates account's patchable properties diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/checkNameAvailabilitySample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/checkNameAvailabilitySample.ts index e255e87b1308..7d8f3b554d92 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/checkNameAvailabilitySample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/checkNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks ADU resource name availability. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesCreateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesCreateSample.ts index 853b6d02b365..fe38f8a612f3 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesCreateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesCreateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Instance, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates instance. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesDeleteSample.ts index dfda85477d50..19b302a8eab1 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes instance. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesGetSample.ts index a6254684fc25..77a5a847e68b 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns instance details for the given instance and account name. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesHeadSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesHeadSample.ts index 29739110595a..c7dc1fe65c0b 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesHeadSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesHeadSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks whether instance exists. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesListByAccountSample.ts index c7146702b84c..0db007f3e20b 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns instances for the given account name. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesUpdateSample.ts index b9219c09ac06..e422643b0455 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/instancesUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { TagUpdate, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates instance's tags. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/operationsListSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/operationsListSample.ts index 193f33deb270..87970b0868ec 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/operationsListSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns list of operations for Microsoft.DeviceUpdate resource provider. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesCreateOrUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesCreateOrUpdateSample.ts index 0a093808845f..e0386ac59967 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesCreateOrUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Creates or updates the specified private endpoint connection proxy resource associated with the device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesDeleteSample.ts index 20c363860ca0..2d7bbe7c7dd1 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Deletes the specified private endpoint connection proxy associated with the device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesGetSample.ts index 8585c6155428..260bcf6f4d8c 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Get the specified private endpoint connection proxy associated with the device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesListByAccountSample.ts index a1eacf534ac8..269f65645600 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) List all private endpoint connection proxies in a device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts index bb27b5765650..26883028afb3 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesUpdatePrivateEndpointPropertiesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointUpdate, DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesValidateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesValidateSample.ts index 87e7cc1b0216..e495011cb443 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesValidateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionProxiesValidateSample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to (INTERNAL - DO NOT USE) Validates a private endpoint connection proxy object. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index 5c75b3fa536c..5ff15c214f33 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update the state of specified private endpoint connection associated with the device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts index a1788179b452..5e081a4db337 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes the specified private endpoint connection associated with the device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts index d74158bd3163..c80c18c8cab8 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private endpoint connection associated with the device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsListByAccountSample.ts index c1abd393daeb..893e872dd359 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateEndpointConnectionsListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all private endpoint connections in a device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesGetSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesGetSample.ts index d7c623385b32..50bb91f18f6c 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesGetSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private link resource associated with the device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesListByAccountSample.ts b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesListByAccountSample.ts index 3cb684ff6914..5fd043ae40bf 100644 --- a/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesListByAccountSample.ts +++ b/sdk/deviceupdate/arm-deviceupdate/samples/v1/typescript/src/privateLinkResourcesListByAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { DeviceUpdate } from "@azure/arm-deviceupdate"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List all private link resources in a device update account. diff --git a/sdk/deviceupdate/arm-deviceupdate/src/deviceUpdate.ts b/sdk/deviceupdate/arm-deviceupdate/src/deviceUpdate.ts index 0fa7cd153423..a1ad58eeab0a 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/deviceUpdate.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/deviceUpdate.ts @@ -21,7 +21,7 @@ import { PrivateLinkResourcesImpl, PrivateEndpointConnectionProxiesImpl, OperationsImpl -} from "./operations"; +} from "./operations/index.js"; import { Accounts, Instances, @@ -29,15 +29,15 @@ import { PrivateLinkResources, PrivateEndpointConnectionProxies, Operations -} from "./operationsInterfaces"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; +} from "./operationsInterfaces/index.js"; +import * as Parameters from "./models/parameters.js"; +import * as Mappers from "./models/mappers.js"; import { DeviceUpdateOptionalParams, CheckNameAvailabilityRequest, CheckNameAvailabilityOptionalParams, CheckNameAvailabilityOperationResponse -} from "./models"; +} from "./models/index.js"; export class DeviceUpdate extends coreClient.ServiceClient { $host: string; diff --git a/sdk/deviceupdate/arm-deviceupdate/src/index.ts b/sdk/deviceupdate/arm-deviceupdate/src/index.ts index a65682073fa2..d5dbfa832cc5 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/index.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DeviceUpdate } from "./deviceUpdate"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DeviceUpdate } from "./deviceUpdate.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/deviceupdate/arm-deviceupdate/src/models/parameters.ts b/sdk/deviceupdate/arm-deviceupdate/src/models/parameters.ts index 28326e96ce90..cf920bc77110 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/models/parameters.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/models/parameters.ts @@ -20,7 +20,7 @@ import { PrivateEndpointConnection as PrivateEndpointConnectionMapper, PrivateEndpointConnectionProxy as PrivateEndpointConnectionProxyMapper, PrivateEndpointUpdate as PrivateEndpointUpdateMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operations/accounts.ts b/sdk/deviceupdate/arm-deviceupdate/src/operations/accounts.ts index 35904d8de878..a334c7b8a07e 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operations/accounts.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operations/accounts.ts @@ -7,18 +7,18 @@ */ 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 { DeviceUpdate } from "../deviceUpdate"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceUpdate } from "../deviceUpdate.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Account, AccountsListBySubscriptionNextOptionalParams, @@ -39,7 +39,7 @@ import { AccountsUpdateResponse, AccountsListBySubscriptionNextResponse, AccountsListByResourceGroupNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Accounts operations. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operations/index.ts b/sdk/deviceupdate/arm-deviceupdate/src/operations/index.ts index 34f4618d1358..65321d89a4b1 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operations/index.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operations/index.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./accounts"; -export * from "./instances"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./privateEndpointConnectionProxies"; -export * from "./operations"; +export * from "./accounts.js"; +export * from "./instances.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./privateEndpointConnectionProxies.js"; +export * from "./operations.js"; diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operations/instances.ts b/sdk/deviceupdate/arm-deviceupdate/src/operations/instances.ts index aa800c73bfc0..37165d18953d 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operations/instances.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operations/instances.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Instances } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Instances } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DeviceUpdate } from "../deviceUpdate"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceUpdate } from "../deviceUpdate.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Instance, InstancesListByAccountNextOptionalParams, @@ -35,7 +35,7 @@ import { InstancesUpdateOptionalParams, InstancesUpdateResponse, InstancesListByAccountNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Instances operations. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operations/operations.ts b/sdk/deviceupdate/arm-deviceupdate/src/operations/operations.ts index a2822dd7b674..2e84e708cbdc 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operations/operations.ts +++ b/sdk/deviceupdate/arm-deviceupdate/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 { DeviceUpdate } from "../deviceUpdate"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceUpdate } from "../deviceUpdate.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnectionProxies.ts b/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnectionProxies.ts index 293692a8a702..48b5fa8b17cd 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnectionProxies.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnectionProxies.ts @@ -7,17 +7,17 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { PrivateEndpointConnectionProxies } from "../operationsInterfaces"; +import { PrivateEndpointConnectionProxies } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DeviceUpdate } from "../deviceUpdate"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceUpdate } from "../deviceUpdate.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { PrivateEndpointConnectionProxy, PrivateEndpointConnectionProxiesListByAccountOptionalParams, @@ -30,7 +30,7 @@ import { PrivateEndpointConnectionProxiesCreateOrUpdateOptionalParams, PrivateEndpointConnectionProxiesCreateOrUpdateResponse, PrivateEndpointConnectionProxiesDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateEndpointConnectionProxies operations. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnections.ts b/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnections.ts index a32aba5b22ee..f8306b2f2dea 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnections.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operations/privateEndpointConnections.ts @@ -7,17 +7,17 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { PrivateEndpointConnections } from "../operationsInterfaces"; +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 { DeviceUpdate } from "../deviceUpdate"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceUpdate } from "../deviceUpdate.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListByAccountOptionalParams, @@ -27,7 +27,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateEndpointConnections operations. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operations/privateLinkResources.ts b/sdk/deviceupdate/arm-deviceupdate/src/operations/privateLinkResources.ts index 3eb57ea12363..2af3b1356a4a 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operations/privateLinkResources.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operations/privateLinkResources.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -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 { DeviceUpdate } from "../deviceUpdate"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DeviceUpdate } from "../deviceUpdate.js"; import { GroupInformation, PrivateLinkResourcesListByAccountOptionalParams, PrivateLinkResourcesListByAccountResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateLinkResources operations. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/accounts.ts b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/accounts.ts index ec13d0ae0d7b..07b8b61191fe 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/accounts.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/accounts.ts @@ -22,7 +22,7 @@ import { AccountUpdate, AccountsUpdateOptionalParams, AccountsUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Accounts. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/index.ts b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/index.ts index 34f4618d1358..65321d89a4b1 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/index.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/index.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./accounts"; -export * from "./instances"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./privateEndpointConnectionProxies"; -export * from "./operations"; +export * from "./accounts.js"; +export * from "./instances.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./privateEndpointConnectionProxies.js"; +export * from "./operations.js"; diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/instances.ts b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/instances.ts index 35c055107334..29862e34e984 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/instances.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/instances.ts @@ -21,7 +21,7 @@ import { TagUpdate, InstancesUpdateOptionalParams, InstancesUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Instances. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/operations.ts b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/operations.ts index 9cc4e9bc3093..85c67c74f776 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/operations.ts +++ b/sdk/deviceupdate/arm-deviceupdate/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/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnectionProxies.ts b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnectionProxies.ts index eaafbe2675ca..8ecb9d7d0b09 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnectionProxies.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnectionProxies.ts @@ -19,7 +19,7 @@ import { PrivateEndpointConnectionProxiesCreateOrUpdateOptionalParams, PrivateEndpointConnectionProxiesCreateOrUpdateResponse, PrivateEndpointConnectionProxiesDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PrivateEndpointConnectionProxies. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnections.ts index 7fb196c94e47..4b8c193d6c4d 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateEndpointConnections.ts @@ -16,7 +16,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PrivateEndpointConnections. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateLinkResources.ts b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateLinkResources.ts index 1663b239357b..5787f1e3ad3c 100644 --- a/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/deviceupdate/arm-deviceupdate/src/operationsInterfaces/privateLinkResources.ts @@ -12,7 +12,7 @@ import { PrivateLinkResourcesListByAccountOptionalParams, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PrivateLinkResources. */ diff --git a/sdk/deviceupdate/arm-deviceupdate/test/deviceupdate_operations_test.spec.ts b/sdk/deviceupdate/arm-deviceupdate/test/deviceupdate_operations_test.spec.ts index fb93debefcf8..91a4995484b2 100644 --- a/sdk/deviceupdate/arm-deviceupdate/test/deviceupdate_operations_test.spec.ts +++ b/sdk/deviceupdate/arm-deviceupdate/test/deviceupdate_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 { DeviceUpdate } from "../src/deviceUpdate"; +import { DeviceUpdate } from "../src/deviceUpdate.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -45,8 +43,8 @@ describe("DeviceUpdate test", () => { 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 @@ -93,7 +91,7 @@ describe("DeviceUpdate test", () => { it("accounts delete test", async function () { const resArray = new Array(); - const res = await client.accounts.beginDeleteAndWait(resourceGroup, resourcename + await client.accounts.beginDeleteAndWait(resourceGroup, resourcename ) for await (let item of client.accounts.listByResourceGroup(resourceGroup)) { resArray.push(item); diff --git a/sdk/deviceupdate/arm-deviceupdate/tsconfig.browser.config.json b/sdk/deviceupdate/arm-deviceupdate/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/deviceupdate/arm-deviceupdate/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/deviceupdate/arm-deviceupdate/tsconfig.json b/sdk/deviceupdate/arm-deviceupdate/tsconfig.json index 92cb95de85ee..19ceb382b521 100644 --- a/sdk/deviceupdate/arm-deviceupdate/tsconfig.json +++ b/sdk/deviceupdate/arm-deviceupdate/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-deviceupdate": [ - "./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/deviceupdate/arm-deviceupdate/tsconfig.samples.json b/sdk/deviceupdate/arm-deviceupdate/tsconfig.samples.json new file mode 100644 index 000000000000..65f66d83a10f --- /dev/null +++ b/sdk/deviceupdate/arm-deviceupdate/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-deviceupdate": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/deviceupdate/arm-deviceupdate/tsconfig.src.json b/sdk/deviceupdate/arm-deviceupdate/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/deviceupdate/arm-deviceupdate/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/deviceupdate/arm-deviceupdate/tsconfig.test.json b/sdk/deviceupdate/arm-deviceupdate/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/deviceupdate/arm-deviceupdate/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/deviceupdate/arm-deviceupdate/vitest.browser.config.ts b/sdk/deviceupdate/arm-deviceupdate/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/deviceupdate/arm-deviceupdate/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/deviceupdate/arm-deviceupdate/vitest.config.ts b/sdk/deviceupdate/arm-deviceupdate/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/deviceupdate/arm-deviceupdate/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/deviceupdate/arm-deviceupdate/vitest.esm.config.ts b/sdk/deviceupdate/arm-deviceupdate/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/deviceupdate/arm-deviceupdate/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/devspaces/arm-devspaces/api-extractor.json b/sdk/devspaces/arm-devspaces/api-extractor.json index 10f0bb36f87b..06a870831298 100644 --- a/sdk/devspaces/arm-devspaces/api-extractor.json +++ b/sdk/devspaces/arm-devspaces/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-devspaces.d.ts" + "publicTrimmedFilePath": "dist/arm-devspaces.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/devspaces/arm-devspaces/package.json b/sdk/devspaces/arm-devspaces/package.json index d6bb1a62d987..28b474d94523 100644 --- a/sdk/devspaces/arm-devspaces/package.json +++ b/sdk/devspaces/arm-devspaces/package.json @@ -24,21 +24,21 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-devspaces.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/devspaces/arm-devspaces", "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-devspaces?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/devspaces/arm-devspaces/samples-dev/containerHostMappingsGetContainerHostMappingSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/containerHostMappingsGetContainerHostMappingSample.ts index 67fd84d607b5..adbba31fabef 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/containerHostMappingsGetContainerHostMappingSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/containerHostMappingsGetContainerHostMappingSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Returns container host mapping object for a container host resource ID if an associated controller exists. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ContainerHostMappingsGetContainerHostMapping_example.json */ -async function containerHostMappingsGetContainerHostMapping() { +async function containerHostMappingsGetContainerHostMapping(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const location = "eastus"; diff --git a/sdk/devspaces/arm-devspaces/samples-dev/controllersCreateSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/controllersCreateSample.ts index 21a2a305df47..e8d56c8a8791 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/controllersCreateSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/controllersCreateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Creates an Azure Dev Spaces Controller with the specified create parameters. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersCreate_example.json */ -async function controllersCreate() { +async function controllersCreate(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const name = "myControllerResource"; diff --git a/sdk/devspaces/arm-devspaces/samples-dev/controllersDeleteSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/controllersDeleteSample.ts index 0a85d99ad379..8e5dc380cce3 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/controllersDeleteSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/controllersDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Deletes an existing Azure Dev Spaces Controller. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersDelete_example.json */ -async function controllersDelete() { +async function controllersDelete(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const name = "myControllerResource"; diff --git a/sdk/devspaces/arm-devspaces/samples-dev/controllersGetSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/controllersGetSample.ts index e43fdda555b7..9121368bc505 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/controllersGetSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/controllersGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets the properties for an Azure Dev Spaces Controller. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersGet_example.json */ -async function controllersGet() { +async function controllersGet(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const name = "myControllerResource"; diff --git a/sdk/devspaces/arm-devspaces/samples-dev/controllersListByResourceGroupSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/controllersListByResourceGroupSample.ts index d0d7da494885..cacbf9e65bfc 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/controllersListByResourceGroupSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/controllersListByResourceGroupSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and subscription. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersListByResourceGroup_example.json */ -async function controllersListByResourceGroup() { +async function controllersListByResourceGroup(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const credential = new DefaultAzureCredential(); diff --git a/sdk/devspaces/arm-devspaces/samples-dev/controllersListConnectionDetailsSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/controllersListConnectionDetailsSample.ts index da6df499055d..9ce3140019ee 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/controllersListConnectionDetailsSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/controllersListConnectionDetailsSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists connection details for the underlying container resources of an Azure Dev Spaces Controller. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersListConnectionDetails_example.json */ -async function controllersListConnectionDetails() { +async function controllersListConnectionDetails(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const name = "myControllerResource"; diff --git a/sdk/devspaces/arm-devspaces/samples-dev/controllersListSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/controllersListSample.ts index 8c1b09b3d83b..b226bc151488 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/controllersListSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/controllersListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists all the Azure Dev Spaces Controllers with their properties in the subscription. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersList_example.json */ -async function controllersList() { +async function controllersList(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new DevSpacesManagementClient(credential, subscriptionId); diff --git a/sdk/devspaces/arm-devspaces/samples-dev/controllersUpdateSample.ts b/sdk/devspaces/arm-devspaces/samples-dev/controllersUpdateSample.ts index ed6b61ccc2e8..aaa5e060db1b 100644 --- a/sdk/devspaces/arm-devspaces/samples-dev/controllersUpdateSample.ts +++ b/sdk/devspaces/arm-devspaces/samples-dev/controllersUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates the properties of an existing Azure Dev Spaces Controller with the specified update parameters. * x-ms-original-file: specification/devspaces/resource-manager/Microsoft.DevSpaces/stable/2019-04-01/examples/ControllersUpdate_example.json */ -async function controllersUpdate() { +async function controllersUpdate(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const name = "myControllerResource"; diff --git a/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts b/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts index aeac5f877a7e..d0a0d7e01bf9 100644 --- a/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts +++ b/sdk/devspaces/arm-devspaces/src/devSpacesManagementClient.ts @@ -18,13 +18,13 @@ import { ContainerHostMappingsImpl, OperationsImpl, ControllersImpl -} from "./operations"; +} from "./operations/index.js"; import { ContainerHostMappings, Operations, Controllers -} from "./operationsInterfaces"; -import { DevSpacesManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DevSpacesManagementClientOptionalParams } from "./models/index.js"; export class DevSpacesManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/devspaces/arm-devspaces/src/index.ts b/sdk/devspaces/arm-devspaces/src/index.ts index e1eb86f361c0..786421d5095c 100644 --- a/sdk/devspaces/arm-devspaces/src/index.ts +++ b/sdk/devspaces/arm-devspaces/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DevSpacesManagementClient } from "./devSpacesManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DevSpacesManagementClient } from "./devSpacesManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/devspaces/arm-devspaces/src/models/parameters.ts b/sdk/devspaces/arm-devspaces/src/models/parameters.ts index 013703dfa38d..17160c9125df 100644 --- a/sdk/devspaces/arm-devspaces/src/models/parameters.ts +++ b/sdk/devspaces/arm-devspaces/src/models/parameters.ts @@ -16,7 +16,7 @@ import { Controller as ControllerMapper, ControllerUpdateParameters as ControllerUpdateParametersMapper, ListConnectionDetailsParameters as ListConnectionDetailsParametersMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], diff --git a/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts b/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts index 582d8018e8da..a4e0ec795982 100644 --- a/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts +++ b/sdk/devspaces/arm-devspaces/src/operations/containerHostMappings.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ContainerHostMappings } from "../operationsInterfaces"; +import { ContainerHostMappings } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevSpacesManagementClient } from "../devSpacesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevSpacesManagementClient } from "../devSpacesManagementClient.js"; import { ContainerHostMapping, ContainerHostMappingsGetContainerHostMappingOptionalParams, ContainerHostMappingsGetContainerHostMappingResponse -} from "../models"; +} from "../models/index.js"; /** Class containing ContainerHostMappings operations. */ export class ContainerHostMappingsImpl implements ContainerHostMappings { diff --git a/sdk/devspaces/arm-devspaces/src/operations/controllers.ts b/sdk/devspaces/arm-devspaces/src/operations/controllers.ts index 7a6dcfb641c0..babe6eab394c 100644 --- a/sdk/devspaces/arm-devspaces/src/operations/controllers.ts +++ b/sdk/devspaces/arm-devspaces/src/operations/controllers.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Controllers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Controllers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevSpacesManagementClient } from "../devSpacesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevSpacesManagementClient } from "../devSpacesManagementClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Controller, ControllersListByResourceGroupNextOptionalParams, @@ -36,7 +36,7 @@ import { ControllersListConnectionDetailsResponse, ControllersListByResourceGroupNextResponse, ControllersListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Controllers operations. */ diff --git a/sdk/devspaces/arm-devspaces/src/operations/index.ts b/sdk/devspaces/arm-devspaces/src/operations/index.ts index 7811528619e3..9ad5db5c5a2c 100644 --- a/sdk/devspaces/arm-devspaces/src/operations/index.ts +++ b/sdk/devspaces/arm-devspaces/src/operations/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./containerHostMappings"; -export * from "./operations"; -export * from "./controllers"; +export * from "./containerHostMappings.js"; +export * from "./operations.js"; +export * from "./controllers.js"; diff --git a/sdk/devspaces/arm-devspaces/src/operations/operations.ts b/sdk/devspaces/arm-devspaces/src/operations/operations.ts index 9457b21ad780..ae3b31a01ba8 100644 --- a/sdk/devspaces/arm-devspaces/src/operations/operations.ts +++ b/sdk/devspaces/arm-devspaces/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 { DevSpacesManagementClient } from "../devSpacesManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevSpacesManagementClient } from "../devSpacesManagementClient.js"; import { ResourceProviderOperationDefinition, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/containerHostMappings.ts b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/containerHostMappings.ts index 6ed56fd6e472..86ddb8cba38a 100644 --- a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/containerHostMappings.ts +++ b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/containerHostMappings.ts @@ -10,7 +10,7 @@ import { ContainerHostMapping, ContainerHostMappingsGetContainerHostMappingOptionalParams, ContainerHostMappingsGetContainerHostMappingResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a ContainerHostMappings. */ export interface ContainerHostMappings { diff --git a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/controllers.ts b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/controllers.ts index f50cf92f3718..1045bc0ab646 100644 --- a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/controllers.ts +++ b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/controllers.ts @@ -23,7 +23,7 @@ import { ListConnectionDetailsParameters, ControllersListConnectionDetailsOptionalParams, ControllersListConnectionDetailsResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Controllers. */ diff --git a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/index.ts b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/index.ts index 7811528619e3..9ad5db5c5a2c 100644 --- a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/index.ts +++ b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/index.ts @@ -6,6 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./containerHostMappings"; -export * from "./operations"; -export * from "./controllers"; +export * from "./containerHostMappings.js"; +export * from "./operations.js"; +export * from "./controllers.js"; diff --git a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/operations.ts b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/operations.ts index 934ff964106f..708942d6bf4e 100644 --- a/sdk/devspaces/arm-devspaces/src/operationsInterfaces/operations.ts +++ b/sdk/devspaces/arm-devspaces/src/operationsInterfaces/operations.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ResourceProviderOperationDefinition, OperationsListOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/sdk/devspaces/arm-devspaces/test/sampleTest.ts b/sdk/devspaces/arm-devspaces/test/sampleTest.spec.ts similarity index 69% rename from sdk/devspaces/arm-devspaces/test/sampleTest.ts rename to sdk/devspaces/arm-devspaces/test/sampleTest.spec.ts index 8ff7deb0acbe..86a13f7a74a4 100644 --- a/sdk/devspaces/arm-devspaces/test/sampleTest.ts +++ b/sdk/devspaces/arm-devspaces/test/sampleTest.spec.ts @@ -6,19 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { - Recorder, - RecorderStartOptions, - env -} from "@azure-tools/test-recorder"; -import { assert } from "chai"; -import { Context } from "mocha"; +import type { RecorderStartOptions } from "@azure-tools/test-recorder"; +import { Recorder } from "@azure-tools/test-recorder"; +import { afterEach, beforeEach, describe, it, assert } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", AZURE_CLIENT_SECRET: "azure_client_secret", AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" + SUBSCRIPTION_ID: "azure_subscription_id", }; const recorderOptions: RecorderStartOptions = { @@ -32,16 +28,16 @@ const recorderOptions: RecorderStartOptions = { describe("My test", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); - it("sample test", async function () { - console.log("Hi, I'm a test!"); + it("sample test", async () => { + assert(true); }); }); diff --git a/sdk/devspaces/arm-devspaces/tsconfig.browser.config.json b/sdk/devspaces/arm-devspaces/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/devspaces/arm-devspaces/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/devspaces/arm-devspaces/tsconfig.json b/sdk/devspaces/arm-devspaces/tsconfig.json index 4376cefa61eb..19ceb382b521 100644 --- a/sdk/devspaces/arm-devspaces/tsconfig.json +++ b/sdk/devspaces/arm-devspaces/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-devspaces": [ - "./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/devspaces/arm-devspaces/tsconfig.samples.json b/sdk/devspaces/arm-devspaces/tsconfig.samples.json new file mode 100644 index 000000000000..936ddab46f2b --- /dev/null +++ b/sdk/devspaces/arm-devspaces/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-devspaces": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/devspaces/arm-devspaces/tsconfig.src.json b/sdk/devspaces/arm-devspaces/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/devspaces/arm-devspaces/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/devspaces/arm-devspaces/tsconfig.test.json b/sdk/devspaces/arm-devspaces/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/devspaces/arm-devspaces/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/devspaces/arm-devspaces/vitest.browser.config.ts b/sdk/devspaces/arm-devspaces/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/devspaces/arm-devspaces/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/devspaces/arm-devspaces/vitest.config.ts b/sdk/devspaces/arm-devspaces/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/devspaces/arm-devspaces/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/devspaces/arm-devspaces/vitest.esm.config.ts b/sdk/devspaces/arm-devspaces/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/devspaces/arm-devspaces/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/devtestlabs/arm-devtestlabs/api-extractor.json b/sdk/devtestlabs/arm-devtestlabs/api-extractor.json index da49126d2262..4f52c8879e68 100644 --- a/sdk/devtestlabs/arm-devtestlabs/api-extractor.json +++ b/sdk/devtestlabs/arm-devtestlabs/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-devtestlabs.d.ts" + "publicTrimmedFilePath": "dist/arm-devtestlabs.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/devtestlabs/arm-devtestlabs/package.json b/sdk/devtestlabs/arm-devtestlabs/package.json index 7b2329f7c9f6..23f22fc50529 100644 --- a/sdk/devtestlabs/arm-devtestlabs/package.json +++ b/sdk/devtestlabs/arm-devtestlabs/package.json @@ -24,21 +24,21 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-devtestlabs.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/devtestlabs/arm-devtestlabs", "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-devtestlabs?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/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesGetSample.ts index b85a58d849b0..97e84f07a60d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get azure resource manager template. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json */ -async function armTemplatesGet() { +async function armTemplatesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesListSample.ts index 7106b31bd4ef..49c34aa104a2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/armTemplatesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List azure resource manager templates in a given artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json */ -async function armTemplatesList() { +async function armTemplatesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesCreateOrUpdateSample.ts index 20bd3b43a213..afb04df5882c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json */ -async function artifactSourcesCreateOrUpdate() { +async function artifactSourcesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesDeleteSample.ts index 0b47bf8ed448..5f66edde909a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json */ -async function artifactSourcesDelete() { +async function artifactSourcesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesGetSample.ts index b7df9206c35e..a15897fcc9ed 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json */ -async function artifactSourcesGet() { +async function artifactSourcesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesListSample.ts index b03e109aea03..14d9c632c623 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List artifact sources in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json */ -async function artifactSourcesList() { +async function artifactSourcesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesUpdateSample.ts index c21d01524963..345c7ce1e3d5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactSourcesUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of artifact sources. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json */ -async function artifactSourcesUpdate() { +async function artifactSourcesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGenerateArmTemplateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGenerateArmTemplateSample.ts index 5aee02dbcad9..9d6a507e2f2a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGenerateArmTemplateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGenerateArmTemplateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json */ -async function artifactsGenerateArmTemplate() { +async function artifactsGenerateArmTemplate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGetSample.ts index eb726eed213b..092a0a53558e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get artifact. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json */ -async function artifactsGet() { +async function artifactsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsListSample.ts index 743c77ebcf10..583afe544b7f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/artifactsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List artifacts in a given artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json */ -async function artifactsList() { +async function artifactsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsCreateOrUpdateSample.ts index dac39cef2ad1..95af5dd86957 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing cost. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json */ -async function costsCreateOrUpdate() { +async function costsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsGetSample.ts index 5a616a22e531..7ad5ea103ff0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/costsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get cost. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json */ -async function costsGet() { +async function costsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesCreateOrUpdateSample.ts index 194cc8a509ab..95b9d35277aa 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing custom image. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json */ -async function customImagesCreateOrUpdate() { +async function customImagesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesDeleteSample.ts index b3502ee98bc9..b0e23c8596fe 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete custom image. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json */ -async function customImagesDelete() { +async function customImagesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesGetSample.ts index 282148d3755d..b544361a331b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get custom image. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json */ -async function customImagesGet() { +async function customImagesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesListSample.ts index d650a6e0f7fd..77f8d89e03ea 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List custom images in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json */ -async function customImagesList() { +async function customImagesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesUpdateSample.ts index 0456af65cb2e..6ea4a6c06ca6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/customImagesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of custom images. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json */ -async function customImagesUpdate() { +async function customImagesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksAttachSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksAttachSample.ts index 7038414c28f1..92e0023af009 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksAttachSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksAttachSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json */ -async function disksAttach() { +async function disksAttach(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksCreateOrUpdateSample.ts index 0a38a52c0546..12ae6e4bc34c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing disk. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json */ -async function disksCreateOrUpdate() { +async function disksCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDeleteSample.ts index 479b199492e9..94004b8393d5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete disk. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json */ -async function disksDelete() { +async function disksDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDetachSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDetachSample.ts index a3fe7a030f43..f1887368c8cc 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDetachSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksDetachSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json */ -async function disksDetach() { +async function disksDetach(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksGetSample.ts index 2f78b0c3dbfd..d79f3ba37e4a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get disk. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json */ -async function disksGet() { +async function disksGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksListSample.ts index 674ca8ddc1de..ba776ee9e4f2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List disks in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json */ -async function disksList() { +async function disksList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksUpdateSample.ts index 017445ff2147..b63e84feb7c8 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/disksUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of disks. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json */ -async function disksUpdate() { +async function disksUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsCreateOrUpdateSample.ts index 9d5b2e0e4c97..6ee1c73a9130 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing environment. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json */ -async function environmentsCreateOrUpdate() { +async function environmentsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsDeleteSample.ts index 177754a4d2e0..6f525041893d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete environment. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json */ -async function environmentsDelete() { +async function environmentsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsGetSample.ts index 44af7b8383b0..face49ddc9e0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get environment. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json */ -async function environmentsGet() { +async function environmentsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsListSample.ts index 1fee8ae2e166..f4899174210a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List environments in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json */ -async function environmentsList() { +async function environmentsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsUpdateSample.ts index b9aa4c2fee5e..403fc3d4bd62 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/environmentsUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of environments. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json */ -async function environmentsUpdate() { +async function environmentsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasCreateOrUpdateSample.ts index 0b0647db0ba5..cadb0d8298d0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing formula. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json */ -async function formulasCreateOrUpdate() { +async function formulasCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasDeleteSample.ts index f8631aeeb6ac..37a06ad3e17a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete formula. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json */ -async function formulasDelete() { +async function formulasDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasGetSample.ts index 59d6dbdf2b35..925eed76a3e3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get formula. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json */ -async function formulasGet() { +async function formulasGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasListSample.ts index 51b67145d512..6df850002faf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List formulas in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json */ -async function formulasList() { +async function formulasList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasUpdateSample.ts index 74e04d82a5f4..87c932137053 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/formulasUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of formulas. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json */ -async function formulasUpdate() { +async function formulasUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/galleryImagesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/galleryImagesListSample.ts index 23c4f806811c..0d59dce2a9a0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/galleryImagesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/galleryImagesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List gallery images in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json */ -async function galleryImagesList() { +async function galleryImagesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesCreateOrUpdateSample.ts index 3d348cef2423..9d04b86aab40 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json */ -async function globalSchedulesCreateOrUpdate() { +async function globalSchedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesDeleteSample.ts index 06f66963b61b..50d69e759067 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json */ -async function globalSchedulesDelete() { +async function globalSchedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesExecuteSample.ts index cb631ef20c8f..865a22040600 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json */ -async function globalSchedulesExecute() { +async function globalSchedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesGetSample.ts index a7a12eb2de38..5ccf1a07b7b0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json */ -async function globalSchedulesGet() { +async function globalSchedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListByResourceGroupSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListByResourceGroupSample.ts index a440a800cc4a..6423188a9b8d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListByResourceGroupSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListByResourceGroupSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a resource group. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json */ -async function globalSchedulesListByResourceGroup() { +async function globalSchedulesListByResourceGroup(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const credential = new DefaultAzureCredential(); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListBySubscriptionSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListBySubscriptionSample.ts index 25300a85b7f4..2c9e2563e7db 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListBySubscriptionSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesListBySubscriptionSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a subscription. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json */ -async function globalSchedulesListBySubscription() { +async function globalSchedulesListBySubscription(): Promise { const subscriptionId = "{subscriptionId}"; const credential = new DefaultAzureCredential(); const client = new DevTestLabsClient(credential, subscriptionId); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesRetargetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesRetargetSample.ts index 662af51065e3..d70eba61a633 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesRetargetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesRetargetSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates a schedule's target resource Id. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json */ -async function globalSchedulesRetarget() { +async function globalSchedulesRetarget(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{scheduleName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesUpdateSample.ts index da47903e5224..09e6544ba3bc 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/globalSchedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json */ -async function globalSchedulesUpdate() { +async function globalSchedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsClaimAnyVMSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsClaimAnyVMSample.ts index 8ed9a16f281b..b468dfb37bbb 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsClaimAnyVMSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsClaimAnyVMSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Claim a random claimable virtual machine in the lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json */ -async function labsClaimAnyVM() { +async function labsClaimAnyVM(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateEnvironmentSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateEnvironmentSample.ts index be1b4222199b..ed1f7a788a85 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateEnvironmentSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateEnvironmentSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create virtual machines in a lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json */ -async function labsCreateEnvironment() { +async function labsCreateEnvironment(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateOrUpdateSample.ts index 2c542735f322..c38415613ef1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json */ -async function labsCreateOrUpdate() { +async function labsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsDeleteSample.ts index 34dd8360f128..bdfa1cb13389 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json */ -async function labsDelete() { +async function labsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsExportResourceUsageSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsExportResourceUsageSample.ts index fa4dab3d413e..a93443183026 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsExportResourceUsageSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsExportResourceUsageSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Exports the lab resource usage into a storage account This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json */ -async function labsExportResourceUsage() { +async function labsExportResourceUsage(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGenerateUploadUriSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGenerateUploadUriSample.ts index e75ba6064836..54e93bf73984 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGenerateUploadUriSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGenerateUploadUriSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Generate a URI for uploading custom disk images to a Lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json */ -async function labsGenerateUploadUri() { +async function labsGenerateUploadUri(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGetSample.ts index c19a861d2e88..d824816bb4ef 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json */ -async function labsGet() { +async function labsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsImportVirtualMachineSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsImportVirtualMachineSample.ts index 1d276f9e0a1e..8895cc95483c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsImportVirtualMachineSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsImportVirtualMachineSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Import a virtual machine into a different lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json */ -async function labsImportVirtualMachine() { +async function labsImportVirtualMachine(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListByResourceGroupSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListByResourceGroupSample.ts index b54fc3e98b05..b567c82f319c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListByResourceGroupSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListByResourceGroupSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List labs in a resource group. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json */ -async function labsListByResourceGroup() { +async function labsListByResourceGroup(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const credential = new DefaultAzureCredential(); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListBySubscriptionSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListBySubscriptionSample.ts index da5950cd9d06..918f840c2180 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListBySubscriptionSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListBySubscriptionSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List labs in a subscription. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json */ -async function labsListBySubscription() { +async function labsListBySubscription(): Promise { const subscriptionId = "{subscriptionId}"; const credential = new DefaultAzureCredential(); const client = new DevTestLabsClient(credential, subscriptionId); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListVhdsSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListVhdsSample.ts index abe8bd2d5163..b3def15c3617 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListVhdsSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsListVhdsSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List disk images available for custom image creation. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json */ -async function labsListVhds() { +async function labsListVhds(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsUpdateSample.ts index d02f4f0aa201..03a679cc1e02 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/labsUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of labs. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json */ -async function labsUpdate() { +async function labsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsCreateOrUpdateSample.ts index 2a747043f718..e49243dd8f23 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing notification channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json */ -async function notificationChannelsCreateOrUpdate() { +async function notificationChannelsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsDeleteSample.ts index 3e6692f68c11..c1853cc01e55 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete notification channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json */ -async function notificationChannelsDelete() { +async function notificationChannelsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsGetSample.ts index 395f02829d5c..bdd2bf9ecff3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get notification channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json */ -async function notificationChannelsGet() { +async function notificationChannelsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsListSample.ts index f0acfdd6f17b..f3e9fd828119 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List notification channels in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json */ -async function notificationChannelsList() { +async function notificationChannelsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsNotifySample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsNotifySample.ts index 4d230ee03884..04d3895d644a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsNotifySample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsNotifySample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Send notification to provided channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json */ -async function notificationChannelsNotify() { +async function notificationChannelsNotify(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsUpdateSample.ts index abb22f6d5a1e..62cf01b3b78d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/notificationChannelsUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of notification channels. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json */ -async function notificationChannelsUpdate() { +async function notificationChannelsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/operationsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/operationsGetSample.ts index d5cdc7b4a3b2..900ff0767ec0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/operationsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/operationsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get operation. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json */ -async function operationsGet() { +async function operationsGet(): Promise { const subscriptionId = "{subscriptionId}"; const locationName = "{locationName}"; const name = "{operationName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesCreateOrUpdateSample.ts index b395d803fe7a..e17e307fe5ed 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json */ -async function policiesCreateOrUpdate() { +async function policiesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesDeleteSample.ts index 1a6b90b23d32..3fc891f9b85c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json */ -async function policiesDelete() { +async function policiesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesGetSample.ts index f2ac425eeeee..f76b1bd9a372 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json */ -async function policiesGet() { +async function policiesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesListSample.ts index d30d8a34be69..972801ffc1ee 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List policies in a given policy set. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json */ -async function policiesList() { +async function policiesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesUpdateSample.ts index 9a0df9181890..f3d59e4584ee 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policiesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of policies. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json */ -async function policiesUpdate() { +async function policiesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policySetsEvaluatePoliciesSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policySetsEvaluatePoliciesSample.ts index 1824f64e0b02..5cd06821973d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/policySetsEvaluatePoliciesSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/policySetsEvaluatePoliciesSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Evaluates lab policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json */ -async function policySetsEvaluatePolicies() { +async function policySetsEvaluatePolicies(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/providerOperationsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/providerOperationsListSample.ts index f1287bbeb77e..7089c96a521c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/providerOperationsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/providerOperationsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Result of the request to list REST API operations * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ProviderOperations_List.json */ -async function providerOperationsList() { +async function providerOperationsList(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new DevTestLabsClient(credential, subscriptionId); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesCreateOrUpdateSample.ts index 47bd086bcd0a..c4fe149c6527 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json */ -async function schedulesCreateOrUpdate() { +async function schedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesDeleteSample.ts index a8de9f113e45..8981f83d3d89 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json */ -async function schedulesDelete() { +async function schedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesExecuteSample.ts index 0a937cc2f2c0..d4a4f8038c43 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json */ -async function schedulesExecute() { +async function schedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesGetSample.ts index ebf4944cf158..a6cd46248b0c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json */ -async function schedulesGet() { +async function schedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListApplicableSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListApplicableSample.ts index 3c92265b4d10..7dd8262688ea 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListApplicableSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListApplicableSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists all applicable schedules * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json */ -async function schedulesListApplicable() { +async function schedulesListApplicable(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListSample.ts index e0934e29e15a..7f88252e9894 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json */ -async function schedulesList() { +async function schedulesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesUpdateSample.ts index 5271092dfb1a..5d21a1255af2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/schedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json */ -async function schedulesUpdate() { +async function schedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsCreateOrUpdateSample.ts index 1e6b79a526b7..c4e0f097942d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing secret. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json */ -async function secretsCreateOrUpdate() { +async function secretsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsDeleteSample.ts index f2e53917fbb7..4f0fa377f4c6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete secret. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json */ -async function secretsDelete() { +async function secretsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsGetSample.ts index 35fe8ad6d01b..ef5c8446eda3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get secret. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json */ -async function secretsGet() { +async function secretsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsListSample.ts index b2e98311283f..fea8af6a5485 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List secrets in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json */ -async function secretsList() { +async function secretsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsUpdateSample.ts index f79059d24203..64f7feadb2cf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/secretsUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of secrets. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json */ -async function secretsUpdate() { +async function secretsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesCreateOrUpdateSample.ts index ad6e805d3503..5eb3bd9efcf6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json */ -async function serviceFabricSchedulesCreateOrUpdate() { +async function serviceFabricSchedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesDeleteSample.ts index 339e0da8cd71..a9d729015a6c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json */ -async function serviceFabricSchedulesDelete() { +async function serviceFabricSchedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesExecuteSample.ts index 7e77788be160..efb14714caf7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json */ -async function serviceFabricSchedulesExecute() { +async function serviceFabricSchedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesGetSample.ts index 01af49d6ee8a..4b7a4f674949 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json */ -async function serviceFabricSchedulesGet() { +async function serviceFabricSchedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesListSample.ts index 42aa8b3fb358..e55d2eb40ca6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a given service fabric. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json */ -async function serviceFabricSchedulesList() { +async function serviceFabricSchedulesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesUpdateSample.ts index e6fba344c41e..6a419a1ec362 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricSchedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json */ -async function serviceFabricSchedulesUpdate() { +async function serviceFabricSchedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsCreateOrUpdateSample.ts index a797ace8c1e2..c7e2137eb37a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing service fabric. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json */ -async function serviceFabricsCreateOrUpdate() { +async function serviceFabricsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsDeleteSample.ts index 18a4530876ee..997383e34f39 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete service fabric. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json */ -async function serviceFabricsDelete() { +async function serviceFabricsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsGetSample.ts index c977d00b71df..c6e4b414f1b1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get service fabric. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json */ -async function serviceFabricsGet() { +async function serviceFabricsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListApplicableSchedulesSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListApplicableSchedulesSample.ts index dad7bac35e69..623d52ecbf8d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListApplicableSchedulesSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListApplicableSchedulesSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists the applicable start/stop schedules, if any. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json */ -async function serviceFabricsListApplicableSchedules() { +async function serviceFabricsListApplicableSchedules(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListSample.ts index 292da634250b..8a02bb6eae3e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List service fabrics in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json */ -async function serviceFabricsList() { +async function serviceFabricsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStartSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStartSample.ts index eaaac5158b21..02f0a08a6cf2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStartSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStartSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Start a service fabric. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json */ -async function serviceFabricsStart() { +async function serviceFabricsStart(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStopSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStopSample.ts index af30e289527d..5de7bd13a6cc 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStopSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsStopSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Stop a service fabric This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json */ -async function serviceFabricsStop() { +async function serviceFabricsStop(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsUpdateSample.ts index 58950edeaade..a7759a457335 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceFabricsUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of service fabrics. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json */ -async function serviceFabricsUpdate() { +async function serviceFabricsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersCreateOrUpdateSample.ts index f8f0fd7a16c3..deda08f9a6f8 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing service runner. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json */ -async function serviceRunnersCreateOrUpdate() { +async function serviceRunnersCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersDeleteSample.ts index 7b21791bcb6e..02b58bb7cead 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete service runner. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json */ -async function serviceRunnersDelete() { +async function serviceRunnersDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersGetSample.ts index 326f7b162ec4..3a0d2b5de5f7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/serviceRunnersGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get service runner. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json */ -async function serviceRunnersGet() { +async function serviceRunnersGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersCreateOrUpdateSample.ts index 00617395040d..687bc0fd370b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing user profile. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json */ -async function usersCreateOrUpdate() { +async function usersCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersDeleteSample.ts index 69280320d33e..80cb85d0b477 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete user profile. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json */ -async function usersDelete() { +async function usersDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersGetSample.ts index cab83ae39cef..b4933f7e4d6b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json */ -async function usersGet() { +async function usersGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersListSample.ts index d66fddf696c1..486dd9737ad5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List user profiles in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json */ -async function usersList() { +async function usersList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersUpdateSample.ts index 85a12f626feb..78b9b38cce50 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/usersUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of user profiles. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json */ -async function usersUpdate() { +async function usersUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesCreateOrUpdateSample.ts index bd238f6fc331..151c1e4a854b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json */ -async function virtualMachineSchedulesCreateOrUpdate() { +async function virtualMachineSchedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesDeleteSample.ts index b4f8ea7e4f40..e859bd60300c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json */ -async function virtualMachineSchedulesDelete() { +async function virtualMachineSchedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesExecuteSample.ts index 2dbd0deecbae..dcbda3c7858b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json */ -async function virtualMachineSchedulesExecute() { +async function virtualMachineSchedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesGetSample.ts index c25efe87c4a0..f392dc4272cf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json */ -async function virtualMachineSchedulesGet() { +async function virtualMachineSchedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesListSample.ts index ced846c49565..6f5bc02a5bea 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a given virtual machine. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json */ -async function virtualMachineSchedulesList() { +async function virtualMachineSchedulesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesUpdateSample.ts index 6c8e0f26c08c..ecb6e196729c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachineSchedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json */ -async function virtualMachineSchedulesUpdate() { +async function virtualMachineSchedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesAddDataDiskSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesAddDataDiskSample.ts index 17f7d54f9da2..cea828236a7d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesAddDataDiskSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesAddDataDiskSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Attach a new or existing data disk to virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json */ -async function virtualMachinesAddDataDisk() { +async function virtualMachinesAddDataDisk(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesApplyArtifactsSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesApplyArtifactsSample.ts index 46af4e1c56be..1e4c74f29c80 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesApplyArtifactsSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesApplyArtifactsSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Apply artifacts to virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json */ -async function virtualMachinesApplyArtifacts() { +async function virtualMachinesApplyArtifacts(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesClaimSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesClaimSample.ts index 29d584a8c3dd..b0de5c393b2d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesClaimSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesClaimSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Take ownership of an existing virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json */ -async function virtualMachinesClaim() { +async function virtualMachinesClaim(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesCreateOrUpdateSample.ts index ae39939e6ce9..c9f1d26c3a14 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json */ -async function virtualMachinesCreateOrUpdate() { +async function virtualMachinesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDeleteSample.ts index 34c5650f050f..ce6bd8a86734 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json */ -async function virtualMachinesDelete() { +async function virtualMachinesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDetachDataDiskSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDetachDataDiskSample.ts index b4278a5dbf2e..4b5dc2291a30 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDetachDataDiskSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesDetachDataDiskSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Detach the specified disk from the virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json */ -async function virtualMachinesDetachDataDisk() { +async function virtualMachinesDetachDataDisk(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetRdpFileContentsSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetRdpFileContentsSample.ts index 6e4ba9c8d91f..f451a6678999 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetRdpFileContentsSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetRdpFileContentsSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets a string that represents the contents of the RDP file for the virtual machine * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json */ -async function virtualMachinesGetRdpFileContents() { +async function virtualMachinesGetRdpFileContents(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetSample.ts index 45cbb51e14a8..633c0f68c095 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get virtual machine. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json */ -async function virtualMachinesGet() { +async function virtualMachinesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListApplicableSchedulesSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListApplicableSchedulesSample.ts index d212ed4bb8c3..4ea317509d18 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListApplicableSchedulesSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListApplicableSchedulesSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists the applicable start/stop schedules, if any. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json */ -async function virtualMachinesListApplicableSchedules() { +async function virtualMachinesListApplicableSchedules(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListSample.ts index 9d11a4cdb952..8e157a220565 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List virtual machines in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json */ -async function virtualMachinesList() { +async function virtualMachinesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRedeploySample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRedeploySample.ts index 4c42727536af..d5ff0f06bbf7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRedeploySample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRedeploySample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Redeploy a virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json */ -async function virtualMachinesRedeploy() { +async function virtualMachinesRedeploy(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesResizeSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesResizeSample.ts index 744aaa6b7aeb..97e07009b496 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesResizeSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesResizeSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Resize Virtual Machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json */ -async function virtualMachinesResize() { +async function virtualMachinesResize(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRestartSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRestartSample.ts index 1dab79d87e94..52bc66dd9610 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRestartSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesRestartSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Restart a virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json */ -async function virtualMachinesRestart() { +async function virtualMachinesRestart(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStartSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStartSample.ts index 0edfed3036bd..d166afff40f4 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStartSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStartSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Start a virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json */ -async function virtualMachinesStart() { +async function virtualMachinesStart(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStopSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStopSample.ts index 5f1442c1e466..f151ae0cf808 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStopSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesStopSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Stop a virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json */ -async function virtualMachinesStop() { +async function virtualMachinesStop(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesTransferDisksSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesTransferDisksSample.ts index d1ab33525b18..07eca379cff1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesTransferDisksSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesTransferDisksSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json */ -async function virtualMachinesTransferDisks() { +async function virtualMachinesTransferDisks(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUnClaimSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUnClaimSample.ts index b41fb78c38ee..67f1d5f69772 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUnClaimSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUnClaimSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Release ownership of an existing virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json */ -async function virtualMachinesUnClaim() { +async function virtualMachinesUnClaim(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUpdateSample.ts index 5f6f8c5b78be..bbfff06b6b41 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualMachinesUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of virtual machines. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json */ -async function virtualMachinesUpdate() { +async function virtualMachinesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksCreateOrUpdateSample.ts index e71686aa7575..309d6c439e48 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing virtual network. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json */ -async function virtualNetworksCreateOrUpdate() { +async function virtualNetworksCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksDeleteSample.ts index 08fed1271dfc..ae6af0f39d55 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete virtual network. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json */ -async function virtualNetworksDelete() { +async function virtualNetworksDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksGetSample.ts index 43581b280e56..a294f5fb4798 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get virtual network. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json */ -async function virtualNetworksGet() { +async function virtualNetworksGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksListSample.ts index 01e41cc303a0..a1753ddcb23c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List virtual networks in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json */ -async function virtualNetworksList() { +async function virtualNetworksList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksUpdateSample.ts index 79df7641a8f6..0ebb42264939 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples-dev/virtualNetworksUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of virtual networks. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json */ -async function virtualNetworksUpdate() { +async function virtualNetworksUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesGetSample.ts index b85a58d849b0..97e84f07a60d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get azure resource manager template. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_Get.json */ -async function armTemplatesGet() { +async function armTemplatesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesListSample.ts index 7106b31bd4ef..49c34aa104a2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/armTemplatesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List azure resource manager templates in a given artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArmTemplates_List.json */ -async function armTemplatesList() { +async function armTemplatesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesCreateOrUpdateSample.ts index 20bd3b43a213..afb04df5882c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_CreateOrUpdate.json */ -async function artifactSourcesCreateOrUpdate() { +async function artifactSourcesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesDeleteSample.ts index 0b47bf8ed448..5f66edde909a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Delete.json */ -async function artifactSourcesDelete() { +async function artifactSourcesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesGetSample.ts index b7df9206c35e..a15897fcc9ed 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Get.json */ -async function artifactSourcesGet() { +async function artifactSourcesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesListSample.ts index b03e109aea03..14d9c632c623 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List artifact sources in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_List.json */ -async function artifactSourcesList() { +async function artifactSourcesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesUpdateSample.ts index c21d01524963..345c7ce1e3d5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactSourcesUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of artifact sources. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ArtifactSources_Update.json */ -async function artifactSourcesUpdate() { +async function artifactSourcesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGenerateArmTemplateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGenerateArmTemplateSample.ts index 5aee02dbcad9..9d6a507e2f2a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGenerateArmTemplateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGenerateArmTemplateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Generates an ARM template for the given artifact, uploads the required files to a storage account, and validates the generated artifact. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_GenerateArmTemplate.json */ -async function artifactsGenerateArmTemplate() { +async function artifactsGenerateArmTemplate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGetSample.ts index eb726eed213b..092a0a53558e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get artifact. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_Get.json */ -async function artifactsGet() { +async function artifactsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsListSample.ts index 743c77ebcf10..583afe544b7f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/artifactsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List artifacts in a given artifact source. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Artifacts_List.json */ -async function artifactsList() { +async function artifactsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsCreateOrUpdateSample.ts index dac39cef2ad1..95af5dd86957 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing cost. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_CreateOrUpdate.json */ -async function costsCreateOrUpdate() { +async function costsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsGetSample.ts index 5a616a22e531..7ad5ea103ff0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/costsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get cost. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Costs_Get.json */ -async function costsGet() { +async function costsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesCreateOrUpdateSample.ts index 194cc8a509ab..95b9d35277aa 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing custom image. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_CreateOrUpdate.json */ -async function customImagesCreateOrUpdate() { +async function customImagesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesDeleteSample.ts index b3502ee98bc9..b0e23c8596fe 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete custom image. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Delete.json */ -async function customImagesDelete() { +async function customImagesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesGetSample.ts index 282148d3755d..b544361a331b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get custom image. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Get.json */ -async function customImagesGet() { +async function customImagesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesListSample.ts index d650a6e0f7fd..77f8d89e03ea 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List custom images in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_List.json */ -async function customImagesList() { +async function customImagesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesUpdateSample.ts index 0456af65cb2e..6ea4a6c06ca6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/customImagesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of custom images. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/CustomImages_Update.json */ -async function customImagesUpdate() { +async function customImagesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksAttachSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksAttachSample.ts index 7038414c28f1..92e0023af009 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksAttachSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksAttachSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Attach and create the lease of the disk to the virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Attach.json */ -async function disksAttach() { +async function disksAttach(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksCreateOrUpdateSample.ts index 0a38a52c0546..12ae6e4bc34c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing disk. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_CreateOrUpdate.json */ -async function disksCreateOrUpdate() { +async function disksCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDeleteSample.ts index 479b199492e9..94004b8393d5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete disk. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Delete.json */ -async function disksDelete() { +async function disksDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDetachSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDetachSample.ts index a3fe7a030f43..f1887368c8cc 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDetachSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksDetachSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Detach and break the lease of the disk attached to the virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Detach.json */ -async function disksDetach() { +async function disksDetach(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksGetSample.ts index 2f78b0c3dbfd..d79f3ba37e4a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get disk. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Get.json */ -async function disksGet() { +async function disksGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksListSample.ts index 674ca8ddc1de..ba776ee9e4f2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List disks in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_List.json */ -async function disksList() { +async function disksList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksUpdateSample.ts index 017445ff2147..b63e84feb7c8 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/disksUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of disks. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Disks_Update.json */ -async function disksUpdate() { +async function disksUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsCreateOrUpdateSample.ts index 9d5b2e0e4c97..6ee1c73a9130 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing environment. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_CreateOrUpdate.json */ -async function environmentsCreateOrUpdate() { +async function environmentsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsDeleteSample.ts index 177754a4d2e0..6f525041893d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete environment. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Delete.json */ -async function environmentsDelete() { +async function environmentsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsGetSample.ts index 44af7b8383b0..face49ddc9e0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get environment. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Get.json */ -async function environmentsGet() { +async function environmentsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsListSample.ts index 1fee8ae2e166..f4899174210a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List environments in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_List.json */ -async function environmentsList() { +async function environmentsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsUpdateSample.ts index b9aa4c2fee5e..403fc3d4bd62 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/environmentsUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of environments. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Environments_Update.json */ -async function environmentsUpdate() { +async function environmentsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasCreateOrUpdateSample.ts index 0b0647db0ba5..cadb0d8298d0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing formula. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_CreateOrUpdate.json */ -async function formulasCreateOrUpdate() { +async function formulasCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasDeleteSample.ts index f8631aeeb6ac..37a06ad3e17a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete formula. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Delete.json */ -async function formulasDelete() { +async function formulasDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasGetSample.ts index 59d6dbdf2b35..925eed76a3e3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get formula. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Get.json */ -async function formulasGet() { +async function formulasGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasListSample.ts index 51b67145d512..6df850002faf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List formulas in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_List.json */ -async function formulasList() { +async function formulasList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasUpdateSample.ts index 74e04d82a5f4..87c932137053 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/formulasUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of formulas. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Formulas_Update.json */ -async function formulasUpdate() { +async function formulasUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/galleryImagesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/galleryImagesListSample.ts index 23c4f806811c..0d59dce2a9a0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/galleryImagesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/galleryImagesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List gallery images in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GalleryImages_List.json */ -async function galleryImagesList() { +async function galleryImagesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesCreateOrUpdateSample.ts index 3d348cef2423..9d04b86aab40 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_CreateOrUpdate.json */ -async function globalSchedulesCreateOrUpdate() { +async function globalSchedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesDeleteSample.ts index 06f66963b61b..50d69e759067 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Delete.json */ -async function globalSchedulesDelete() { +async function globalSchedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesExecuteSample.ts index cb631ef20c8f..865a22040600 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Execute.json */ -async function globalSchedulesExecute() { +async function globalSchedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesGetSample.ts index a7a12eb2de38..5ccf1a07b7b0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Get.json */ -async function globalSchedulesGet() { +async function globalSchedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListByResourceGroupSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListByResourceGroupSample.ts index a440a800cc4a..6423188a9b8d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListByResourceGroupSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListByResourceGroupSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a resource group. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListByResourceGroup.json */ -async function globalSchedulesListByResourceGroup() { +async function globalSchedulesListByResourceGroup(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const credential = new DefaultAzureCredential(); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListBySubscriptionSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListBySubscriptionSample.ts index 25300a85b7f4..2c9e2563e7db 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListBySubscriptionSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesListBySubscriptionSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a subscription. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_ListBySubscription.json */ -async function globalSchedulesListBySubscription() { +async function globalSchedulesListBySubscription(): Promise { const subscriptionId = "{subscriptionId}"; const credential = new DefaultAzureCredential(); const client = new DevTestLabsClient(credential, subscriptionId); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesRetargetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesRetargetSample.ts index 662af51065e3..d70eba61a633 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesRetargetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesRetargetSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Updates a schedule's target resource Id. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Retarget.json */ -async function globalSchedulesRetarget() { +async function globalSchedulesRetarget(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{scheduleName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesUpdateSample.ts index da47903e5224..09e6544ba3bc 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/globalSchedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/GlobalSchedules_Update.json */ -async function globalSchedulesUpdate() { +async function globalSchedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "labvmautostart"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsClaimAnyVMSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsClaimAnyVMSample.ts index 8ed9a16f281b..b468dfb37bbb 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsClaimAnyVMSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsClaimAnyVMSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Claim a random claimable virtual machine in the lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ClaimAnyVm.json */ -async function labsClaimAnyVM() { +async function labsClaimAnyVM(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateEnvironmentSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateEnvironmentSample.ts index be1b4222199b..ed1f7a788a85 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateEnvironmentSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateEnvironmentSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create virtual machines in a lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateEnvironment.json */ -async function labsCreateEnvironment() { +async function labsCreateEnvironment(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateOrUpdateSample.ts index 2c542735f322..c38415613ef1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_CreateOrUpdate.json */ -async function labsCreateOrUpdate() { +async function labsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsDeleteSample.ts index 34dd8360f128..bdfa1cb13389 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Delete.json */ -async function labsDelete() { +async function labsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsExportResourceUsageSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsExportResourceUsageSample.ts index fa4dab3d413e..a93443183026 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsExportResourceUsageSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsExportResourceUsageSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Exports the lab resource usage into a storage account This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ExportResourceUsage.json */ -async function labsExportResourceUsage() { +async function labsExportResourceUsage(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGenerateUploadUriSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGenerateUploadUriSample.ts index e75ba6064836..54e93bf73984 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGenerateUploadUriSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGenerateUploadUriSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Generate a URI for uploading custom disk images to a Lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_GenerateUploadUri.json */ -async function labsGenerateUploadUri() { +async function labsGenerateUploadUri(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGetSample.ts index c19a861d2e88..d824816bb4ef 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Get.json */ -async function labsGet() { +async function labsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsImportVirtualMachineSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsImportVirtualMachineSample.ts index 1d276f9e0a1e..8895cc95483c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsImportVirtualMachineSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsImportVirtualMachineSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Import a virtual machine into a different lab. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ImportVirtualMachine.json */ -async function labsImportVirtualMachine() { +async function labsImportVirtualMachine(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListByResourceGroupSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListByResourceGroupSample.ts index b54fc3e98b05..b567c82f319c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListByResourceGroupSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListByResourceGroupSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List labs in a resource group. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListByResourceGroup.json */ -async function labsListByResourceGroup() { +async function labsListByResourceGroup(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const credential = new DefaultAzureCredential(); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListBySubscriptionSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListBySubscriptionSample.ts index da5950cd9d06..918f840c2180 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListBySubscriptionSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListBySubscriptionSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List labs in a subscription. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListBySubscription.json */ -async function labsListBySubscription() { +async function labsListBySubscription(): Promise { const subscriptionId = "{subscriptionId}"; const credential = new DefaultAzureCredential(); const client = new DevTestLabsClient(credential, subscriptionId); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListVhdsSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListVhdsSample.ts index abe8bd2d5163..b3def15c3617 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListVhdsSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsListVhdsSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List disk images available for custom image creation. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_ListVhds.json */ -async function labsListVhds() { +async function labsListVhds(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsUpdateSample.ts index d02f4f0aa201..03a679cc1e02 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/labsUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of labs. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Labs_Update.json */ -async function labsUpdate() { +async function labsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const name = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsCreateOrUpdateSample.ts index 2a747043f718..e49243dd8f23 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing notification channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_CreateOrUpdate.json */ -async function notificationChannelsCreateOrUpdate() { +async function notificationChannelsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsDeleteSample.ts index 3e6692f68c11..c1853cc01e55 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete notification channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Delete.json */ -async function notificationChannelsDelete() { +async function notificationChannelsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsGetSample.ts index 395f02829d5c..bdd2bf9ecff3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get notification channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Get.json */ -async function notificationChannelsGet() { +async function notificationChannelsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsListSample.ts index f0acfdd6f17b..f3e9fd828119 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List notification channels in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_List.json */ -async function notificationChannelsList() { +async function notificationChannelsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsNotifySample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsNotifySample.ts index 4d230ee03884..04d3895d644a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsNotifySample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsNotifySample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Send notification to provided channel. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Notify.json */ -async function notificationChannelsNotify() { +async function notificationChannelsNotify(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsUpdateSample.ts index abb22f6d5a1e..62cf01b3b78d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/notificationChannelsUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of notification channels. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/NotificationChannels_Update.json */ -async function notificationChannelsUpdate() { +async function notificationChannelsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/operationsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/operationsGetSample.ts index d5cdc7b4a3b2..900ff0767ec0 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/operationsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/operationsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get operation. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Operations_Get.json */ -async function operationsGet() { +async function operationsGet(): Promise { const subscriptionId = "{subscriptionId}"; const locationName = "{locationName}"; const name = "{operationName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesCreateOrUpdateSample.ts index b395d803fe7a..e17e307fe5ed 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_CreateOrUpdate.json */ -async function policiesCreateOrUpdate() { +async function policiesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesDeleteSample.ts index 1a6b90b23d32..3fc891f9b85c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Delete.json */ -async function policiesDelete() { +async function policiesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesGetSample.ts index f2ac425eeeee..f76b1bd9a372 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Get.json */ -async function policiesGet() { +async function policiesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesListSample.ts index d30d8a34be69..972801ffc1ee 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List policies in a given policy set. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_List.json */ -async function policiesList() { +async function policiesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesUpdateSample.ts index 9a0df9181890..f3d59e4584ee 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policiesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of policies. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Policies_Update.json */ -async function policiesUpdate() { +async function policiesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policySetsEvaluatePoliciesSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policySetsEvaluatePoliciesSample.ts index 1824f64e0b02..5cd06821973d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policySetsEvaluatePoliciesSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/policySetsEvaluatePoliciesSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Evaluates lab policy. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/PolicySets_EvaluatePolicies.json */ -async function policySetsEvaluatePolicies() { +async function policySetsEvaluatePolicies(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/providerOperationsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/providerOperationsListSample.ts index f1287bbeb77e..7089c96a521c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/providerOperationsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/providerOperationsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Result of the request to list REST API operations * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ProviderOperations_List.json */ -async function providerOperationsList() { +async function providerOperationsList(): Promise { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new DefaultAzureCredential(); const client = new DevTestLabsClient(credential, subscriptionId); diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesCreateOrUpdateSample.ts index 47bd086bcd0a..c4fe149c6527 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_CreateOrUpdate.json */ -async function schedulesCreateOrUpdate() { +async function schedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesDeleteSample.ts index a8de9f113e45..8981f83d3d89 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Delete.json */ -async function schedulesDelete() { +async function schedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesExecuteSample.ts index 0a937cc2f2c0..d4a4f8038c43 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Execute.json */ -async function schedulesExecute() { +async function schedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesGetSample.ts index ebf4944cf158..a6cd46248b0c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Get.json */ -async function schedulesGet() { +async function schedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListApplicableSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListApplicableSample.ts index 3c92265b4d10..7dd8262688ea 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListApplicableSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListApplicableSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists all applicable schedules * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_ListApplicable.json */ -async function schedulesListApplicable() { +async function schedulesListApplicable(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListSample.ts index e0934e29e15a..7f88252e9894 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_List.json */ -async function schedulesList() { +async function schedulesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesUpdateSample.ts index 5271092dfb1a..5d21a1255af2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/schedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Schedules_Update.json */ -async function schedulesUpdate() { +async function schedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsCreateOrUpdateSample.ts index 1e6b79a526b7..c4e0f097942d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing secret. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_CreateOrUpdate.json */ -async function secretsCreateOrUpdate() { +async function secretsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsDeleteSample.ts index f2e53917fbb7..4f0fa377f4c6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete secret. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Delete.json */ -async function secretsDelete() { +async function secretsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsGetSample.ts index 35fe8ad6d01b..ef5c8446eda3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get secret. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Get.json */ -async function secretsGet() { +async function secretsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsListSample.ts index b2e98311283f..fea8af6a5485 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List secrets in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_List.json */ -async function secretsList() { +async function secretsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsUpdateSample.ts index f79059d24203..64f7feadb2cf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/secretsUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of secrets. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Secrets_Update.json */ -async function secretsUpdate() { +async function secretsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesCreateOrUpdateSample.ts index ad6e805d3503..5eb3bd9efcf6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_CreateOrUpdate.json */ -async function serviceFabricSchedulesCreateOrUpdate() { +async function serviceFabricSchedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesDeleteSample.ts index 339e0da8cd71..a9d729015a6c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Delete.json */ -async function serviceFabricSchedulesDelete() { +async function serviceFabricSchedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesExecuteSample.ts index 7e77788be160..efb14714caf7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Execute.json */ -async function serviceFabricSchedulesExecute() { +async function serviceFabricSchedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesGetSample.ts index 01af49d6ee8a..4b7a4f674949 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Get.json */ -async function serviceFabricSchedulesGet() { +async function serviceFabricSchedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesListSample.ts index 42aa8b3fb358..e55d2eb40ca6 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a given service fabric. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_List.json */ -async function serviceFabricSchedulesList() { +async function serviceFabricSchedulesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesUpdateSample.ts index e6fba344c41e..6a419a1ec362 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricSchedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabricSchedules_Update.json */ -async function serviceFabricSchedulesUpdate() { +async function serviceFabricSchedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsCreateOrUpdateSample.ts index a797ace8c1e2..c7e2137eb37a 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing service fabric. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_CreateOrUpdate.json */ -async function serviceFabricsCreateOrUpdate() { +async function serviceFabricsCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsDeleteSample.ts index 18a4530876ee..997383e34f39 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete service fabric. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Delete.json */ -async function serviceFabricsDelete() { +async function serviceFabricsDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsGetSample.ts index c977d00b71df..c6e4b414f1b1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get service fabric. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Get.json */ -async function serviceFabricsGet() { +async function serviceFabricsGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListApplicableSchedulesSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListApplicableSchedulesSample.ts index dad7bac35e69..623d52ecbf8d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListApplicableSchedulesSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListApplicableSchedulesSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists the applicable start/stop schedules, if any. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_ListApplicableSchedules.json */ -async function serviceFabricsListApplicableSchedules() { +async function serviceFabricsListApplicableSchedules(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListSample.ts index 292da634250b..8a02bb6eae3e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List service fabrics in a given user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_List.json */ -async function serviceFabricsList() { +async function serviceFabricsList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStartSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStartSample.ts index eaaac5158b21..02f0a08a6cf2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStartSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStartSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Start a service fabric. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Start.json */ -async function serviceFabricsStart() { +async function serviceFabricsStart(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStopSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStopSample.ts index af30e289527d..5de7bd13a6cc 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStopSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsStopSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Stop a service fabric This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Stop.json */ -async function serviceFabricsStop() { +async function serviceFabricsStop(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsUpdateSample.ts index 58950edeaade..a7759a457335 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceFabricsUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of service fabrics. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceFabrics_Update.json */ -async function serviceFabricsUpdate() { +async function serviceFabricsUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersCreateOrUpdateSample.ts index f8f0fd7a16c3..deda08f9a6f8 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing service runner. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_CreateOrUpdate.json */ -async function serviceRunnersCreateOrUpdate() { +async function serviceRunnersCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersDeleteSample.ts index 7b21791bcb6e..02b58bb7cead 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete service runner. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Delete.json */ -async function serviceRunnersDelete() { +async function serviceRunnersDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersGetSample.ts index 326f7b162ec4..3a0d2b5de5f7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/serviceRunnersGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get service runner. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/ServiceRunners_Get.json */ -async function serviceRunnersGet() { +async function serviceRunnersGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersCreateOrUpdateSample.ts index 00617395040d..687bc0fd370b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing user profile. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_CreateOrUpdate.json */ -async function usersCreateOrUpdate() { +async function usersCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersDeleteSample.ts index 69280320d33e..80cb85d0b477 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete user profile. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Delete.json */ -async function usersDelete() { +async function usersDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersGetSample.ts index cab83ae39cef..b4933f7e4d6b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get user profile. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Get.json */ -async function usersGet() { +async function usersGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersListSample.ts index d66fddf696c1..486dd9737ad5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List user profiles in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_List.json */ -async function usersList() { +async function usersList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersUpdateSample.ts index 85a12f626feb..78b9b38cce50 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/usersUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of user profiles. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/Users_Update.json */ -async function usersUpdate() { +async function usersUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{devtestlabName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesCreateOrUpdateSample.ts index bd238f6fc331..151c1e4a854b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_CreateOrUpdate.json */ -async function virtualMachineSchedulesCreateOrUpdate() { +async function virtualMachineSchedulesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesDeleteSample.ts index b4f8ea7e4f40..e859bd60300c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Delete.json */ -async function virtualMachineSchedulesDelete() { +async function virtualMachineSchedulesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesExecuteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesExecuteSample.ts index 2dbd0deecbae..dcbda3c7858b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesExecuteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesExecuteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Execute a schedule. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Execute.json */ -async function virtualMachineSchedulesExecute() { +async function virtualMachineSchedulesExecute(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesGetSample.ts index c25efe87c4a0..f392dc4272cf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get schedule. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Get.json */ -async function virtualMachineSchedulesGet() { +async function virtualMachineSchedulesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesListSample.ts index ced846c49565..6f5bc02a5bea 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List schedules in a given virtual machine. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_List.json */ -async function virtualMachineSchedulesList() { +async function virtualMachineSchedulesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesUpdateSample.ts index 6c8e0f26c08c..ecb6e196729c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachineSchedulesUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of schedules. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachineSchedules_Update.json */ -async function virtualMachineSchedulesUpdate() { +async function virtualMachineSchedulesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesAddDataDiskSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesAddDataDiskSample.ts index 17f7d54f9da2..cea828236a7d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesAddDataDiskSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesAddDataDiskSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Attach a new or existing data disk to virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_AddDataDisk.json */ -async function virtualMachinesAddDataDisk() { +async function virtualMachinesAddDataDisk(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesApplyArtifactsSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesApplyArtifactsSample.ts index 46af4e1c56be..1e4c74f29c80 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesApplyArtifactsSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesApplyArtifactsSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Apply artifacts to virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ApplyArtifacts.json */ -async function virtualMachinesApplyArtifacts() { +async function virtualMachinesApplyArtifacts(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesClaimSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesClaimSample.ts index 29d584a8c3dd..b0de5c393b2d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesClaimSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesClaimSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Take ownership of an existing virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Claim.json */ -async function virtualMachinesClaim() { +async function virtualMachinesClaim(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesCreateOrUpdateSample.ts index ae39939e6ce9..c9f1d26c3a14 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_CreateOrUpdate.json */ -async function virtualMachinesCreateOrUpdate() { +async function virtualMachinesCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDeleteSample.ts index 34c5650f050f..ce6bd8a86734 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Delete.json */ -async function virtualMachinesDelete() { +async function virtualMachinesDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDetachDataDiskSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDetachDataDiskSample.ts index b4278a5dbf2e..4b5dc2291a30 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDetachDataDiskSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesDetachDataDiskSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Detach the specified disk from the virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_DetachDataDisk.json */ -async function virtualMachinesDetachDataDisk() { +async function virtualMachinesDetachDataDisk(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetRdpFileContentsSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetRdpFileContentsSample.ts index 6e4ba9c8d91f..f451a6678999 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetRdpFileContentsSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetRdpFileContentsSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Gets a string that represents the contents of the RDP file for the virtual machine * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_GetRdpFileContents.json */ -async function virtualMachinesGetRdpFileContents() { +async function virtualMachinesGetRdpFileContents(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetSample.ts index 45cbb51e14a8..633c0f68c095 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get virtual machine. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Get.json */ -async function virtualMachinesGet() { +async function virtualMachinesGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListApplicableSchedulesSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListApplicableSchedulesSample.ts index d212ed4bb8c3..4ea317509d18 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListApplicableSchedulesSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListApplicableSchedulesSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Lists the applicable start/stop schedules, if any. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_ListApplicableSchedules.json */ -async function virtualMachinesListApplicableSchedules() { +async function virtualMachinesListApplicableSchedules(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListSample.ts index 9d11a4cdb952..8e157a220565 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List virtual machines in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_List.json */ -async function virtualMachinesList() { +async function virtualMachinesList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRedeploySample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRedeploySample.ts index 4c42727536af..d5ff0f06bbf7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRedeploySample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRedeploySample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Redeploy a virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Redeploy.json */ -async function virtualMachinesRedeploy() { +async function virtualMachinesRedeploy(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesResizeSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesResizeSample.ts index 744aaa6b7aeb..97e07009b496 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesResizeSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesResizeSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Resize Virtual Machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Resize.json */ -async function virtualMachinesResize() { +async function virtualMachinesResize(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRestartSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRestartSample.ts index 1dab79d87e94..52bc66dd9610 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRestartSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesRestartSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Restart a virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Restart.json */ -async function virtualMachinesRestart() { +async function virtualMachinesRestart(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStartSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStartSample.ts index 0edfed3036bd..d166afff40f4 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStartSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStartSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Start a virtual machine. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Start.json */ -async function virtualMachinesStart() { +async function virtualMachinesStart(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStopSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStopSample.ts index 5f1442c1e466..f151ae0cf808 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStopSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesStopSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Stop a virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Stop.json */ -async function virtualMachinesStop() { +async function virtualMachinesStop(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesTransferDisksSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesTransferDisksSample.ts index d1ab33525b18..07eca379cff1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesTransferDisksSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesTransferDisksSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_TransferDisks.json */ -async function virtualMachinesTransferDisks() { +async function virtualMachinesTransferDisks(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUnClaimSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUnClaimSample.ts index b41fb78c38ee..67f1d5f69772 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUnClaimSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUnClaimSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Release ownership of an existing virtual machine This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_UnClaim.json */ -async function virtualMachinesUnClaim() { +async function virtualMachinesUnClaim(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUpdateSample.ts index 5f6f8c5b78be..bbfff06b6b41 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualMachinesUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of virtual machines. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualMachines_Update.json */ -async function virtualMachinesUpdate() { +async function virtualMachinesUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksCreateOrUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksCreateOrUpdateSample.ts index e71686aa7575..309d6c439e48 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksCreateOrUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksCreateOrUpdateSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Create or replace an existing virtual network. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_CreateOrUpdate.json */ -async function virtualNetworksCreateOrUpdate() { +async function virtualNetworksCreateOrUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksDeleteSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksDeleteSample.ts index 08fed1271dfc..ae6af0f39d55 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksDeleteSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksDeleteSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Delete virtual network. This operation can take a while to complete. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Delete.json */ -async function virtualNetworksDelete() { +async function virtualNetworksDelete(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksGetSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksGetSample.ts index 43581b280e56..a294f5fb4798 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksGetSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksGetSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Get virtual network. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Get.json */ -async function virtualNetworksGet() { +async function virtualNetworksGet(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksListSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksListSample.ts index 01e41cc303a0..a1753ddcb23c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksListSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksListSample.ts @@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary List virtual networks in a given lab. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_List.json */ -async function virtualNetworksList() { +async function virtualNetworksList(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksUpdateSample.ts b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksUpdateSample.ts index 79df7641a8f6..0ebb42264939 100644 --- a/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksUpdateSample.ts +++ b/sdk/devtestlabs/arm-devtestlabs/samples/v4/typescript/src/virtualNetworksUpdateSample.ts @@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * @summary Allows modifying tags of virtual networks. All other properties will be ignored. * x-ms-original-file: specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/examples/VirtualNetworks_Update.json */ -async function virtualNetworksUpdate() { +async function virtualNetworksUpdate(): Promise { const subscriptionId = "{subscriptionId}"; const resourceGroupName = "resourceGroupName"; const labName = "{labName}"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts b/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts index 43bf5698cbf2..e36f34db7e57 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/devTestLabsClient.ts @@ -40,7 +40,7 @@ import { VirtualMachinesImpl, VirtualMachineSchedulesImpl, VirtualNetworksImpl -} from "./operations"; +} from "./operations/index.js"; import { ProviderOperations, Labs, @@ -67,8 +67,8 @@ import { VirtualMachines, VirtualMachineSchedules, VirtualNetworks -} from "./operationsInterfaces"; -import { DevTestLabsClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { DevTestLabsClientOptionalParams } from "./models/index.js"; export class DevTestLabsClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/index.ts b/sdk/devtestlabs/arm-devtestlabs/src/index.ts index ef18077420bd..ad8b8c37dd6f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/index.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { DevTestLabsClient } from "./devTestLabsClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { DevTestLabsClient } from "./devTestLabsClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts b/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts index 5400bb6e6dc4..396958e62710 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/models/parameters.ts @@ -56,7 +56,7 @@ import { ResizeLabVirtualMachineProperties as ResizeLabVirtualMachinePropertiesMapper, VirtualNetwork as VirtualNetworkMapper, VirtualNetworkFragment as VirtualNetworkFragmentMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts index 80b7b4dda74f..9b1c7cfef254 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/armTemplates.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ArmTemplates } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ArmTemplates } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { ArmTemplate, ArmTemplatesListNextOptionalParams, @@ -21,7 +21,7 @@ import { ArmTemplatesGetOptionalParams, ArmTemplatesGetResponse, ArmTemplatesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ArmTemplates operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts index 5f8b4ebe725f..e476df9f6aff 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifactSources.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ArtifactSources } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ArtifactSources } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { ArtifactSource, ArtifactSourcesListNextOptionalParams, @@ -27,7 +27,7 @@ import { ArtifactSourcesUpdateOptionalParams, ArtifactSourcesUpdateResponse, ArtifactSourcesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ArtifactSources operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts index 0250980f94b5..8be55c38d8bd 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/artifacts.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Artifacts } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Artifacts } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { Artifact, ArtifactsListNextOptionalParams, @@ -24,7 +24,7 @@ import { ArtifactsGenerateArmTemplateOptionalParams, ArtifactsGenerateArmTemplateResponse, ArtifactsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Artifacts operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts index 69f89a265416..cab4771874a4 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/costs.ts @@ -6,18 +6,18 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Costs } from "../operationsInterfaces"; +import { Costs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { CostsGetOptionalParams, CostsGetResponse, LabCost, CostsCreateOrUpdateOptionalParams, CostsCreateOrUpdateResponse -} from "../models"; +} from "../models/index.js"; /** Class containing Costs operations. */ export class CostsImpl implements Costs { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts index a4aa2d60c0de..86f5348ee165 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/customImages.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CustomImages } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CustomImages } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { CustomImage, CustomImagesListNextOptionalParams, @@ -29,7 +29,7 @@ import { CustomImagesUpdateOptionalParams, CustomImagesUpdateResponse, CustomImagesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing CustomImages operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts index 2476b129284c..c9ce438782de 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/disks.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Disks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Disks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Disk, DisksListNextOptionalParams, @@ -33,7 +33,7 @@ import { DetachDiskProperties, DisksDetachOptionalParams, DisksListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Disks operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts index 3a83f813fd9d..f0ff59b8b2dc 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/environments.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Environments } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Environments } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { DtlEnvironment, EnvironmentsListNextOptionalParams, @@ -29,7 +29,7 @@ import { EnvironmentsUpdateOptionalParams, EnvironmentsUpdateResponse, EnvironmentsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Environments operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts index d4df6b64233a..9c69d1879128 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/formulas.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Formulas } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Formulas } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Formula, FormulasListNextOptionalParams, @@ -29,7 +29,7 @@ import { FormulasUpdateOptionalParams, FormulasUpdateResponse, FormulasListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Formulas operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts index fd1e196a8a38..19f97d83e2d8 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/galleryImages.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { GalleryImages } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { GalleryImages } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { GalleryImage, GalleryImagesListNextOptionalParams, GalleryImagesListOptionalParams, GalleryImagesListResponse, GalleryImagesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing GalleryImages operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts index b482cad4c6ad..987caefdf4bf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/globalSchedules.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { GlobalSchedules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { GlobalSchedules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Schedule, GlobalSchedulesListBySubscriptionNextOptionalParams, @@ -36,7 +36,7 @@ import { GlobalSchedulesRetargetOptionalParams, GlobalSchedulesListBySubscriptionNextResponse, GlobalSchedulesListByResourceGroupNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing GlobalSchedules operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts index ed76356e15ec..e260043cc653 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/index.ts @@ -6,28 +6,28 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./providerOperations"; -export * from "./labs"; -export * from "./operations"; -export * from "./globalSchedules"; -export * from "./artifactSources"; -export * from "./armTemplates"; -export * from "./artifacts"; -export * from "./costs"; -export * from "./customImages"; -export * from "./formulas"; -export * from "./galleryImages"; -export * from "./notificationChannels"; -export * from "./policySets"; -export * from "./policies"; -export * from "./schedules"; -export * from "./serviceRunners"; -export * from "./users"; -export * from "./disks"; -export * from "./environments"; -export * from "./secrets"; -export * from "./serviceFabrics"; -export * from "./serviceFabricSchedules"; -export * from "./virtualMachines"; -export * from "./virtualMachineSchedules"; -export * from "./virtualNetworks"; +export * from "./providerOperations.js"; +export * from "./labs.js"; +export * from "./operations.js"; +export * from "./globalSchedules.js"; +export * from "./artifactSources.js"; +export * from "./armTemplates.js"; +export * from "./artifacts.js"; +export * from "./costs.js"; +export * from "./customImages.js"; +export * from "./formulas.js"; +export * from "./galleryImages.js"; +export * from "./notificationChannels.js"; +export * from "./policySets.js"; +export * from "./policies.js"; +export * from "./schedules.js"; +export * from "./serviceRunners.js"; +export * from "./users.js"; +export * from "./disks.js"; +export * from "./environments.js"; +export * from "./secrets.js"; +export * from "./serviceFabrics.js"; +export * from "./serviceFabricSchedules.js"; +export * from "./virtualMachines.js"; +export * from "./virtualMachineSchedules.js"; +export * from "./virtualNetworks.js"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts index c7bf568c1e2b..e2ddf645c283 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/labs.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Labs } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Labs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Lab, LabsListBySubscriptionNextOptionalParams, @@ -48,7 +48,7 @@ import { LabsListBySubscriptionNextResponse, LabsListByResourceGroupNextResponse, LabsListVhdsNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Labs operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts index 4d2cc1c44496..63464ef63013 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/notificationChannels.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { NotificationChannels } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { NotificationChannels } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { NotificationChannel, NotificationChannelsListNextOptionalParams, @@ -29,7 +29,7 @@ import { NotifyParameters, NotificationChannelsNotifyOptionalParams, NotificationChannelsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing NotificationChannels operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts index 73d824f75daa..4ce931a06541 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/operations.ts @@ -6,12 +6,12 @@ * 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 { DevTestLabsClient } from "../devTestLabsClient"; -import { OperationsGetOptionalParams, OperationsGetResponse } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; +import { OperationsGetOptionalParams, OperationsGetResponse } from "../models/index.js"; /** Class containing Operations operations. */ export class OperationsImpl implements Operations { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts index 0a859d1871b3..1b2e8ef93204 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/policies.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Policies } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Policies } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { Policy, PoliciesListNextOptionalParams, @@ -27,7 +27,7 @@ import { PoliciesUpdateOptionalParams, PoliciesUpdateResponse, PoliciesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Policies operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts index 55fd9408a8cc..e1b0e5a914a8 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/policySets.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PolicySets } from "../operationsInterfaces"; +import { PolicySets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { EvaluatePoliciesRequest, PolicySetsEvaluatePoliciesOptionalParams, PolicySetsEvaluatePoliciesResponse -} from "../models"; +} from "../models/index.js"; /** Class containing PolicySets operations. */ export class PolicySetsImpl implements PolicySets { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts index 1d4fd4a144d6..d510a3a18f14 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/providerOperations.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ProviderOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ProviderOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { OperationMetadata, ProviderOperationsListNextOptionalParams, ProviderOperationsListOptionalParams, ProviderOperationsListResponse, ProviderOperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ProviderOperations operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts index e11b793823ac..56064768ab66 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/schedules.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Schedules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Schedules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Schedule, SchedulesListNextOptionalParams, @@ -34,7 +34,7 @@ import { SchedulesExecuteOptionalParams, SchedulesListNextResponse, SchedulesListApplicableNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Schedules operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts index a3ce27c4f26f..8a0aef7d356c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/secrets.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Secrets } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Secrets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Secret, SecretsListNextOptionalParams, @@ -29,7 +29,7 @@ import { SecretsUpdateOptionalParams, SecretsUpdateResponse, SecretsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Secrets operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts index 758111a0916a..2b5d3511e4ae 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabricSchedules.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ServiceFabricSchedules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ServiceFabricSchedules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Schedule, ServiceFabricSchedulesListNextOptionalParams, @@ -30,7 +30,7 @@ import { ServiceFabricSchedulesUpdateResponse, ServiceFabricSchedulesExecuteOptionalParams, ServiceFabricSchedulesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ServiceFabricSchedules operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts index 8487b86d5234..3e541f9ac816 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceFabrics.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ServiceFabrics } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ServiceFabrics } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { ServiceFabric, ServiceFabricsListNextOptionalParams, @@ -33,7 +33,7 @@ import { ServiceFabricsStartOptionalParams, ServiceFabricsStopOptionalParams, ServiceFabricsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ServiceFabrics operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts index d1b1874b8446..c5f0faf161a1 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/serviceRunners.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ServiceRunners } from "../operationsInterfaces"; +import { ServiceRunners } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { ServiceRunnersGetOptionalParams, ServiceRunnersGetResponse, @@ -18,7 +18,7 @@ import { ServiceRunnersCreateOrUpdateOptionalParams, ServiceRunnersCreateOrUpdateResponse, ServiceRunnersDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /** Class containing ServiceRunners operations. */ export class ServiceRunnersImpl implements ServiceRunners { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts index 6392d314551b..aae9fe2ca58e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/users.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Users } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Users } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { User, UsersListNextOptionalParams, @@ -29,7 +29,7 @@ import { UsersUpdateOptionalParams, UsersUpdateResponse, UsersListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Users operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts index dcf0d90415db..26727cea8aea 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachineSchedules.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { VirtualMachineSchedules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { VirtualMachineSchedules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { Schedule, VirtualMachineSchedulesListNextOptionalParams, @@ -30,7 +30,7 @@ import { VirtualMachineSchedulesUpdateResponse, VirtualMachineSchedulesExecuteOptionalParams, VirtualMachineSchedulesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing VirtualMachineSchedules operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts index 3c5f067abdcd..6c559d6e6a43 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualMachines.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { VirtualMachines } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { VirtualMachines } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { LabVirtualMachine, VirtualMachinesListNextOptionalParams, @@ -48,7 +48,7 @@ import { VirtualMachinesTransferDisksOptionalParams, VirtualMachinesUnClaimOptionalParams, VirtualMachinesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing VirtualMachines operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts index 9c8fe42e09b1..07acbe294bce 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operations/virtualNetworks.ts @@ -7,14 +7,14 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { VirtualNetworks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { VirtualNetworks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { DevTestLabsClient } from "../devTestLabsClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { DevTestLabsClient } from "../devTestLabsClient.js"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { LroImpl } from "../lroImpl.js"; import { VirtualNetwork, VirtualNetworksListNextOptionalParams, @@ -29,7 +29,7 @@ import { VirtualNetworksUpdateOptionalParams, VirtualNetworksUpdateResponse, VirtualNetworksListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing VirtualNetworks operations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/armTemplates.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/armTemplates.ts index 92ecdc733d1d..6e0d49cd131d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/armTemplates.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/armTemplates.ts @@ -12,7 +12,7 @@ import { ArmTemplatesListOptionalParams, ArmTemplatesGetOptionalParams, ArmTemplatesGetResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ArmTemplates. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifactSources.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifactSources.ts index f5f5b6d61a9d..054394046281 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifactSources.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifactSources.ts @@ -18,7 +18,7 @@ import { ArtifactSourceFragment, ArtifactSourcesUpdateOptionalParams, ArtifactSourcesUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ArtifactSources. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifacts.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifacts.ts index 74f6d40a985c..4b8881fdbfcf 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifacts.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/artifacts.ts @@ -15,7 +15,7 @@ import { GenerateArmTemplateRequest, ArtifactsGenerateArmTemplateOptionalParams, ArtifactsGenerateArmTemplateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Artifacts. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/costs.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/costs.ts index dab7bda435a6..4ab82d738dfd 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/costs.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/costs.ts @@ -12,7 +12,7 @@ import { LabCost, CostsCreateOrUpdateOptionalParams, CostsCreateOrUpdateResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a Costs. */ export interface Costs { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/customImages.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/customImages.ts index 7dce830603d6..190c7f61d30e 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/customImages.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/customImages.ts @@ -19,7 +19,7 @@ import { CustomImageFragment, CustomImagesUpdateOptionalParams, CustomImagesUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CustomImages. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/disks.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/disks.ts index 89a515ab236b..fec017fe891c 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/disks.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/disks.ts @@ -23,7 +23,7 @@ import { DisksAttachOptionalParams, DetachDiskProperties, DisksDetachOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Disks. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/environments.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/environments.ts index 06ca898114b6..8d3481a5e265 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/environments.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/environments.ts @@ -19,7 +19,7 @@ import { DtlEnvironmentFragment, EnvironmentsUpdateOptionalParams, EnvironmentsUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Environments. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/formulas.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/formulas.ts index d81b022f8a56..d9441f87f62f 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/formulas.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/formulas.ts @@ -19,7 +19,7 @@ import { FormulaFragment, FormulasUpdateOptionalParams, FormulasUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Formulas. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/galleryImages.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/galleryImages.ts index 3142c6295d23..fe76035519a5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/galleryImages.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/galleryImages.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { GalleryImage, GalleryImagesListOptionalParams } from "../models"; +import { GalleryImage, GalleryImagesListOptionalParams } from "../models/index.js"; /// /** Interface representing a GalleryImages. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/globalSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/globalSchedules.ts index 881cbeabb76c..55d489efeeff 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/globalSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/globalSchedules.ts @@ -23,7 +23,7 @@ import { GlobalSchedulesExecuteOptionalParams, RetargetScheduleProperties, GlobalSchedulesRetargetOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a GlobalSchedules. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/index.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/index.ts index ed76356e15ec..e260043cc653 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/index.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/index.ts @@ -6,28 +6,28 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./providerOperations"; -export * from "./labs"; -export * from "./operations"; -export * from "./globalSchedules"; -export * from "./artifactSources"; -export * from "./armTemplates"; -export * from "./artifacts"; -export * from "./costs"; -export * from "./customImages"; -export * from "./formulas"; -export * from "./galleryImages"; -export * from "./notificationChannels"; -export * from "./policySets"; -export * from "./policies"; -export * from "./schedules"; -export * from "./serviceRunners"; -export * from "./users"; -export * from "./disks"; -export * from "./environments"; -export * from "./secrets"; -export * from "./serviceFabrics"; -export * from "./serviceFabricSchedules"; -export * from "./virtualMachines"; -export * from "./virtualMachineSchedules"; -export * from "./virtualNetworks"; +export * from "./providerOperations.js"; +export * from "./labs.js"; +export * from "./operations.js"; +export * from "./globalSchedules.js"; +export * from "./artifactSources.js"; +export * from "./armTemplates.js"; +export * from "./artifacts.js"; +export * from "./costs.js"; +export * from "./customImages.js"; +export * from "./formulas.js"; +export * from "./galleryImages.js"; +export * from "./notificationChannels.js"; +export * from "./policySets.js"; +export * from "./policies.js"; +export * from "./schedules.js"; +export * from "./serviceRunners.js"; +export * from "./users.js"; +export * from "./disks.js"; +export * from "./environments.js"; +export * from "./secrets.js"; +export * from "./serviceFabrics.js"; +export * from "./serviceFabricSchedules.js"; +export * from "./virtualMachines.js"; +export * from "./virtualMachineSchedules.js"; +export * from "./virtualNetworks.js"; diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/labs.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/labs.ts index c70b88a30aea..ee41e5cb7943 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/labs.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/labs.ts @@ -32,7 +32,7 @@ import { LabsGenerateUploadUriResponse, ImportLabVirtualMachineRequest, LabsImportVirtualMachineOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Labs. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/notificationChannels.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/notificationChannels.ts index d2773a4b643b..fd940d67743b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/notificationChannels.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/notificationChannels.ts @@ -20,7 +20,7 @@ import { NotificationChannelsUpdateResponse, NotifyParameters, NotificationChannelsNotifyOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a NotificationChannels. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/operations.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/operations.ts index 73260fa8ecec..edfd07eca7b2 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/operations.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/operations.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { OperationsGetOptionalParams, OperationsGetResponse } from "../models"; +import { OperationsGetOptionalParams, OperationsGetResponse } from "../models/index.js"; /** Interface representing a Operations. */ export interface Operations { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policies.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policies.ts index b2a8f951cc8d..83468b94cf57 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policies.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policies.ts @@ -18,7 +18,7 @@ import { PolicyFragment, PoliciesUpdateOptionalParams, PoliciesUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Policies. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policySets.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policySets.ts index 462c1c6b83dd..31bdf283848b 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policySets.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/policySets.ts @@ -10,7 +10,7 @@ import { EvaluatePoliciesRequest, PolicySetsEvaluatePoliciesOptionalParams, PolicySetsEvaluatePoliciesResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a PolicySets. */ export interface PolicySets { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/providerOperations.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/providerOperations.ts index 4bb22430293c..41ff0c2e05f3 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/providerOperations.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/providerOperations.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { OperationMetadata, ProviderOperationsListOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ProviderOperations. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/schedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/schedules.ts index d014aaa2d61f..343b441674ef 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/schedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/schedules.ts @@ -21,7 +21,7 @@ import { SchedulesUpdateOptionalParams, SchedulesUpdateResponse, SchedulesExecuteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Schedules. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/secrets.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/secrets.ts index d5a77e7a531e..78d9239041fb 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/secrets.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/secrets.ts @@ -19,7 +19,7 @@ import { SecretFragment, SecretsUpdateOptionalParams, SecretsUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Secrets. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabricSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabricSchedules.ts index 0401264b3760..85d19699b41d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabricSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabricSchedules.ts @@ -20,7 +20,7 @@ import { ServiceFabricSchedulesUpdateOptionalParams, ServiceFabricSchedulesUpdateResponse, ServiceFabricSchedulesExecuteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ServiceFabricSchedules. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabrics.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabrics.ts index 1ee6ffdc9c1e..608c49498a02 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabrics.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceFabrics.ts @@ -23,7 +23,7 @@ import { ServiceFabricsListApplicableSchedulesResponse, ServiceFabricsStartOptionalParams, ServiceFabricsStopOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ServiceFabrics. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceRunners.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceRunners.ts index dd50fac2b9e7..02d355e735d5 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceRunners.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/serviceRunners.ts @@ -13,7 +13,7 @@ import { ServiceRunnersCreateOrUpdateOptionalParams, ServiceRunnersCreateOrUpdateResponse, ServiceRunnersDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /** Interface representing a ServiceRunners. */ export interface ServiceRunners { diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/users.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/users.ts index eb56b674d528..65998961a3df 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/users.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/users.ts @@ -19,7 +19,7 @@ import { UserFragment, UsersUpdateOptionalParams, UsersUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Users. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachineSchedules.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachineSchedules.ts index 60a11b9ede54..6914798e7d44 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachineSchedules.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachineSchedules.ts @@ -20,7 +20,7 @@ import { VirtualMachineSchedulesUpdateOptionalParams, VirtualMachineSchedulesUpdateResponse, VirtualMachineSchedulesExecuteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a VirtualMachineSchedules. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachines.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachines.ts index 9acd7897af4b..6a7fd52ec6e7 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualMachines.ts @@ -38,7 +38,7 @@ import { VirtualMachinesStopOptionalParams, VirtualMachinesTransferDisksOptionalParams, VirtualMachinesUnClaimOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a VirtualMachines. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualNetworks.ts b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualNetworks.ts index ef1e193405bc..b51a4d739589 100644 --- a/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualNetworks.ts +++ b/sdk/devtestlabs/arm-devtestlabs/src/operationsInterfaces/virtualNetworks.ts @@ -19,7 +19,7 @@ import { VirtualNetworkFragment, VirtualNetworksUpdateOptionalParams, VirtualNetworksUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a VirtualNetworks. */ diff --git a/sdk/devtestlabs/arm-devtestlabs/test/devtestlabs_examples.ts b/sdk/devtestlabs/arm-devtestlabs/test/devtestlabs_examples.spec.ts similarity index 88% rename from sdk/devtestlabs/arm-devtestlabs/test/devtestlabs_examples.ts rename to sdk/devtestlabs/arm-devtestlabs/test/devtestlabs_examples.spec.ts index 139ecb5fdae2..7b4f9785fc7d 100644 --- a/sdk/devtestlabs/arm-devtestlabs/test/devtestlabs_examples.ts +++ b/sdk/devtestlabs/arm-devtestlabs/test/devtestlabs_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 { DevTestLabsClient } from "../src/devTestLabsClient"; +import { DevTestLabsClient } from "../src/devTestLabsClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -46,8 +44,8 @@ describe("DevTestLabs test", () => { let name: string; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used @@ -58,7 +56,7 @@ describe("DevTestLabs test", () => { name = "mylabsxxx"; }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); @@ -90,8 +88,8 @@ describe("DevTestLabs test", () => { }); it("labs delete test", async function () { - const res = await client.labs.beginDeleteAndWait(resourceGroup, name, testPollingOptions); const resArray = new Array(); + await client.labs.beginDeleteAndWait(resourceGroup, name); for await (let item of client.labs.listByResourceGroup(resourceGroup)) { resArray.push(item); } diff --git a/sdk/devtestlabs/arm-devtestlabs/tsconfig.browser.config.json b/sdk/devtestlabs/arm-devtestlabs/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/devtestlabs/arm-devtestlabs/tsconfig.json b/sdk/devtestlabs/arm-devtestlabs/tsconfig.json index dfb857b4542c..19ceb382b521 100644 --- a/sdk/devtestlabs/arm-devtestlabs/tsconfig.json +++ b/sdk/devtestlabs/arm-devtestlabs/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-devtestlabs": [ - "./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/devtestlabs/arm-devtestlabs/tsconfig.samples.json b/sdk/devtestlabs/arm-devtestlabs/tsconfig.samples.json new file mode 100644 index 000000000000..5195bd0060a3 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-devtestlabs": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/devtestlabs/arm-devtestlabs/tsconfig.src.json b/sdk/devtestlabs/arm-devtestlabs/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/devtestlabs/arm-devtestlabs/tsconfig.test.json b/sdk/devtestlabs/arm-devtestlabs/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/devtestlabs/arm-devtestlabs/vitest.browser.config.ts b/sdk/devtestlabs/arm-devtestlabs/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/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/devtestlabs/arm-devtestlabs/vitest.config.ts b/sdk/devtestlabs/arm-devtestlabs/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/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/devtestlabs/arm-devtestlabs/vitest.esm.config.ts b/sdk/devtestlabs/arm-devtestlabs/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/devtestlabs/arm-devtestlabs/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/digitaltwins/arm-digitaltwins/api-extractor.json b/sdk/digitaltwins/arm-digitaltwins/api-extractor.json index 02dd3e1aedb3..70005877f704 100644 --- a/sdk/digitaltwins/arm-digitaltwins/api-extractor.json +++ b/sdk/digitaltwins/arm-digitaltwins/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-digitaltwins.d.ts" + "publicTrimmedFilePath": "dist/arm-digitaltwins.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/digitaltwins/arm-digitaltwins/package.json b/sdk/digitaltwins/arm-digitaltwins/package.json index 43a9d363830d..d766e64cdd94 100644 --- a/sdk/digitaltwins/arm-digitaltwins/package.json +++ b/sdk/digitaltwins/arm-digitaltwins/package.json @@ -24,22 +24,22 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-digitaltwins.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-digitaltwins?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/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCheckNameAvailabilitySample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCheckNameAvailabilitySample.ts index 2ebdbd253757..6eed936fddf5 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCheckNameAvailabilitySample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCheckNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Check if a DigitalTwinsInstance name is available. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Check if a DigitalTwinsInstance name is available. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsCheckNameAvailability_example.json */ -async function checkNameAvailability() { +async function checkNameAvailability(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -44,7 +42,7 @@ async function checkNameAvailability() { console.log(result); } -async function main() { +async function main(): Promise { checkNameAvailability(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCreateOrUpdateSample.ts index 7900c41905a0..b387adc2339d 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPut_example.json */ -async function putADigitalTwinsInstanceResource() { +async function putADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -50,7 +48,7 @@ async function putADigitalTwinsInstanceResource() { * @summary Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPut_WithIdentity_example.json */ -async function putADigitalTwinsInstanceResourceWithIdentity() { +async function putADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -85,7 +83,7 @@ async function putADigitalTwinsInstanceResourceWithIdentity() { * @summary Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json */ -async function putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty() { +async function putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -109,7 +107,7 @@ async function putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty() console.log(result); } -async function main() { +async function main(): Promise { putADigitalTwinsInstanceResource(); putADigitalTwinsInstanceResourceWithIdentity(); putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsDeleteSample.ts index 500cb1aab0d6..a239d4e98c2f 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a DigitalTwinsInstance. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsDelete_example.json */ -async function deleteADigitalTwinsInstanceResource() { +async function deleteADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -45,7 +43,7 @@ async function deleteADigitalTwinsInstanceResource() { * @summary Delete a DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsDelete_WithIdentity_example.json */ -async function deleteADigitalTwinsInstanceResourceWithIdentity() { +async function deleteADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -64,7 +62,7 @@ async function deleteADigitalTwinsInstanceResourceWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { deleteADigitalTwinsInstanceResource(); deleteADigitalTwinsInstanceResourceWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.ts index 6f017a8e946b..22dafded9447 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update DigitalTwinsInstance endpoint. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointPut_example.json */ -async function putADigitalTwinsEndpointResource() { +async function putADigitalTwinsEndpointResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -61,7 +59,7 @@ async function putADigitalTwinsEndpointResource() { * @summary Create or update DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json */ -async function putADigitalTwinsEndpointResourceWithIdentity() { +async function putADigitalTwinsEndpointResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -97,7 +95,7 @@ async function putADigitalTwinsEndpointResourceWithIdentity() { * @summary Create or update DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json */ -async function putADigitalTwinsEndpointResourceWithUserAssignedIdentity() { +async function putADigitalTwinsEndpointResourceWithUserAssignedIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -132,7 +130,7 @@ async function putADigitalTwinsEndpointResourceWithUserAssignedIdentity() { console.log(result); } -async function main() { +async function main(): Promise { putADigitalTwinsEndpointResource(); putADigitalTwinsEndpointResourceWithIdentity(); putADigitalTwinsEndpointResourceWithUserAssignedIdentity(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointDeleteSample.ts index ce2bd9575447..2552e4b83e59 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a DigitalTwinsInstance endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointDelete_example.json */ -async function deleteADigitalTwinsInstanceEndpoint() { +async function deleteADigitalTwinsInstanceEndpoint(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -47,7 +45,7 @@ async function deleteADigitalTwinsInstanceEndpoint() { * @summary Delete a DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json */ -async function deleteADigitalTwinsInstanceEndpointWithIdentity() { +async function deleteADigitalTwinsInstanceEndpointWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -68,7 +66,7 @@ async function deleteADigitalTwinsInstanceEndpointWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { deleteADigitalTwinsInstanceEndpoint(); deleteADigitalTwinsInstanceEndpointWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointGetSample.ts index 2a35af571297..bd9bf376eb59 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get DigitalTwinsInstances Endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get DigitalTwinsInstances Endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointGet_example.json */ -async function getADigitalTwinsInstanceEndpoint() { +async function getADigitalTwinsInstanceEndpoint(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -47,7 +45,7 @@ async function getADigitalTwinsInstanceEndpoint() { * @summary Get DigitalTwinsInstances Endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json */ -async function getADigitalTwinsInstanceEndpointWithIdentity() { +async function getADigitalTwinsInstanceEndpointWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -68,7 +66,7 @@ async function getADigitalTwinsInstanceEndpointWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { getADigitalTwinsInstanceEndpoint(); getADigitalTwinsInstanceEndpointWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointListSample.ts index 2462d81989c7..28111fe54000 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsEndpointListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get DigitalTwinsInstance Endpoints. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get DigitalTwinsInstance Endpoints. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointsGet_example.json */ -async function getADigitalTwinsInstanceEndpoints() { +async function getADigitalTwinsInstanceEndpoints(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -48,7 +46,7 @@ async function getADigitalTwinsInstanceEndpoints() { * @summary Get DigitalTwinsInstance Endpoints. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json */ -async function getADigitalTwinsInstanceEndpointsWithIdentity() { +async function getADigitalTwinsInstanceEndpointsWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -70,7 +68,7 @@ async function getADigitalTwinsInstanceEndpointsWithIdentity() { console.log(resArray); } -async function main() { +async function main(): Promise { getADigitalTwinsInstanceEndpoints(); getADigitalTwinsInstanceEndpointsWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsGetSample.ts index d25fa0f1da2d..9562569c5e4a 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get DigitalTwinsInstances resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get DigitalTwinsInstances resource. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsGet_example.json */ -async function getADigitalTwinsInstanceResource() { +async function getADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -42,7 +40,7 @@ async function getADigitalTwinsInstanceResource() { * @summary Get DigitalTwinsInstances resource. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json */ -async function getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection() { +async function getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -64,7 +62,7 @@ async function getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection() * @summary Get DigitalTwinsInstances resource. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsGet_WithIdentity_example.json */ -async function getADigitalTwinsInstanceResourceWithIdentity() { +async function getADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -80,7 +78,7 @@ async function getADigitalTwinsInstanceResourceWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { getADigitalTwinsInstanceResource(); getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection(); getADigitalTwinsInstanceResourceWithIdentity(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListByResourceGroupSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListByResourceGroupSample.ts index f6a2fdc7d8b5..3a81c861bb60 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListByResourceGroupSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all the DigitalTwinsInstances in a resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get all the DigitalTwinsInstances in a resource group. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsListByResourceGroup_example.json */ -async function getDigitalTwinsInstanceResourcesByResourceGroup() { +async function getDigitalTwinsInstanceResourcesByResourceGroup(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -40,7 +38,7 @@ async function getDigitalTwinsInstanceResourcesByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { getDigitalTwinsInstanceResourcesByResourceGroup(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListSample.ts index ddd2509c56ba..3fb42ee1b2ef 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all the DigitalTwinsInstances in a subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get all the DigitalTwinsInstances in a subscription. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsList_example.json */ -async function getDigitalTwinsInstanceResourcesBySubscription() { +async function getDigitalTwinsInstanceResourcesBySubscription(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -36,7 +34,7 @@ async function getDigitalTwinsInstanceResourcesBySubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { getDigitalTwinsInstanceResourcesBySubscription(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsUpdateSample.ts index e56fc0d94087..8c3bb5a8df2a 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/digitalTwinsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update metadata of DigitalTwinsInstance. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update metadata of DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPatch_example.json */ -async function patchADigitalTwinsInstanceResource() { +async function patchADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -52,7 +50,7 @@ async function patchADigitalTwinsInstanceResource() { * @summary Update metadata of DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPatch_WithIdentity_example.json */ -async function patchADigitalTwinsInstanceResourceWithIdentity() { +async function patchADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -81,7 +79,7 @@ async function patchADigitalTwinsInstanceResourceWithIdentity() { * @summary Update metadata of DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json */ -async function patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty() { +async function patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -104,7 +102,7 @@ async function patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty console.log(result); } -async function main() { +async function main(): Promise { patchADigitalTwinsInstanceResource(); patchADigitalTwinsInstanceResourceWithIdentity(); patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/operationsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/operationsListSample.ts index c4d650713d08..538f509ea24a 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/operationsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all of the available DigitalTwins service REST API operations. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all of the available DigitalTwins service REST API operations. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsOperationsList_example.json */ -async function getAvailableOperations() { +async function getAvailableOperations(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function getAvailableOperations() { console.log(resArray); } -async function main() { +async function main(): Promise { getAvailableOperations(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index 97f9a0f86767..4d80706f16e7 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update the status of a private endpoint connection with the given name. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update the status of a private endpoint connection with the given name. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionPut_example.json */ -async function updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName() { +async function updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -53,7 +51,7 @@ async function updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName() { console.log(result); } -async function main() { +async function main(): Promise { updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsDeleteSample.ts index ea82b402355c..3ddeb7c2e9e6 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete private endpoint connection with the specified name. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete private endpoint connection with the specified name. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionDelete_example.json */ -async function deletePrivateEndpointConnectionWithTheSpecifiedName() { +async function deletePrivateEndpointConnectionWithTheSpecifiedName(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function deletePrivateEndpointConnectionWithTheSpecifiedName() { console.log(result); } -async function main() { +async function main(): Promise { deletePrivateEndpointConnectionWithTheSpecifiedName(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsGetSample.ts index 196ae702823f..9fe692e90097 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get private endpoint connection properties for the given private endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get private endpoint connection properties for the given private endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionByConnectionName_example.json */ -async function getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint() { +async function getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint( console.log(result); } -async function main() { +async function main(): Promise { getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsListSample.ts index 1a17ebdb6d8a..b7038af0259c 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private endpoint connection properties. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List private endpoint connection properties. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionsList_example.json */ -async function listPrivateEndpointConnectionProperties() { +async function listPrivateEndpointConnectionProperties(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -39,7 +37,7 @@ async function listPrivateEndpointConnectionProperties() { console.log(result); } -async function main() { +async function main(): Promise { listPrivateEndpointConnectionProperties(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesGetSample.ts index d33986b2b026..1fe501375270 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private link resource for the given Digital Twin. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the specified private link resource for the given Digital Twin. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateLinkResourcesByGroupId_example.json */ -async function getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin() { +async function getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin() { console.log(result); } -async function main() { +async function main(): Promise { getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesListSample.ts index 33a798080959..10d211e853ce 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/privateLinkResourcesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private link resources for given Digital Twin. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List private link resources for given Digital Twin. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateLinkResourcesList_example.json */ -async function listPrivateLinkResourcesForGivenDigitalTwin() { +async function listPrivateLinkResourcesForGivenDigitalTwin(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -39,7 +37,7 @@ async function listPrivateLinkResourcesForGivenDigitalTwin() { console.log(result); } -async function main() { +async function main(): Promise { listPrivateLinkResourcesForGivenDigitalTwin(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts index 8a5eefdbfd02..2c6bdb031b95 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a time series database connection. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update a time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json */ -async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstanceWithUserAssignedIdentity() { +async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstanceWithUserAssignedIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -70,7 +68,7 @@ async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInsta * @summary Create or update a time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsPut_example.json */ -async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstance() { +async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -110,7 +108,7 @@ async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInsta console.log(result); } -async function main() { +async function main(): Promise { createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstanceWithUserAssignedIdentity(); createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.ts index c16802834aca..f00fc52fa74f 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a time series database connection. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json */ -async function deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance() { +async function deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance() { console.log(result); } -async function main() { +async function main(): Promise { deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsGetSample.ts index 31ba3e43cb9b..371c6050ad0d 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the description of an existing time series database connection. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the description of an existing time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsGet_example.json */ -async function getTimeSeriesDatabaseConnectionForADigitalTwinsInstance() { +async function getTimeSeriesDatabaseConnectionForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function getTimeSeriesDatabaseConnectionForADigitalTwinsInstance() { console.log(result); } -async function main() { +async function main(): Promise { getTimeSeriesDatabaseConnectionForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsListSample.ts index 8f15e3589ef5..0431a1b67697 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples-dev/timeSeriesDatabaseConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all existing time series database connections for this DigitalTwins instance. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get all existing time series database connections for this DigitalTwins instance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsList_example.json */ -async function listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance() { +async function listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -42,7 +40,7 @@ async function listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance() { console.log(resArray); } -async function main() { +async function main(): Promise { listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCheckNameAvailabilitySample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCheckNameAvailabilitySample.ts index 2ebdbd253757..6eed936fddf5 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCheckNameAvailabilitySample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCheckNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Check if a DigitalTwinsInstance name is available. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Check if a DigitalTwinsInstance name is available. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsCheckNameAvailability_example.json */ -async function checkNameAvailability() { +async function checkNameAvailability(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -44,7 +42,7 @@ async function checkNameAvailability() { console.log(result); } -async function main() { +async function main(): Promise { checkNameAvailability(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCreateOrUpdateSample.ts index 7900c41905a0..b387adc2339d 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPut_example.json */ -async function putADigitalTwinsInstanceResource() { +async function putADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -50,7 +48,7 @@ async function putADigitalTwinsInstanceResource() { * @summary Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPut_WithIdentity_example.json */ -async function putADigitalTwinsInstanceResourceWithIdentity() { +async function putADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -85,7 +83,7 @@ async function putADigitalTwinsInstanceResourceWithIdentity() { * @summary Create or update the metadata of a DigitalTwinsInstance. The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPut_WithPublicNetworkAccess.json */ -async function putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty() { +async function putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -109,7 +107,7 @@ async function putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty() console.log(result); } -async function main() { +async function main(): Promise { putADigitalTwinsInstanceResource(); putADigitalTwinsInstanceResourceWithIdentity(); putADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsDeleteSample.ts index 500cb1aab0d6..a239d4e98c2f 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a DigitalTwinsInstance. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsDelete_example.json */ -async function deleteADigitalTwinsInstanceResource() { +async function deleteADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -45,7 +43,7 @@ async function deleteADigitalTwinsInstanceResource() { * @summary Delete a DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsDelete_WithIdentity_example.json */ -async function deleteADigitalTwinsInstanceResourceWithIdentity() { +async function deleteADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -64,7 +62,7 @@ async function deleteADigitalTwinsInstanceResourceWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { deleteADigitalTwinsInstanceResource(); deleteADigitalTwinsInstanceResourceWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointCreateOrUpdateSample.ts index 6f017a8e946b..22dafded9447 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update DigitalTwinsInstance endpoint. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointPut_example.json */ -async function putADigitalTwinsEndpointResource() { +async function putADigitalTwinsEndpointResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -61,7 +59,7 @@ async function putADigitalTwinsEndpointResource() { * @summary Create or update DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointPut_WithIdentity_example.json */ -async function putADigitalTwinsEndpointResourceWithIdentity() { +async function putADigitalTwinsEndpointResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -97,7 +95,7 @@ async function putADigitalTwinsEndpointResourceWithIdentity() { * @summary Create or update DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointPut_WithUserIdentity_example.json */ -async function putADigitalTwinsEndpointResourceWithUserAssignedIdentity() { +async function putADigitalTwinsEndpointResourceWithUserAssignedIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -132,7 +130,7 @@ async function putADigitalTwinsEndpointResourceWithUserAssignedIdentity() { console.log(result); } -async function main() { +async function main(): Promise { putADigitalTwinsEndpointResource(); putADigitalTwinsEndpointResourceWithIdentity(); putADigitalTwinsEndpointResourceWithUserAssignedIdentity(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointDeleteSample.ts index ce2bd9575447..2552e4b83e59 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a DigitalTwinsInstance endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointDelete_example.json */ -async function deleteADigitalTwinsInstanceEndpoint() { +async function deleteADigitalTwinsInstanceEndpoint(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -47,7 +45,7 @@ async function deleteADigitalTwinsInstanceEndpoint() { * @summary Delete a DigitalTwinsInstance endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointDelete_WithIdentity_example.json */ -async function deleteADigitalTwinsInstanceEndpointWithIdentity() { +async function deleteADigitalTwinsInstanceEndpointWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -68,7 +66,7 @@ async function deleteADigitalTwinsInstanceEndpointWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { deleteADigitalTwinsInstanceEndpoint(); deleteADigitalTwinsInstanceEndpointWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointGetSample.ts index 2a35af571297..bd9bf376eb59 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get DigitalTwinsInstances Endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get DigitalTwinsInstances Endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointGet_example.json */ -async function getADigitalTwinsInstanceEndpoint() { +async function getADigitalTwinsInstanceEndpoint(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -47,7 +45,7 @@ async function getADigitalTwinsInstanceEndpoint() { * @summary Get DigitalTwinsInstances Endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointGet_WithIdentity_example.json */ -async function getADigitalTwinsInstanceEndpointWithIdentity() { +async function getADigitalTwinsInstanceEndpointWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -68,7 +66,7 @@ async function getADigitalTwinsInstanceEndpointWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { getADigitalTwinsInstanceEndpoint(); getADigitalTwinsInstanceEndpointWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointListSample.ts index 2462d81989c7..28111fe54000 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsEndpointListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get DigitalTwinsInstance Endpoints. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get DigitalTwinsInstance Endpoints. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointsGet_example.json */ -async function getADigitalTwinsInstanceEndpoints() { +async function getADigitalTwinsInstanceEndpoints(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -48,7 +46,7 @@ async function getADigitalTwinsInstanceEndpoints() { * @summary Get DigitalTwinsInstance Endpoints. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsEndpointsGet_WithIdentity_example.json */ -async function getADigitalTwinsInstanceEndpointsWithIdentity() { +async function getADigitalTwinsInstanceEndpointsWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -70,7 +68,7 @@ async function getADigitalTwinsInstanceEndpointsWithIdentity() { console.log(resArray); } -async function main() { +async function main(): Promise { getADigitalTwinsInstanceEndpoints(); getADigitalTwinsInstanceEndpointsWithIdentity(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsGetSample.ts index d25fa0f1da2d..9562569c5e4a 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get DigitalTwinsInstances resource. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get DigitalTwinsInstances resource. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsGet_example.json */ -async function getADigitalTwinsInstanceResource() { +async function getADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -42,7 +40,7 @@ async function getADigitalTwinsInstanceResource() { * @summary Get DigitalTwinsInstances resource. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsGet_WithPrivateEndpointConnection_example.json */ -async function getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection() { +async function getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -64,7 +62,7 @@ async function getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection() * @summary Get DigitalTwinsInstances resource. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsGet_WithIdentity_example.json */ -async function getADigitalTwinsInstanceResourceWithIdentity() { +async function getADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -80,7 +78,7 @@ async function getADigitalTwinsInstanceResourceWithIdentity() { console.log(result); } -async function main() { +async function main(): Promise { getADigitalTwinsInstanceResource(); getADigitalTwinsInstanceResourceWithAPrivateEndpointConnection(); getADigitalTwinsInstanceResourceWithIdentity(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListByResourceGroupSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListByResourceGroupSample.ts index f6a2fdc7d8b5..3a81c861bb60 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListByResourceGroupSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all the DigitalTwinsInstances in a resource group. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get all the DigitalTwinsInstances in a resource group. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsListByResourceGroup_example.json */ -async function getDigitalTwinsInstanceResourcesByResourceGroup() { +async function getDigitalTwinsInstanceResourcesByResourceGroup(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -40,7 +38,7 @@ async function getDigitalTwinsInstanceResourcesByResourceGroup() { console.log(resArray); } -async function main() { +async function main(): Promise { getDigitalTwinsInstanceResourcesByResourceGroup(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListSample.ts index ddd2509c56ba..3fb42ee1b2ef 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all the DigitalTwinsInstances in a subscription. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get all the DigitalTwinsInstances in a subscription. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsList_example.json */ -async function getDigitalTwinsInstanceResourcesBySubscription() { +async function getDigitalTwinsInstanceResourcesBySubscription(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -36,7 +34,7 @@ async function getDigitalTwinsInstanceResourcesBySubscription() { console.log(resArray); } -async function main() { +async function main(): Promise { getDigitalTwinsInstanceResourcesBySubscription(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsUpdateSample.ts index e56fc0d94087..8c3bb5a8df2a 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/digitalTwinsUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update metadata of DigitalTwinsInstance. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update metadata of DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPatch_example.json */ -async function patchADigitalTwinsInstanceResource() { +async function patchADigitalTwinsInstanceResource(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -52,7 +50,7 @@ async function patchADigitalTwinsInstanceResource() { * @summary Update metadata of DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPatch_WithIdentity_example.json */ -async function patchADigitalTwinsInstanceResourceWithIdentity() { +async function patchADigitalTwinsInstanceResourceWithIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -81,7 +79,7 @@ async function patchADigitalTwinsInstanceResourceWithIdentity() { * @summary Update metadata of DigitalTwinsInstance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsPatch_WithPublicNetworkAccess.json */ -async function patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty() { +async function patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -104,7 +102,7 @@ async function patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty console.log(result); } -async function main() { +async function main(): Promise { patchADigitalTwinsInstanceResource(); patchADigitalTwinsInstanceResourceWithIdentity(); patchADigitalTwinsInstanceResourceWithPublicNetworkAccessProperty(); diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/operationsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/operationsListSample.ts index c4d650713d08..538f509ea24a 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/operationsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all of the available DigitalTwins service REST API operations. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Lists all of the available DigitalTwins service REST API operations. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/DigitalTwinsOperationsList_example.json */ -async function getAvailableOperations() { +async function getAvailableOperations(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; @@ -36,7 +34,7 @@ async function getAvailableOperations() { console.log(resArray); } -async function main() { +async function main(): Promise { getAvailableOperations(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index 97f9a0f86767..4d80706f16e7 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update the status of a private endpoint connection with the given name. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Update the status of a private endpoint connection with the given name. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionPut_example.json */ -async function updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName() { +async function updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -53,7 +51,7 @@ async function updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName() { console.log(result); } -async function main() { +async function main(): Promise { updateTheStatusOfAPrivateEndpointConnectionWithTheGivenName(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts index ea82b402355c..3ddeb7c2e9e6 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete private endpoint connection with the specified name. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete private endpoint connection with the specified name. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionDelete_example.json */ -async function deletePrivateEndpointConnectionWithTheSpecifiedName() { +async function deletePrivateEndpointConnectionWithTheSpecifiedName(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function deletePrivateEndpointConnectionWithTheSpecifiedName() { console.log(result); } -async function main() { +async function main(): Promise { deletePrivateEndpointConnectionWithTheSpecifiedName(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts index 196ae702823f..9fe692e90097 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get private endpoint connection properties for the given private endpoint. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get private endpoint connection properties for the given private endpoint. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionByConnectionName_example.json */ -async function getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint() { +async function getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint( console.log(result); } -async function main() { +async function main(): Promise { getPrivateEndpointConnectionPropertiesForTheGivenPrivateEndpoint(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts index 1a17ebdb6d8a..b7038af0259c 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private endpoint connection properties. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List private endpoint connection properties. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateEndpointConnectionsList_example.json */ -async function listPrivateEndpointConnectionProperties() { +async function listPrivateEndpointConnectionProperties(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -39,7 +37,7 @@ async function listPrivateEndpointConnectionProperties() { console.log(result); } -async function main() { +async function main(): Promise { listPrivateEndpointConnectionProperties(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesGetSample.ts index d33986b2b026..1fe501375270 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the specified private link resource for the given Digital Twin. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the specified private link resource for the given Digital Twin. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateLinkResourcesByGroupId_example.json */ -async function getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin() { +async function getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin() { console.log(result); } -async function main() { +async function main(): Promise { getTheSpecifiedPrivateLinkResourceForTheGivenDigitalTwin(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesListSample.ts index 33a798080959..10d211e853ce 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/privateLinkResourcesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List private link resources for given Digital Twin. @@ -20,7 +18,7 @@ dotenv.config(); * @summary List private link resources for given Digital Twin. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/PrivateLinkResourcesList_example.json */ -async function listPrivateLinkResourcesForGivenDigitalTwin() { +async function listPrivateLinkResourcesForGivenDigitalTwin(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -39,7 +37,7 @@ async function listPrivateLinkResourcesForGivenDigitalTwin() { console.log(result); } -async function main() { +async function main(): Promise { listPrivateLinkResourcesForGivenDigitalTwin(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts index 8a5eefdbfd02..2c6bdb031b95 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a time series database connection. @@ -23,7 +21,7 @@ dotenv.config(); * @summary Create or update a time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsPut_WithUserIdentity_example.json */ -async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstanceWithUserAssignedIdentity() { +async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstanceWithUserAssignedIdentity(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -70,7 +68,7 @@ async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInsta * @summary Create or update a time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsPut_example.json */ -async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstance() { +async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -110,7 +108,7 @@ async function createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInsta console.log(result); } -async function main() { +async function main(): Promise { createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstanceWithUserAssignedIdentity(); createOrReplaceATimeSeriesDatabaseConnectionForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsDeleteSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsDeleteSample.ts index c16802834aca..f00fc52fa74f 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsDeleteSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a time series database connection. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Delete a time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsDelete_example.json */ -async function deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance() { +async function deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance() { console.log(result); } -async function main() { +async function main(): Promise { deleteATimeSeriesDatabaseConnectionForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsGetSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsGetSample.ts index 31ba3e43cb9b..371c6050ad0d 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsGetSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the description of an existing time series database connection. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get the description of an existing time series database connection. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsGet_example.json */ -async function getTimeSeriesDatabaseConnectionForADigitalTwinsInstance() { +async function getTimeSeriesDatabaseConnectionForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -41,7 +39,7 @@ async function getTimeSeriesDatabaseConnectionForADigitalTwinsInstance() { console.log(result); } -async function main() { +async function main(): Promise { getTimeSeriesDatabaseConnectionForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsListSample.ts b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsListSample.ts index 8f15e3589ef5..0431a1b67697 100644 --- a/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsListSample.ts +++ b/sdk/digitaltwins/arm-digitaltwins/samples/v3/typescript/src/timeSeriesDatabaseConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AzureDigitalTwinsManagementClient } from "@azure/arm-digitaltwins"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all existing time series database connections for this DigitalTwins instance. @@ -20,7 +18,7 @@ dotenv.config(); * @summary Get all existing time series database connections for this DigitalTwins instance. * x-ms-original-file: specification/digitaltwins/resource-manager/Microsoft.DigitalTwins/stable/2023-01-31/examples/TimeSeriesDatabaseConnectionsList_example.json */ -async function listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance() { +async function listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance(): Promise { const subscriptionId = process.env["DIGITALTWINS_SUBSCRIPTION_ID"] || "50016170-c839-41ba-a724-51e9df440b9e"; @@ -42,7 +40,7 @@ async function listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance() { console.log(resArray); } -async function main() { +async function main(): Promise { listTimeSeriesDatabaseConnectionsForADigitalTwinsInstance(); } diff --git a/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts b/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts index 68d858bb27fd..5f87eba344e5 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/azureDigitalTwinsManagementClient.ts @@ -21,7 +21,7 @@ import { PrivateLinkResourcesImpl, PrivateEndpointConnectionsImpl, TimeSeriesDatabaseConnectionsImpl -} from "./operations"; +} from "./operations/index.js"; import { DigitalTwins, DigitalTwinsEndpoint, @@ -29,8 +29,8 @@ import { PrivateLinkResources, PrivateEndpointConnections, TimeSeriesDatabaseConnections -} from "./operationsInterfaces"; -import { AzureDigitalTwinsManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { AzureDigitalTwinsManagementClientOptionalParams } from "./models/index.js"; export class AzureDigitalTwinsManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/index.ts b/sdk/digitaltwins/arm-digitaltwins/src/index.ts index 300aa52afe57..f5d603d88f88 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/index.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { AzureDigitalTwinsManagementClient } from "./azureDigitalTwinsManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { AzureDigitalTwinsManagementClient } from "./azureDigitalTwinsManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts b/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts index 9ee3c8ef75dd..790e1a252ede 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/models/parameters.ts @@ -18,7 +18,7 @@ import { DigitalTwinsEndpointResource as DigitalTwinsEndpointResourceMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, TimeSeriesDatabaseConnection as TimeSeriesDatabaseConnectionMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts index 35ca524514c1..c06c87b2376c 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwins.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DigitalTwins } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DigitalTwins } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DigitalTwinsDescription, DigitalTwinsListNextOptionalParams, @@ -41,7 +41,7 @@ import { DigitalTwinsCheckNameAvailabilityResponse, DigitalTwinsListNextResponse, DigitalTwinsListByResourceGroupNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing DigitalTwins operations. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts index bb802394c633..3cff4857e309 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/digitalTwinsEndpoint.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DigitalTwinsEndpoint } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { DigitalTwinsEndpoint } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { DigitalTwinsEndpointResource, DigitalTwinsEndpointListNextOptionalParams, @@ -31,7 +31,7 @@ import { DigitalTwinsEndpointDeleteOptionalParams, DigitalTwinsEndpointDeleteResponse, DigitalTwinsEndpointListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing DigitalTwinsEndpoint operations. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/index.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/index.ts index 741138123ea0..63d2cabb93e3 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/index.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/index.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./digitalTwins"; -export * from "./digitalTwinsEndpoint"; -export * from "./operations"; -export * from "./privateLinkResources"; -export * from "./privateEndpointConnections"; -export * from "./timeSeriesDatabaseConnections"; +export * from "./digitalTwins.js"; +export * from "./digitalTwinsEndpoint.js"; +export * from "./operations.js"; +export * from "./privateLinkResources.js"; +export * from "./privateEndpointConnections.js"; +export * from "./timeSeriesDatabaseConnections.js"; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/operations.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/operations.ts index 1f4e73342df5..461a39990c9d 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/operations.ts +++ b/sdk/digitaltwins/arm-digitaltwins/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 { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/privateEndpointConnections.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/privateEndpointConnections.ts index fb429568cec7..b5ae2ed77d84 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/privateEndpointConnections.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/privateEndpointConnections.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PrivateEndpointConnections } from "../operationsInterfaces"; +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 { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsListResponse, @@ -26,7 +26,7 @@ import { PrivateEndpointConnection, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/privateLinkResources.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/privateLinkResources.ts index 26b6b93f9b2f..59dc576deb1b 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/privateLinkResources.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/privateLinkResources.ts @@ -6,17 +6,17 @@ * 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 { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js"; import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts b/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts index 2918a2d09085..e0f77d91a9a5 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operations/timeSeriesDatabaseConnections.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { TimeSeriesDatabaseConnections } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { TimeSeriesDatabaseConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { TimeSeriesDatabaseConnection, TimeSeriesDatabaseConnectionsListNextOptionalParams, @@ -31,7 +31,7 @@ import { TimeSeriesDatabaseConnectionsDeleteOptionalParams, TimeSeriesDatabaseConnectionsDeleteResponse, TimeSeriesDatabaseConnectionsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing TimeSeriesDatabaseConnections operations. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwins.ts b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwins.ts index 2bc0f19ed167..a712dae6a08a 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwins.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwins.ts @@ -24,7 +24,7 @@ import { CheckNameRequest, DigitalTwinsCheckNameAvailabilityOptionalParams, DigitalTwinsCheckNameAvailabilityResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DigitalTwins. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwinsEndpoint.ts b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwinsEndpoint.ts index cdd3e56387dc..1b0b220e0959 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwinsEndpoint.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/digitalTwinsEndpoint.ts @@ -17,7 +17,7 @@ import { DigitalTwinsEndpointCreateOrUpdateResponse, DigitalTwinsEndpointDeleteOptionalParams, DigitalTwinsEndpointDeleteResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a DigitalTwinsEndpoint. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/index.ts b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/index.ts index 741138123ea0..63d2cabb93e3 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/index.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/index.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./digitalTwins"; -export * from "./digitalTwinsEndpoint"; -export * from "./operations"; -export * from "./privateLinkResources"; -export * from "./privateEndpointConnections"; -export * from "./timeSeriesDatabaseConnections"; +export * from "./digitalTwins.js"; +export * from "./digitalTwinsEndpoint.js"; +export * from "./operations.js"; +export * from "./privateLinkResources.js"; +export * from "./privateEndpointConnections.js"; +export * from "./timeSeriesDatabaseConnections.js"; diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/operations.ts b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/operations.ts index 6c7496010bce..0137985e0b07 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/operations.ts +++ b/sdk/digitaltwins/arm-digitaltwins/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/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateEndpointConnections.ts index e930ddb7101b..3b12f77c1fce 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateEndpointConnections.ts @@ -16,7 +16,7 @@ import { PrivateEndpointConnection, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateEndpointConnections. */ export interface PrivateEndpointConnections { diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateLinkResources.ts b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateLinkResources.ts index af3cb5c98f15..3684d1ec630f 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/privateLinkResources.ts @@ -11,7 +11,7 @@ import { PrivateLinkResourcesListResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { diff --git a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/timeSeriesDatabaseConnections.ts b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/timeSeriesDatabaseConnections.ts index 94d364e16fcf..f4d14e202008 100644 --- a/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/timeSeriesDatabaseConnections.ts +++ b/sdk/digitaltwins/arm-digitaltwins/src/operationsInterfaces/timeSeriesDatabaseConnections.ts @@ -17,7 +17,7 @@ import { TimeSeriesDatabaseConnectionsCreateOrUpdateResponse, TimeSeriesDatabaseConnectionsDeleteOptionalParams, TimeSeriesDatabaseConnectionsDeleteResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a TimeSeriesDatabaseConnections. */ diff --git a/sdk/digitaltwins/arm-digitaltwins/test/digitaltwins_examples.spec.ts b/sdk/digitaltwins/arm-digitaltwins/test/digitaltwins_examples.spec.ts index 752afb3bc12e..60ec2df0b6f4 100644 --- a/sdk/digitaltwins/arm-digitaltwins/test/digitaltwins_examples.spec.ts +++ b/sdk/digitaltwins/arm-digitaltwins/test/digitaltwins_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 { AzureDigitalTwinsManagementClient } from "../src/azureDigitalTwinsManagementClient"; +import { AzureDigitalTwinsManagementClient } from "../src/azureDigitalTwinsManagementClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -45,8 +43,8 @@ describe("DigitalTwins test", () => { let resourceGroup: string; let resourceName: string; - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); + beforeEach(async (ctx) => { + recorder = new Recorder(ctx); await recorder.start(recorderOptions); subscriptionId = env.SUBSCRIPTION_ID || ''; // This is an example of how the environment variables are used @@ -57,7 +55,7 @@ describe("DigitalTwins test", () => { resourceName = "myDigitalTwinsService"; }); - afterEach(async function () { + afterEach(async () => { await recorder.stop(); }); @@ -85,7 +83,7 @@ describe("DigitalTwins test", () => { it("DigitalTwins delete test", async function () { const resArray = new Array(); - const res = await client.digitalTwins.beginDeleteAndWait(resourceGroup, resourceName, testPollingOptions) + await client.digitalTwins.beginDeleteAndWait(resourceGroup, resourceName, testPollingOptions) for await (let item of client.digitalTwins.listByResourceGroup(resourceGroup)) { resArray.push(item); } diff --git a/sdk/digitaltwins/arm-digitaltwins/tsconfig.browser.config.json b/sdk/digitaltwins/arm-digitaltwins/tsconfig.browser.config.json new file mode 100644 index 000000000000..0c8bafa97126 --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/tsconfig.browser.config.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.test.json", + "../../../tsconfig.browser.base.json" + ] +} diff --git a/sdk/digitaltwins/arm-digitaltwins/tsconfig.json b/sdk/digitaltwins/arm-digitaltwins/tsconfig.json index 15e8d9a4ecc7..19ceb382b521 100644 --- a/sdk/digitaltwins/arm-digitaltwins/tsconfig.json +++ b/sdk/digitaltwins/arm-digitaltwins/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-digitaltwins": [ - "./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/digitaltwins/arm-digitaltwins/tsconfig.samples.json b/sdk/digitaltwins/arm-digitaltwins/tsconfig.samples.json new file mode 100644 index 000000000000..e53064b241d3 --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-digitaltwins": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/digitaltwins/arm-digitaltwins/tsconfig.src.json b/sdk/digitaltwins/arm-digitaltwins/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/digitaltwins/arm-digitaltwins/tsconfig.test.json b/sdk/digitaltwins/arm-digitaltwins/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} diff --git a/sdk/digitaltwins/arm-digitaltwins/vitest.browser.config.ts b/sdk/digitaltwins/arm-digitaltwins/vitest.browser.config.ts new file mode 100644 index 000000000000..182729ab5ce9 --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/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/digitaltwins/arm-digitaltwins/vitest.config.ts b/sdk/digitaltwins/arm-digitaltwins/vitest.config.ts new file mode 100644 index 000000000000..40e031385dd8 --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/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/digitaltwins/arm-digitaltwins/vitest.esm.config.ts b/sdk/digitaltwins/arm-digitaltwins/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/digitaltwins/arm-digitaltwins/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 +);