From 4c7e78c141d08101faccf5b84aa359aa3125accf Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:23 +0800 Subject: [PATCH 01/64] Migration: Update package.json, tsconfig.json, and api-extractor.json --- .../arm-consumption/api-extractor.json | 6 +- sdk/consumption/arm-consumption/package.json | 61 +++++++++++-------- ...amples.ts => consumption_examples.spec.ts} | 0 sdk/consumption/arm-consumption/tsconfig.json | 40 +++--------- .../arm-consumption/tsconfig.samples.json | 10 +++ .../arm-consumption/tsconfig.src.json | 3 + .../arm-consumption/tsconfig.test.json | 6 ++ 7 files changed, 67 insertions(+), 59 deletions(-) rename sdk/consumption/arm-consumption/test/{consumption_examples.ts => consumption_examples.spec.ts} (100%) create mode 100644 sdk/consumption/arm-consumption/tsconfig.samples.json create mode 100644 sdk/consumption/arm-consumption/tsconfig.src.json create mode 100644 sdk/consumption/arm-consumption/tsconfig.test.json diff --git a/sdk/consumption/arm-consumption/api-extractor.json b/sdk/consumption/arm-consumption/api-extractor.json index 905b4c2997f0..7d04e43564d5 100644 --- a/sdk/consumption/arm-consumption/api-extractor.json +++ b/sdk/consumption/arm-consumption/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-consumption.d.ts" + "publicTrimmedFilePath": "dist/arm-consumption.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/consumption/arm-consumption/package.json b/sdk/consumption/arm-consumption/package.json index b29b11555ef1..6418e4c47d70 100644 --- a/sdk/consumption/arm-consumption/package.json +++ b/sdk/consumption/arm-consumption/package.json @@ -26,18 +26,18 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-consumption.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", @@ -47,24 +47,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.", @@ -76,7 +66,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", @@ -85,8 +75,8 @@ "test:browser": "echo skipped", "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -107,5 +97,24 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-consumption?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" } diff --git a/sdk/consumption/arm-consumption/test/consumption_examples.ts b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts similarity index 100% rename from sdk/consumption/arm-consumption/test/consumption_examples.ts rename to sdk/consumption/arm-consumption/test/consumption_examples.spec.ts diff --git a/sdk/consumption/arm-consumption/tsconfig.json b/sdk/consumption/arm-consumption/tsconfig.json index 6e8ad365181f..19ceb382b521 100644 --- a/sdk/consumption/arm-consumption/tsconfig.json +++ b/sdk/consumption/arm-consumption/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-consumption": [ - "./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/consumption/arm-consumption/tsconfig.samples.json b/sdk/consumption/arm-consumption/tsconfig.samples.json new file mode 100644 index 000000000000..3496a23fc33f --- /dev/null +++ b/sdk/consumption/arm-consumption/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-consumption": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/consumption/arm-consumption/tsconfig.src.json b/sdk/consumption/arm-consumption/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/consumption/arm-consumption/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/consumption/arm-consumption/tsconfig.test.json b/sdk/consumption/arm-consumption/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/consumption/arm-consumption/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} From d940701d2a4d525f4efc9e0ab5d21d89f68dd1b6 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:24 +0800 Subject: [PATCH 02/64] Migration: Update test config --- .../tsconfig.browser.config.json | 17 +++++++++++++++++ .../arm-consumption/vitest.browser.config.ts | 17 +++++++++++++++++ .../arm-consumption/vitest.config.ts | 7 +++++++ .../arm-consumption/vitest.esm.config.ts | 12 ++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 sdk/consumption/arm-consumption/tsconfig.browser.config.json create mode 100644 sdk/consumption/arm-consumption/vitest.browser.config.ts create mode 100644 sdk/consumption/arm-consumption/vitest.config.ts create mode 100644 sdk/consumption/arm-consumption/vitest.esm.config.ts diff --git a/sdk/consumption/arm-consumption/tsconfig.browser.config.json b/sdk/consumption/arm-consumption/tsconfig.browser.config.json new file mode 100644 index 000000000000..b6586181d006 --- /dev/null +++ b/sdk/consumption/arm-consumption/tsconfig.browser.config.json @@ -0,0 +1,17 @@ +{ + "extends": "./.tshy/build.json", + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./test/**/*.spec.ts", + "./test/**/*.mts" + ], + "exclude": [ + "./test/**/node/**/*.ts" + ], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/consumption/arm-consumption/vitest.browser.config.ts b/sdk/consumption/arm-consumption/vitest.browser.config.ts new file mode 100644 index 000000000000..b48c61b2ef46 --- /dev/null +++ b/sdk/consumption/arm-consumption/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: [ + "dist-test/browser/test/**/*.spec.js", + ], + }, + }), +); diff --git a/sdk/consumption/arm-consumption/vitest.config.ts b/sdk/consumption/arm-consumption/vitest.config.ts new file mode 100644 index 000000000000..cc5cd85d4131 --- /dev/null +++ b/sdk/consumption/arm-consumption/vitest.config.ts @@ -0,0 +1,7 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import viteConfig from "../../../vitest.shared.config.ts"; + +export default viteConfig; diff --git a/sdk/consumption/arm-consumption/vitest.esm.config.ts b/sdk/consumption/arm-consumption/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/consumption/arm-consumption/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 +); From 756936b3267e8f6ff4029fe678c24c8e79579a22 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:24 +0800 Subject: [PATCH 03/64] Migration: Clean up files From 3f53d53290ef09f22dbf414591db0c8500d573fb Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:45 +0800 Subject: [PATCH 04/64] Migration: Apply codemod: "fixSourceFile" --- ...ggregatedCostGetByManagementGroupSample.ts | 4 +-- ...ForBillingPeriodByManagementGroupSample.ts | 4 +-- .../balancesGetByBillingAccountSample.ts | 4 +-- ...tForBillingPeriodByBillingAccountSample.ts | 4 +-- .../budgetsCreateOrUpdateSample.ts | 4 +-- .../samples-dev/budgetsDeleteSample.ts | 4 +-- .../samples-dev/budgetsGetSample.ts | 4 +-- .../samples-dev/budgetsListSample.ts | 4 +-- .../samples-dev/chargesListSample.ts | 4 +-- .../samples-dev/creditsGetSample.ts | 4 +-- .../eventsListByBillingAccountSample.ts | 4 +-- .../eventsListByBillingProfileSample.ts | 4 +-- .../lotsListByBillingAccountSample.ts | 4 +-- .../lotsListByBillingProfileSample.ts | 4 +-- .../samples-dev/marketplacesListSample.ts | 4 +-- .../priceSheetGetByBillingPeriodSample.ts | 4 +-- .../samples-dev/priceSheetGetSample.ts | 4 +-- ...servationRecommendationDetailsGetSample.ts | 4 +-- .../reservationRecommendationsListSample.ts | 4 +-- ...nTransactionsListByBillingProfileSample.ts | 4 +-- .../reservationTransactionsListSample.ts | 4 +-- ...tByReservationOrderAndReservationSample.ts | 4 +-- ...ionsDetailsListByReservationOrderSample.ts | 4 +-- .../reservationsDetailsListSample.ts | 4 +-- ...tByReservationOrderAndReservationSample.ts | 4 +-- ...nsSummariesListByReservationOrderSample.ts | 4 +-- .../reservationsSummariesListSample.ts | 4 +-- .../samples-dev/tagsGetSample.ts | 4 +-- .../samples-dev/usageDetailsListSample.ts | 4 +-- ...ggregatedCostGetByManagementGroupSample.ts | 4 +-- ...ForBillingPeriodByManagementGroupSample.ts | 4 +-- .../src/balancesGetByBillingAccountSample.ts | 4 +-- ...tForBillingPeriodByBillingAccountSample.ts | 4 +-- .../src/budgetsCreateOrUpdateSample.ts | 4 +-- .../v9/typescript/src/budgetsDeleteSample.ts | 4 +-- .../v9/typescript/src/budgetsGetSample.ts | 4 +-- .../v9/typescript/src/budgetsListSample.ts | 4 +-- .../v9/typescript/src/chargesListSample.ts | 4 +-- .../v9/typescript/src/creditsGetSample.ts | 4 +-- .../src/eventsListByBillingAccountSample.ts | 4 +-- .../src/eventsListByBillingProfileSample.ts | 4 +-- .../src/lotsListByBillingAccountSample.ts | 4 +-- .../src/lotsListByBillingProfileSample.ts | 4 +-- .../typescript/src/marketplacesListSample.ts | 4 +-- .../src/priceSheetGetByBillingPeriodSample.ts | 4 +-- .../v9/typescript/src/priceSheetGetSample.ts | 4 +-- ...servationRecommendationDetailsGetSample.ts | 4 +-- .../reservationRecommendationsListSample.ts | 4 +-- ...nTransactionsListByBillingProfileSample.ts | 4 +-- .../src/reservationTransactionsListSample.ts | 4 +-- ...tByReservationOrderAndReservationSample.ts | 4 +-- ...ionsDetailsListByReservationOrderSample.ts | 4 +-- .../src/reservationsDetailsListSample.ts | 4 +-- ...tByReservationOrderAndReservationSample.ts | 4 +-- ...nsSummariesListByReservationOrderSample.ts | 4 +-- .../src/reservationsSummariesListSample.ts | 4 +-- .../v9/typescript/src/tagsGetSample.ts | 4 +-- .../typescript/src/usageDetailsListSample.ts | 4 +-- .../src/consumptionManagementClient.ts | 6 ++-- sdk/consumption/arm-consumption/src/index.ts | 8 ++--- .../arm-consumption/src/models/parameters.ts | 2 +- .../src/operations/aggregatedCost.ts | 10 +++--- .../src/operations/balances.ts | 10 +++--- .../arm-consumption/src/operations/budgets.ts | 12 +++---- .../arm-consumption/src/operations/charges.ts | 10 +++--- .../arm-consumption/src/operations/credits.ts | 10 +++--- .../src/operations/eventsOperations.ts | 12 +++---- .../arm-consumption/src/operations/index.ts | 34 +++++++++---------- .../src/operations/lotsOperations.ts | 12 +++---- .../src/operations/marketplaces.ts | 12 +++---- .../src/operations/operations.ts | 12 +++---- .../src/operations/priceSheet.ts | 10 +++--- .../reservationRecommendationDetails.ts | 10 +++--- .../operations/reservationRecommendations.ts | 12 +++---- .../src/operations/reservationTransactions.ts | 12 +++---- .../src/operations/reservationsDetails.ts | 12 +++---- .../src/operations/reservationsSummaries.ts | 12 +++---- .../arm-consumption/src/operations/tags.ts | 10 +++--- .../src/operations/usageDetails.ts | 12 +++---- .../operationsInterfaces/aggregatedCost.ts | 2 +- .../src/operationsInterfaces/balances.ts | 2 +- .../src/operationsInterfaces/budgets.ts | 2 +- .../src/operationsInterfaces/charges.ts | 2 +- .../src/operationsInterfaces/credits.ts | 2 +- .../operationsInterfaces/eventsOperations.ts | 2 +- .../src/operationsInterfaces/index.ts | 34 +++++++++---------- .../operationsInterfaces/lotsOperations.ts | 2 +- .../src/operationsInterfaces/marketplaces.ts | 2 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/priceSheet.ts | 2 +- .../reservationRecommendationDetails.ts | 2 +- .../reservationRecommendations.ts | 2 +- .../reservationTransactions.ts | 2 +- .../reservationsDetails.ts | 2 +- .../reservationsSummaries.ts | 2 +- .../src/operationsInterfaces/tags.ts | 2 +- .../src/operationsInterfaces/usageDetails.ts | 2 +- .../test/consumption_examples.spec.ts | 9 ++--- 98 files changed, 215 insertions(+), 334 deletions(-) diff --git a/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetByManagementGroupSample.ts b/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetByManagementGroupSample.ts index cd348ac2464e..87b03e559fa0 100644 --- a/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetByManagementGroupSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetByManagementGroupSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Provides the aggregate cost of a management group and all child management groups by current billing period. diff --git a/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts b/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts index a53a6dc79e37..132e2f2b014d 100644 --- a/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Provides the aggregate cost of a management group and all child management groups by specified billing period diff --git a/sdk/consumption/arm-consumption/samples-dev/balancesGetByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples-dev/balancesGetByBillingAccountSample.ts index 9d95bde05e23..6217c5cc3a04 100644 --- a/sdk/consumption/arm-consumption/samples-dev/balancesGetByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/balancesGetByBillingAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples-dev/balancesGetForBillingPeriodByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples-dev/balancesGetForBillingPeriodByBillingAccountSample.ts index e106bfaedcb2..2d78fb2c656f 100644 --- a/sdk/consumption/arm-consumption/samples-dev/balancesGetForBillingPeriodByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/balancesGetForBillingPeriodByBillingAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples-dev/budgetsCreateOrUpdateSample.ts b/sdk/consumption/arm-consumption/samples-dev/budgetsCreateOrUpdateSample.ts index b22beed2599d..2647dab4b2fd 100644 --- a/sdk/consumption/arm-consumption/samples-dev/budgetsCreateOrUpdateSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/budgetsCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Budget, ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. diff --git a/sdk/consumption/arm-consumption/samples-dev/budgetsDeleteSample.ts b/sdk/consumption/arm-consumption/samples-dev/budgetsDeleteSample.ts index 874a3e4c3a79..479b7eea272c 100644 --- a/sdk/consumption/arm-consumption/samples-dev/budgetsDeleteSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/budgetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to The operation to delete a budget. diff --git a/sdk/consumption/arm-consumption/samples-dev/budgetsGetSample.ts b/sdk/consumption/arm-consumption/samples-dev/budgetsGetSample.ts index 85d4820dd376..51ae6ebe449f 100644 --- a/sdk/consumption/arm-consumption/samples-dev/budgetsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/budgetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the budget for the scope by budget name. diff --git a/sdk/consumption/arm-consumption/samples-dev/budgetsListSample.ts b/sdk/consumption/arm-consumption/samples-dev/budgetsListSample.ts index 22b532ad3004..43fce7b212fb 100644 --- a/sdk/consumption/arm-consumption/samples-dev/budgetsListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/budgetsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all budgets for the defined scope. diff --git a/sdk/consumption/arm-consumption/samples-dev/chargesListSample.ts b/sdk/consumption/arm-consumption/samples-dev/chargesListSample.ts index 4f862527d776..2257ef8ded1b 100644 --- a/sdk/consumption/arm-consumption/samples-dev/chargesListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/chargesListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the charges based for the defined scope. diff --git a/sdk/consumption/arm-consumption/samples-dev/creditsGetSample.ts b/sdk/consumption/arm-consumption/samples-dev/creditsGetSample.ts index 93fe983da4a8..404bd5cdb8bd 100644 --- a/sdk/consumption/arm-consumption/samples-dev/creditsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/creditsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to The credit summary by billingAccountId and billingProfileId. diff --git a/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingAccountSample.ts index b873a2ac7ddc..f198b101cacd 100644 --- a/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingAccountSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. diff --git a/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingProfileSample.ts b/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingProfileSample.ts index 9727ab2c0b23..7c0e1cf239bb 100644 --- a/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingProfileSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/eventsListByBillingProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. diff --git a/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingAccountSample.ts index ed91b147330f..6074d226d850 100644 --- a/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingAccountSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope. diff --git a/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingProfileSample.ts b/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingProfileSample.ts index b84740da2504..f77d2d5e74de 100644 --- a/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingProfileSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/lotsListByBillingProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope. diff --git a/sdk/consumption/arm-consumption/samples-dev/marketplacesListSample.ts b/sdk/consumption/arm-consumption/samples-dev/marketplacesListSample.ts index 92702f59f529..f34268e435f3 100644 --- a/sdk/consumption/arm-consumption/samples-dev/marketplacesListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/marketplacesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples-dev/priceSheetGetByBillingPeriodSample.ts b/sdk/consumption/arm-consumption/samples-dev/priceSheetGetByBillingPeriodSample.ts index 6d9fc5237c66..03bdde42aeb0 100644 --- a/sdk/consumption/arm-consumption/samples-dev/priceSheetGetByBillingPeriodSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/priceSheetGetByBillingPeriodSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples-dev/priceSheetGetSample.ts b/sdk/consumption/arm-consumption/samples-dev/priceSheetGetSample.ts index 1e386e9f7046..62bf26822d9d 100644 --- a/sdk/consumption/arm-consumption/samples-dev/priceSheetGetSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/priceSheetGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationDetailsGetSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationDetailsGetSample.ts index e9f5c093957b..3fa5327bbee6 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationDetailsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationDetailsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Details of a reservation recommendation for what-if analysis of reserved instances. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationsListSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationsListSample.ts index 877f984f6a46..97b12954f070 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationsListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationRecommendationsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List of recommendations for purchasing reserved instances. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListByBillingProfileSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListByBillingProfileSample.ts index ff83cf29f188..4b21265c4652 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListByBillingProfileSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListByBillingProfileSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List of transactions for reserved instances on billing account scope diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListSample.ts index a1161352310c..1c972f8e6f7f 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationTransactionsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List of transactions for reserved instances on billing account scope diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderAndReservationSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderAndReservationSample.ts index bf6b2c163059..2b1074a77d01 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderAndReservationSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderAndReservationSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations details for provided date range. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderSample.ts index 9a1719a1262d..3da4f8cebbb6 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListByReservationOrderSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations details for provided date range. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListSample.ts index c4b2b4a6c813..036aff381510 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationsDetailsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations details for the defined scope and provided date range. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderAndReservationSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderAndReservationSample.ts index b70e9172be92..e6d6cba280eb 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderAndReservationSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderAndReservationSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations summaries for daily or monthly grain. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderSample.ts index 8f0173cdfbcd..510f5b335fe0 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListByReservationOrderSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations summaries for daily or monthly grain. diff --git a/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListSample.ts b/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListSample.ts index 7aa51d42c445..a1a92d9d3883 100644 --- a/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/reservationsSummariesListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations summaries for the defined scope daily or monthly grain. diff --git a/sdk/consumption/arm-consumption/samples-dev/tagsGetSample.ts b/sdk/consumption/arm-consumption/samples-dev/tagsGetSample.ts index 60e5e244fee3..975670d52312 100644 --- a/sdk/consumption/arm-consumption/samples-dev/tagsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/tagsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all available tag keys for the defined scope diff --git a/sdk/consumption/arm-consumption/samples-dev/usageDetailsListSample.ts b/sdk/consumption/arm-consumption/samples-dev/usageDetailsListSample.ts index 55ad2e72f3f9..599b75774af2 100644 --- a/sdk/consumption/arm-consumption/samples-dev/usageDetailsListSample.ts +++ b/sdk/consumption/arm-consumption/samples-dev/usageDetailsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetByManagementGroupSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetByManagementGroupSample.ts index cd348ac2464e..87b03e559fa0 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetByManagementGroupSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetByManagementGroupSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Provides the aggregate cost of a management group and all child management groups by current billing period. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts index a53a6dc79e37..132e2f2b014d 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/aggregatedCostGetForBillingPeriodByManagementGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Provides the aggregate cost of a management group and all child management groups by specified billing period diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetByBillingAccountSample.ts index 9d95bde05e23..6217c5cc3a04 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetByBillingAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetForBillingPeriodByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetForBillingPeriodByBillingAccountSample.ts index e106bfaedcb2..2d78fb2c656f 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetForBillingPeriodByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/balancesGetForBillingPeriodByBillingAccountSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsCreateOrUpdateSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsCreateOrUpdateSample.ts index b22beed2599d..2647dab4b2fd 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsCreateOrUpdateSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Budget, ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsDeleteSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsDeleteSample.ts index 874a3e4c3a79..479b7eea272c 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsDeleteSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to The operation to delete a budget. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsGetSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsGetSample.ts index 85d4820dd376..51ae6ebe449f 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the budget for the scope by budget name. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsListSample.ts index 22b532ad3004..43fce7b212fb 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/budgetsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all budgets for the defined scope. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/chargesListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/chargesListSample.ts index 4f862527d776..2257ef8ded1b 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/chargesListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/chargesListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the charges based for the defined scope. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/creditsGetSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/creditsGetSample.ts index 93fe983da4a8..404bd5cdb8bd 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/creditsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/creditsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to The credit summary by billingAccountId and billingProfileId. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingAccountSample.ts index b873a2ac7ddc..f198b101cacd 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingAccountSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingProfileSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingProfileSample.ts index 9727ab2c0b23..7c0e1cf239bb 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingProfileSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/eventsListByBillingProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingAccountSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingAccountSample.ts index ed91b147330f..6074d226d850 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingAccountSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingAccountSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingProfileSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingProfileSample.ts index b84740da2504..f77d2d5e74de 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingProfileSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/lotsListByBillingProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/marketplacesListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/marketplacesListSample.ts index 92702f59f529..f34268e435f3 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/marketplacesListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/marketplacesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetByBillingPeriodSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetByBillingPeriodSample.ts index 6d9fc5237c66..03bdde42aeb0 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetByBillingPeriodSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetByBillingPeriodSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetSample.ts index 1e386e9f7046..62bf26822d9d 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/priceSheetGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationDetailsGetSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationDetailsGetSample.ts index e9f5c093957b..3fa5327bbee6 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationDetailsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationDetailsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Details of a reservation recommendation for what-if analysis of reserved instances. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationsListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationsListSample.ts index 877f984f6a46..97b12954f070 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationsListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationRecommendationsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List of recommendations for purchasing reserved instances. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListByBillingProfileSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListByBillingProfileSample.ts index ff83cf29f188..4b21265c4652 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListByBillingProfileSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListByBillingProfileSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List of transactions for reserved instances on billing account scope diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListSample.ts index a1161352310c..1c972f8e6f7f 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationTransactionsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List of transactions for reserved instances on billing account scope diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderAndReservationSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderAndReservationSample.ts index bf6b2c163059..2b1074a77d01 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderAndReservationSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderAndReservationSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations details for provided date range. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderSample.ts index 9a1719a1262d..3da4f8cebbb6 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListByReservationOrderSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations details for provided date range. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListSample.ts index c4b2b4a6c813..036aff381510 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsDetailsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations details for the defined scope and provided date range. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderAndReservationSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderAndReservationSample.ts index b70e9172be92..e6d6cba280eb 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderAndReservationSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderAndReservationSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations summaries for daily or monthly grain. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderSample.ts index 8f0173cdfbcd..510f5b335fe0 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListByReservationOrderSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations summaries for daily or monthly grain. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListSample.ts index 7aa51d42c445..a1a92d9d3883 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/reservationsSummariesListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the reservations summaries for the defined scope daily or monthly grain. diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/tagsGetSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/tagsGetSample.ts index 60e5e244fee3..975670d52312 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/tagsGetSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/tagsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get all available tag keys for the defined scope diff --git a/sdk/consumption/arm-consumption/samples/v9/typescript/src/usageDetailsListSample.ts b/sdk/consumption/arm-consumption/samples/v9/typescript/src/usageDetailsListSample.ts index 55ad2e72f3f9..599b75774af2 100644 --- a/sdk/consumption/arm-consumption/samples/v9/typescript/src/usageDetailsListSample.ts +++ b/sdk/consumption/arm-consumption/samples/v9/typescript/src/usageDetailsListSample.ts @@ -13,9 +13,7 @@ import { ConsumptionManagementClient } from "@azure/arm-consumption"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later. diff --git a/sdk/consumption/arm-consumption/src/consumptionManagementClient.ts b/sdk/consumption/arm-consumption/src/consumptionManagementClient.ts index 451072395676..9f2ab11e0101 100644 --- a/sdk/consumption/arm-consumption/src/consumptionManagementClient.ts +++ b/sdk/consumption/arm-consumption/src/consumptionManagementClient.ts @@ -32,7 +32,7 @@ import { EventsOperationsImpl, LotsOperationsImpl, CreditsImpl -} from "./operations"; +} from "./operations/index.js"; import { UsageDetails, Marketplaces, @@ -51,8 +51,8 @@ import { EventsOperations, LotsOperations, Credits -} from "./operationsInterfaces"; -import { ConsumptionManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { ConsumptionManagementClientOptionalParams } from "./models/index.js"; export class ConsumptionManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/consumption/arm-consumption/src/index.ts b/sdk/consumption/arm-consumption/src/index.ts index 5084292aec62..e73d8092a139 100644 --- a/sdk/consumption/arm-consumption/src/index.ts +++ b/sdk/consumption/arm-consumption/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { ConsumptionManagementClient } from "./consumptionManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { ConsumptionManagementClient } from "./consumptionManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/consumption/arm-consumption/src/models/parameters.ts b/sdk/consumption/arm-consumption/src/models/parameters.ts index d3cccb1067c2..5fc8eca93580 100644 --- a/sdk/consumption/arm-consumption/src/models/parameters.ts +++ b/sdk/consumption/arm-consumption/src/models/parameters.ts @@ -11,7 +11,7 @@ import { OperationURLParameter, OperationQueryParameter } from "@azure/core-client"; -import { Budget as BudgetMapper } from "../models/mappers"; +import { Budget as BudgetMapper } from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/consumption/arm-consumption/src/operations/aggregatedCost.ts b/sdk/consumption/arm-consumption/src/operations/aggregatedCost.ts index 6860727b8e7f..ca8d440e2c3b 100644 --- a/sdk/consumption/arm-consumption/src/operations/aggregatedCost.ts +++ b/sdk/consumption/arm-consumption/src/operations/aggregatedCost.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { AggregatedCost } from "../operationsInterfaces"; +import { AggregatedCost } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { AggregatedCostGetByManagementGroupOptionalParams, AggregatedCostGetByManagementGroupResponse, AggregatedCostGetForBillingPeriodByManagementGroupOptionalParams, AggregatedCostGetForBillingPeriodByManagementGroupResponse -} from "../models"; +} from "../models/index.js"; /** Class containing AggregatedCost operations. */ export class AggregatedCostImpl implements AggregatedCost { diff --git a/sdk/consumption/arm-consumption/src/operations/balances.ts b/sdk/consumption/arm-consumption/src/operations/balances.ts index ec5c3fcf9868..27e7310af195 100644 --- a/sdk/consumption/arm-consumption/src/operations/balances.ts +++ b/sdk/consumption/arm-consumption/src/operations/balances.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Balances } from "../operationsInterfaces"; +import { Balances } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { BalancesGetByBillingAccountOptionalParams, BalancesGetByBillingAccountResponse, BalancesGetForBillingPeriodByBillingAccountOptionalParams, BalancesGetForBillingPeriodByBillingAccountResponse -} from "../models"; +} from "../models/index.js"; /** Class containing Balances operations. */ export class BalancesImpl implements Balances { diff --git a/sdk/consumption/arm-consumption/src/operations/budgets.ts b/sdk/consumption/arm-consumption/src/operations/budgets.ts index 5a6472e9f187..d9298c1bc9de 100644 --- a/sdk/consumption/arm-consumption/src/operations/budgets.ts +++ b/sdk/consumption/arm-consumption/src/operations/budgets.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Budgets } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Budgets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { Budget, BudgetsListNextOptionalParams, @@ -24,7 +24,7 @@ import { BudgetsCreateOrUpdateResponse, BudgetsDeleteOptionalParams, BudgetsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Budgets operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/charges.ts b/sdk/consumption/arm-consumption/src/operations/charges.ts index 2f817da55bcd..d1082111e12d 100644 --- a/sdk/consumption/arm-consumption/src/operations/charges.ts +++ b/sdk/consumption/arm-consumption/src/operations/charges.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Charges } from "../operationsInterfaces"; +import { Charges } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; -import { ChargesListOptionalParams, ChargesListResponse } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; +import { ChargesListOptionalParams, ChargesListResponse } from "../models/index.js"; /** Class containing Charges operations. */ export class ChargesImpl implements Charges { diff --git a/sdk/consumption/arm-consumption/src/operations/credits.ts b/sdk/consumption/arm-consumption/src/operations/credits.ts index 921fe9fcfa95..4d0254b354c2 100644 --- a/sdk/consumption/arm-consumption/src/operations/credits.ts +++ b/sdk/consumption/arm-consumption/src/operations/credits.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Credits } from "../operationsInterfaces"; +import { Credits } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; -import { CreditsGetOptionalParams, CreditsGetResponse } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; +import { CreditsGetOptionalParams, CreditsGetResponse } from "../models/index.js"; /** Class containing Credits operations. */ export class CreditsImpl implements Credits { diff --git a/sdk/consumption/arm-consumption/src/operations/eventsOperations.ts b/sdk/consumption/arm-consumption/src/operations/eventsOperations.ts index f1d880b3b223..575bdf105642 100644 --- a/sdk/consumption/arm-consumption/src/operations/eventsOperations.ts +++ b/sdk/consumption/arm-consumption/src/operations/eventsOperations.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { EventsOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { EventsOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { EventSummary, EventsListByBillingProfileNextOptionalParams, @@ -23,7 +23,7 @@ import { EventsListByBillingAccountResponse, EventsListByBillingProfileNextResponse, EventsListByBillingAccountNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing EventsOperations operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/index.ts b/sdk/consumption/arm-consumption/src/operations/index.ts index b751ef901317..b1a6c56e130b 100644 --- a/sdk/consumption/arm-consumption/src/operations/index.ts +++ b/sdk/consumption/arm-consumption/src/operations/index.ts @@ -6,20 +6,20 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./usageDetails"; -export * from "./marketplaces"; -export * from "./budgets"; -export * from "./tags"; -export * from "./charges"; -export * from "./balances"; -export * from "./reservationsSummaries"; -export * from "./reservationsDetails"; -export * from "./reservationRecommendations"; -export * from "./reservationRecommendationDetails"; -export * from "./reservationTransactions"; -export * from "./priceSheet"; -export * from "./operations"; -export * from "./aggregatedCost"; -export * from "./eventsOperations"; -export * from "./lotsOperations"; -export * from "./credits"; +export * from "./usageDetails.js"; +export * from "./marketplaces.js"; +export * from "./budgets.js"; +export * from "./tags.js"; +export * from "./charges.js"; +export * from "./balances.js"; +export * from "./reservationsSummaries.js"; +export * from "./reservationsDetails.js"; +export * from "./reservationRecommendations.js"; +export * from "./reservationRecommendationDetails.js"; +export * from "./reservationTransactions.js"; +export * from "./priceSheet.js"; +export * from "./operations.js"; +export * from "./aggregatedCost.js"; +export * from "./eventsOperations.js"; +export * from "./lotsOperations.js"; +export * from "./credits.js"; diff --git a/sdk/consumption/arm-consumption/src/operations/lotsOperations.ts b/sdk/consumption/arm-consumption/src/operations/lotsOperations.ts index c26514278ceb..773414edaf42 100644 --- a/sdk/consumption/arm-consumption/src/operations/lotsOperations.ts +++ b/sdk/consumption/arm-consumption/src/operations/lotsOperations.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { LotsOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { LotsOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { LotSummary, LotsListByBillingProfileNextOptionalParams, @@ -23,7 +23,7 @@ import { LotsListByBillingAccountResponse, LotsListByBillingProfileNextResponse, LotsListByBillingAccountNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing LotsOperations operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/marketplaces.ts b/sdk/consumption/arm-consumption/src/operations/marketplaces.ts index 6f7daa62be12..1229befc616c 100644 --- a/sdk/consumption/arm-consumption/src/operations/marketplaces.ts +++ b/sdk/consumption/arm-consumption/src/operations/marketplaces.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Marketplaces } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Marketplaces } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { Marketplace, MarketplacesListNextOptionalParams, MarketplacesListOptionalParams, MarketplacesListResponse, MarketplacesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Marketplaces operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/operations.ts b/sdk/consumption/arm-consumption/src/operations/operations.ts index 06ed96803a2f..014e249bcb4b 100644 --- a/sdk/consumption/arm-consumption/src/operations/operations.ts +++ b/sdk/consumption/arm-consumption/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 { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/priceSheet.ts b/sdk/consumption/arm-consumption/src/operations/priceSheet.ts index baf8229c556b..4bee1bd0071b 100644 --- a/sdk/consumption/arm-consumption/src/operations/priceSheet.ts +++ b/sdk/consumption/arm-consumption/src/operations/priceSheet.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PriceSheet } from "../operationsInterfaces"; +import { PriceSheet } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { PriceSheetGetOptionalParams, PriceSheetGetResponse, PriceSheetGetByBillingPeriodOptionalParams, PriceSheetGetByBillingPeriodResponse -} from "../models"; +} from "../models/index.js"; /** Class containing PriceSheet operations. */ export class PriceSheetImpl implements PriceSheet { diff --git a/sdk/consumption/arm-consumption/src/operations/reservationRecommendationDetails.ts b/sdk/consumption/arm-consumption/src/operations/reservationRecommendationDetails.ts index c3bf7a979b7b..475964b18338 100644 --- a/sdk/consumption/arm-consumption/src/operations/reservationRecommendationDetails.ts +++ b/sdk/consumption/arm-consumption/src/operations/reservationRecommendationDetails.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ReservationRecommendationDetails } from "../operationsInterfaces"; +import { ReservationRecommendationDetails } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { Term, LookBackPeriod, ReservationRecommendationDetailsGetOptionalParams, ReservationRecommendationDetailsGetResponse -} from "../models"; +} from "../models/index.js"; /** Class containing ReservationRecommendationDetails operations. */ export class ReservationRecommendationDetailsImpl diff --git a/sdk/consumption/arm-consumption/src/operations/reservationRecommendations.ts b/sdk/consumption/arm-consumption/src/operations/reservationRecommendations.ts index c037c1e9b67d..95ba41ed1600 100644 --- a/sdk/consumption/arm-consumption/src/operations/reservationRecommendations.ts +++ b/sdk/consumption/arm-consumption/src/operations/reservationRecommendations.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ReservationRecommendations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ReservationRecommendations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { ReservationRecommendationUnion, ReservationRecommendationsListNextOptionalParams, ReservationRecommendationsListOptionalParams, ReservationRecommendationsListResponse, ReservationRecommendationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ReservationRecommendations operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/reservationTransactions.ts b/sdk/consumption/arm-consumption/src/operations/reservationTransactions.ts index 4eaf6125af4d..04a3ccf9cce6 100644 --- a/sdk/consumption/arm-consumption/src/operations/reservationTransactions.ts +++ b/sdk/consumption/arm-consumption/src/operations/reservationTransactions.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ReservationTransactions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ReservationTransactions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { ReservationTransaction, ReservationTransactionsListNextOptionalParams, @@ -24,7 +24,7 @@ import { ReservationTransactionsListByBillingProfileResponse, ReservationTransactionsListNextResponse, ReservationTransactionsListByBillingProfileNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ReservationTransactions operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/reservationsDetails.ts b/sdk/consumption/arm-consumption/src/operations/reservationsDetails.ts index 60a5ff3c0114..407bcc6f8a3b 100644 --- a/sdk/consumption/arm-consumption/src/operations/reservationsDetails.ts +++ b/sdk/consumption/arm-consumption/src/operations/reservationsDetails.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ReservationsDetails } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ReservationsDetails } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { ReservationDetail, ReservationsDetailsListByReservationOrderNextOptionalParams, @@ -27,7 +27,7 @@ import { ReservationsDetailsListByReservationOrderNextResponse, ReservationsDetailsListByReservationOrderAndReservationNextResponse, ReservationsDetailsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ReservationsDetails operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/reservationsSummaries.ts b/sdk/consumption/arm-consumption/src/operations/reservationsSummaries.ts index 3b492dbfd1d7..79386bb8fa69 100644 --- a/sdk/consumption/arm-consumption/src/operations/reservationsSummaries.ts +++ b/sdk/consumption/arm-consumption/src/operations/reservationsSummaries.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ReservationsSummaries } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ReservationsSummaries } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { ReservationSummary, ReservationsSummariesListByReservationOrderNextOptionalParams, @@ -28,7 +28,7 @@ import { ReservationsSummariesListByReservationOrderNextResponse, ReservationsSummariesListByReservationOrderAndReservationNextResponse, ReservationsSummariesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ReservationsSummaries operations. */ diff --git a/sdk/consumption/arm-consumption/src/operations/tags.ts b/sdk/consumption/arm-consumption/src/operations/tags.ts index 51406a682b0d..5fc7f8cc5d2f 100644 --- a/sdk/consumption/arm-consumption/src/operations/tags.ts +++ b/sdk/consumption/arm-consumption/src/operations/tags.ts @@ -6,12 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Tags } from "../operationsInterfaces"; +import { Tags } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; -import { TagsGetOptionalParams, TagsGetResponse } from "../models"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; +import { TagsGetOptionalParams, TagsGetResponse } from "../models/index.js"; /** Class containing Tags operations. */ export class TagsImpl implements Tags { diff --git a/sdk/consumption/arm-consumption/src/operations/usageDetails.ts b/sdk/consumption/arm-consumption/src/operations/usageDetails.ts index 3c118200ad97..77491effe6eb 100644 --- a/sdk/consumption/arm-consumption/src/operations/usageDetails.ts +++ b/sdk/consumption/arm-consumption/src/operations/usageDetails.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { UsageDetails } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { UsageDetails } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ConsumptionManagementClient } from "../consumptionManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ConsumptionManagementClient } from "../consumptionManagementClient.js"; import { UsageDetailUnion, UsageDetailsListNextOptionalParams, UsageDetailsListOptionalParams, UsageDetailsListResponse, UsageDetailsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing UsageDetails operations. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/aggregatedCost.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/aggregatedCost.ts index 5cd517b364c0..ce8233b7d778 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/aggregatedCost.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/aggregatedCost.ts @@ -11,7 +11,7 @@ import { AggregatedCostGetByManagementGroupResponse, AggregatedCostGetForBillingPeriodByManagementGroupOptionalParams, AggregatedCostGetForBillingPeriodByManagementGroupResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a AggregatedCost. */ export interface AggregatedCost { diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/balances.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/balances.ts index b6d7cf515aeb..4296af7d91af 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/balances.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/balances.ts @@ -11,7 +11,7 @@ import { BalancesGetByBillingAccountResponse, BalancesGetForBillingPeriodByBillingAccountOptionalParams, BalancesGetForBillingPeriodByBillingAccountResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a Balances. */ export interface Balances { diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/budgets.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/budgets.ts index ef12d70ae33e..075913512fb7 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/budgets.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/budgets.ts @@ -15,7 +15,7 @@ import { BudgetsCreateOrUpdateOptionalParams, BudgetsCreateOrUpdateResponse, BudgetsDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Budgets. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/charges.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/charges.ts index 074f8c6d24ee..58ee552903dd 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/charges.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/charges.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ChargesListOptionalParams, ChargesListResponse } from "../models"; +import { ChargesListOptionalParams, ChargesListResponse } from "../models/index.js"; /** Interface representing a Charges. */ export interface Charges { diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/credits.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/credits.ts index 4a074f54853d..0ae309ed4cd9 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/credits.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/credits.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CreditsGetOptionalParams, CreditsGetResponse } from "../models"; +import { CreditsGetOptionalParams, CreditsGetResponse } from "../models/index.js"; /** Interface representing a Credits. */ export interface Credits { diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/eventsOperations.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/eventsOperations.ts index 82b66c5d5513..403e11ac9e42 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/eventsOperations.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/eventsOperations.ts @@ -11,7 +11,7 @@ import { EventSummary, EventsListByBillingProfileOptionalParams, EventsListByBillingAccountOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a EventsOperations. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/index.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/index.ts index b751ef901317..b1a6c56e130b 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/index.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/index.ts @@ -6,20 +6,20 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./usageDetails"; -export * from "./marketplaces"; -export * from "./budgets"; -export * from "./tags"; -export * from "./charges"; -export * from "./balances"; -export * from "./reservationsSummaries"; -export * from "./reservationsDetails"; -export * from "./reservationRecommendations"; -export * from "./reservationRecommendationDetails"; -export * from "./reservationTransactions"; -export * from "./priceSheet"; -export * from "./operations"; -export * from "./aggregatedCost"; -export * from "./eventsOperations"; -export * from "./lotsOperations"; -export * from "./credits"; +export * from "./usageDetails.js"; +export * from "./marketplaces.js"; +export * from "./budgets.js"; +export * from "./tags.js"; +export * from "./charges.js"; +export * from "./balances.js"; +export * from "./reservationsSummaries.js"; +export * from "./reservationsDetails.js"; +export * from "./reservationRecommendations.js"; +export * from "./reservationRecommendationDetails.js"; +export * from "./reservationTransactions.js"; +export * from "./priceSheet.js"; +export * from "./operations.js"; +export * from "./aggregatedCost.js"; +export * from "./eventsOperations.js"; +export * from "./lotsOperations.js"; +export * from "./credits.js"; diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/lotsOperations.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/lotsOperations.ts index cee7524cb172..0909b6d18ddb 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/lotsOperations.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/lotsOperations.ts @@ -11,7 +11,7 @@ import { LotSummary, LotsListByBillingProfileOptionalParams, LotsListByBillingAccountOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a LotsOperations. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/marketplaces.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/marketplaces.ts index 5998f4baed58..d3631a4a1a79 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/marketplaces.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/marketplaces.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Marketplace, MarketplacesListOptionalParams } from "../models"; +import { Marketplace, MarketplacesListOptionalParams } from "../models/index.js"; /// /** Interface representing a Marketplaces. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/operations.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/operations.ts index f057fff6bf38..c4f7111b8b4a 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/operations.ts +++ b/sdk/consumption/arm-consumption/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/consumption/arm-consumption/src/operationsInterfaces/priceSheet.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/priceSheet.ts index b9ce965b0936..6bbd0283c5de 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/priceSheet.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/priceSheet.ts @@ -11,7 +11,7 @@ import { PriceSheetGetResponse, PriceSheetGetByBillingPeriodOptionalParams, PriceSheetGetByBillingPeriodResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a PriceSheet. */ export interface PriceSheet { diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendationDetails.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendationDetails.ts index 563830545ff9..cb159a291e03 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendationDetails.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendationDetails.ts @@ -11,7 +11,7 @@ import { LookBackPeriod, ReservationRecommendationDetailsGetOptionalParams, ReservationRecommendationDetailsGetResponse -} from "../models"; +} from "../models/index.js"; /** Interface representing a ReservationRecommendationDetails. */ export interface ReservationRecommendationDetails { diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendations.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendations.ts index e4df3b2a4d35..796c83ea626d 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendations.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationRecommendations.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ReservationRecommendationUnion, ReservationRecommendationsListOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ReservationRecommendations. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationTransactions.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationTransactions.ts index bc3dd77c5727..cb1efaa92831 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationTransactions.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationTransactions.ts @@ -12,7 +12,7 @@ import { ReservationTransactionsListOptionalParams, ModernReservationTransaction, ReservationTransactionsListByBillingProfileOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ReservationTransactions. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsDetails.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsDetails.ts index 771aedbfc513..e060d8a2f717 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsDetails.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsDetails.ts @@ -12,7 +12,7 @@ import { ReservationsDetailsListByReservationOrderOptionalParams, ReservationsDetailsListByReservationOrderAndReservationOptionalParams, ReservationsDetailsListOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ReservationsDetails. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsSummaries.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsSummaries.ts index 935d9eeaef13..455a923911cd 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsSummaries.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/reservationsSummaries.ts @@ -13,7 +13,7 @@ import { ReservationsSummariesListByReservationOrderOptionalParams, ReservationsSummariesListByReservationOrderAndReservationOptionalParams, ReservationsSummariesListOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ReservationsSummaries. */ diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/tags.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/tags.ts index 55499202f7c2..517df6504580 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/tags.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/tags.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { TagsGetOptionalParams, TagsGetResponse } from "../models"; +import { TagsGetOptionalParams, TagsGetResponse } from "../models/index.js"; /** Interface representing a Tags. */ export interface Tags { diff --git a/sdk/consumption/arm-consumption/src/operationsInterfaces/usageDetails.ts b/sdk/consumption/arm-consumption/src/operationsInterfaces/usageDetails.ts index b705a0dfe826..026e363aa8c9 100644 --- a/sdk/consumption/arm-consumption/src/operationsInterfaces/usageDetails.ts +++ b/sdk/consumption/arm-consumption/src/operationsInterfaces/usageDetails.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { UsageDetailUnion, UsageDetailsListOptionalParams } from "../models"; +import { UsageDetailUnion, UsageDetailsListOptionalParams } from "../models/index.js"; /// /** Interface representing a UsageDetails. */ diff --git a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts index fc349e02857d..4b981800c7d6 100644 --- a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts +++ b/sdk/consumption/arm-consumption/test/consumption_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 { ConsumptionManagementClient } from "../src/consumptionManagementClient"; +import { ConsumptionManagementClient } from "../src/consumptionManagementClient.js"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -47,8 +45,8 @@ describe("Consumption test", () => { let vmName: string; let scope: 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 @@ -123,6 +121,5 @@ describe("Consumption test", () => { }); it("budgets delete test", async function () { - const res = await client.budgets.delete(scope, budgetName); }); }); From 4f82a291ce1b180ffa2520e6fa093c9ce2ddf752 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:46 +0800 Subject: [PATCH 05/64] Migration: Apply codemod: "fixTestingImports" --- .../arm-consumption/test/consumption_examples.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts index 4b981800c7d6..02ef5de62fd9 100644 --- a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts +++ b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts @@ -13,8 +13,8 @@ import { isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; import { ConsumptionManagementClient } from "../src/consumptionManagementClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", From 118a8e90841f47762f1718381595af2726ddbaf4 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:47 +0800 Subject: [PATCH 06/64] Migration: Apply codemod: "replaceAssertIsRejected" From fc1e00abee0d24fb9b9efcc5089f3fa14fca0f74 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:48 +0800 Subject: [PATCH 07/64] Migration: Apply codemod: "replaceSinonStub" From 4fddff6bba2d2ef6b74e30f0b8312c7bf315eadf Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:49 +0800 Subject: [PATCH 08/64] Migration: Apply codemod: "addViHelper" From 63667f5f9ab428e3c60033df85d3bfb5f16a64c7 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:50 +0800 Subject: [PATCH 09/64] Migration: Apply codemod: "replaceSupportTracing" From f320abfbe2e27428e9cbb5fc27dcee05d280669d Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:23:50 +0800 Subject: [PATCH 10/64] Migration: Apply codemod: "replaceTestUtils" From ab222c6d32163d3d29e990b7541c0cc535ec3599 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:24:07 +0800 Subject: [PATCH 11/64] Migration: rushx format From 0d23a1e39f439ca9d2e73cef85fb2f5afaf8d10d Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:28:59 +0800 Subject: [PATCH 12/64] update --- common/config/rush/pnpm-lock.yaml | 36 +++++++++++++------- sdk/consumption/arm-consumption/package.json | 29 +++++++++++++--- 2 files changed, 49 insertions(+), 16 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 78970280806a..538d0270e8ca 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -213,7 +213,7 @@ importers: version: file:projects/arm-connectedvmware.tgz '@rush-temp/arm-consumption': specifier: file:./projects/arm-consumption.tgz - version: file:projects/arm-consumption.tgz + version: file:projects/arm-consumption.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerinstance': specifier: file:./projects/arm-containerinstance.tgz version: file:projects/arm-containerinstance.tgz @@ -2755,7 +2755,7 @@ packages: version: 0.0.0 '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz': - resolution: {integrity: sha512-rHj6mnz21Z4PoRZnazbDDICDKW/LCkn5V3N32yMoKc6FHq0zrdZgBLvDnUVBFk+rfeBI9by7Ijgv6M62a5uJLw==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-vGlGo4P6yqBrTBwd59WxwLuBJ6xzWQJwcjUBSmDW6wc7RvDlMBEGIXR2/KPQzpAOaoSU8aS0b6MsOhaf8BMdKQ==, tarball: file:projects/arm-consumption.tgz} version: 0.0.0 '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz': @@ -11456,23 +11456,35 @@ snapshots: - '@swc/wasm' - supports-color - '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz': + '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.68 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(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.0.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.2 + vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2)) 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-containerinstance@file:projects/arm-containerinstance.tgz': dependencies: diff --git a/sdk/consumption/arm-consumption/package.json b/sdk/consumption/arm-consumption/package.json index 6418e4c47d70..9953cbefdba9 100644 --- a/sdk/consumption/arm-consumption/package.json +++ b/sdk/consumption/arm-consumption/package.json @@ -22,9 +22,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-consumption.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", @@ -116,5 +116,26 @@ "selfLink": false }, "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/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" + } + } + } } From d0766edef7237aa330f902aa68e8351e0bfc7cf4 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:30:26 +0800 Subject: [PATCH 13/64] Migration: Update package.json, tsconfig.json, and api-extractor.json --- .../arm-containerinstance/api-extractor.json | 6 +- .../arm-containerinstance/package.json | 93 ++++++++++--------- ....ts => containerinstance_examples.spec.ts} | 0 .../arm-containerinstance/tsconfig.json | 40 ++------ .../tsconfig.samples.json | 10 ++ .../arm-containerinstance/tsconfig.src.json | 3 + .../arm-containerinstance/tsconfig.test.json | 6 ++ 7 files changed, 83 insertions(+), 75 deletions(-) rename sdk/containerinstance/arm-containerinstance/test/{containerinstance_examples.ts => containerinstance_examples.spec.ts} (100%) create mode 100644 sdk/containerinstance/arm-containerinstance/tsconfig.samples.json create mode 100644 sdk/containerinstance/arm-containerinstance/tsconfig.src.json create mode 100644 sdk/containerinstance/arm-containerinstance/tsconfig.test.json diff --git a/sdk/containerinstance/arm-containerinstance/api-extractor.json b/sdk/containerinstance/arm-containerinstance/api-extractor.json index 528b52cec802..33cd31eaf65d 100644 --- a/sdk/containerinstance/arm-containerinstance/api-extractor.json +++ b/sdk/containerinstance/arm-containerinstance/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-containerinstance.d.ts" + "publicTrimmedFilePath": "dist/arm-containerinstance.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/containerinstance/arm-containerinstance/package.json b/sdk/containerinstance/arm-containerinstance/package.json index c68264da642a..46756690e0e2 100644 --- a/sdk/containerinstance/arm-containerinstance/package.json +++ b/sdk/containerinstance/arm-containerinstance/package.json @@ -8,11 +8,11 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^2.1.2", - "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.6.0", + "@azure/core-client": "^1.7.0", + "@azure/core-lro": "^2.5.4", + "@azure/core-paging": "^1.2.0", "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, @@ -28,19 +28,19 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-containerinstance.d.ts", "devDependencies": { - "typescript": "~5.7.2", - "dotenv": "^16.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.2.1", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.1.0", - "mocha": "^11.0.2", - "@types/mocha": "^10.0.0", - "tsx": "^4.7.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "@types/node": "^18.0.0", - "ts-node": "^10.0.0" + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", + "dotenv": "^16.0.0", + "playwright": "^1.49.1", + "tsx": "^4.7.1", + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "repository": { "type": "git", @@ -50,46 +50,36 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "prepack": "npm run build", - "pack": "npm pack 2>&1", - "extract-api": "dev-tool run extract-api", - "lint": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "build:node": "echo skipped", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", - "build:test": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", + "build:test": "echo skipped", "check-format": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", + "extract-api": "dev-tool run extract-api", "format": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", + "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "pack": "npm pack 2>&1", + "prepack": "npm run build", "test": "npm run integration-test", - "test:node": "echo skipped", "test:browser": "echo skipped", + "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", - "unit-test:browser": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest" }, "sideEffects": false, "//metadata": { @@ -109,5 +99,24 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerinstance?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" } diff --git a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.ts b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts similarity index 100% rename from sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.ts rename to sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts diff --git a/sdk/containerinstance/arm-containerinstance/tsconfig.json b/sdk/containerinstance/arm-containerinstance/tsconfig.json index c28d6295827d..19ceb382b521 100644 --- a/sdk/containerinstance/arm-containerinstance/tsconfig.json +++ b/sdk/containerinstance/arm-containerinstance/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-containerinstance": [ - "./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/containerinstance/arm-containerinstance/tsconfig.samples.json b/sdk/containerinstance/arm-containerinstance/tsconfig.samples.json new file mode 100644 index 000000000000..aee657e41768 --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-containerinstance": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/containerinstance/arm-containerinstance/tsconfig.src.json b/sdk/containerinstance/arm-containerinstance/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/containerinstance/arm-containerinstance/tsconfig.test.json b/sdk/containerinstance/arm-containerinstance/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} From efb0119eaef7ba649d62ba04a5083bee9cdbade9 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:30:26 +0800 Subject: [PATCH 14/64] Migration: Update test config --- .../tsconfig.browser.config.json | 17 +++++++++++++++++ .../vitest.browser.config.ts | 17 +++++++++++++++++ .../arm-containerinstance/vitest.config.ts | 7 +++++++ .../arm-containerinstance/vitest.esm.config.ts | 12 ++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 sdk/containerinstance/arm-containerinstance/tsconfig.browser.config.json create mode 100644 sdk/containerinstance/arm-containerinstance/vitest.browser.config.ts create mode 100644 sdk/containerinstance/arm-containerinstance/vitest.config.ts create mode 100644 sdk/containerinstance/arm-containerinstance/vitest.esm.config.ts diff --git a/sdk/containerinstance/arm-containerinstance/tsconfig.browser.config.json b/sdk/containerinstance/arm-containerinstance/tsconfig.browser.config.json new file mode 100644 index 000000000000..b6586181d006 --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/tsconfig.browser.config.json @@ -0,0 +1,17 @@ +{ + "extends": "./.tshy/build.json", + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./test/**/*.spec.ts", + "./test/**/*.mts" + ], + "exclude": [ + "./test/**/node/**/*.ts" + ], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/containerinstance/arm-containerinstance/vitest.browser.config.ts b/sdk/containerinstance/arm-containerinstance/vitest.browser.config.ts new file mode 100644 index 000000000000..b48c61b2ef46 --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: [ + "dist-test/browser/test/**/*.spec.js", + ], + }, + }), +); diff --git a/sdk/containerinstance/arm-containerinstance/vitest.config.ts b/sdk/containerinstance/arm-containerinstance/vitest.config.ts new file mode 100644 index 000000000000..cc5cd85d4131 --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/vitest.config.ts @@ -0,0 +1,7 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import viteConfig from "../../../vitest.shared.config.ts"; + +export default viteConfig; diff --git a/sdk/containerinstance/arm-containerinstance/vitest.esm.config.ts b/sdk/containerinstance/arm-containerinstance/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/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 +); From 4541fcff21d6086a10c928a8903d69e61aa37a50 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:30:27 +0800 Subject: [PATCH 15/64] Migration: Clean up files From af132207e0c7978e1f2eacdef50d330f723bc5f0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:30:56 +0800 Subject: [PATCH 16/64] Migration: Apply codemod: "fixSourceFile" --- ...ntainerGroupProfileGetByRevisionNumberSample.ts | 4 +--- .../containerGroupProfileListAllRevisionsSample.ts | 4 +--- .../containerGroupProfilesCreateOrUpdateSample.ts | 4 +--- .../containerGroupProfilesDeleteSample.ts | 4 +--- .../samples-dev/containerGroupProfilesGetSample.ts | 4 +--- ...tainerGroupProfilesListByResourceGroupSample.ts | 4 +--- .../containerGroupProfilesListSample.ts | 4 +--- .../containerGroupProfilesPatchSample.ts | 4 +--- .../containerGroupsCreateOrUpdateSample.ts | 4 +--- .../samples-dev/containerGroupsDeleteSample.ts | 4 +--- .../samples-dev/containerGroupsGetSample.ts | 4 +--- .../containerGroupsListByResourceGroupSample.ts | 4 +--- .../samples-dev/containerGroupsListSample.ts | 4 +--- .../samples-dev/containerGroupsRestartSample.ts | 4 +--- .../samples-dev/containerGroupsStartSample.ts | 4 +--- .../samples-dev/containerGroupsStopSample.ts | 4 +--- .../samples-dev/containerGroupsUpdateSample.ts | 4 +--- .../samples-dev/containersAttachSample.ts | 4 +--- .../samples-dev/containersExecuteCommandSample.ts | 4 +--- .../samples-dev/containersListLogsSample.ts | 4 +--- .../samples-dev/locationListCachedImagesSample.ts | 4 +--- .../samples-dev/locationListCapabilitiesSample.ts | 4 +--- .../samples-dev/locationListUsageSample.ts | 4 +--- .../samples-dev/operationsListSample.ts | 4 +--- .../subnetServiceAssociationLinkDeleteSample.ts | 4 +--- ...ntainerGroupProfileGetByRevisionNumberSample.ts | 4 +--- .../containerGroupProfileListAllRevisionsSample.ts | 4 +--- .../containerGroupProfilesCreateOrUpdateSample.ts | 4 +--- .../src/containerGroupProfilesDeleteSample.ts | 4 +--- .../src/containerGroupProfilesGetSample.ts | 4 +--- ...tainerGroupProfilesListByResourceGroupSample.ts | 4 +--- .../src/containerGroupProfilesListSample.ts | 4 +--- .../src/containerGroupProfilesPatchSample.ts | 4 +--- .../src/containerGroupsCreateOrUpdateSample.ts | 4 +--- .../typescript/src/containerGroupsDeleteSample.ts | 4 +--- .../typescript/src/containerGroupsGetSample.ts | 4 +--- .../containerGroupsListByResourceGroupSample.ts | 4 +--- .../typescript/src/containerGroupsListSample.ts | 4 +--- .../typescript/src/containerGroupsRestartSample.ts | 4 +--- .../typescript/src/containerGroupsStartSample.ts | 4 +--- .../typescript/src/containerGroupsStopSample.ts | 4 +--- .../typescript/src/containerGroupsUpdateSample.ts | 4 +--- .../typescript/src/containersAttachSample.ts | 4 +--- .../src/containersExecuteCommandSample.ts | 4 +--- .../typescript/src/containersListLogsSample.ts | 4 +--- .../src/locationListCachedImagesSample.ts | 4 +--- .../src/locationListCapabilitiesSample.ts | 4 +--- .../typescript/src/locationListUsageSample.ts | 4 +--- .../v9-beta/typescript/src/operationsListSample.ts | 4 +--- .../subnetServiceAssociationLinkDeleteSample.ts | 4 +--- .../src/containerGroupsCreateOrUpdateSample.ts | 4 +--- .../typescript/src/containerGroupsDeleteSample.ts | 4 +--- .../v9/typescript/src/containerGroupsGetSample.ts | 4 +--- .../containerGroupsListByResourceGroupSample.ts | 4 +--- .../v9/typescript/src/containerGroupsListSample.ts | 4 +--- .../typescript/src/containerGroupsRestartSample.ts | 4 +--- .../typescript/src/containerGroupsStartSample.ts | 4 +--- .../v9/typescript/src/containerGroupsStopSample.ts | 4 +--- .../typescript/src/containerGroupsUpdateSample.ts | 4 +--- .../v9/typescript/src/containersAttachSample.ts | 4 +--- .../src/containersExecuteCommandSample.ts | 4 +--- .../v9/typescript/src/containersListLogsSample.ts | 4 +--- .../src/locationListCachedImagesSample.ts | 4 +--- .../src/locationListCapabilitiesSample.ts | 4 +--- .../v9/typescript/src/locationListUsageSample.ts | 4 +--- .../v9/typescript/src/operationsListSample.ts | 4 +--- .../subnetServiceAssociationLinkDeleteSample.ts | 4 +--- .../src/containerInstanceManagementClient.ts | 6 +++--- .../arm-containerinstance/src/index.ts | 8 ++++---- .../arm-containerinstance/src/models/parameters.ts | 2 +- .../operations/containerGroupProfileOperations.ts | 12 ++++++------ .../src/operations/containerGroupProfiles.ts | 12 ++++++------ .../src/operations/containerGroups.ts | 14 +++++++------- .../src/operations/containers.ts | 10 +++++----- .../arm-containerinstance/src/operations/index.ts | 14 +++++++------- .../src/operations/location.ts | 12 ++++++------ .../src/operations/operations.ts | 12 ++++++------ .../src/operations/subnetServiceAssociationLink.ts | 12 ++++++------ .../containerGroupProfileOperations.ts | 2 +- .../operationsInterfaces/containerGroupProfiles.ts | 2 +- .../src/operationsInterfaces/containerGroups.ts | 2 +- .../src/operationsInterfaces/containers.ts | 2 +- .../src/operationsInterfaces/index.ts | 14 +++++++------- .../src/operationsInterfaces/location.ts | 2 +- .../src/operationsInterfaces/operations.ts | 2 +- .../subnetServiceAssociationLink.ts | 2 +- .../test/containerinstance_examples.spec.ts | 9 +++------ 87 files changed, 141 insertions(+), 278 deletions(-) diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileGetByRevisionNumberSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileGetByRevisionNumberSample.ts index 493f9c96f032..89a9260017ad 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileGetByRevisionNumberSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileGetByRevisionNumberSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileListAllRevisionsSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileListAllRevisionsSample.ts index ef41794cf88a..4943e527296a 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileListAllRevisionsSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfileListAllRevisionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; 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 the revisions of the specified container group profile in the given subscription and resource group. This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesCreateOrUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesCreateOrUpdateSample.ts index 7dacf71a21a9..45aab8948e66 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesCreateOrUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container group profiles with specified configurations. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesDeleteSample.ts index f81f2f459641..d6229af92018 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete the specified container group profile in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesGetSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesGetSample.ts index 0a51348af2da..c114b128af13 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesGetSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified container group profile in the specified subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListByResourceGroupSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListByResourceGroupSample.ts index 78eae7c7d048..483cfa2ffab0 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListByResourceGroupSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container group profiles in a specified subscription and resource group. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListSample.ts index dd98bcbeb6e0..6ae643ae068e 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container group profiles in the specified subscription. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesPatchSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesPatchSample.ts index 4738c6420df5..27355b8b6a33 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesPatchSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupProfilesPatchSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Patches container group profile with specified properties. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsCreateOrUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsCreateOrUpdateSample.ts index 7144dd02016e..be9340f84ce9 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsCreateOrUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container groups with specified configurations. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsDeleteSample.ts index d088ba7f91e4..cf235f204c43 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsGetSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsGetSample.ts index 34226cd2c940..068a452d8300 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsGetSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListByResourceGroupSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListByResourceGroupSample.ts index 44cd3d7c6bf9..db34d013b6dc 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListByResourceGroupSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListSample.ts index a74c48d92b65..c31d9e67cceb 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsRestartSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsRestartSample.ts index 62639adc46eb..41ffba2502e1 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsRestartSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsRestartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Restarts all containers in a container group in place. If container image has updates, new image will be downloaded. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStartSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStartSample.ts index d83e15eb0986..5b3ea52cd8ab 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStartSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts all containers in a container group. Compute resources will be allocated and billing will start. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStopSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStopSample.ts index 4e8de0cb20e5..2187bccda456 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStopSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops all containers in a container group. Compute resources will be deallocated and billing will stop. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsUpdateSample.ts index 8d9e67c898ff..b364dad8af53 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containerGroupsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates container group tags with specified values. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containersAttachSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containersAttachSample.ts index d130af7db6cf..0612f97cd81c 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containersAttachSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containersAttachSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Attach to the output stream of a specific container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containersExecuteCommandSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containersExecuteCommandSample.ts index ff0a90b84d06..f101fefc9ef2 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containersExecuteCommandSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containersExecuteCommandSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Executes a command for a specific container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/containersListLogsSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/containersListLogsSample.ts index 2a836846d7e8..8c37f545c930 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/containersListLogsSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/containersListLogsSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the logs for a specified container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCachedImagesSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCachedImagesSample.ts index 47474e8a50e5..d4c62d2c985d 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCachedImagesSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCachedImagesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the list of cached images on specific OS type for a subscription in a region. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCapabilitiesSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCapabilitiesSample.ts index 20f041bb090b..b08eecf6e44e 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCapabilitiesSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/locationListCapabilitiesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the list of CPU/memory/GPU capabilities of a region. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/locationListUsageSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/locationListUsageSample.ts index 566936478a14..e2c5ed73136f 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/locationListUsageSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/locationListUsageSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the usage for a subscription diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/operationsListSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/operationsListSample.ts index a67f3c2b4ab3..005489016091 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/operationsListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the operations for Azure Container Instance service. diff --git a/sdk/containerinstance/arm-containerinstance/samples-dev/subnetServiceAssociationLinkDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples-dev/subnetServiceAssociationLinkDeleteSample.ts index e44c1df56b9b..49292090b6ef 100644 --- a/sdk/containerinstance/arm-containerinstance/samples-dev/subnetServiceAssociationLinkDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples-dev/subnetServiceAssociationLinkDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container group virtual network association links. The operation does not delete other resources provided by the user. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileGetByRevisionNumberSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileGetByRevisionNumberSample.ts index 493f9c96f032..89a9260017ad 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileGetByRevisionNumberSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileGetByRevisionNumberSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified revision of the container group profile in the given subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileListAllRevisionsSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileListAllRevisionsSample.ts index ef41794cf88a..4943e527296a 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileListAllRevisionsSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfileListAllRevisionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; 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 the revisions of the specified container group profile in the given subscription and resource group. This operation returns properties of each revision of the specified container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesCreateOrUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesCreateOrUpdateSample.ts index 7dacf71a21a9..45aab8948e66 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesCreateOrUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container group profiles with specified configurations. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesDeleteSample.ts index f81f2f459641..d6229af92018 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete the specified container group profile in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesGetSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesGetSample.ts index 0a51348af2da..c114b128af13 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesGetSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified container group profile in the specified subscription and resource group. The operation returns the properties of container group profile including containers, image registry credentials, restart policy, IP address type, OS type, volumes, current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListByResourceGroupSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListByResourceGroupSample.ts index 78eae7c7d048..483cfa2ffab0 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListByResourceGroupSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container group profiles in a specified subscription and resource group. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type volumes, current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListSample.ts index dd98bcbeb6e0..6ae643ae068e 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container group profiles in the specified subscription. This operation returns properties of each container group profile including containers, image registry credentials, restart policy, IP address type, OS type,volumes,current revision number, etc. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesPatchSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesPatchSample.ts index 4738c6420df5..27355b8b6a33 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesPatchSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupProfilesPatchSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Patches container group profile with specified properties. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsCreateOrUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsCreateOrUpdateSample.ts index 7144dd02016e..be9340f84ce9 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsCreateOrUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container groups with specified configurations. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsDeleteSample.ts index d088ba7f91e4..cf235f204c43 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsGetSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsGetSample.ts index 34226cd2c940..068a452d8300 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsGetSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListByResourceGroupSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListByResourceGroupSample.ts index 44cd3d7c6bf9..db34d013b6dc 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListByResourceGroupSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListSample.ts index a74c48d92b65..c31d9e67cceb 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsRestartSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsRestartSample.ts index 62639adc46eb..41ffba2502e1 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsRestartSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsRestartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Restarts all containers in a container group in place. If container image has updates, new image will be downloaded. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStartSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStartSample.ts index d83e15eb0986..5b3ea52cd8ab 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStartSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts all containers in a container group. Compute resources will be allocated and billing will start. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStopSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStopSample.ts index 4e8de0cb20e5..2187bccda456 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStopSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops all containers in a container group. Compute resources will be deallocated and billing will stop. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsUpdateSample.ts index 8d9e67c898ff..b364dad8af53 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containerGroupsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates container group tags with specified values. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersAttachSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersAttachSample.ts index d130af7db6cf..0612f97cd81c 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersAttachSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersAttachSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Attach to the output stream of a specific container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersExecuteCommandSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersExecuteCommandSample.ts index ff0a90b84d06..f101fefc9ef2 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersExecuteCommandSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersExecuteCommandSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Executes a command for a specific container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersListLogsSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersListLogsSample.ts index 2a836846d7e8..8c37f545c930 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersListLogsSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/containersListLogsSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient, } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the logs for a specified container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCachedImagesSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCachedImagesSample.ts index 47474e8a50e5..d4c62d2c985d 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCachedImagesSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCachedImagesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the list of cached images on specific OS type for a subscription in a region. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCapabilitiesSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCapabilitiesSample.ts index 20f041bb090b..b08eecf6e44e 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCapabilitiesSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListCapabilitiesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the list of CPU/memory/GPU capabilities of a region. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListUsageSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListUsageSample.ts index 566936478a14..e2c5ed73136f 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListUsageSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/locationListUsageSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the usage for a subscription diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/operationsListSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/operationsListSample.ts index a67f3c2b4ab3..005489016091 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/operationsListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the operations for Azure Container Instance service. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/subnetServiceAssociationLinkDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/subnetServiceAssociationLinkDeleteSample.ts index e44c1df56b9b..49292090b6ef 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/subnetServiceAssociationLinkDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9-beta/typescript/src/subnetServiceAssociationLinkDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container group virtual network association links. The operation does not delete other resources provided by the user. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsCreateOrUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsCreateOrUpdateSample.ts index f60f1cfd9b55..e8e0755b61e9 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsCreateOrUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update container groups with specified configurations. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsDeleteSample.ts index 4e9c2f660116..8f3d3fbdfc84 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsGetSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsGetSample.ts index 1bdf2a735144..bea5bebcc532 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsGetSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListByResourceGroupSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListByResourceGroupSample.ts index a1c1327f34bf..1c74eb5524f9 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListByResourceGroupSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container groups in a specified subscription and resource group. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListSample.ts index f85c92e6be0b..c8dff83de61b 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsRestartSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsRestartSample.ts index 267df67b0b91..1e2e58205394 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsRestartSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsRestartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Restarts all containers in a container group in place. If container image has updates, new image will be downloaded. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStartSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStartSample.ts index bb05c81d37a0..9edf5f040acc 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStartSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts all containers in a container group. Compute resources will be allocated and billing will start. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStopSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStopSample.ts index 5f4dcee8db6f..752e6e6296ba 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStopSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops all containers in a container group. Compute resources will be deallocated and billing will stop. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsUpdateSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsUpdateSample.ts index acffb1f8ae2c..44fe942b7f3e 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsUpdateSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containerGroupsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates container group tags with specified values. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersAttachSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersAttachSample.ts index eaac9e79316d..bbd3c068dfff 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersAttachSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersAttachSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Attach to the output stream of a specific container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersExecuteCommandSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersExecuteCommandSample.ts index 5d418829c882..05fba1f7c96f 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersExecuteCommandSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersExecuteCommandSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Executes a command for a specific container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersListLogsSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersListLogsSample.ts index 603c4e4f7277..8418643b2423 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersListLogsSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/containersListLogsSample.ts @@ -13,9 +13,7 @@ import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the logs for a specified container instance in a specified resource group and container group. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCachedImagesSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCachedImagesSample.ts index 9596ad781a0b..af1a83af76c4 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCachedImagesSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCachedImagesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the list of cached images on specific OS type for a subscription in a region. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCapabilitiesSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCapabilitiesSample.ts index a14d3a6b198b..e6d02a59e1e9 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCapabilitiesSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListCapabilitiesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the list of CPU/memory/GPU capabilities of a region. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListUsageSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListUsageSample.ts index 07e825fcd41f..24854ee24ab9 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListUsageSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/locationListUsageSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the usage for a subscription diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/operationsListSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/operationsListSample.ts index 6bd246afbcfa..06878246e883 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/operationsListSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the operations for Azure Container Instance service. diff --git a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/subnetServiceAssociationLinkDeleteSample.ts b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/subnetServiceAssociationLinkDeleteSample.ts index db1c1fbff885..0937f3263413 100644 --- a/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/subnetServiceAssociationLinkDeleteSample.ts +++ b/sdk/containerinstance/arm-containerinstance/samples/v9/typescript/src/subnetServiceAssociationLinkDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerInstanceManagementClient } from "@azure/arm-containerinstance"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete container group virtual network association links. The operation does not delete other resources provided by the user. diff --git a/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts b/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts index 3ffb3af0c9bc..036859b97962 100644 --- a/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts +++ b/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts @@ -22,7 +22,7 @@ import { SubnetServiceAssociationLinkImpl, ContainerGroupProfilesImpl, ContainerGroupProfileOperationsImpl, -} from "./operations"; +} from "./operations/index.js"; import { ContainerGroups, Operations, @@ -31,8 +31,8 @@ import { SubnetServiceAssociationLink, ContainerGroupProfiles, ContainerGroupProfileOperations, -} from "./operationsInterfaces"; -import { ContainerInstanceManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { ContainerInstanceManagementClientOptionalParams } from "./models/index.js"; export class ContainerInstanceManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/containerinstance/arm-containerinstance/src/index.ts b/sdk/containerinstance/arm-containerinstance/src/index.ts index 852f8921b6ab..e2134aeb5fde 100644 --- a/sdk/containerinstance/arm-containerinstance/src/index.ts +++ b/sdk/containerinstance/arm-containerinstance/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { ContainerInstanceManagementClient } from "./containerInstanceManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { ContainerInstanceManagementClient } from "./containerInstanceManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts b/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts index 913e78247540..cad472385de0 100644 --- a/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts +++ b/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts @@ -17,7 +17,7 @@ import { ContainerExecRequest as ContainerExecRequestMapper, ContainerGroupProfile as ContainerGroupProfileMapper, ContainerGroupProfilePatch as ContainerGroupProfilePatchMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfileOperations.ts b/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfileOperations.ts index 884cef58a568..6185efb3c02b 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfileOperations.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfileOperations.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ContainerGroupProfileOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ContainerGroupProfileOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js"; import { ContainerGroupProfile, ContainerGroupProfileListAllRevisionsNextOptionalParams, @@ -21,7 +21,7 @@ import { ContainerGroupProfileGetByRevisionNumberOptionalParams, ContainerGroupProfileGetByRevisionNumberResponse, ContainerGroupProfileListAllRevisionsNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ContainerGroupProfileOperations operations. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfiles.ts b/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfiles.ts index 6fd320807eb3..d627c764a500 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfiles.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operations/containerGroupProfiles.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ContainerGroupProfiles } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ContainerGroupProfiles } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js"; import { ContainerGroupProfile, ContainerGroupProfilesListNextOptionalParams, @@ -31,7 +31,7 @@ import { ContainerGroupProfilesDeleteOptionalParams, ContainerGroupProfilesListNextResponse, ContainerGroupProfilesListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ContainerGroupProfiles operations. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/containerGroups.ts b/sdk/containerinstance/arm-containerinstance/src/operations/containerGroups.ts index 2cabb797de0d..131c932f1d9f 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/containerGroups.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operations/containerGroups.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ContainerGroups } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ContainerGroups } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ContainerGroup, ContainerGroupsListNextOptionalParams, @@ -43,7 +43,7 @@ import { ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse, ContainerGroupsListNextResponse, ContainerGroupsListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ContainerGroups operations. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/containers.ts b/sdk/containerinstance/arm-containerinstance/src/operations/containers.ts index d1a13762e8b0..ccfbf72c5c0d 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/containers.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operations/containers.ts @@ -6,11 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Containers } from "../operationsInterfaces"; +import { Containers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js"; import { ContainersListLogsOptionalParams, ContainersListLogsResponse, @@ -19,7 +19,7 @@ import { ContainersExecuteCommandResponse, ContainersAttachOptionalParams, ContainersAttachResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing Containers operations. */ export class ContainersImpl implements Containers { diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/index.ts b/sdk/containerinstance/arm-containerinstance/src/operations/index.ts index 7023c151ec9a..db5a1b139fd6 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/index.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operations/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./containerGroups"; -export * from "./operations"; -export * from "./location"; -export * from "./containers"; -export * from "./subnetServiceAssociationLink"; -export * from "./containerGroupProfiles"; -export * from "./containerGroupProfileOperations"; +export * from "./containerGroups.js"; +export * from "./operations.js"; +export * from "./location.js"; +export * from "./containers.js"; +export * from "./subnetServiceAssociationLink.js"; +export * from "./containerGroupProfiles.js"; +export * from "./containerGroupProfileOperations.js"; diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/location.ts b/sdk/containerinstance/arm-containerinstance/src/operations/location.ts index d793a8ff6952..5de1c2d65852 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/location.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operations/location.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Location } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Location } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js"; import { Usage, LocationListUsageOptionalParams, @@ -27,7 +27,7 @@ import { LocationListCapabilitiesResponse, LocationListCachedImagesNextResponse, LocationListCapabilitiesNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Location operations. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/operations.ts b/sdk/containerinstance/arm-containerinstance/src/operations/operations.ts index c1b64ba7d3d3..1f921a31062b 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/operations.ts +++ b/sdk/containerinstance/arm-containerinstance/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 { ContainerInstanceManagementClient } from "../containerInstanceManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operations/subnetServiceAssociationLink.ts b/sdk/containerinstance/arm-containerinstance/src/operations/subnetServiceAssociationLink.ts index 86c9281af1b2..f2435bdfc796 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operations/subnetServiceAssociationLink.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operations/subnetServiceAssociationLink.ts @@ -6,18 +6,18 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { SubnetServiceAssociationLink } from "../operationsInterfaces"; +import { SubnetServiceAssociationLink } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models"; +import { createLroSpec } from "../lroImpl.js"; +import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models/index.js"; /** Class containing SubnetServiceAssociationLink operations. */ export class SubnetServiceAssociationLinkImpl diff --git a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfileOperations.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfileOperations.ts index d4c18dcb1441..c4f5f462b274 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfileOperations.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfileOperations.ts @@ -12,7 +12,7 @@ import { ContainerGroupProfileListAllRevisionsOptionalParams, ContainerGroupProfileGetByRevisionNumberOptionalParams, ContainerGroupProfileGetByRevisionNumberResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ContainerGroupProfileOperations. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfiles.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfiles.ts index a1575fe89ac6..db2a4ab9bba3 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfiles.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroupProfiles.ts @@ -19,7 +19,7 @@ import { ContainerGroupProfilesPatchOptionalParams, ContainerGroupProfilesPatchResponse, ContainerGroupProfilesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ContainerGroupProfiles. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroups.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroups.ts index 74011b0924ed..5876ae93cf58 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroups.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containerGroups.ts @@ -26,7 +26,7 @@ import { ContainerGroupsStartOptionalParams, ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams, ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ContainerGroups. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containers.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containers.ts index b696d71c1e07..9265066daf10 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containers.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/containers.ts @@ -14,7 +14,7 @@ import { ContainersExecuteCommandResponse, ContainersAttachOptionalParams, ContainersAttachResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a Containers. */ export interface Containers { diff --git a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/index.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/index.ts index 7023c151ec9a..db5a1b139fd6 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/index.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/index.ts @@ -6,10 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./containerGroups"; -export * from "./operations"; -export * from "./location"; -export * from "./containers"; -export * from "./subnetServiceAssociationLink"; -export * from "./containerGroupProfiles"; -export * from "./containerGroupProfileOperations"; +export * from "./containerGroups.js"; +export * from "./operations.js"; +export * from "./location.js"; +export * from "./containers.js"; +export * from "./subnetServiceAssociationLink.js"; +export * from "./containerGroupProfiles.js"; +export * from "./containerGroupProfileOperations.js"; diff --git a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/location.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/location.ts index 6cf8ea12e830..b1c6c0eb3c3f 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/location.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/location.ts @@ -14,7 +14,7 @@ import { LocationListCachedImagesOptionalParams, Capabilities, LocationListCapabilitiesOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Location. */ diff --git a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/operations.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/operations.ts index fd5065a90111..37309f5d1f15 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/operations.ts +++ b/sdk/containerinstance/arm-containerinstance/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/containerinstance/arm-containerinstance/src/operationsInterfaces/subnetServiceAssociationLink.ts b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/subnetServiceAssociationLink.ts index d3a9f1a1bd3f..99afa839fe80 100644 --- a/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/subnetServiceAssociationLink.ts +++ b/sdk/containerinstance/arm-containerinstance/src/operationsInterfaces/subnetServiceAssociationLink.ts @@ -7,7 +7,7 @@ */ import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models"; +import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models/index.js"; /** Interface representing a SubnetServiceAssociationLink. */ export interface SubnetServiceAssociationLink { diff --git a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts index 7d2923690c76..92b282e93f24 100644 --- a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts +++ b/sdk/containerinstance/arm-containerinstance/test/containerinstance_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 { ContainerInstanceManagementClient } from "../src/containerInstanceManagementClient"; +import { ContainerInstanceManagementClient } from "../src/containerInstanceManagementClient.js"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" @@ -44,8 +42,8 @@ describe("ContainerInstance test", () => { let containerGroupName: string; let containerInstanceName: 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 @@ -129,7 +127,6 @@ describe("ContainerInstance test", () => { }); it("containerGroups delete test", async function () { - const res = await client.containerGroups.beginDeleteAndWait(resourceGroup, containerGroupName, testPollingOptions); const resArray = new Array(); for await (let item of client.containerGroups.listByResourceGroup(resourceGroup)) { resArray.push(item); From dfb3606648a69b3c04dfb78ca89932e394c9c4a7 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:30:58 +0800 Subject: [PATCH 17/64] Migration: Apply codemod: "fixTestingImports" --- .../test/containerinstance_examples.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts index 92b282e93f24..744776700dbf 100644 --- a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts +++ b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts @@ -13,8 +13,8 @@ import { isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; import { ContainerInstanceManagementClient } from "../src/containerInstanceManagementClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" From 4a3e5c6be215877907c4d9b0da68f4514ddff98b Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:30:59 +0800 Subject: [PATCH 18/64] Migration: Apply codemod: "replaceAssertIsRejected" From a99d380d7575e1111435e461d73af22176764362 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:30:59 +0800 Subject: [PATCH 19/64] Migration: Apply codemod: "replaceSinonStub" From 1eab920c215113a2a1f540fee08c67a49cc378c0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:31:00 +0800 Subject: [PATCH 20/64] Migration: Apply codemod: "addViHelper" From 437bfa157fe73da6430f87aec1958ac3db9757a7 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:31:01 +0800 Subject: [PATCH 21/64] Migration: Apply codemod: "replaceSupportTracing" From 5e5bdf1ec6159fe68bf77c596ef432cee5c8322a Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:31:02 +0800 Subject: [PATCH 22/64] Migration: Apply codemod: "replaceTestUtils" From 638c405f543e53ab9e6f5d3030558b9efabef2b0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:31:19 +0800 Subject: [PATCH 23/64] Migration: rushx format From b3e24ee42c15842c9b5dd4d1d61e73dbe463b742 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:36:15 +0800 Subject: [PATCH 24/64] update --- common/config/rush/pnpm-lock.yaml | 36 ++++++++++++------- .../arm-containerinstance/package.json | 29 ++++++++++++--- 2 files changed, 49 insertions(+), 16 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 538d0270e8ca..effc4f17bdd8 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -216,7 +216,7 @@ importers: version: file:projects/arm-consumption.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerinstance': specifier: file:./projects/arm-containerinstance.tgz - version: file:projects/arm-containerinstance.tgz + version: file:projects/arm-containerinstance.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerorchestratorruntime': specifier: file:./projects/arm-containerorchestratorruntime.tgz version: file:projects/arm-containerorchestratorruntime.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) @@ -2759,7 +2759,7 @@ packages: version: 0.0.0 '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz': - resolution: {integrity: sha512-7Ln6v9AFDpQl/LWoSVgt14Vk/6G6b2Ng5+fPi0xVAu1KmskucUfmcQWof1ZYvqk8YSaYP535tuVUPyi4vL7gwg==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-ZTiZ115zw89oG3iDUqHUCFh5ns50TBtSHRj3DSxJRXw/4w5iIa8elkPZrnbJIth353R69oVu2gDJekNqMvbOGA==, tarball: file:projects/arm-containerinstance.tgz} version: 0.0.0 '@rush-temp/arm-containerorchestratorruntime@file:projects/arm-containerorchestratorruntime.tgz': @@ -11486,25 +11486,37 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz': + '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.68 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(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.0.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.2 + vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2)) 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-containerorchestratorruntime@file:projects/arm-containerorchestratorruntime.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: diff --git a/sdk/containerinstance/arm-containerinstance/package.json b/sdk/containerinstance/arm-containerinstance/package.json index 46756690e0e2..4793c1121cc7 100644 --- a/sdk/containerinstance/arm-containerinstance/package.json +++ b/sdk/containerinstance/arm-containerinstance/package.json @@ -24,9 +24,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-containerinstance.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", @@ -118,5 +118,26 @@ "selfLink": false }, "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/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" + } + } + } } From da23e4c732b6113bc00848ccb6f54b56c62db281 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:37:46 +0800 Subject: [PATCH 25/64] Migration: Update package.json, tsconfig.json, and api-extractor.json --- .../arm-containerregistry/api-extractor.json | 6 +- .../arm-containerregistry/package.json | 61 +++++++++++-------- ....ts => containerregistry_examples.spec.ts} | 0 .../arm-containerregistry/tsconfig.json | 40 +++--------- .../tsconfig.samples.json | 10 +++ .../arm-containerregistry/tsconfig.src.json | 3 + .../arm-containerregistry/tsconfig.test.json | 6 ++ 7 files changed, 67 insertions(+), 59 deletions(-) rename sdk/containerregistry/arm-containerregistry/test/{containerregistry_examples.ts => containerregistry_examples.spec.ts} (100%) create mode 100644 sdk/containerregistry/arm-containerregistry/tsconfig.samples.json create mode 100644 sdk/containerregistry/arm-containerregistry/tsconfig.src.json create mode 100644 sdk/containerregistry/arm-containerregistry/tsconfig.test.json diff --git a/sdk/containerregistry/arm-containerregistry/api-extractor.json b/sdk/containerregistry/arm-containerregistry/api-extractor.json index b882ad942c10..ab9b5d4e6bf5 100644 --- a/sdk/containerregistry/arm-containerregistry/api-extractor.json +++ b/sdk/containerregistry/arm-containerregistry/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-containerregistry.d.ts" + "publicTrimmedFilePath": "dist/arm-containerregistry.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index fbd4396048d8..bc96afe7a788 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -28,18 +28,18 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-containerregistry.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", @@ -87,8 +77,8 @@ "test:browser": "echo skipped", "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -109,5 +99,24 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerregistry?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" } diff --git a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.ts b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts similarity index 100% rename from sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.ts rename to sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts diff --git a/sdk/containerregistry/arm-containerregistry/tsconfig.json b/sdk/containerregistry/arm-containerregistry/tsconfig.json index 87bcf4efb4f3..19ceb382b521 100644 --- a/sdk/containerregistry/arm-containerregistry/tsconfig.json +++ b/sdk/containerregistry/arm-containerregistry/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-containerregistry": [ - "./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/containerregistry/arm-containerregistry/tsconfig.samples.json b/sdk/containerregistry/arm-containerregistry/tsconfig.samples.json new file mode 100644 index 000000000000..aa2baa395f77 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-containerregistry": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/containerregistry/arm-containerregistry/tsconfig.src.json b/sdk/containerregistry/arm-containerregistry/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/containerregistry/arm-containerregistry/tsconfig.test.json b/sdk/containerregistry/arm-containerregistry/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} From 38accc3100f1f268d92aae6d28fe24293d01ad9f Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:37:47 +0800 Subject: [PATCH 26/64] Migration: Update test config --- .../tsconfig.browser.config.json | 17 +++++++++++++++++ .../vitest.browser.config.ts | 17 +++++++++++++++++ .../arm-containerregistry/vitest.config.ts | 7 +++++++ .../arm-containerregistry/vitest.esm.config.ts | 12 ++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 sdk/containerregistry/arm-containerregistry/tsconfig.browser.config.json create mode 100644 sdk/containerregistry/arm-containerregistry/vitest.browser.config.ts create mode 100644 sdk/containerregistry/arm-containerregistry/vitest.config.ts create mode 100644 sdk/containerregistry/arm-containerregistry/vitest.esm.config.ts diff --git a/sdk/containerregistry/arm-containerregistry/tsconfig.browser.config.json b/sdk/containerregistry/arm-containerregistry/tsconfig.browser.config.json new file mode 100644 index 000000000000..b6586181d006 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/tsconfig.browser.config.json @@ -0,0 +1,17 @@ +{ + "extends": "./.tshy/build.json", + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./test/**/*.spec.ts", + "./test/**/*.mts" + ], + "exclude": [ + "./test/**/node/**/*.ts" + ], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/containerregistry/arm-containerregistry/vitest.browser.config.ts b/sdk/containerregistry/arm-containerregistry/vitest.browser.config.ts new file mode 100644 index 000000000000..b48c61b2ef46 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: [ + "dist-test/browser/test/**/*.spec.js", + ], + }, + }), +); diff --git a/sdk/containerregistry/arm-containerregistry/vitest.config.ts b/sdk/containerregistry/arm-containerregistry/vitest.config.ts new file mode 100644 index 000000000000..cc5cd85d4131 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/vitest.config.ts @@ -0,0 +1,7 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import viteConfig from "../../../vitest.shared.config.ts"; + +export default viteConfig; diff --git a/sdk/containerregistry/arm-containerregistry/vitest.esm.config.ts b/sdk/containerregistry/arm-containerregistry/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/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 +); From 52b04369470868e4c97a96045fc39e4909bbda34 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:37:47 +0800 Subject: [PATCH 27/64] Migration: Clean up files From 9177a7730d288e35439471f5eb44f3322bdfff2e Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:33 +0800 Subject: [PATCH 28/64] Migration: Apply codemod: "fixSourceFile" --- .../samples-dev/agentPoolsCreateSample.ts | 4 +- .../samples-dev/agentPoolsDeleteSample.ts | 4 +- .../agentPoolsGetQueueStatusSample.ts | 4 +- .../samples-dev/agentPoolsGetSample.ts | 4 +- .../samples-dev/agentPoolsListSample.ts | 4 +- .../samples-dev/agentPoolsUpdateSample.ts | 4 +- .../archiveVersionsCreateSample.ts | 4 +- .../archiveVersionsDeleteSample.ts | 4 +- .../samples-dev/archiveVersionsGetSample.ts | 4 +- .../samples-dev/archiveVersionsListSample.ts | 4 +- .../samples-dev/archivesCreateSample.ts | 4 +- .../samples-dev/archivesDeleteSample.ts | 4 +- .../samples-dev/archivesGetSample.ts | 4 +- .../samples-dev/archivesListSample.ts | 4 +- .../samples-dev/archivesUpdateSample.ts | 4 +- .../samples-dev/cacheRulesCreateSample.ts | 4 +- .../samples-dev/cacheRulesDeleteSample.ts | 4 +- .../samples-dev/cacheRulesGetSample.ts | 4 +- .../samples-dev/cacheRulesListSample.ts | 4 +- .../samples-dev/cacheRulesUpdateSample.ts | 4 +- .../connectedRegistriesCreateSample.ts | 4 +- .../connectedRegistriesDeactivateSample.ts | 4 +- .../connectedRegistriesDeleteSample.ts | 4 +- .../connectedRegistriesGetSample.ts | 4 +- .../connectedRegistriesListSample.ts | 4 +- .../connectedRegistriesUpdateSample.ts | 4 +- .../samples-dev/credentialSetsCreateSample.ts | 4 +- .../samples-dev/credentialSetsDeleteSample.ts | 4 +- .../samples-dev/credentialSetsGetSample.ts | 4 +- .../samples-dev/credentialSetsListSample.ts | 4 +- .../samples-dev/credentialSetsUpdateSample.ts | 4 +- .../exportPipelinesCreateSample.ts | 4 +- .../exportPipelinesDeleteSample.ts | 4 +- .../samples-dev/exportPipelinesGetSample.ts | 4 +- .../samples-dev/exportPipelinesListSample.ts | 4 +- .../importPipelinesCreateSample.ts | 4 +- .../importPipelinesDeleteSample.ts | 4 +- .../samples-dev/importPipelinesGetSample.ts | 4 +- .../samples-dev/importPipelinesListSample.ts | 4 +- .../samples-dev/operationsListSample.ts | 4 +- .../samples-dev/pipelineRunsCreateSample.ts | 4 +- .../samples-dev/pipelineRunsDeleteSample.ts | 4 +- .../samples-dev/pipelineRunsGetSample.ts | 4 +- .../samples-dev/pipelineRunsListSample.ts | 4 +- ...EndpointConnectionsCreateOrUpdateSample.ts | 4 +- .../privateEndpointConnectionsDeleteSample.ts | 4 +- .../privateEndpointConnectionsGetSample.ts | 4 +- .../privateEndpointConnectionsListSample.ts | 4 +- .../registriesCheckNameAvailabilitySample.ts | 4 +- .../samples-dev/registriesCreateSample.ts | 4 +- .../samples-dev/registriesDeleteSample.ts | 4 +- .../registriesGenerateCredentialsSample.ts | 4 +- ...registriesGetBuildSourceUploadUrlSample.ts | 4 +- .../registriesGetPrivateLinkResourceSample.ts | 4 +- .../samples-dev/registriesGetSample.ts | 4 +- .../registriesImportImageSample.ts | 4 +- .../registriesListByResourceGroupSample.ts | 4 +- .../registriesListCredentialsSample.ts | 4 +- ...egistriesListPrivateLinkResourcesSample.ts | 4 +- .../samples-dev/registriesListSample.ts | 4 +- .../samples-dev/registriesListUsagesSample.ts | 4 +- .../registriesRegenerateCredentialSample.ts | 4 +- .../registriesScheduleRunSample.ts | 4 +- .../samples-dev/registriesUpdateSample.ts | 4 +- .../samples-dev/replicationsCreateSample.ts | 4 +- .../samples-dev/replicationsDeleteSample.ts | 4 +- .../samples-dev/replicationsGetSample.ts | 4 +- .../samples-dev/replicationsListSample.ts | 4 +- .../samples-dev/replicationsUpdateSample.ts | 4 +- .../samples-dev/runsCancelSample.ts | 4 +- .../samples-dev/runsGetLogSasUrlSample.ts | 4 +- .../samples-dev/runsGetSample.ts | 4 +- .../samples-dev/runsListSample.ts | 4 +- .../samples-dev/runsUpdateSample.ts | 4 +- .../samples-dev/scopeMapsCreateSample.ts | 4 +- .../samples-dev/scopeMapsDeleteSample.ts | 4 +- .../samples-dev/scopeMapsGetSample.ts | 4 +- .../samples-dev/scopeMapsListSample.ts | 4 +- .../samples-dev/scopeMapsUpdateSample.ts | 4 +- .../samples-dev/taskRunsCreateSample.ts | 4 +- .../samples-dev/taskRunsDeleteSample.ts | 4 +- .../samples-dev/taskRunsGetDetailsSample.ts | 4 +- .../samples-dev/taskRunsGetSample.ts | 4 +- .../samples-dev/taskRunsListSample.ts | 4 +- .../samples-dev/taskRunsUpdateSample.ts | 4 +- .../samples-dev/tasksCreateSample.ts | 4 +- .../samples-dev/tasksDeleteSample.ts | 4 +- .../samples-dev/tasksGetDetailsSample.ts | 4 +- .../samples-dev/tasksGetSample.ts | 4 +- .../samples-dev/tasksListSample.ts | 4 +- .../samples-dev/tasksUpdateSample.ts | 4 +- .../samples-dev/tokensCreateSample.ts | 4 +- .../samples-dev/tokensDeleteSample.ts | 4 +- .../samples-dev/tokensGetSample.ts | 4 +- .../samples-dev/tokensListSample.ts | 4 +- .../samples-dev/tokensUpdateSample.ts | 4 +- .../samples-dev/webhooksCreateSample.ts | 4 +- .../samples-dev/webhooksDeleteSample.ts | 4 +- .../webhooksGetCallbackConfigSample.ts | 4 +- .../samples-dev/webhooksGetSample.ts | 4 +- .../samples-dev/webhooksListEventsSample.ts | 4 +- .../samples-dev/webhooksListSample.ts | 4 +- .../samples-dev/webhooksPingSample.ts | 4 +- .../samples-dev/webhooksUpdateSample.ts | 4 +- .../typescript/src/agentPoolsCreateSample.ts | 4 +- .../typescript/src/agentPoolsDeleteSample.ts | 4 +- .../src/agentPoolsGetQueueStatusSample.ts | 4 +- .../typescript/src/agentPoolsGetSample.ts | 4 +- .../typescript/src/agentPoolsListSample.ts | 4 +- .../typescript/src/agentPoolsUpdateSample.ts | 4 +- .../src/archiveVersionsCreateSample.ts | 4 +- .../src/archiveVersionsDeleteSample.ts | 4 +- .../src/archiveVersionsGetSample.ts | 4 +- .../src/archiveVersionsListSample.ts | 4 +- .../typescript/src/archivesCreateSample.ts | 4 +- .../typescript/src/archivesDeleteSample.ts | 4 +- .../typescript/src/archivesGetSample.ts | 4 +- .../typescript/src/archivesListSample.ts | 4 +- .../typescript/src/archivesUpdateSample.ts | 4 +- .../typescript/src/cacheRulesCreateSample.ts | 4 +- .../typescript/src/cacheRulesDeleteSample.ts | 4 +- .../typescript/src/cacheRulesGetSample.ts | 4 +- .../typescript/src/cacheRulesListSample.ts | 4 +- .../typescript/src/cacheRulesUpdateSample.ts | 4 +- .../src/connectedRegistriesCreateSample.ts | 4 +- .../connectedRegistriesDeactivateSample.ts | 4 +- .../src/connectedRegistriesDeleteSample.ts | 4 +- .../src/connectedRegistriesGetSample.ts | 4 +- .../src/connectedRegistriesListSample.ts | 4 +- .../src/connectedRegistriesUpdateSample.ts | 4 +- .../src/credentialSetsCreateSample.ts | 4 +- .../src/credentialSetsDeleteSample.ts | 4 +- .../typescript/src/credentialSetsGetSample.ts | 4 +- .../src/credentialSetsListSample.ts | 4 +- .../src/credentialSetsUpdateSample.ts | 4 +- .../src/exportPipelinesCreateSample.ts | 4 +- .../src/exportPipelinesDeleteSample.ts | 4 +- .../src/exportPipelinesGetSample.ts | 4 +- .../src/exportPipelinesListSample.ts | 4 +- .../src/importPipelinesCreateSample.ts | 4 +- .../src/importPipelinesDeleteSample.ts | 4 +- .../src/importPipelinesGetSample.ts | 4 +- .../src/importPipelinesListSample.ts | 4 +- .../typescript/src/operationsListSample.ts | 4 +- .../src/pipelineRunsCreateSample.ts | 4 +- .../src/pipelineRunsDeleteSample.ts | 4 +- .../typescript/src/pipelineRunsGetSample.ts | 4 +- .../typescript/src/pipelineRunsListSample.ts | 4 +- ...EndpointConnectionsCreateOrUpdateSample.ts | 4 +- .../privateEndpointConnectionsDeleteSample.ts | 4 +- .../privateEndpointConnectionsGetSample.ts | 4 +- .../privateEndpointConnectionsListSample.ts | 4 +- .../registriesCheckNameAvailabilitySample.ts | 4 +- .../typescript/src/registriesCreateSample.ts | 4 +- .../typescript/src/registriesDeleteSample.ts | 4 +- .../registriesGenerateCredentialsSample.ts | 4 +- ...registriesGetBuildSourceUploadUrlSample.ts | 4 +- .../registriesGetPrivateLinkResourceSample.ts | 4 +- .../typescript/src/registriesGetSample.ts | 4 +- .../src/registriesImportImageSample.ts | 4 +- .../registriesListByResourceGroupSample.ts | 4 +- .../src/registriesListCredentialsSample.ts | 4 +- ...egistriesListPrivateLinkResourcesSample.ts | 4 +- .../typescript/src/registriesListSample.ts | 4 +- .../src/registriesListUsagesSample.ts | 4 +- .../registriesRegenerateCredentialSample.ts | 4 +- .../src/registriesScheduleRunSample.ts | 4 +- .../typescript/src/registriesUpdateSample.ts | 4 +- .../src/replicationsCreateSample.ts | 4 +- .../src/replicationsDeleteSample.ts | 4 +- .../typescript/src/replicationsGetSample.ts | 4 +- .../typescript/src/replicationsListSample.ts | 4 +- .../src/replicationsUpdateSample.ts | 4 +- .../typescript/src/runsCancelSample.ts | 4 +- .../typescript/src/runsGetLogSasUrlSample.ts | 4 +- .../v11-beta/typescript/src/runsGetSample.ts | 4 +- .../v11-beta/typescript/src/runsListSample.ts | 4 +- .../typescript/src/runsUpdateSample.ts | 4 +- .../typescript/src/scopeMapsCreateSample.ts | 4 +- .../typescript/src/scopeMapsDeleteSample.ts | 4 +- .../typescript/src/scopeMapsGetSample.ts | 4 +- .../typescript/src/scopeMapsListSample.ts | 4 +- .../typescript/src/scopeMapsUpdateSample.ts | 4 +- .../typescript/src/taskRunsCreateSample.ts | 4 +- .../typescript/src/taskRunsDeleteSample.ts | 4 +- .../src/taskRunsGetDetailsSample.ts | 4 +- .../typescript/src/taskRunsGetSample.ts | 4 +- .../typescript/src/taskRunsListSample.ts | 4 +- .../typescript/src/taskRunsUpdateSample.ts | 4 +- .../typescript/src/tasksCreateSample.ts | 4 +- .../typescript/src/tasksDeleteSample.ts | 4 +- .../typescript/src/tasksGetDetailsSample.ts | 4 +- .../v11-beta/typescript/src/tasksGetSample.ts | 4 +- .../typescript/src/tasksListSample.ts | 4 +- .../typescript/src/tasksUpdateSample.ts | 4 +- .../typescript/src/tokensCreateSample.ts | 4 +- .../typescript/src/tokensDeleteSample.ts | 4 +- .../typescript/src/tokensGetSample.ts | 4 +- .../typescript/src/tokensListSample.ts | 4 +- .../typescript/src/tokensUpdateSample.ts | 4 +- .../typescript/src/webhooksCreateSample.ts | 4 +- .../typescript/src/webhooksDeleteSample.ts | 4 +- .../src/webhooksGetCallbackConfigSample.ts | 4 +- .../typescript/src/webhooksGetSample.ts | 4 +- .../src/webhooksListEventsSample.ts | 4 +- .../typescript/src/webhooksListSample.ts | 4 +- .../typescript/src/webhooksPingSample.ts | 4 +- .../typescript/src/webhooksUpdateSample.ts | 4 +- .../src/containerRegistryManagementClient.ts | 6 +-- .../arm-containerregistry/src/index.ts | 8 ++-- .../src/models/parameters.ts | 2 +- .../src/operations/agentPools.ts | 14 +++---- .../src/operations/archiveVersions.ts | 14 +++---- .../src/operations/archives.ts | 14 +++---- .../src/operations/cacheRules.ts | 14 +++---- .../src/operations/connectedRegistries.ts | 14 +++---- .../src/operations/credentialSets.ts | 14 +++---- .../src/operations/exportPipelines.ts | 14 +++---- .../src/operations/importPipelines.ts | 14 +++---- .../src/operations/index.ts | 38 +++++++++---------- .../src/operations/operations.ts | 12 +++--- .../src/operations/pipelineRuns.ts | 14 +++---- .../operations/privateEndpointConnections.ts | 14 +++---- .../src/operations/registries.ts | 14 +++---- .../src/operations/replications.ts | 14 +++---- .../src/operations/runs.ts | 14 +++---- .../src/operations/scopeMaps.ts | 14 +++---- .../src/operations/taskRuns.ts | 14 +++---- .../src/operations/tasks.ts | 14 +++---- .../src/operations/tokens.ts | 14 +++---- .../src/operations/webhooks.ts | 14 +++---- .../src/operationsInterfaces/agentPools.ts | 2 +- .../operationsInterfaces/archiveVersions.ts | 2 +- .../src/operationsInterfaces/archives.ts | 2 +- .../src/operationsInterfaces/cacheRules.ts | 2 +- .../connectedRegistries.ts | 2 +- .../operationsInterfaces/credentialSets.ts | 2 +- .../operationsInterfaces/exportPipelines.ts | 2 +- .../operationsInterfaces/importPipelines.ts | 2 +- .../src/operationsInterfaces/index.ts | 38 +++++++++---------- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/pipelineRuns.ts | 2 +- .../privateEndpointConnections.ts | 2 +- .../src/operationsInterfaces/registries.ts | 2 +- .../src/operationsInterfaces/replications.ts | 2 +- .../src/operationsInterfaces/runs.ts | 2 +- .../src/operationsInterfaces/scopeMaps.ts | 2 +- .../src/operationsInterfaces/taskRuns.ts | 2 +- .../src/operationsInterfaces/tasks.ts | 2 +- .../src/operationsInterfaces/tokens.ts | 2 +- .../src/operationsInterfaces/webhooks.ts | 2 +- .../test/containerregistry_examples.spec.ts | 10 ++--- 252 files changed, 408 insertions(+), 828 deletions(-) diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsCreateSample.ts index 96173d262a5d..9191268f42b4 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates an agent pool for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsDeleteSample.ts index 1a8455292a8c..edffacc2c75d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a specified agent pool resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetQueueStatusSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetQueueStatusSample.ts index 0945d825db8c..f35564d959f6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetQueueStatusSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetQueueStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the count of queued runs for a given agent pool. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetSample.ts index 638c7026c47a..739acb856e90 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given agent pool. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsListSample.ts index 89a1e5a4b265..c6c33faf0fc0 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the agent pools for a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsUpdateSample.ts index cd6f35b93540..fe2b155b3e7a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/agentPoolsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates an agent pool with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsCreateSample.ts index 7351d28cb9aa..1ae6c0c3ca4a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsCreateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a archive for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsDeleteSample.ts index 825a057681e7..429f14cc3401 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a archive version from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsGetSample.ts index 99df6539ae28..21e688b8a485 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the archive version. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsListSample.ts index a51bc56f6103..067afe56387a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archiveVersionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all archive versions for the specified container registry, repository type and archive name. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesCreateSample.ts index 985e48a1d8ea..e10e39c2bddc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a archive for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesDeleteSample.ts index 2b8c99567c1d..843692296dd7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a archive from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesGetSample.ts index 45b22bafca49..7583068b1cfc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the archive. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesListSample.ts index c6c3ba5af852..17cbcc28ea24 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all archives for the specified container registry and package type. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesUpdateSample.ts index 1117c3104370..2d0c483d5157 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/archivesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/archivesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a archive for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts index e910f5452dde..fab43c09f432 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a cache rule for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts index cd194e664c70..1ba3ca315ab7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a cache rule resource from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts index f0faf1c8201f..797cac9a8812 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified cache rule resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts index 87d8e4b79c16..9335869d8001 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all cache rule resources for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts index dcd8b10503d1..ddab9e5c3b8b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/cacheRulesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a cache rule for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesCreateSample.ts index a482d331d167..079f947c96ce 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a connected registry for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeactivateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeactivateSample.ts index 451493e6e59b..185a6d6bc018 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeactivateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeactivateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deactivates the connected registry instance. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeleteSample.ts index 17add1be95da..e18aee70163c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a connected registry from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesGetSample.ts index 9c36e63aa01d..b1cfaf513e25 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the connected registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesListSample.ts index c6ca33d2b4c5..39143b8de842 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all connected registries for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesUpdateSample.ts index 6ce05dd4155a..f59336c38ef8 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/connectedRegistriesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a connected registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts index 3161a6d59ba7..2b3b93e0244b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a credential set for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts index 51b1f53763db..9797dcd480b0 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a credential set from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts index 2999eae2ee93..733ee52971df 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified credential set resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts index c9e41d15332a..56574b04ec67 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all credential set resources for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts index 7bdcc34b579f..8e2c17692edb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/credentialSetsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a credential set for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesCreateSample.ts index 5ca7cf1782dd..476f3d8d27df 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates an export pipeline for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesDeleteSample.ts index d592c20ada0b..dae7a54594fc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an export pipeline from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesGetSample.ts index cb1724722906..dac07666a55a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the export pipeline. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesListSample.ts index 0149d82dbf79..941eea435f4e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/exportPipelinesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all export pipelines for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesCreateSample.ts index 445d358f8b03..8b77587b3027 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates an import pipeline for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesDeleteSample.ts index f2851baa8ef1..7a2b6e9dc6eb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an import pipeline from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesGetSample.ts index 74748eb3956e..3eb937d0c1ed 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the import pipeline. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesListSample.ts index 76586c7a85e9..47a6384f8959 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/importPipelinesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all import pipelines for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts index 949abbfed3a0..bc6110b1d5ca 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 Azure Container Registry REST API operations. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsCreateSample.ts index 572c0954c248..d1dc023d3d2d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a pipeline run for a container registry with the specified parameters diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsDeleteSample.ts index 5282e0afce8a..98d32887741c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a pipeline run from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsGetSample.ts index df6c8fcf6cc0..c62d58d6aecf 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given pipeline run. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsListSample.ts index 9dda0472510d..9c65a2353e66 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/pipelineRunsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the pipeline runs for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts index 514fcac3c6aa..02e046b4acee 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts index ba1d897e5219..de27d4369ac5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts index b6989f315e89..b44b130a98d1 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts index ffcceac48ad3..f92df98343b6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts index 07eb7faede4e..cb4aa4c60e5d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCheckNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts index 1858b406278d..ed39e1139914 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts index f130127be550..b5ff55becfe6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts index f95bf4cef504..15539a8c0c11 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGenerateCredentialsSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate keys for a token of a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetBuildSourceUploadUrlSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetBuildSourceUploadUrlSample.ts index 133b44ba354d..22fca90de975 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetBuildSourceUploadUrlSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetBuildSourceUploadUrlSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the upload location for the user to be able to upload the source. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts index bf068a9f0dec..0a56b566c598 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetPrivateLinkResourceSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a private link resource by a specified group name for a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts index 23b1a198a386..bb06a12515ad 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts index 0dcaa8b3aceb..3e518d2681ef 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesImportImageSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Copies an image to this container registry from the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts index 4c93ca2bd2ca..70c615cbf197 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the container registries under the specified resource group. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts index 1f64f5cfb199..49b1fbc2ee1e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the login credentials for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts index 8d77b077de5a..e20472de6edb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the private link resources for a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts index f57f33783961..c327db31f748 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the container registries under the specified subscription. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts index 7b2a2c911955..630f00d275b5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesListUsagesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the quota usages for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts index 8a1bd842f1a1..b7ababd9b9d3 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesRegenerateCredentialSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerates one of the login credentials for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesScheduleRunSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesScheduleRunSample.ts index a48b66f85e1f..06d258b913ed 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesScheduleRunSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesScheduleRunSample.ts @@ -16,9 +16,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Schedules a new run based on the request parameters and add it to the run queue. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts index a2187114ddca..527f475750fb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/registriesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts index af92f5dde668..97057f48001a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts index e74f8f6d4898..3d2bf9501cbc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a replication from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts index 7002a55a8014..8297fdbc9fa2 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified replication. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts index 09799e5b2106..1e46cf298ae6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the replications for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts index 78ada6aebf84..68d4854d2000 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/replicationsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a replication for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/runsCancelSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/runsCancelSample.ts index 27dc8a10f5dd..01d31e2f9be6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/runsCancelSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/runsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancel an existing run. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetLogSasUrlSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetLogSasUrlSample.ts index 936e98193e9e..55860923692a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetLogSasUrlSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetLogSasUrlSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a link to download the run logs. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetSample.ts index e6ec1e998818..a87f6e146add 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/runsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given run. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/runsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/runsListSample.ts index f19661d89687..8ab203554084 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/runsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/runsListSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets all the runs for a registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/runsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/runsUpdateSample.ts index 9376891e482d..096d16871a4b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/runsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/runsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Patch the run properties. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts index 1391177b6120..9371488243e9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a scope map for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts index e554dcafe2ea..f47c5745a573 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a scope map from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts index f760c0fb58a2..d54d7bb9f6cd 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified scope map. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts index 9a2793f1c453..ba8493b8bd5e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the scope maps for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts index ec271edd2138..261003f32879 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/scopeMapsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a scope map with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsCreateSample.ts index e03b4682d3cb..3bad82e5071d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a task run for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsDeleteSample.ts index 41576ea08524..ea5c9c49bd18 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a specified task run resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetDetailsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetDetailsSample.ts index 3cfb0597391e..0be7d55beac5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetDetailsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetDetailsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given task run that includes all secrets. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetSample.ts index 539ba2aa5575..92bc09d66632 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given task run. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsListSample.ts index ddfba3a95cfa..66aa263b6fae 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the task runs for a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsUpdateSample.ts index 9fc38dc26273..c14ed0d8759f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/taskRunsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a task run with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksCreateSample.ts index 9791b51d8368..9a031fb3a9a8 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a task for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksDeleteSample.ts index 96d76d7ce4a0..c4a4af311ab2 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a specified task. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetDetailsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetDetailsSample.ts index 068e94a585ce..957e0267a7e1 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetDetailsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetDetailsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a task with extended information that includes all secrets. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetSample.ts index 9f5117d3fc8c..02bc084908b5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the properties of a specified task. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksListSample.ts index 1f28e286410e..7dfb792ab395 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the tasks for a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksUpdateSample.ts index ab5b010d1031..a902baf425f4 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tasksUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tasksUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a task with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts index 1e00fbc4fc98..d83b03b5c772 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a token for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts index 07333e5cc6b9..4cb1d55bba73 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a token from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts index cdb16296433f..e13701de6de4 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified token. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts index 3faf3b8bc329..d5c50d55825c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the tokens for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts index 22c45e57c441..ef3d13fcb406 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/tokensUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a token with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts index d9922a40af8c..b2bfcc8e25c0 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a webhook for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts index 6d781222b259..5a4715d128c5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a webhook from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts index d09fc7ea1cb3..9349d2a9440a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetCallbackConfigSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the configuration of service URI and custom headers for the webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts index 42f8ccada19e..0006c6cb5a51 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts index 9da6ff953b93..0d604647b940 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListEventsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists recent events for the specified webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts index 8d152e084b2e..b89fb2222b1d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the webhooks for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts index 52823f90cf2c..b1bcc41df8c8 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksPingSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers a ping event to be sent to the webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts index 190af2b03aa8..9f5d6cf5dfe5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples-dev/webhooksUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a webhook with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsCreateSample.ts index 96173d262a5d..9191268f42b4 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates an agent pool for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsDeleteSample.ts index 1a8455292a8c..edffacc2c75d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a specified agent pool resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetQueueStatusSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetQueueStatusSample.ts index 0945d825db8c..f35564d959f6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetQueueStatusSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetQueueStatusSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the count of queued runs for a given agent pool. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetSample.ts index 638c7026c47a..739acb856e90 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given agent pool. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsListSample.ts index 89a1e5a4b265..c6c33faf0fc0 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the agent pools for a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsUpdateSample.ts index cd6f35b93540..fe2b155b3e7a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/agentPoolsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates an agent pool with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsCreateSample.ts index 7351d28cb9aa..1ae6c0c3ca4a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsCreateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a archive for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsDeleteSample.ts index 825a057681e7..429f14cc3401 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a archive version from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsGetSample.ts index 99df6539ae28..21e688b8a485 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the archive version. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsListSample.ts index a51bc56f6103..067afe56387a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archiveVersionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all archive versions for the specified container registry, repository type and archive name. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesCreateSample.ts index 985e48a1d8ea..e10e39c2bddc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a archive for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesDeleteSample.ts index 2b8c99567c1d..843692296dd7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a archive from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesGetSample.ts index 45b22bafca49..7583068b1cfc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the archive. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesListSample.ts index c6c3ba5af852..17cbcc28ea24 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all archives for the specified container registry and package type. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesUpdateSample.ts index 1117c3104370..2d0c483d5157 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/archivesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a archive for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts index e910f5452dde..fab43c09f432 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a cache rule for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts index cd194e664c70..1ba3ca315ab7 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a cache rule resource from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts index f0faf1c8201f..797cac9a8812 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified cache rule resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts index 87d8e4b79c16..9335869d8001 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all cache rule resources for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts index dcd8b10503d1..ddab9e5c3b8b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/cacheRulesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a cache rule for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesCreateSample.ts index a482d331d167..079f947c96ce 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a connected registry for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeactivateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeactivateSample.ts index 451493e6e59b..185a6d6bc018 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeactivateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeactivateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deactivates the connected registry instance. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeleteSample.ts index 17add1be95da..e18aee70163c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a connected registry from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesGetSample.ts index 9c36e63aa01d..b1cfaf513e25 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the connected registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesListSample.ts index c6ca33d2b4c5..39143b8de842 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all connected registries for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesUpdateSample.ts index 6ce05dd4155a..f59336c38ef8 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/connectedRegistriesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a connected registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts index 3161a6d59ba7..2b3b93e0244b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a credential set for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts index 51b1f53763db..9797dcd480b0 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a credential set from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts index 2999eae2ee93..733ee52971df 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified credential set resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts index c9e41d15332a..56574b04ec67 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all credential set resources for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts index 7bdcc34b579f..8e2c17692edb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/credentialSetsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a credential set for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesCreateSample.ts index 5ca7cf1782dd..476f3d8d27df 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates an export pipeline for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesDeleteSample.ts index d592c20ada0b..dae7a54594fc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an export pipeline from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesGetSample.ts index cb1724722906..dac07666a55a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the export pipeline. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesListSample.ts index 0149d82dbf79..941eea435f4e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/exportPipelinesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all export pipelines for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesCreateSample.ts index 445d358f8b03..8b77587b3027 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates an import pipeline for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesDeleteSample.ts index f2851baa8ef1..7a2b6e9dc6eb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an import pipeline from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesGetSample.ts index 74748eb3956e..3eb937d0c1ed 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the import pipeline. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesListSample.ts index 76586c7a85e9..47a6384f8959 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/importPipelinesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all import pipelines for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/operationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/operationsListSample.ts index 949abbfed3a0..bc6110b1d5ca 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/operationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 Azure Container Registry REST API operations. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsCreateSample.ts index 572c0954c248..d1dc023d3d2d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a pipeline run for a container registry with the specified parameters diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsDeleteSample.ts index 5282e0afce8a..98d32887741c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a pipeline run from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsGetSample.ts index df6c8fcf6cc0..c62d58d6aecf 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given pipeline run. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsListSample.ts index 9dda0472510d..9c65a2353e66 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/pipelineRunsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the pipeline runs for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts index 514fcac3c6aa..02e046b4acee 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts index ba1d897e5219..de27d4369ac5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsGetSample.ts index b6989f315e89..b44b130a98d1 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsListSample.ts index ffcceac48ad3..f92df98343b6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; 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 container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCheckNameAvailabilitySample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCheckNameAvailabilitySample.ts index 07eb7faede4e..cb4aa4c60e5d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCheckNameAvailabilitySample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCheckNameAvailabilitySample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCreateSample.ts index 1858b406278d..ed39e1139914 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesDeleteSample.ts index f130127be550..b5ff55becfe6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGenerateCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGenerateCredentialsSample.ts index f95bf4cef504..15539a8c0c11 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGenerateCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGenerateCredentialsSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Generate keys for a token of a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetBuildSourceUploadUrlSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetBuildSourceUploadUrlSample.ts index 133b44ba354d..22fca90de975 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetBuildSourceUploadUrlSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetBuildSourceUploadUrlSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the upload location for the user to be able to upload the source. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetPrivateLinkResourceSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetPrivateLinkResourceSample.ts index bf068a9f0dec..0a56b566c598 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetPrivateLinkResourceSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetPrivateLinkResourceSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a private link resource by a specified group name for a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetSample.ts index 23b1a198a386..bb06a12515ad 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesImportImageSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesImportImageSample.ts index 0dcaa8b3aceb..3e518d2681ef 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesImportImageSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesImportImageSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Copies an image to this container registry from the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListByResourceGroupSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListByResourceGroupSample.ts index 4c93ca2bd2ca..70c615cbf197 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListByResourceGroupSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the container registries under the specified resource group. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListCredentialsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListCredentialsSample.ts index 1f64f5cfb199..49b1fbc2ee1e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListCredentialsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the login credentials for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListPrivateLinkResourcesSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListPrivateLinkResourcesSample.ts index 8d77b077de5a..e20472de6edb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListPrivateLinkResourcesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListPrivateLinkResourcesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the private link resources for a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListSample.ts index f57f33783961..c327db31f748 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the container registries under the specified subscription. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListUsagesSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListUsagesSample.ts index 7b2a2c911955..630f00d275b5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListUsagesSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesListUsagesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the quota usages for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesRegenerateCredentialSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesRegenerateCredentialSample.ts index 8a1bd842f1a1..b7ababd9b9d3 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesRegenerateCredentialSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesRegenerateCredentialSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Regenerates one of the login credentials for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesScheduleRunSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesScheduleRunSample.ts index a48b66f85e1f..06d258b913ed 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesScheduleRunSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesScheduleRunSample.ts @@ -16,9 +16,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Schedules a new run based on the request parameters and add it to the run queue. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesUpdateSample.ts index a2187114ddca..527f475750fb 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/registriesUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsCreateSample.ts index af92f5dde668..97057f48001a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a replication for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsDeleteSample.ts index e74f8f6d4898..3d2bf9501cbc 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a replication from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsGetSample.ts index 7002a55a8014..8297fdbc9fa2 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified replication. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsListSample.ts index 09799e5b2106..1e46cf298ae6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the replications for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsUpdateSample.ts index 78ada6aebf84..68d4854d2000 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/replicationsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a replication for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsCancelSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsCancelSample.ts index 27dc8a10f5dd..01d31e2f9be6 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsCancelSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsCancelSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Cancel an existing run. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetLogSasUrlSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetLogSasUrlSample.ts index 936e98193e9e..55860923692a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetLogSasUrlSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetLogSasUrlSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a link to download the run logs. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetSample.ts index e6ec1e998818..a87f6e146add 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given run. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsListSample.ts index f19661d89687..8ab203554084 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsListSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets all the runs for a registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsUpdateSample.ts index 9376891e482d..096d16871a4b 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/runsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Patch the run properties. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsCreateSample.ts index 1391177b6120..9371488243e9 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a scope map for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsDeleteSample.ts index e554dcafe2ea..f47c5745a573 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a scope map from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsGetSample.ts index f760c0fb58a2..d54d7bb9f6cd 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified scope map. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsListSample.ts index 9a2793f1c453..ba8493b8bd5e 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the scope maps for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsUpdateSample.ts index ec271edd2138..261003f32879 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/scopeMapsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a scope map with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsCreateSample.ts index e03b4682d3cb..3bad82e5071d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a task run for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsDeleteSample.ts index 41576ea08524..ea5c9c49bd18 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a specified task run resource. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetDetailsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetDetailsSample.ts index 3cfb0597391e..0be7d55beac5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetDetailsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetDetailsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given task run that includes all secrets. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetSample.ts index 539ba2aa5575..92bc09d66632 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the detailed information for a given task run. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsListSample.ts index ddfba3a95cfa..66aa263b6fae 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the task runs for a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsUpdateSample.ts index 9fc38dc26273..c14ed0d8759f 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/taskRunsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a task run with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksCreateSample.ts index 9791b51d8368..9a031fb3a9a8 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a task for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksDeleteSample.ts index 96d76d7ce4a0..c4a4af311ab2 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a specified task. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetDetailsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetDetailsSample.ts index 068e94a585ce..957e0267a7e1 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetDetailsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetDetailsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Returns a task with extended information that includes all secrets. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetSample.ts index 9f5117d3fc8c..02bc084908b5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the properties of a specified task. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksListSample.ts index 1f28e286410e..7dfb792ab395 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the tasks for a specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksUpdateSample.ts index ab5b010d1031..a902baf425f4 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tasksUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a task with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensCreateSample.ts index 1e00fbc4fc98..d83b03b5c772 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a token for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensDeleteSample.ts index 07333e5cc6b9..4cb1d55bba73 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a token from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensGetSample.ts index cdb16296433f..e13701de6de4 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified token. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensListSample.ts index 3faf3b8bc329..d5c50d55825c 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the tokens for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensUpdateSample.ts index 22c45e57c441..ef3d13fcb406 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/tokensUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a token with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksCreateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksCreateSample.ts index d9922a40af8c..b2bfcc8e25c0 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksCreateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates a webhook for a container registry with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksDeleteSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksDeleteSample.ts index 6d781222b259..5a4715d128c5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksDeleteSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a webhook from a container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetCallbackConfigSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetCallbackConfigSample.ts index d09fc7ea1cb3..9349d2a9440a 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetCallbackConfigSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetCallbackConfigSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the configuration of service URI and custom headers for the webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetSample.ts index 42f8ccada19e..0006c6cb5a51 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the properties of the specified webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListEventsSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListEventsSample.ts index 9da6ff953b93..0d604647b940 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListEventsSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListEventsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists recent events for the specified webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListSample.ts index 8d152e084b2e..b89fb2222b1d 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists all the webhooks for the specified container registry. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksPingSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksPingSample.ts index 52823f90cf2c..b1bcc41df8c8 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksPingSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksPingSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Triggers a ping event to be sent to the webhook. diff --git a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksUpdateSample.ts b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksUpdateSample.ts index 190af2b03aa8..9f5d6cf5dfe5 100644 --- a/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksUpdateSample.ts +++ b/sdk/containerregistry/arm-containerregistry/samples/v11-beta/typescript/src/webhooksUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a webhook with the specified parameters. diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 8e5c65cfdde5..65a5624fbcb0 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -29,7 +29,7 @@ import { RunsImpl, TaskRunsImpl, TasksImpl -} from "./operations"; +} from "./operations/index.js"; import { Archives, ArchiveVersions, @@ -50,8 +50,8 @@ import { Runs, TaskRuns, Tasks -} from "./operationsInterfaces"; -import { ContainerRegistryManagementClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { ContainerRegistryManagementClientOptionalParams } from "./models/index.js"; export class ContainerRegistryManagementClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/containerregistry/arm-containerregistry/src/index.ts b/sdk/containerregistry/arm-containerregistry/src/index.ts index 79ae5b59ae7a..56e5299717ab 100644 --- a/sdk/containerregistry/arm-containerregistry/src/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { ContainerRegistryManagementClient } from "./containerRegistryManagementClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { ContainerRegistryManagementClient } from "./containerRegistryManagementClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts index a4a21f1bd99f..aaa209899028 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts @@ -46,7 +46,7 @@ import { TaskRunUpdateParameters as TaskRunUpdateParametersMapper, Task as TaskMapper, TaskUpdateParameters as TaskUpdateParametersMapper -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts index 93fb4cc63265..6a65abc2334c 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AgentPools } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { AgentPools } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { AgentPool, AgentPoolsListNextOptionalParams, @@ -35,7 +35,7 @@ import { AgentPoolsGetQueueStatusOptionalParams, AgentPoolsGetQueueStatusResponse, AgentPoolsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing AgentPools operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts b/sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts index 0bf1780f4660..e4c3c6b6ebbf 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/archiveVersions.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ArchiveVersions } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ArchiveVersions } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ArchiveVersion, ArchiveVersionsListNextOptionalParams, @@ -31,7 +31,7 @@ import { ArchiveVersionsDeleteOptionalParams, ArchiveVersionsDeleteResponse, ArchiveVersionsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ArchiveVersions operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/archives.ts b/sdk/containerregistry/arm-containerregistry/src/operations/archives.ts index a66addf17612..2fc921ef63f3 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/archives.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/archives.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Archives } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Archives } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Archive, ArchivesListNextOptionalParams, @@ -34,7 +34,7 @@ import { ArchivesUpdateOptionalParams, ArchivesUpdateResponse, ArchivesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Archives operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts b/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts index 092e5ed068c9..3bd7d67592f0 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/cacheRules.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CacheRules } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CacheRules } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { CacheRule, CacheRulesListNextOptionalParams, @@ -34,7 +34,7 @@ import { CacheRulesUpdateOptionalParams, CacheRulesUpdateResponse, CacheRulesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing CacheRules operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts index 2b1b9029d438..70a86f0a5a26 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ConnectedRegistries } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ConnectedRegistries } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ConnectedRegistry, ConnectedRegistriesListNextOptionalParams, @@ -34,7 +34,7 @@ import { ConnectedRegistriesUpdateResponse, ConnectedRegistriesDeactivateOptionalParams, ConnectedRegistriesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ConnectedRegistries operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts b/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts index 6904ea02873a..4b3abc0f9e6c 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/credentialSets.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CredentialSets } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CredentialSets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { CredentialSet, CredentialSetsListNextOptionalParams, @@ -34,7 +34,7 @@ import { CredentialSetsUpdateOptionalParams, CredentialSetsUpdateResponse, CredentialSetsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing CredentialSets operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts index 5805d3047f48..d1ef704642e9 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ExportPipelines } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ExportPipelines } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ExportPipeline, ExportPipelinesListNextOptionalParams, @@ -30,7 +30,7 @@ import { ExportPipelinesCreateResponse, ExportPipelinesDeleteOptionalParams, ExportPipelinesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ExportPipelines operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts index 2bd0ae9cda2f..8e532bedd622 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ImportPipelines } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ImportPipelines } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ImportPipeline, ImportPipelinesListNextOptionalParams, @@ -30,7 +30,7 @@ import { ImportPipelinesCreateResponse, ImportPipelinesDeleteOptionalParams, ImportPipelinesListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ImportPipelines operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts index e3ca3ae68bbf..3c97b38e6f89 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts @@ -6,22 +6,22 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./archives"; -export * from "./archiveVersions"; -export * from "./cacheRules"; -export * from "./connectedRegistries"; -export * from "./credentialSets"; -export * from "./exportPipelines"; -export * from "./registries"; -export * from "./importPipelines"; -export * from "./operations"; -export * from "./pipelineRuns"; -export * from "./privateEndpointConnections"; -export * from "./replications"; -export * from "./scopeMaps"; -export * from "./tokens"; -export * from "./webhooks"; -export * from "./agentPools"; -export * from "./runs"; -export * from "./taskRuns"; -export * from "./tasks"; +export * from "./archives.js"; +export * from "./archiveVersions.js"; +export * from "./cacheRules.js"; +export * from "./connectedRegistries.js"; +export * from "./credentialSets.js"; +export * from "./exportPipelines.js"; +export * from "./registries.js"; +export * from "./importPipelines.js"; +export * from "./operations.js"; +export * from "./pipelineRuns.js"; +export * from "./privateEndpointConnections.js"; +export * from "./replications.js"; +export * from "./scopeMaps.js"; +export * from "./tokens.js"; +export * from "./webhooks.js"; +export * from "./agentPools.js"; +export * from "./runs.js"; +export * from "./taskRuns.js"; +export * from "./tasks.js"; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts b/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts index 140cb37f24ef..7e5236bce990 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts +++ b/sdk/containerregistry/arm-containerregistry/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 { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { OperationDefinition, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts index c060eed091e6..36e1ff5cb964 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { PipelineRuns } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { PipelineRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { PipelineRun, PipelineRunsListNextOptionalParams, @@ -30,7 +30,7 @@ import { PipelineRunsCreateResponse, PipelineRunsDeleteOptionalParams, PipelineRunsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing PipelineRuns operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts index 8304b6c2b4f3..c8f483b2f379 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { PrivateEndpointConnections } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { PrivateEndpointConnections } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListNextOptionalParams, @@ -30,7 +30,7 @@ import { PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing PrivateEndpointConnections operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts index f6f4056a9039..c50abbcdc873 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Registries } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Registries } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Registry, RegistriesListNextOptionalParams, @@ -64,7 +64,7 @@ import { RegistriesListNextResponse, RegistriesListByResourceGroupNextResponse, RegistriesListPrivateLinkResourcesNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Registries operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts index 943fd83ac6a5..706ffb4aa575 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Replications } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Replications } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Replication, ReplicationsListNextOptionalParams, @@ -33,7 +33,7 @@ import { ReplicationsUpdateOptionalParams, ReplicationsUpdateResponse, ReplicationsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Replications operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts index 30938b342de4..4d74ae0b5752 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Runs } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Runs } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Run, RunsListNextOptionalParams, @@ -33,7 +33,7 @@ import { RunsGetLogSasUrlResponse, RunsCancelOptionalParams, RunsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Runs operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts index 89bbb38408e4..62c1045e089b 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ScopeMaps } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ScopeMaps } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ScopeMap, ScopeMapsListNextOptionalParams, @@ -33,7 +33,7 @@ import { ScopeMapsUpdateOptionalParams, ScopeMapsUpdateResponse, ScopeMapsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing ScopeMaps operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts index dc51ff016a2a..6142261ac406 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { TaskRuns } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { TaskRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { TaskRun, TaskRunsListNextOptionalParams, @@ -35,7 +35,7 @@ import { TaskRunsGetDetailsOptionalParams, TaskRunsGetDetailsResponse, TaskRunsListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing TaskRuns operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts index 725f9846842e..05957c08c3ae 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Tasks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Tasks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Task, TasksListNextOptionalParams, @@ -35,7 +35,7 @@ import { TasksGetDetailsOptionalParams, TasksGetDetailsResponse, TasksListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Tasks operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts index 994da66b5a64..e3439a4e8a0d 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Tokens } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Tokens } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Token, TokensListNextOptionalParams, @@ -33,7 +33,7 @@ import { TokensUpdateOptionalParams, TokensUpdateResponse, TokensListNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Tokens operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts index 8cffdaff5620..a27b02fa2a0c 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Webhooks } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Webhooks } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js"; import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Webhook, WebhooksListNextOptionalParams, @@ -43,7 +43,7 @@ import { WebhooksGetCallbackConfigResponse, WebhooksListNextResponse, WebhooksListEventsNextResponse -} from "../models"; +} from "../models/index.js"; /// /** Class containing Webhooks operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/agentPools.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/agentPools.ts index c1752b9be2ed..561753ab1633 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/agentPools.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/agentPools.ts @@ -21,7 +21,7 @@ import { AgentPoolsUpdateResponse, AgentPoolsGetQueueStatusOptionalParams, AgentPoolsGetQueueStatusResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a AgentPools. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts index 0755f1182070..4348bc834ccc 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archiveVersions.ts @@ -17,7 +17,7 @@ import { ArchiveVersionsCreateResponse, ArchiveVersionsDeleteOptionalParams, ArchiveVersionsDeleteResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ArchiveVersions. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts index 694b1e6b84ea..7a9150e249d6 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/archives.ts @@ -20,7 +20,7 @@ import { ArchiveUpdateParameters, ArchivesUpdateOptionalParams, ArchivesUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Archives. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts index 2627ed487e00..30a1fa4e743a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/cacheRules.ts @@ -20,7 +20,7 @@ import { CacheRuleUpdateParameters, CacheRulesUpdateOptionalParams, CacheRulesUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CacheRules. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts index a77e270099c6..d6cd844d595c 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/connectedRegistries.ts @@ -20,7 +20,7 @@ import { ConnectedRegistriesUpdateOptionalParams, ConnectedRegistriesUpdateResponse, ConnectedRegistriesDeactivateOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ConnectedRegistries. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts index 1da83819a2e6..3a2b82d6ee67 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/credentialSets.ts @@ -20,7 +20,7 @@ import { CredentialSetUpdateParameters, CredentialSetsUpdateOptionalParams, CredentialSetsUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a CredentialSets. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts index f9e5a0754c7b..698204114f11 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/exportPipelines.ts @@ -16,7 +16,7 @@ import { ExportPipelinesCreateOptionalParams, ExportPipelinesCreateResponse, ExportPipelinesDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ExportPipelines. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts index 4c2a9db43d63..aea08d9036f0 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/importPipelines.ts @@ -16,7 +16,7 @@ import { ImportPipelinesCreateOptionalParams, ImportPipelinesCreateResponse, ImportPipelinesDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ImportPipelines. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts index e3ca3ae68bbf..3c97b38e6f89 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/index.ts @@ -6,22 +6,22 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./archives"; -export * from "./archiveVersions"; -export * from "./cacheRules"; -export * from "./connectedRegistries"; -export * from "./credentialSets"; -export * from "./exportPipelines"; -export * from "./registries"; -export * from "./importPipelines"; -export * from "./operations"; -export * from "./pipelineRuns"; -export * from "./privateEndpointConnections"; -export * from "./replications"; -export * from "./scopeMaps"; -export * from "./tokens"; -export * from "./webhooks"; -export * from "./agentPools"; -export * from "./runs"; -export * from "./taskRuns"; -export * from "./tasks"; +export * from "./archives.js"; +export * from "./archiveVersions.js"; +export * from "./cacheRules.js"; +export * from "./connectedRegistries.js"; +export * from "./credentialSets.js"; +export * from "./exportPipelines.js"; +export * from "./registries.js"; +export * from "./importPipelines.js"; +export * from "./operations.js"; +export * from "./pipelineRuns.js"; +export * from "./privateEndpointConnections.js"; +export * from "./replications.js"; +export * from "./scopeMaps.js"; +export * from "./tokens.js"; +export * from "./webhooks.js"; +export * from "./agentPools.js"; +export * from "./runs.js"; +export * from "./taskRuns.js"; +export * from "./tasks.js"; diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/operations.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/operations.ts index 13e0cb5d44ea..9f479a9a3009 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/operations.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/operations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { OperationDefinition, OperationsListOptionalParams } from "../models"; +import { OperationDefinition, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts index de9cd488fc1f..b1cb14ecdf4c 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/pipelineRuns.ts @@ -16,7 +16,7 @@ import { PipelineRunsCreateOptionalParams, PipelineRunsCreateResponse, PipelineRunsDeleteOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a PipelineRuns. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/privateEndpointConnections.ts index 420ddbd0abd4..ac505adec327 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/containerregistry/arm-containerregistry/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/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts index 0bc6a6e3f597..1be2f46cc836 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/registries.ts @@ -44,7 +44,7 @@ import { RegistriesScheduleRunResponse, RegistriesGetBuildSourceUploadUrlOptionalParams, RegistriesGetBuildSourceUploadUrlResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Registries. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts index 596011b8fad5..aa22dd84c059 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/replications.ts @@ -19,7 +19,7 @@ import { ReplicationUpdateParameters, ReplicationsUpdateOptionalParams, ReplicationsUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Replications. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/runs.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/runs.ts index 85a0bde40a6d..f366c15c8423 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/runs.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/runs.ts @@ -19,7 +19,7 @@ import { RunsGetLogSasUrlOptionalParams, RunsGetLogSasUrlResponse, RunsCancelOptionalParams -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Runs. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts index e6fa5cd216ae..81f0adf50c07 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/scopeMaps.ts @@ -19,7 +19,7 @@ import { ScopeMapUpdateParameters, ScopeMapsUpdateOptionalParams, ScopeMapsUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ScopeMaps. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/taskRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/taskRuns.ts index e3b7096d0f34..b82a2be65b17 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/taskRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/taskRuns.ts @@ -21,7 +21,7 @@ import { TaskRunsUpdateResponse, TaskRunsGetDetailsOptionalParams, TaskRunsGetDetailsResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a TaskRuns. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tasks.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tasks.ts index 87e13fd3db03..9743d6d00b12 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tasks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tasks.ts @@ -21,7 +21,7 @@ import { TasksUpdateResponse, TasksGetDetailsOptionalParams, TasksGetDetailsResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Tasks. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts index 6e4e8b565372..7cf5ece00a1a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/tokens.ts @@ -19,7 +19,7 @@ import { TokenUpdateParameters, TokensUpdateOptionalParams, TokensUpdateResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Tokens. */ diff --git a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts index 62765189545f..763a49bd3d4d 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operationsInterfaces/webhooks.ts @@ -26,7 +26,7 @@ import { WebhooksPingResponse, WebhooksGetCallbackConfigOptionalParams, WebhooksGetCallbackConfigResponse -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Webhooks. */ diff --git a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts index 3aec37490c4a..a6a71575d270 100644 --- a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts +++ b/sdk/containerregistry/arm-containerregistry/test/containerregistry_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 { ContainerRegistryManagementClient } from "../src/containerRegistryManagementClient"; +import { ContainerRegistryManagementClient } from "../src/containerRegistryManagementClient.js"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", @@ -48,8 +46,8 @@ describe("ContainerRegistry test", () => { let exportPipelineName: string; let taskName: 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 @@ -244,7 +242,6 @@ describe("ContainerRegistry test", () => { }); it("tasks delete test", async function () { - const res = await client.tasks.beginDeleteAndWait(resourceGroup, registryName, taskName, testPollingOptions); const resArray = new Array(); for await (let item of client.tasks.list(resourceGroup, registryName)) { resArray.push(item); @@ -253,6 +250,5 @@ describe("ContainerRegistry test", () => { }); it("registries delete test", async function () { - const res = await client.registries.beginDeleteAndWait(resourceGroup, registryName, testPollingOptions); }); }); From 8aa302d19c0e10b73acb87d7fd280e37f2898122 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:35 +0800 Subject: [PATCH 29/64] Migration: Apply codemod: "fixTestingImports" --- .../test/containerregistry_examples.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts index a6a71575d270..1b0eac1226e3 100644 --- a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts +++ b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts @@ -13,8 +13,8 @@ import { isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; import { ContainerRegistryManagementClient } from "../src/containerRegistryManagementClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", From a72c2600e1cfa0e30c12ec6209337fa878fc7860 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:37 +0800 Subject: [PATCH 30/64] Migration: Apply codemod: "replaceAssertIsRejected" From 9e35e7ae0b455a0d30bcfe39abe0df0647ef69b4 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:38 +0800 Subject: [PATCH 31/64] Migration: Apply codemod: "replaceSinonStub" From d57f9d025e06962155da285fa1e0a7241bf2559c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:40 +0800 Subject: [PATCH 32/64] Migration: Apply codemod: "addViHelper" From 2efa96fe87e312fbbf04e8cb051f7a88424b9912 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:41 +0800 Subject: [PATCH 33/64] Migration: Apply codemod: "replaceSupportTracing" From 534d3b6848bcf9db53b30a3be9b3ba295507d16a Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:42 +0800 Subject: [PATCH 34/64] Migration: Apply codemod: "replaceTestUtils" From e262406331da7e69125e2838a1f9cf0cf7bef10c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:38:44 +0800 Subject: [PATCH 35/64] Migration: rushx format From 68f0a10af0867c9e0a84d0db1eddfd32e4d6d2a5 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:51:51 +0800 Subject: [PATCH 36/64] update --- common/config/rush/pnpm-lock.yaml | 36 ++++++++++++------- .../arm-containerregistry/package.json | 29 ++++++++++++--- 2 files changed, 49 insertions(+), 16 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index effc4f17bdd8..2f794bc8fa42 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -222,7 +222,7 @@ importers: version: file:projects/arm-containerorchestratorruntime.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerregistry': specifier: file:./projects/arm-containerregistry.tgz - version: file:projects/arm-containerregistry.tgz + version: file:projects/arm-containerregistry.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerservice': specifier: file:./projects/arm-containerservice.tgz version: file:projects/arm-containerservice.tgz @@ -2767,7 +2767,7 @@ packages: version: 0.0.0 '@rush-temp/arm-containerregistry@file:projects/arm-containerregistry.tgz': - resolution: {integrity: sha512-nQRVE5Dmd7+CxKK/OWv2BMjjjo5LVgiZJ45yqkwf3YqCijeakpNZH9eZNfSwDlZSxCo8wPw1qkqjgJ4XhS2dFw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-zII4fD+eeO6r8MqgydlAPLGdLyDyvmfP2QMV1QlbJToolMdzZUrVAt97PzzqYztpfkK8tAVzt33b2O00KVeZEA==, tarball: file:projects/arm-containerregistry.tgz} version: 0.0.0 '@rush-temp/arm-containerservice-1@file:projects/arm-containerservice-1.tgz': @@ -11550,25 +11550,37 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-containerregistry@file:projects/arm-containerregistry.tgz': + '@rush-temp/arm-containerregistry@file:projects/arm-containerregistry.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(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.68 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(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.0.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.2 + vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2)) 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-containerservice-1@file:projects/arm-containerservice-1.tgz': dependencies: diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index bc96afe7a788..0c180fbe0c7f 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -24,9 +24,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-containerregistry.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", @@ -118,5 +118,26 @@ "selfLink": false }, "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/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" + } + } + } } From 6d4ea28c70d6d165f5dce900624f663ddc3cc9ea Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:54:32 +0800 Subject: [PATCH 37/64] Migration: Update package.json, tsconfig.json, and api-extractor.json --- .../arm-containerservice/api-extractor.json | 6 +- .../arm-containerservice/package.json | 95 ++++++++++--------- ...s.ts => containerservice_examples.spec.ts} | 0 .../arm-containerservice/tsconfig.json | 40 ++------ .../tsconfig.samples.json | 10 ++ .../arm-containerservice/tsconfig.src.json | 3 + .../arm-containerservice/tsconfig.test.json | 6 ++ 7 files changed, 84 insertions(+), 76 deletions(-) rename sdk/containerservice/arm-containerservice/test/{containerservice_examples.ts => containerservice_examples.spec.ts} (100%) create mode 100644 sdk/containerservice/arm-containerservice/tsconfig.samples.json create mode 100644 sdk/containerservice/arm-containerservice/tsconfig.src.json create mode 100644 sdk/containerservice/arm-containerservice/tsconfig.test.json diff --git a/sdk/containerservice/arm-containerservice/api-extractor.json b/sdk/containerservice/arm-containerservice/api-extractor.json index 6594c3bc4da3..60d2859ba2fb 100644 --- a/sdk/containerservice/arm-containerservice/api-extractor.json +++ b/sdk/containerservice/arm-containerservice/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-containerservice.d.ts" + "publicTrimmedFilePath": "dist/arm-containerservice.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index b1cce49be8e3..d62b279b7fa6 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -8,11 +8,11 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^2.1.2", - "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.6.0", + "@azure/core-client": "^1.7.0", + "@azure/core-lro": "^2.5.4", + "@azure/core-paging": "^1.2.0", "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, @@ -28,20 +28,20 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-containerservice.d.ts", "devDependencies": { - "@microsoft/api-extractor": "^7.31.1", - "typescript": "~5.7.2", - "dotenv": "^16.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.2.1", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.1.0", - "mocha": "^11.0.2", - "@types/mocha": "^10.0.0", - "tsx": "^4.7.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", + "@microsoft/api-extractor": "^7.31.1", "@types/node": "^18.0.0", - "ts-node": "^10.0.0" + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", + "dotenv": "^16.0.0", + "playwright": "^1.49.1", + "tsx": "^4.7.1", + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "repository": { "type": "git", @@ -51,46 +51,36 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "prepack": "npm run build", - "pack": "npm pack 2>&1", - "extract-api": "dev-tool run extract-api", - "lint": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "build:node": "echo skipped", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", - "build:test": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", + "build:test": "echo skipped", "check-format": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", + "extract-api": "dev-tool run extract-api", "format": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", + "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "pack": "npm pack 2>&1", + "prepack": "npm run build", "test": "npm run integration-test", - "test:node": "echo skipped", "test:browser": "echo skipped", + "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", - "unit-test:browser": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped", + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -111,5 +101,24 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservice?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" } diff --git a/sdk/containerservice/arm-containerservice/test/containerservice_examples.ts b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts similarity index 100% rename from sdk/containerservice/arm-containerservice/test/containerservice_examples.ts rename to sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts diff --git a/sdk/containerservice/arm-containerservice/tsconfig.json b/sdk/containerservice/arm-containerservice/tsconfig.json index 8ed6d45d047a..19ceb382b521 100644 --- a/sdk/containerservice/arm-containerservice/tsconfig.json +++ b/sdk/containerservice/arm-containerservice/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-containerservice": [ - "./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/containerservice/arm-containerservice/tsconfig.samples.json b/sdk/containerservice/arm-containerservice/tsconfig.samples.json new file mode 100644 index 000000000000..6b5291589906 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-containerservice": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/containerservice/arm-containerservice/tsconfig.src.json b/sdk/containerservice/arm-containerservice/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/containerservice/arm-containerservice/tsconfig.test.json b/sdk/containerservice/arm-containerservice/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/containerservice/arm-containerservice/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} From 7ba78d8ca55ca38b4e238d6f5c150f7dea36020c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:54:33 +0800 Subject: [PATCH 38/64] Migration: Update test config --- .../tsconfig.browser.config.json | 17 +++++++++++++++++ .../vitest.browser.config.ts | 17 +++++++++++++++++ .../arm-containerservice/vitest.config.ts | 7 +++++++ .../arm-containerservice/vitest.esm.config.ts | 12 ++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 sdk/containerservice/arm-containerservice/tsconfig.browser.config.json create mode 100644 sdk/containerservice/arm-containerservice/vitest.browser.config.ts create mode 100644 sdk/containerservice/arm-containerservice/vitest.config.ts create mode 100644 sdk/containerservice/arm-containerservice/vitest.esm.config.ts diff --git a/sdk/containerservice/arm-containerservice/tsconfig.browser.config.json b/sdk/containerservice/arm-containerservice/tsconfig.browser.config.json new file mode 100644 index 000000000000..b6586181d006 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/tsconfig.browser.config.json @@ -0,0 +1,17 @@ +{ + "extends": "./.tshy/build.json", + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./test/**/*.spec.ts", + "./test/**/*.mts" + ], + "exclude": [ + "./test/**/node/**/*.ts" + ], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/containerservice/arm-containerservice/vitest.browser.config.ts b/sdk/containerservice/arm-containerservice/vitest.browser.config.ts new file mode 100644 index 000000000000..b48c61b2ef46 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: [ + "dist-test/browser/test/**/*.spec.js", + ], + }, + }), +); diff --git a/sdk/containerservice/arm-containerservice/vitest.config.ts b/sdk/containerservice/arm-containerservice/vitest.config.ts new file mode 100644 index 000000000000..cc5cd85d4131 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/vitest.config.ts @@ -0,0 +1,7 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import viteConfig from "../../../vitest.shared.config.ts"; + +export default viteConfig; diff --git a/sdk/containerservice/arm-containerservice/vitest.esm.config.ts b/sdk/containerservice/arm-containerservice/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/containerservice/arm-containerservice/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 +); From 94cee6434495082b77d393f9cd1828a212b60a8c Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:54:33 +0800 Subject: [PATCH 39/64] Migration: Clean up files From 33963f8e0d938a1fb8dde3153e8cdd6b00d929c0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:12 +0800 Subject: [PATCH 40/64] Migration: Apply codemod: "fixSourceFile" --- .../agentPoolsAbortLatestOperationSample.ts | 4 +-- .../agentPoolsCreateOrUpdateSample.ts | 4 +-- .../agentPoolsDeleteMachinesSample.ts | 4 +-- .../samples-dev/agentPoolsDeleteSample.ts | 4 +-- ...oolsGetAvailableAgentPoolVersionsSample.ts | 4 +-- .../samples-dev/agentPoolsGetSample.ts | 4 +-- .../agentPoolsGetUpgradeProfileSample.ts | 4 +-- .../samples-dev/agentPoolsListSample.ts | 4 +-- ...agentPoolsUpgradeNodeImageVersionSample.ts | 4 +-- .../loadBalancersCreateOrUpdateSample.ts | 4 +-- .../samples-dev/loadBalancersDeleteSample.ts | 4 +-- .../samples-dev/loadBalancersGetSample.ts | 4 +-- ...loadBalancersListByManagedClusterSample.ts | 4 +-- .../samples-dev/machinesGetSample.ts | 4 +-- .../samples-dev/machinesListSample.ts | 4 +-- ...nanceConfigurationsCreateOrUpdateSample.ts | 4 +-- .../maintenanceConfigurationsDeleteSample.ts | 4 +-- .../maintenanceConfigurationsGetSample.ts | 4 +-- ...onfigurationsListByManagedClusterSample.ts | 4 +-- ...gedClusterSnapshotsCreateOrUpdateSample.ts | 4 +-- .../managedClusterSnapshotsDeleteSample.ts | 4 +-- .../managedClusterSnapshotsGetSample.ts | 4 +-- ...usterSnapshotsListByResourceGroupSample.ts | 4 +-- .../managedClusterSnapshotsListSample.ts | 4 +-- ...managedClusterSnapshotsUpdateTagsSample.ts | 4 +-- ...nagedClustersAbortLatestOperationSample.ts | 4 +-- .../managedClustersCreateOrUpdateSample.ts | 4 +-- .../managedClustersDeleteSample.ts | 4 +-- .../managedClustersGetAccessProfileSample.ts | 4 +-- .../managedClustersGetCommandResultSample.ts | 4 +-- ...agedClustersGetGuardrailsVersionsSample.ts | 4 +-- ...gedClustersGetMeshRevisionProfileSample.ts | 4 +-- ...agedClustersGetMeshUpgradeProfileSample.ts | 4 +-- ...agedClustersGetSafeguardsVersionsSample.ts | 4 +-- .../samples-dev/managedClustersGetSample.ts | 4 +-- .../managedClustersGetUpgradeProfileSample.ts | 4 +-- ...anagedClustersListByResourceGroupSample.ts | 4 +-- ...ustersListClusterAdminCredentialsSample.ts | 4 +-- ...tClusterMonitoringUserCredentialsSample.ts | 4 +-- ...lustersListClusterUserCredentialsSample.ts | 4 +-- ...gedClustersListGuardrailsVersionsSample.ts | 4 +-- ...gedClustersListKubernetesVersionsSample.ts | 4 +-- ...dClustersListMeshRevisionProfilesSample.ts | 4 +-- ...edClustersListMeshUpgradeProfilesSample.ts | 4 +-- ...boundNetworkDependenciesEndpointsSample.ts | 4 +-- ...gedClustersListSafeguardsVersionsSample.ts | 4 +-- .../samples-dev/managedClustersListSample.ts | 4 +-- ...gedClustersRebalanceLoadBalancersSample.ts | 4 +-- .../managedClustersResetAadProfileSample.ts | 4 +-- ...stersResetServicePrincipalProfileSample.ts | 4 +-- ...ClustersRotateClusterCertificatesSample.ts | 4 +-- ...rsRotateServiceAccountSigningKeysSample.ts | 4 +-- .../managedClustersRunCommandSample.ts | 4 +-- .../samples-dev/managedClustersStartSample.ts | 4 +-- .../samples-dev/managedClustersStopSample.ts | 4 +-- .../managedClustersUpdateTagsSample.ts | 4 +-- ...erationStatusResultGetByAgentPoolSample.ts | 4 +-- .../operationStatusResultGetSample.ts | 4 +-- .../operationStatusResultListSample.ts | 4 +-- .../samples-dev/operationsListSample.ts | 4 +-- .../privateEndpointConnectionsDeleteSample.ts | 4 +-- .../privateEndpointConnectionsGetSample.ts | 4 +-- .../privateEndpointConnectionsListSample.ts | 4 +-- .../privateEndpointConnectionsUpdateSample.ts | 4 +-- .../privateLinkResourcesListSample.ts | 4 +-- .../resolvePrivateLinkServiceIdPostSample.ts | 4 +-- .../snapshotsCreateOrUpdateSample.ts | 4 +-- .../samples-dev/snapshotsDeleteSample.ts | 4 +-- .../samples-dev/snapshotsGetSample.ts | 4 +-- .../snapshotsListByResourceGroupSample.ts | 4 +-- .../samples-dev/snapshotsListSample.ts | 4 +-- .../samples-dev/snapshotsUpdateTagsSample.ts | 4 +-- ...dAccessRoleBindingsCreateOrUpdateSample.ts | 4 +-- .../trustedAccessRoleBindingsDeleteSample.ts | 4 +-- .../trustedAccessRoleBindingsGetSample.ts | 4 +-- .../trustedAccessRoleBindingsListSample.ts | 4 +-- .../trustedAccessRolesListSample.ts | 4 +-- .../agentPoolsAbortLatestOperationSample.ts | 4 +-- .../src/agentPoolsCreateOrUpdateSample.ts | 4 +-- .../src/agentPoolsDeleteMachinesSample.ts | 4 +-- .../typescript/src/agentPoolsDeleteSample.ts | 4 +-- ...oolsGetAvailableAgentPoolVersionsSample.ts | 4 +-- .../typescript/src/agentPoolsGetSample.ts | 4 +-- .../src/agentPoolsGetUpgradeProfileSample.ts | 4 +-- .../typescript/src/agentPoolsListSample.ts | 4 +-- ...agentPoolsUpgradeNodeImageVersionSample.ts | 4 +-- .../src/loadBalancersCreateOrUpdateSample.ts | 4 +-- .../src/loadBalancersDeleteSample.ts | 4 +-- .../typescript/src/loadBalancersGetSample.ts | 4 +-- ...loadBalancersListByManagedClusterSample.ts | 4 +-- .../typescript/src/machinesGetSample.ts | 4 +-- .../typescript/src/machinesListSample.ts | 4 +-- ...nanceConfigurationsCreateOrUpdateSample.ts | 4 +-- .../maintenanceConfigurationsDeleteSample.ts | 4 +-- .../src/maintenanceConfigurationsGetSample.ts | 4 +-- ...onfigurationsListByManagedClusterSample.ts | 4 +-- ...gedClusterSnapshotsCreateOrUpdateSample.ts | 4 +-- .../managedClusterSnapshotsDeleteSample.ts | 4 +-- .../src/managedClusterSnapshotsGetSample.ts | 4 +-- ...usterSnapshotsListByResourceGroupSample.ts | 4 +-- .../src/managedClusterSnapshotsListSample.ts | 4 +-- ...managedClusterSnapshotsUpdateTagsSample.ts | 4 +-- ...nagedClustersAbortLatestOperationSample.ts | 4 +-- .../managedClustersCreateOrUpdateSample.ts | 4 +-- .../src/managedClustersDeleteSample.ts | 4 +-- .../managedClustersGetAccessProfileSample.ts | 4 +-- .../managedClustersGetCommandResultSample.ts | 4 +-- ...agedClustersGetGuardrailsVersionsSample.ts | 4 +-- ...gedClustersGetMeshRevisionProfileSample.ts | 4 +-- ...agedClustersGetMeshUpgradeProfileSample.ts | 4 +-- ...agedClustersGetSafeguardsVersionsSample.ts | 4 +-- .../src/managedClustersGetSample.ts | 4 +-- .../managedClustersGetUpgradeProfileSample.ts | 4 +-- ...anagedClustersListByResourceGroupSample.ts | 4 +-- ...ustersListClusterAdminCredentialsSample.ts | 4 +-- ...tClusterMonitoringUserCredentialsSample.ts | 4 +-- ...lustersListClusterUserCredentialsSample.ts | 4 +-- ...gedClustersListGuardrailsVersionsSample.ts | 4 +-- ...gedClustersListKubernetesVersionsSample.ts | 4 +-- ...dClustersListMeshRevisionProfilesSample.ts | 4 +-- ...edClustersListMeshUpgradeProfilesSample.ts | 4 +-- ...boundNetworkDependenciesEndpointsSample.ts | 4 +-- ...gedClustersListSafeguardsVersionsSample.ts | 4 +-- .../src/managedClustersListSample.ts | 4 +-- ...gedClustersRebalanceLoadBalancersSample.ts | 4 +-- .../managedClustersResetAadProfileSample.ts | 4 +-- ...stersResetServicePrincipalProfileSample.ts | 4 +-- ...ClustersRotateClusterCertificatesSample.ts | 4 +-- ...rsRotateServiceAccountSigningKeysSample.ts | 4 +-- .../src/managedClustersRunCommandSample.ts | 4 +-- .../src/managedClustersStartSample.ts | 4 +-- .../src/managedClustersStopSample.ts | 4 +-- .../src/managedClustersUpdateTagsSample.ts | 4 +-- ...erationStatusResultGetByAgentPoolSample.ts | 4 +-- .../src/operationStatusResultGetSample.ts | 4 +-- .../src/operationStatusResultListSample.ts | 4 +-- .../typescript/src/operationsListSample.ts | 4 +-- .../privateEndpointConnectionsDeleteSample.ts | 4 +-- .../privateEndpointConnectionsGetSample.ts | 4 +-- .../privateEndpointConnectionsListSample.ts | 4 +-- .../privateEndpointConnectionsUpdateSample.ts | 4 +-- .../src/privateLinkResourcesListSample.ts | 4 +-- .../resolvePrivateLinkServiceIdPostSample.ts | 4 +-- .../src/snapshotsCreateOrUpdateSample.ts | 4 +-- .../typescript/src/snapshotsDeleteSample.ts | 4 +-- .../typescript/src/snapshotsGetSample.ts | 4 +-- .../src/snapshotsListByResourceGroupSample.ts | 4 +-- .../typescript/src/snapshotsListSample.ts | 4 +-- .../src/snapshotsUpdateTagsSample.ts | 4 +-- ...dAccessRoleBindingsCreateOrUpdateSample.ts | 4 +-- .../trustedAccessRoleBindingsDeleteSample.ts | 4 +-- .../src/trustedAccessRoleBindingsGetSample.ts | 4 +-- .../trustedAccessRoleBindingsListSample.ts | 4 +-- .../src/trustedAccessRolesListSample.ts | 4 +-- .../src/containerServiceClient.ts | 6 ++-- .../arm-containerservice/src/index.ts | 8 +++--- .../src/models/parameters.ts | 2 +- .../src/operations/agentPools.ts | 14 +++++----- .../src/operations/index.ts | 28 +++++++++---------- .../src/operations/loadBalancers.ts | 14 +++++----- .../src/operations/machines.ts | 12 ++++---- .../operations/maintenanceConfigurations.ts | 12 ++++---- .../src/operations/managedClusterSnapshots.ts | 12 ++++---- .../src/operations/managedClusters.ts | 14 +++++----- .../operationStatusResultOperations.ts | 12 ++++---- .../src/operations/operations.ts | 10 +++---- .../operations/privateEndpointConnections.ts | 12 ++++---- .../src/operations/privateLinkResources.ts | 10 +++---- .../operations/resolvePrivateLinkServiceId.ts | 10 +++---- .../src/operations/snapshots.ts | 12 ++++---- .../operations/trustedAccessRoleBindings.ts | 14 +++++----- .../src/operations/trustedAccessRoles.ts | 12 ++++---- .../src/operationsInterfaces/agentPools.ts | 2 +- .../src/operationsInterfaces/index.ts | 28 +++++++++---------- .../src/operationsInterfaces/loadBalancers.ts | 2 +- .../src/operationsInterfaces/machines.ts | 2 +- .../maintenanceConfigurations.ts | 2 +- .../managedClusterSnapshots.ts | 2 +- .../operationsInterfaces/managedClusters.ts | 2 +- .../operationStatusResultOperations.ts | 2 +- .../src/operationsInterfaces/operations.ts | 2 +- .../privateEndpointConnections.ts | 2 +- .../privateLinkResources.ts | 2 +- .../resolvePrivateLinkServiceId.ts | 2 +- .../src/operationsInterfaces/snapshots.ts | 2 +- .../trustedAccessRoleBindings.ts | 2 +- .../trustedAccessRoles.ts | 2 +- .../test/containerservice_examples.spec.ts | 9 ++---- 188 files changed, 292 insertions(+), 603 deletions(-) diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts index d9a87909815d..7bd54e0a1b32 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsAbortLatestOperationSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts index 91e637595228..3cb1129f1c8b 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AgentPool, ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts index 411f72dcb6b2..f36c5abc9fca 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteMachinesSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes specific machines in an agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts index 2903a6a3e35e..98367410e860 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an agent pool in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts index 35853548ee5b..605c91fcec62 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetAvailableAgentPoolVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts index 5bd12db0e876..62a02cfc4aa2 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified managed cluster agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts index 3e03395545d6..2509150a8892 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsGetUpgradeProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the upgrade profile for an agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts index fd292174fd77..f6ca78951234 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of agent pools in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts index 9233e412a95c..a1919c06f35b 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/agentPoolsUpgradeNodeImageVersionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade diff --git a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersCreateOrUpdateSample.ts index 673c204b0748..ba962e72a0b4 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a load balancer in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersDeleteSample.ts index e46689dd6249..b88c6f514f51 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a load balancer in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersGetSample.ts index 1f1b32905db2..f0bcf035119c 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified load balancer. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersListByManagedClusterSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersListByManagedClusterSample.ts index 74cf8397b5bb..f9432f37ed7f 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersListByManagedClusterSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/loadBalancersListByManagedClusterSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of load balancers in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts index d600ee4de966..58e31b6562da 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/machinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a specific machine in the specified agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts index 7aeb9c223f73..66bf068997fd 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/machinesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of machines in the specified agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts index 2e392329a222..133ac9790d6e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts index 6956e15bb019..5a2dcecea671 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a maintenance configuration. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts index 0513a96d9279..ad9b79f37a65 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts index 7f8849594380..97bc390d7bd2 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/maintenanceConfigurationsListByManagedClusterSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.ts index a18a89fc7a1e..8d4b8671a732 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsDeleteSample.ts index 5f1f95fb7cd5..5375086f5897 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsGetSample.ts index ddf07fea1127..88eb13321b60 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListByResourceGroupSample.ts index 933153809819..6de6f1939b44 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed cluster snapshots in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListSample.ts index 07a7e20b51f2..f532546162f0 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of managed cluster snapshots in the specified subscription. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsUpdateTagsSample.ts index 5448a3bd2097..9071befb38b2 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClusterSnapshotsUpdateTagsSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates tags on a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts index 11b8789ee649..043b62ff93a6 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersAbortLatestOperationSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts index d1be3a5a8906..b837228709ae 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts index 6adb749efe27..041c3ececf88 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts index 39b237f907b3..fe8f3e779ad3 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetAccessProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts index 20571f386135..044119225cc4 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetCommandResultSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetGuardrailsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetGuardrailsVersionsSample.ts index 2d11760e3900..435de779b707 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetGuardrailsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetGuardrailsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains Guardrails version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts index 1e14c67be8f4..cdae72f2e225 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshRevisionProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts index 2f2a6128b77d..b716dda05654 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetMeshUpgradeProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets available upgrades for a service mesh in a cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSafeguardsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSafeguardsVersionsSample.ts index 1aac12a3fc47..1730c59d3db8 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSafeguardsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSafeguardsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains Safeguards version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts index 324c508ba7dd..caf3a7e2948a 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts index 33ffd17acef9..ea157c295d33 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersGetUpgradeProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the upgrade profile of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts index ae678f072dff..ad43445e3dea 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed clusters in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts index 4f8f7b43582d..386035007469 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterAdminCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the admin credentials of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts index a69bd80eedd3..41dd429baeb8 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterMonitoringUserCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the cluster monitoring user credentials of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts index cecaf8943135..13ed3dd47523 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListClusterUserCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the user credentials of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListGuardrailsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListGuardrailsVersionsSample.ts index 6c033400ce5b..aca2cec764b4 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListGuardrailsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListGuardrailsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains list of Guardrails version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts index 571a451d9c55..50d114b5c0d3 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListKubernetesVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts index 96a39913f418..7740a776f150 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshRevisionProfilesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts index d70065846d79..6fe663ec3823 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListMeshUpgradeProfilesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists available upgrades for all service meshes in a specific cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts index 36cf46929625..379414d30993 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSafeguardsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSafeguardsVersionsSample.ts index 31800e34fd0c..9d2d7c265ef8 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSafeguardsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSafeguardsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains list of Safeguards version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts index 26e2259a42b8..23f00dca548f 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of managed clusters in the specified subscription. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRebalanceLoadBalancersSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRebalanceLoadBalancersSample.ts index 186239bbd5b5..f27d743303b0 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRebalanceLoadBalancersSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRebalanceLoadBalancersSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Rebalance nodes across specific load balancers. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts index 2d909bfefaba..220612f927cb 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetAadProfileSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts index 8837ee49072f..d67941822024 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersResetServicePrincipalProfileSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This action cannot be performed on a cluster that is not using a service principal diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts index ef19e488e62b..406467eaed1b 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateClusterCertificatesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts index 026c6a2316be..323a5ea23283 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRotateServiceAccountSigningKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Rotates the service account signing keys of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts index c6b7eb146aad..66c3776cc7fb 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersRunCommandSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts index beca69137337..1915126661a7 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts index 02c296a2f346..7be5a0394302 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts index 93786e0599b9..7d9516ead28e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/managedClustersUpdateTagsSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates tags on a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetByAgentPoolSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetByAgentPoolSample.ts index d2d0a606aa7d..44b67c168490 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetByAgentPoolSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetByAgentPoolSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the status of a specific operation in the specified agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetSample.ts index eb99a691b156..9b6032bc8c28 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the status of a specific operation in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultListSample.ts index faa8d39fcd0d..8e9b7ce5f34e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/operationStatusResultListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of operations in the specified managedCluster diff --git a/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts index da68aad29ec5..775cd4404e2d 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of operations. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts index bf08e518ceb8..02997e1e165c 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a private endpoint connection. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts index 6ec0dc924fc0..c08e5d7d8dad 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts index b6dcb5456e49..df688415be89 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts index 0a255d20a774..caf9938f5d66 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateEndpointConnectionsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a private endpoint connection. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts index 82a32a32169c..b609c87d5c51 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/privateLinkResourcesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters diff --git a/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts index acf04c39e6cc..87ecda9cd38f 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/resolvePrivateLinkServiceIdPostSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the private link service ID for the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts index 0e52917f0a9a..788598587b4c 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Snapshot, ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts index 99e34cb74f99..03ab5d7d339a 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts index 926888d27560..d26d1da3b06c 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts index b5387e089fcb..e3ea0a5f9367 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists snapshots in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts index 624626962837..7b176bc7927e 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of snapshots in the specified subscription. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts index b67c6247a0ee..f7a0147505d6 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/snapshotsUpdateTagsSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates tags on a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts index ce9bfd5d6934..888e832a04ca 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a trusted access role binding diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts index 0c6129d231eb..81f1ed9854f3 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a trusted access role binding. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts index 91376cb14528..41ab1c1d270f 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a trusted access role binding. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts index 103d94bb3168..c83f3827f092 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRoleBindingsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List trusted access role bindings. diff --git a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts index 6d196dbd0569..f1bd477b9392 100644 --- a/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples-dev/trustedAccessRolesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List supported trusted access roles. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsAbortLatestOperationSample.ts index d9a87909815d..7bd54e0a1b32 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsAbortLatestOperationSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts index 91e637595228..3cb1129f1c8b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { AgentPool, ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates an agent pool in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteMachinesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteMachinesSample.ts index 411f72dcb6b2..f36c5abc9fca 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteMachinesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteMachinesSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes specific machines in an agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteSample.ts index 2903a6a3e35e..98367410e860 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes an agent pool in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts index 35853548ee5b..605c91fcec62 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetAvailableAgentPoolVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to See [supported Kubernetes versions](https://docs.microsoft.com/azure/aks/supported-kubernetes-versions) for more details about the version lifecycle. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetSample.ts index 5bd12db0e876..62a02cfc4aa2 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified managed cluster agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetUpgradeProfileSample.ts index 3e03395545d6..2509150a8892 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsGetUpgradeProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the upgrade profile for an agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsListSample.ts index fd292174fd77..f6ca78951234 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of agent pools in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts index 9233e412a95c..a1919c06f35b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/agentPoolsUpgradeNodeImageVersionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Upgrading the node image version of an agent pool applies the newest OS and runtime updates to the nodes. AKS provides one new image per week with the latest updates. For more details on node image versions, see: https://docs.microsoft.com/azure/aks/node-image-upgrade diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersCreateOrUpdateSample.ts index 673c204b0748..ba962e72a0b4 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a load balancer in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersDeleteSample.ts index e46689dd6249..b88c6f514f51 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a load balancer in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersGetSample.ts index 1f1b32905db2..f0bcf035119c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified load balancer. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersListByManagedClusterSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersListByManagedClusterSample.ts index 74cf8397b5bb..f9432f37ed7f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersListByManagedClusterSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/loadBalancersListByManagedClusterSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of load balancers in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesGetSample.ts index d600ee4de966..58e31b6562da 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a specific machine in the specified agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesListSample.ts index 7aeb9c223f73..66bf068997fd 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/machinesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of machines in the specified agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts index 2e392329a222..133ac9790d6e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a maintenance configuration in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsDeleteSample.ts index 6956e15bb019..5a2dcecea671 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a maintenance configuration. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsGetSample.ts index 0513a96d9279..ad9b79f37a65 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the specified maintenance configuration of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts index 7f8849594380..97bc390d7bd2 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/maintenanceConfigurationsListByManagedClusterSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of maintenance configurations in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsCreateOrUpdateSample.ts index a18a89fc7a1e..8d4b8671a732 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsDeleteSample.ts index 5f1f95fb7cd5..5375086f5897 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsGetSample.ts index ddf07fea1127..88eb13321b60 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListByResourceGroupSample.ts index 933153809819..6de6f1939b44 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed cluster snapshots in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListSample.ts index 07a7e20b51f2..f532546162f0 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of managed cluster snapshots in the specified subscription. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsUpdateTagsSample.ts index 5448a3bd2097..9071befb38b2 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClusterSnapshotsUpdateTagsSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates tags on a managed cluster snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersAbortLatestOperationSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersAbortLatestOperationSample.ts index 11b8789ee649..043b62ff93a6 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersAbortLatestOperationSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersAbortLatestOperationSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Aborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, an error is returned. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersCreateOrUpdateSample.ts index d1be3a5a8906..b837228709ae 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersDeleteSample.ts index 6adb749efe27..041c3ececf88 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetAccessProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetAccessProfileSample.ts index 39b237f907b3..fe8f3e779ad3 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetAccessProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetAccessProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to **WARNING**: This API will be deprecated. Instead use [ListClusterUserCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusterusercredentials) or [ListClusterAdminCredentials](https://docs.microsoft.com/rest/api/aks/managedclusters/listclusteradmincredentials) . diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetCommandResultSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetCommandResultSample.ts index 20571f386135..044119225cc4 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetCommandResultSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetCommandResultSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the results of a command which has been run on the Managed Cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetGuardrailsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetGuardrailsVersionsSample.ts index 2d11760e3900..435de779b707 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetGuardrailsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetGuardrailsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains Guardrails version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshRevisionProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshRevisionProfileSample.ts index 1e14c67be8f4..cdae72f2e225 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshRevisionProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshRevisionProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains extra metadata on the revision, including supported revisions, cluster compatibility and available upgrades diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts index 2f2a6128b77d..b716dda05654 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetMeshUpgradeProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets available upgrades for a service mesh in a cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSafeguardsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSafeguardsVersionsSample.ts index 1aac12a3fc47..1730c59d3db8 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSafeguardsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSafeguardsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains Safeguards version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSample.ts index 324c508ba7dd..caf3a7e2948a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetUpgradeProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetUpgradeProfileSample.ts index 33ffd17acef9..ea157c295d33 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetUpgradeProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersGetUpgradeProfileSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the upgrade profile of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListByResourceGroupSample.ts index ae678f072dff..ad43445e3dea 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists managed clusters in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterAdminCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterAdminCredentialsSample.ts index 4f8f7b43582d..386035007469 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterAdminCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterAdminCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the admin credentials of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts index a69bd80eedd3..41dd429baeb8 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterMonitoringUserCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the cluster monitoring user credentials of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterUserCredentialsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterUserCredentialsSample.ts index cecaf8943135..13ed3dd47523 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterUserCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListClusterUserCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the user credentials of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListGuardrailsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListGuardrailsVersionsSample.ts index 6c033400ce5b..aca2cec764b4 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListGuardrailsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListGuardrailsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains list of Guardrails version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListKubernetesVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListKubernetesVersionsSample.ts index 571a451d9c55..50d114b5c0d3 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListKubernetesVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListKubernetesVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and details on preview status of the version diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshRevisionProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshRevisionProfilesSample.ts index 96a39913f418..7740a776f150 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshRevisionProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshRevisionProfilesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains extra metadata on each revision, including supported revisions, cluster compatibility and available upgrades diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts index d70065846d79..6fe663ec3823 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListMeshUpgradeProfilesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists available upgrades for all service meshes in a specific cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts index 36cf46929625..379414d30993 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListOutboundNetworkDependenciesEndpointsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified managed cluster. The operation returns properties of each egress endpoint. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSafeguardsVersionsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSafeguardsVersionsSample.ts index 31800e34fd0c..9d2d7c265ef8 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSafeguardsVersionsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSafeguardsVersionsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Contains list of Safeguards version along with its support info and whether it is a default version. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSample.ts index 26e2259a42b8..23f00dca548f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of managed clusters in the specified subscription. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRebalanceLoadBalancersSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRebalanceLoadBalancersSample.ts index 186239bbd5b5..f27d743303b0 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRebalanceLoadBalancersSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRebalanceLoadBalancersSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Rebalance nodes across specific load balancers. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetAadProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetAadProfileSample.ts index 2d909bfefaba..220612f927cb 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetAadProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetAadProfileSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to **WARNING**: This API will be deprecated. Please see [AKS-managed Azure Active Directory integration](https://aka.ms/aks-managed-aad) to update your cluster with AKS-managed Azure AD. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetServicePrincipalProfileSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetServicePrincipalProfileSample.ts index 8837ee49072f..d67941822024 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetServicePrincipalProfileSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersResetServicePrincipalProfileSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This action cannot be performed on a cluster that is not using a service principal diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateClusterCertificatesSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateClusterCertificatesSample.ts index ef19e488e62b..406467eaed1b 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateClusterCertificatesSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateClusterCertificatesSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to See [Certificate rotation](https://docs.microsoft.com/azure/aks/certificate-rotation) for more details about rotating managed cluster certificates. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts index 026c6a2316be..323a5ea23283 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRotateServiceAccountSigningKeysSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Rotates the service account signing keys of a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRunCommandSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRunCommandSample.ts index c6b7eb146aad..66c3776cc7fb 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRunCommandSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersRunCommandSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to AKS will create a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStartSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStartSample.ts index beca69137337..1915126661a7 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStartSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStopSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStopSample.ts index 02c296a2f346..7be5a0394302 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStopSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to This can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersUpdateTagsSample.ts index 93786e0599b9..7d9516ead28e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/managedClustersUpdateTagsSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates tags on a managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetByAgentPoolSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetByAgentPoolSample.ts index d2d0a606aa7d..44b67c168490 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetByAgentPoolSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetByAgentPoolSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the status of a specific operation in the specified agent pool. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetSample.ts index eb99a691b156..9b6032bc8c28 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get the status of a specific operation in the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultListSample.ts index faa8d39fcd0d..8e9b7ce5f34e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationStatusResultListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of operations in the specified managedCluster diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationsListSample.ts index da68aad29ec5..775cd4404e2d 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of operations. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts index bf08e518ceb8..02997e1e165c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a private endpoint connection. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsGetSample.ts index 6ec0dc924fc0..c08e5d7d8dad 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsListSample.ts index b6dcb5456e49..df688415be89 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts index 0a255d20a774..caf9938f5d66 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateEndpointConnectionsUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates a private endpoint connection. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateLinkResourcesListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateLinkResourcesListSample.ts index 82a32a32169c..b609c87d5c51 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateLinkResourcesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/privateLinkResourcesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to To learn more about private clusters, see: https://docs.microsoft.com/azure/aks/private-clusters diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/resolvePrivateLinkServiceIdPostSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/resolvePrivateLinkServiceIdPostSample.ts index acf04c39e6cc..87ecda9cd38f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/resolvePrivateLinkServiceIdPostSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/resolvePrivateLinkServiceIdPostSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets the private link service ID for the specified managed cluster. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsCreateOrUpdateSample.ts index 0e52917f0a9a..788598587b4c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsCreateOrUpdateSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { Snapshot, ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts index 99e34cb74f99..03ab5d7d339a 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Deletes a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsGetSample.ts index 926888d27560..d26d1da3b06c 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListByResourceGroupSample.ts index b5387e089fcb..e3ea0a5f9367 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists snapshots in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListSample.ts index 624626962837..7b176bc7927e 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a list of snapshots in the specified subscription. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsUpdateTagsSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsUpdateTagsSample.ts index b67c6247a0ee..f7a0147505d6 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsUpdateTagsSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/snapshotsUpdateTagsSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Updates tags on a snapshot. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts index ce9bfd5d6934..888e832a04ca 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceClient, } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create or update a trusted access role binding diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsDeleteSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsDeleteSample.ts index 0c6129d231eb..81f1ed9854f3 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a trusted access role binding. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsGetSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsGetSample.ts index 91376cb14528..41ab1c1d270f 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsGetSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a trusted access role binding. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsListSample.ts index 103d94bb3168..c83f3827f092 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRoleBindingsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List trusted access role bindings. diff --git a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRolesListSample.ts b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRolesListSample.ts index 6d196dbd0569..f1bd477b9392 100644 --- a/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRolesListSample.ts +++ b/sdk/containerservice/arm-containerservice/samples/v21-beta/typescript/src/trustedAccessRolesListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceClient } from "@azure/arm-containerservice"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List supported trusted access roles. diff --git a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts index 433b6ae0ed01..18a7391955ca 100644 --- a/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts +++ b/sdk/containerservice/arm-containerservice/src/containerServiceClient.ts @@ -29,7 +29,7 @@ import { TrustedAccessRolesImpl, TrustedAccessRoleBindingsImpl, LoadBalancersImpl, -} from "./operations"; +} from "./operations/index.js"; import { Operations, ManagedClusters, @@ -45,8 +45,8 @@ import { TrustedAccessRoles, TrustedAccessRoleBindings, LoadBalancers, -} from "./operationsInterfaces"; -import { ContainerServiceClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { ContainerServiceClientOptionalParams } from "./models/index.js"; export class ContainerServiceClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/containerservice/arm-containerservice/src/index.ts b/sdk/containerservice/arm-containerservice/src/index.ts index 8d9b9b071b00..9d782824244f 100644 --- a/sdk/containerservice/arm-containerservice/src/index.ts +++ b/sdk/containerservice/arm-containerservice/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { ContainerServiceClient } from "./containerServiceClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { ContainerServiceClient } from "./containerServiceClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/containerservice/arm-containerservice/src/models/parameters.ts b/sdk/containerservice/arm-containerservice/src/models/parameters.ts index 77e4fdacef04..f040a8e0f3dc 100644 --- a/sdk/containerservice/arm-containerservice/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservice/src/models/parameters.ts @@ -27,7 +27,7 @@ import { ManagedClusterSnapshot as ManagedClusterSnapshotMapper, TrustedAccessRoleBinding as TrustedAccessRoleBindingMapper, LoadBalancer as LoadBalancerMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts index 7647e169b973..09bc204e8b1c 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/agentPools.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AgentPools } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { AgentPools } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { AgentPool, AgentPoolsListNextOptionalParams, @@ -41,7 +41,7 @@ import { AgentPoolsGetAvailableAgentPoolVersionsResponse, AgentPoolsUpgradeNodeImageVersionOptionalParams, AgentPoolsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing AgentPools operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/index.ts b/sdk/containerservice/arm-containerservice/src/operations/index.ts index 9576b01c2834..ddff48641bca 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/index.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./managedClusters"; -export * from "./maintenanceConfigurations"; -export * from "./agentPools"; -export * from "./machines"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./resolvePrivateLinkServiceId"; -export * from "./operationStatusResultOperations"; -export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; -export * from "./trustedAccessRoleBindings"; -export * from "./loadBalancers"; +export * from "./operations.js"; +export * from "./managedClusters.js"; +export * from "./maintenanceConfigurations.js"; +export * from "./agentPools.js"; +export * from "./machines.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./resolvePrivateLinkServiceId.js"; +export * from "./operationStatusResultOperations.js"; +export * from "./snapshots.js"; +export * from "./managedClusterSnapshots.js"; +export * from "./trustedAccessRoles.js"; +export * from "./trustedAccessRoleBindings.js"; +export * from "./loadBalancers.js"; diff --git a/sdk/containerservice/arm-containerservice/src/operations/loadBalancers.ts b/sdk/containerservice/arm-containerservice/src/operations/loadBalancers.ts index 40e42bbd64ac..2873faaf3190 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/loadBalancers.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/loadBalancers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { LoadBalancers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { LoadBalancers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { LoadBalancer, LoadBalancersListByManagedClusterNextOptionalParams, @@ -31,7 +31,7 @@ import { LoadBalancersDeleteOptionalParams, LoadBalancersDeleteResponse, LoadBalancersListByManagedClusterNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing LoadBalancers operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/machines.ts b/sdk/containerservice/arm-containerservice/src/operations/machines.ts index 935ef7aa6590..89f2840899a0 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/machines.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/machines.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Machines } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Machines } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { Machine, MachinesListNextOptionalParams, @@ -21,7 +21,7 @@ import { MachinesGetOptionalParams, MachinesGetResponse, MachinesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Machines operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts b/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts index d090f544c075..6c0246c1b5d6 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/maintenanceConfigurations.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { MaintenanceConfigurations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { MaintenanceConfigurations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { MaintenanceConfiguration, MaintenanceConfigurationsListByManagedClusterNextOptionalParams, @@ -24,7 +24,7 @@ import { MaintenanceConfigurationsCreateOrUpdateResponse, MaintenanceConfigurationsDeleteOptionalParams, MaintenanceConfigurationsListByManagedClusterNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing MaintenanceConfigurations operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts index aba7407b0ed2..bb0ea6343b6b 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusterSnapshots.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedClusterSnapshots } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ManagedClusterSnapshots } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { ManagedClusterSnapshot, ManagedClusterSnapshotsListNextOptionalParams, @@ -31,7 +31,7 @@ import { ManagedClusterSnapshotsDeleteOptionalParams, ManagedClusterSnapshotsListNextResponse, ManagedClusterSnapshotsListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ManagedClusterSnapshots operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts index 1f5a3d5568c7..d0af9150ff98 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/managedClusters.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { ManagedClusters } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { ManagedClusters } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { ManagedCluster, ManagedClustersListNextOptionalParams, @@ -105,7 +105,7 @@ import { ManagedClustersListSafeguardsVersionsNextResponse, ManagedClustersListMeshRevisionProfilesNextResponse, ManagedClustersListMeshUpgradeProfilesNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing ManagedClusters operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/operationStatusResultOperations.ts b/sdk/containerservice/arm-containerservice/src/operations/operationStatusResultOperations.ts index 21cac012cb7c..fe3b60084acd 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/operationStatusResultOperations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/operationStatusResultOperations.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { OperationStatusResultOperations } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { OperationStatusResultOperations } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { OperationStatusResult, OperationStatusResultListNextOptionalParams, @@ -23,7 +23,7 @@ import { OperationStatusResultGetByAgentPoolOptionalParams, OperationStatusResultGetByAgentPoolResponse, OperationStatusResultListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing OperationStatusResultOperations operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/operations.ts b/sdk/containerservice/arm-containerservice/src/operations/operations.ts index 294871c993ae..92b189d3b060 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/operations.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/operations.ts @@ -7,16 +7,16 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -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 { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { OperationValue, OperationsListOptionalParams, OperationsListResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts index c3df55376088..5ca24c1c5a24 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/privateEndpointConnections.ts +++ b/sdk/containerservice/arm-containerservice/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 { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.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 { PrivateEndpointConnectionsUpdateOptionalParams, PrivateEndpointConnectionsUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl diff --git a/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts index 77e701f07d28..3699d656804e 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/privateLinkResources.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PrivateLinkResources } from "../operationsInterfaces"; +import { PrivateLinkResources } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { diff --git a/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts index f8533aa465f7..8b0cddc9279b 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/resolvePrivateLinkServiceId.ts @@ -6,16 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { ResolvePrivateLinkServiceId } from "../operationsInterfaces"; +import { ResolvePrivateLinkServiceId } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { PrivateLinkResource, ResolvePrivateLinkServiceIdPostOptionalParams, ResolvePrivateLinkServiceIdPostResponse, -} from "../models"; +} from "../models/index.js"; /** Class containing ResolvePrivateLinkServiceId operations. */ export class ResolvePrivateLinkServiceIdImpl diff --git a/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts b/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts index 276067652b9f..0ed1472eaf41 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/snapshots.ts @@ -7,12 +7,12 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Snapshots } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Snapshots } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { Snapshot, SnapshotsListNextOptionalParams, @@ -31,7 +31,7 @@ import { SnapshotsDeleteOptionalParams, SnapshotsListNextResponse, SnapshotsListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Snapshots operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts index 556469714997..23c9217af902 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoleBindings.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { TrustedAccessRoleBindings } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { TrustedAccessRoleBindings } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { TrustedAccessRoleBinding, TrustedAccessRoleBindingsListNextOptionalParams, @@ -31,7 +31,7 @@ import { TrustedAccessRoleBindingsDeleteOptionalParams, TrustedAccessRoleBindingsDeleteResponse, TrustedAccessRoleBindingsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing TrustedAccessRoleBindings operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts index bf0853edc83e..c7fe46974b64 100644 --- a/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operations/trustedAccessRoles.ts @@ -7,19 +7,19 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { TrustedAccessRoles } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { TrustedAccessRoles } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceClient } from "../containerServiceClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceClient } from "../containerServiceClient.js"; import { TrustedAccessRole, TrustedAccessRolesListNextOptionalParams, TrustedAccessRolesListOptionalParams, TrustedAccessRolesListResponse, TrustedAccessRolesListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing TrustedAccessRoles operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts index 47959ddf591f..3dd4a2bb1a0b 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/agentPools.ts @@ -27,7 +27,7 @@ import { AgentPoolsGetAvailableAgentPoolVersionsOptionalParams, AgentPoolsGetAvailableAgentPoolVersionsResponse, AgentPoolsUpgradeNodeImageVersionOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a AgentPools. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts index 9576b01c2834..ddff48641bca 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/index.ts @@ -6,17 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./managedClusters"; -export * from "./maintenanceConfigurations"; -export * from "./agentPools"; -export * from "./machines"; -export * from "./privateEndpointConnections"; -export * from "./privateLinkResources"; -export * from "./resolvePrivateLinkServiceId"; -export * from "./operationStatusResultOperations"; -export * from "./snapshots"; -export * from "./managedClusterSnapshots"; -export * from "./trustedAccessRoles"; -export * from "./trustedAccessRoleBindings"; -export * from "./loadBalancers"; +export * from "./operations.js"; +export * from "./managedClusters.js"; +export * from "./maintenanceConfigurations.js"; +export * from "./agentPools.js"; +export * from "./machines.js"; +export * from "./privateEndpointConnections.js"; +export * from "./privateLinkResources.js"; +export * from "./resolvePrivateLinkServiceId.js"; +export * from "./operationStatusResultOperations.js"; +export * from "./snapshots.js"; +export * from "./managedClusterSnapshots.js"; +export * from "./trustedAccessRoles.js"; +export * from "./trustedAccessRoleBindings.js"; +export * from "./loadBalancers.js"; diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/loadBalancers.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/loadBalancers.ts index bdca66c5451d..f70981d246cc 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/loadBalancers.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/loadBalancers.ts @@ -17,7 +17,7 @@ import { LoadBalancersCreateOrUpdateResponse, LoadBalancersDeleteOptionalParams, LoadBalancersDeleteResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a LoadBalancers. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts index 61c400b0a81b..71648ff1d9c9 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/machines.ts @@ -12,7 +12,7 @@ import { MachinesListOptionalParams, MachinesGetOptionalParams, MachinesGetResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Machines. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts index ec723f04f1bf..36394d108115 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/maintenanceConfigurations.ts @@ -15,7 +15,7 @@ import { MaintenanceConfigurationsCreateOrUpdateOptionalParams, MaintenanceConfigurationsCreateOrUpdateResponse, MaintenanceConfigurationsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a MaintenanceConfigurations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts index b6a035c3cb02..9fe924c13d81 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusterSnapshots.ts @@ -19,7 +19,7 @@ import { ManagedClusterSnapshotsUpdateTagsOptionalParams, ManagedClusterSnapshotsUpdateTagsResponse, ManagedClusterSnapshotsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ManagedClusterSnapshots. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts index a0885892aff1..da8d55fc7847 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/managedClusters.ts @@ -73,7 +73,7 @@ import { RebalanceLoadBalancersRequestBody, ManagedClustersRebalanceLoadBalancersOptionalParams, ManagedClustersRebalanceLoadBalancersResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a ManagedClusters. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operationStatusResultOperations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operationStatusResultOperations.ts index 2daabb8e1a77..3d2284680918 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operationStatusResultOperations.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operationStatusResultOperations.ts @@ -14,7 +14,7 @@ import { OperationStatusResultGetResponse, OperationStatusResultGetByAgentPoolOptionalParams, OperationStatusResultGetByAgentPoolResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a OperationStatusResultOperations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts index f029e334e169..d0b0c782a1df 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/operations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { OperationValue, OperationsListOptionalParams } from "../models"; +import { OperationValue, OperationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a Operations. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts index ab0893503fd4..176528a186d1 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateEndpointConnections.ts @@ -16,7 +16,7 @@ import { PrivateEndpointConnectionsUpdateOptionalParams, PrivateEndpointConnectionsUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateEndpointConnections. */ export interface PrivateEndpointConnections { diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts index ac80e2b1cb40..6fb80f13ef55 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/privateLinkResources.ts @@ -9,7 +9,7 @@ import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts index 9ca373d32fbc..bef361a7c1a6 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/resolvePrivateLinkServiceId.ts @@ -10,7 +10,7 @@ import { PrivateLinkResource, ResolvePrivateLinkServiceIdPostOptionalParams, ResolvePrivateLinkServiceIdPostResponse, -} from "../models"; +} from "../models/index.js"; /** Interface representing a ResolvePrivateLinkServiceId. */ export interface ResolvePrivateLinkServiceId { diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts index 23f95090a64d..5c2dc0edcb37 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/snapshots.ts @@ -19,7 +19,7 @@ import { SnapshotsUpdateTagsOptionalParams, SnapshotsUpdateTagsResponse, SnapshotsDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Snapshots. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts index 2a94884b7bf9..b6a6d84ba26e 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoleBindings.ts @@ -17,7 +17,7 @@ import { TrustedAccessRoleBindingsCreateOrUpdateResponse, TrustedAccessRoleBindingsDeleteOptionalParams, TrustedAccessRoleBindingsDeleteResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a TrustedAccessRoleBindings. */ diff --git a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts index 433d485af540..2871339ccbb7 100644 --- a/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts +++ b/sdk/containerservice/arm-containerservice/src/operationsInterfaces/trustedAccessRoles.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TrustedAccessRole, TrustedAccessRolesListOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a TrustedAccessRoles. */ diff --git a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts index 9ed2905cda4c..397b46edd0ad 100644 --- a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts +++ b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts @@ -10,13 +10,11 @@ import { env, Recorder, RecorderStartOptions, - delay, isPlaybackMode, } from "@azure-tools/test-recorder"; import { NoOpCredential } from "@azure-tools/test-credential"; import { assert } from "chai"; -import { Context } from "mocha"; -import { ContainerServiceClient } from "../src/containerServiceClient"; +import { ContainerServiceClient } from "../src/containerServiceClient.js"; import { DefaultAzureCredential } from "@azure/identity"; const replaceableVariables: Record = { @@ -50,8 +48,8 @@ describe("ContainerService test", () => { let resourceGroupName: 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 || ''; clientId = env.AZURE_CLIENT_ID || ''; @@ -155,7 +153,6 @@ describe("ContainerService test", () => { }); it("managedClusters delete test", async function () { - const res = await client.managedClusters.beginDeleteAndWait(resourceGroupName, resourceName, testPollingOptions); const resArray = new Array(); for await (let item of client.managedClusters.listByResourceGroup(resourceGroupName)) { resArray.push(item); From 63363055b1518a3e9951c8d01e87b099739fb695 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:14 +0800 Subject: [PATCH 41/64] Migration: Apply codemod: "fixTestingImports" --- .../arm-containerservice/test/containerservice_examples.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts index 397b46edd0ad..29f550ab074c 100644 --- a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts +++ b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts @@ -13,9 +13,9 @@ import { isPlaybackMode, } from "@azure-tools/test-recorder"; import { NoOpCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; import { ContainerServiceClient } from "../src/containerServiceClient.js"; import { DefaultAzureCredential } from "@azure/identity"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" From 6cfd194fa50911491085ae82486f4cb01e485a9a Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:15 +0800 Subject: [PATCH 42/64] Migration: Apply codemod: "replaceAssertIsRejected" From 1d15e2a89323d2956344947c7c031589a8addff2 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:16 +0800 Subject: [PATCH 43/64] Migration: Apply codemod: "replaceSinonStub" From c937032e84dab65d48d5dd547a709a9d64aac912 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:18 +0800 Subject: [PATCH 44/64] Migration: Apply codemod: "addViHelper" From c89a2b425903fca9edb45118a3eee886cfabed96 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:19 +0800 Subject: [PATCH 45/64] Migration: Apply codemod: "replaceSupportTracing" From 77e1c11489b69629423fbdf7d375b6968cc928cf Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:20 +0800 Subject: [PATCH 46/64] Migration: Apply codemod: "replaceTestUtils" From 1c96f617272337c3e10ca84cb162e09e6702ec08 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:55:38 +0800 Subject: [PATCH 47/64] Migration: rushx format From dde2c72e4eb6ec6599b61d918c263c599b177752 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:59:45 +0800 Subject: [PATCH 48/64] update --- common/config/rush/pnpm-lock.yaml | 36 ++++++++++++------- .../arm-containerservice/package.json | 29 ++++++++++++--- 2 files changed, 49 insertions(+), 16 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 2f794bc8fa42..65a3f32d79d2 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -228,7 +228,7 @@ importers: version: file:projects/arm-containerservice.tgz '@rush-temp/arm-containerservice-1': specifier: file:./projects/arm-containerservice-1.tgz - version: file:projects/arm-containerservice-1.tgz + version: file:projects/arm-containerservice-1.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerservicefleet': specifier: file:./projects/arm-containerservicefleet.tgz version: file:projects/arm-containerservicefleet.tgz @@ -2771,7 +2771,7 @@ packages: version: 0.0.0 '@rush-temp/arm-containerservice-1@file:projects/arm-containerservice-1.tgz': - resolution: {integrity: sha512-MXdBJpqSwAmqEG53FsDK3T68anPmUWPadKn+29aXq+hEqQn1mYaWJdAtBr/DV+UI8j7bhSuq4xskk24HJLC6LA==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-F5rlOznGfVnhzpi5TiTDoaaHGG9uAgJE34REhsAyP8Z/dEqUSNKv35w42KCUcpA5xNepz4EcUxSWxTntwKAeow==, tarball: file:projects/arm-containerservice-1.tgz} version: 0.0.0 '@rush-temp/arm-containerservice@file:projects/arm-containerservice.tgz': @@ -11582,26 +11582,38 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-containerservice-1@file:projects/arm-containerservice-1.tgz': + '@rush-temp/arm-containerservice-1@file:projects/arm-containerservice-1.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@microsoft/api-extractor': 7.48.1(@types/node@18.19.68) - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.68 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(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.0.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.2 + vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2)) 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-containerservice@file:projects/arm-containerservice.tgz': dependencies: diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index d62b279b7fa6..ca02b4a1f89b 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -24,9 +24,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-containerservice.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", @@ -120,5 +120,26 @@ "selfLink": false }, "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/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" + } + } + } } From 95d9483aa7dc1cd047857014862a1f1d7452ab63 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:03 +0800 Subject: [PATCH 49/64] Migration: Update package.json, tsconfig.json, and api-extractor.json --- .../api-extractor.json | 6 +- .../arm-containerservicefleet/package.json | 93 ++++++++++--------- .../arm-containerservicefleet/tsconfig.json | 40 ++------ .../tsconfig.samples.json | 10 ++ .../tsconfig.src.json | 3 + .../tsconfig.test.json | 6 ++ 6 files changed, 83 insertions(+), 75 deletions(-) create mode 100644 sdk/containerservice/arm-containerservicefleet/tsconfig.samples.json create mode 100644 sdk/containerservice/arm-containerservicefleet/tsconfig.src.json create mode 100644 sdk/containerservice/arm-containerservicefleet/tsconfig.test.json diff --git a/sdk/containerservice/arm-containerservicefleet/api-extractor.json b/sdk/containerservice/arm-containerservicefleet/api-extractor.json index 20afafe7c0a2..9d8ff985e09d 100644 --- a/sdk/containerservice/arm-containerservicefleet/api-extractor.json +++ b/sdk/containerservice/arm-containerservicefleet/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-containerservicefleet.d.ts" + "publicTrimmedFilePath": "dist/arm-containerservicefleet.d.ts" }, "messages": { "tsdocMessageReporting": { @@ -28,4 +28,4 @@ } } } -} \ No newline at end of file +} diff --git a/sdk/containerservice/arm-containerservicefleet/package.json b/sdk/containerservice/arm-containerservicefleet/package.json index 1908b1f8b232..66a84b5ddc87 100644 --- a/sdk/containerservice/arm-containerservicefleet/package.json +++ b/sdk/containerservice/arm-containerservicefleet/package.json @@ -8,11 +8,11 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^2.1.2", - "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.6.0", + "@azure/core-client": "^1.7.0", + "@azure/core-lro": "^2.5.4", + "@azure/core-paging": "^1.2.0", "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, @@ -28,19 +28,19 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-containerservicefleet.d.ts", "devDependencies": { - "typescript": "~5.7.2", - "dotenv": "^16.0.0", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.1.0", + "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.2.1", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.1.0", - "mocha": "^11.0.2", - "@types/mocha": "^10.0.0", - "tsx": "^4.7.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", "@types/node": "^18.0.0", - "ts-node": "^10.0.0" + "@vitest/browser": "^2.1.8", + "@vitest/coverage-istanbul": "^2.1.8", + "dotenv": "^16.0.0", + "playwright": "^1.49.1", + "tsx": "^4.7.1", + "typescript": "~5.7.2", + "vitest": "^2.1.8" }, "repository": { "type": "git", @@ -50,46 +50,36 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", + "dist/", "README.md", "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" + "review/", + "CHANGELOG.md" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "prepack": "npm run build", - "pack": "npm pack 2>&1", - "extract-api": "dev-tool run extract-api", - "lint": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "build:node": "echo skipped", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "build:browser": "echo skipped", - "build:test": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", + "build:test": "echo skipped", "check-format": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", + "extract-api": "dev-tool run extract-api", "format": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", + "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "pack": "npm pack 2>&1", + "prepack": "npm run build", "test": "npm run integration-test", - "test:node": "echo skipped", "test:browser": "echo skipped", + "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", - "unit-test:browser": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" + "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest" }, "sideEffects": false, "//metadata": { @@ -109,5 +99,24 @@ ], "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-containerservicefleet?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" } diff --git a/sdk/containerservice/arm-containerservicefleet/tsconfig.json b/sdk/containerservice/arm-containerservicefleet/tsconfig.json index c25c8faa4dad..19ceb382b521 100644 --- a/sdk/containerservice/arm-containerservicefleet/tsconfig.json +++ b/sdk/containerservice/arm-containerservicefleet/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-containerservicefleet": [ - "./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/containerservice/arm-containerservicefleet/tsconfig.samples.json b/sdk/containerservice/arm-containerservicefleet/tsconfig.samples.json new file mode 100644 index 000000000000..ff70093a9b23 --- /dev/null +++ b/sdk/containerservice/arm-containerservicefleet/tsconfig.samples.json @@ -0,0 +1,10 @@ +{ + "extends": "../../../tsconfig.samples.base.json", + "compilerOptions": { + "paths": { + "@azure/arm-containerservicefleet": [ + "./dist/esm" + ] + } + } +} diff --git a/sdk/containerservice/arm-containerservicefleet/tsconfig.src.json b/sdk/containerservice/arm-containerservicefleet/tsconfig.src.json new file mode 100644 index 000000000000..bae70752dd38 --- /dev/null +++ b/sdk/containerservice/arm-containerservicefleet/tsconfig.src.json @@ -0,0 +1,3 @@ +{ + "extends": "../../../tsconfig.lib.json" +} diff --git a/sdk/containerservice/arm-containerservicefleet/tsconfig.test.json b/sdk/containerservice/arm-containerservicefleet/tsconfig.test.json new file mode 100644 index 000000000000..3c2b783a8c1b --- /dev/null +++ b/sdk/containerservice/arm-containerservicefleet/tsconfig.test.json @@ -0,0 +1,6 @@ +{ + "extends": [ + "./tsconfig.src.json", + "../../../tsconfig.test.base.json" + ] +} From e272897cf061fb4459b025fd895d69b09bc18f42 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:03 +0800 Subject: [PATCH 50/64] Migration: Update test config --- .../tsconfig.browser.config.json | 17 +++++++++++++++++ .../vitest.browser.config.ts | 17 +++++++++++++++++ .../arm-containerservicefleet/vitest.config.ts | 7 +++++++ .../vitest.esm.config.ts | 12 ++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 sdk/containerservice/arm-containerservicefleet/tsconfig.browser.config.json create mode 100644 sdk/containerservice/arm-containerservicefleet/vitest.browser.config.ts create mode 100644 sdk/containerservice/arm-containerservicefleet/vitest.config.ts create mode 100644 sdk/containerservice/arm-containerservicefleet/vitest.esm.config.ts diff --git a/sdk/containerservice/arm-containerservicefleet/tsconfig.browser.config.json b/sdk/containerservice/arm-containerservicefleet/tsconfig.browser.config.json new file mode 100644 index 000000000000..b6586181d006 --- /dev/null +++ b/sdk/containerservice/arm-containerservicefleet/tsconfig.browser.config.json @@ -0,0 +1,17 @@ +{ + "extends": "./.tshy/build.json", + "include": [ + "./src/**/*.ts", + "./src/**/*.mts", + "./test/**/*.spec.ts", + "./test/**/*.mts" + ], + "exclude": [ + "./test/**/node/**/*.ts" + ], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } +} diff --git a/sdk/containerservice/arm-containerservicefleet/vitest.browser.config.ts b/sdk/containerservice/arm-containerservicefleet/vitest.browser.config.ts new file mode 100644 index 000000000000..b48c61b2ef46 --- /dev/null +++ b/sdk/containerservice/arm-containerservicefleet/vitest.browser.config.ts @@ -0,0 +1,17 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { defineConfig, mergeConfig } from "vitest/config"; +import viteConfig from "../../../vitest.browser.shared.config.ts"; + +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + include: [ + "dist-test/browser/test/**/*.spec.js", + ], + }, + }), +); diff --git a/sdk/containerservice/arm-containerservicefleet/vitest.config.ts b/sdk/containerservice/arm-containerservicefleet/vitest.config.ts new file mode 100644 index 000000000000..cc5cd85d4131 --- /dev/null +++ b/sdk/containerservice/arm-containerservicefleet/vitest.config.ts @@ -0,0 +1,7 @@ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import viteConfig from "../../../vitest.shared.config.ts"; + +export default viteConfig; diff --git a/sdk/containerservice/arm-containerservicefleet/vitest.esm.config.ts b/sdk/containerservice/arm-containerservicefleet/vitest.esm.config.ts new file mode 100644 index 000000000000..a70127279fc9 --- /dev/null +++ b/sdk/containerservice/arm-containerservicefleet/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 +); From a7161de3e5bb93f24506dd76c8e73507bc5bb0eb Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:03 +0800 Subject: [PATCH 51/64] Migration: Clean up files From 0a352b38aa88f2c8dabda17960590d04bf832367 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:29 +0800 Subject: [PATCH 52/64] Migration: Apply codemod: "fixSourceFile" --- .../autoUpgradeProfilesCreateOrUpdateSample.ts | 4 +--- .../samples-dev/autoUpgradeProfilesDeleteSample.ts | 4 +--- .../samples-dev/autoUpgradeProfilesGetSample.ts | 4 +--- .../autoUpgradeProfilesListByFleetSample.ts | 4 +--- .../samples-dev/fleetMembersCreateSample.ts | 4 +--- .../samples-dev/fleetMembersDeleteSample.ts | 4 +--- .../samples-dev/fleetMembersGetSample.ts | 4 +--- .../samples-dev/fleetMembersListByFleetSample.ts | 4 +--- .../samples-dev/fleetMembersUpdateSample.ts | 4 +--- .../fleetUpdateStrategiesCreateOrUpdateSample.ts | 4 +--- .../fleetUpdateStrategiesDeleteSample.ts | 4 +--- .../samples-dev/fleetUpdateStrategiesGetSample.ts | 4 +--- .../fleetUpdateStrategiesListByFleetSample.ts | 4 +--- .../samples-dev/fleetsCreateOrUpdateSample.ts | 4 +--- .../samples-dev/fleetsDeleteSample.ts | 4 +--- .../samples-dev/fleetsGetSample.ts | 4 +--- .../samples-dev/fleetsListByResourceGroupSample.ts | 4 +--- .../samples-dev/fleetsListBySubscriptionSample.ts | 4 +--- .../samples-dev/fleetsListCredentialsSample.ts | 4 +--- .../samples-dev/fleetsUpdateSample.ts | 4 +--- .../samples-dev/operationsListSample.ts | 4 +--- .../samples-dev/updateRunsCreateOrUpdateSample.ts | 4 +--- .../samples-dev/updateRunsDeleteSample.ts | 4 +--- .../samples-dev/updateRunsGetSample.ts | 4 +--- .../samples-dev/updateRunsListByFleetSample.ts | 4 +--- .../samples-dev/updateRunsSkipSample.ts | 4 +--- .../samples-dev/updateRunsStartSample.ts | 4 +--- .../samples-dev/updateRunsStopSample.ts | 4 +--- .../src/autoUpgradeProfilesCreateOrUpdateSample.ts | 4 +--- .../src/autoUpgradeProfilesDeleteSample.ts | 4 +--- .../typescript/src/autoUpgradeProfilesGetSample.ts | 4 +--- .../src/autoUpgradeProfilesListByFleetSample.ts | 4 +--- .../typescript/src/fleetMembersCreateSample.ts | 4 +--- .../typescript/src/fleetMembersDeleteSample.ts | 4 +--- .../typescript/src/fleetMembersGetSample.ts | 4 +--- .../src/fleetMembersListByFleetSample.ts | 4 +--- .../typescript/src/fleetMembersUpdateSample.ts | 4 +--- .../fleetUpdateStrategiesCreateOrUpdateSample.ts | 4 +--- .../src/fleetUpdateStrategiesDeleteSample.ts | 4 +--- .../src/fleetUpdateStrategiesGetSample.ts | 4 +--- .../src/fleetUpdateStrategiesListByFleetSample.ts | 4 +--- .../typescript/src/fleetsCreateOrUpdateSample.ts | 4 +--- .../v1-beta/typescript/src/fleetsDeleteSample.ts | 4 +--- .../v1-beta/typescript/src/fleetsGetSample.ts | 4 +--- .../src/fleetsListByResourceGroupSample.ts | 4 +--- .../src/fleetsListBySubscriptionSample.ts | 4 +--- .../typescript/src/fleetsListCredentialsSample.ts | 4 +--- .../v1-beta/typescript/src/fleetsUpdateSample.ts | 4 +--- .../v1-beta/typescript/src/operationsListSample.ts | 4 +--- .../src/updateRunsCreateOrUpdateSample.ts | 4 +--- .../typescript/src/updateRunsDeleteSample.ts | 4 +--- .../v1-beta/typescript/src/updateRunsGetSample.ts | 4 +--- .../typescript/src/updateRunsListByFleetSample.ts | 4 +--- .../v1-beta/typescript/src/updateRunsSkipSample.ts | 4 +--- .../typescript/src/updateRunsStartSample.ts | 4 +--- .../v1-beta/typescript/src/updateRunsStopSample.ts | 4 +--- .../v1/typescript/src/fleetMembersCreateSample.ts | 4 +--- .../v1/typescript/src/fleetMembersDeleteSample.ts | 4 +--- .../v1/typescript/src/fleetMembersGetSample.ts | 4 +--- .../src/fleetMembersListByFleetSample.ts | 4 +--- .../v1/typescript/src/fleetMembersUpdateSample.ts | 4 +--- .../fleetUpdateStrategiesCreateOrUpdateSample.ts | 4 +--- .../src/fleetUpdateStrategiesDeleteSample.ts | 4 +--- .../src/fleetUpdateStrategiesGetSample.ts | 4 +--- .../src/fleetUpdateStrategiesListByFleetSample.ts | 4 +--- .../typescript/src/fleetsCreateOrUpdateSample.ts | 4 +--- .../v1/typescript/src/fleetsDeleteSample.ts | 4 +--- .../samples/v1/typescript/src/fleetsGetSample.ts | 4 +--- .../src/fleetsListByResourceGroupSample.ts | 4 +--- .../src/fleetsListBySubscriptionSample.ts | 4 +--- .../typescript/src/fleetsListCredentialsSample.ts | 4 +--- .../v1/typescript/src/fleetsUpdateSample.ts | 4 +--- .../v1/typescript/src/operationsListSample.ts | 4 +--- .../src/updateRunsCreateOrUpdateSample.ts | 4 +--- .../v1/typescript/src/updateRunsDeleteSample.ts | 4 +--- .../v1/typescript/src/updateRunsGetSample.ts | 4 +--- .../typescript/src/updateRunsListByFleetSample.ts | 4 +--- .../v1/typescript/src/updateRunsSkipSample.ts | 4 +--- .../v1/typescript/src/updateRunsStartSample.ts | 4 +--- .../v1/typescript/src/updateRunsStopSample.ts | 4 +--- .../src/containerServiceFleetClient.ts | 6 +++--- .../arm-containerservicefleet/src/index.ts | 8 ++++---- .../src/models/parameters.ts | 2 +- .../src/operations/autoUpgradeProfiles.ts | 14 +++++++------- .../src/operations/fleetMembers.ts | 14 +++++++------- .../src/operations/fleetUpdateStrategies.ts | 14 +++++++------- .../src/operations/fleets.ts | 14 +++++++------- .../src/operations/index.ts | 12 ++++++------ .../src/operations/operations.ts | 12 ++++++------ .../src/operations/updateRuns.ts | 14 +++++++------- .../operationsInterfaces/autoUpgradeProfiles.ts | 2 +- .../src/operationsInterfaces/fleetMembers.ts | 2 +- .../operationsInterfaces/fleetUpdateStrategies.ts | 2 +- .../src/operationsInterfaces/fleets.ts | 2 +- .../src/operationsInterfaces/index.ts | 12 ++++++------ .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/updateRuns.ts | 2 +- .../containerservicefleet_operations_test.spec.ts | 9 +++------ 98 files changed, 150 insertions(+), 313 deletions(-) diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesCreateOrUpdateSample.ts index e5d68e21b5e9..c23e4b24743b 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a AutoUpgradeProfile diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesDeleteSample.ts index 5e863b30f87a..94d9e09d6ee3 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a AutoUpgradeProfile diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesGetSample.ts index c0d32ed77f2c..57f2810a2e84 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a AutoUpgradeProfile diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesListByFleetSample.ts index 552f19c9148c..0a3b76991f34 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/autoUpgradeProfilesListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List AutoUpgradeProfile resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersCreateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersCreateSample.ts index 043724c22ec8..542c23b5acd4 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersCreateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersDeleteSample.ts index ca527a4f3bdf..c1b397cfb931 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersGetSample.ts index 5ef70278c64c..71996ed8f35f 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersListByFleetSample.ts index af4b41734d8d..f7856e990dd2 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List FleetMember resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersUpdateSample.ts index a775801fe9b3..2bd85e57ec82 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetMembersUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.ts index 7a5078a353c4..6c73551da2bf 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesDeleteSample.ts index 35829dfe217b..fe3cac6fddf8 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesGetSample.ts index 9236eac07804..78371058bb93 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesListByFleetSample.ts index a36ca7c4139c..99cc8f68583f 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetUpdateStrategiesListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List FleetUpdateStrategy resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsCreateOrUpdateSample.ts index daf9a0615a59..a372b17d67b3 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsDeleteSample.ts index ce1d78b5aafc..11984d42d392 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsGetSample.ts index e4353146e266..963d60e1d6ac 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListByResourceGroupSample.ts index 442369594b06..31782eff4424 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists fleets in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListBySubscriptionSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListBySubscriptionSample.ts index 9ef4e8d0227e..6bf62c82c6dd 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListBySubscriptionSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists fleets in the specified subscription. diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListCredentialsSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListCredentialsSample.ts index d3cfc6be2906..d2ebaa40bdf9 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsListCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the user credentials of a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsUpdateSample.ts index 8ccf757d4eb7..7fb924d1f9b5 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/fleetsUpdateSample.ts @@ -14,9 +14,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/operationsListSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/operationsListSample.ts index 7fc1275024b1..7680e6f1585c 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/operationsListSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the operations for the provider diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsCreateOrUpdateSample.ts index 3b387f147cbd..a3d3da5ffea4 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsDeleteSample.ts index f1db82b8e7aa..494de76a50ce 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsGetSample.ts index 747edd8626f3..65375bc16b17 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsListByFleetSample.ts index 9a858bab0d3d..5a7d09082dc6 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List UpdateRun resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsSkipSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsSkipSample.ts index efbc0b62ce2a..2c96bc755503 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsSkipSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsSkipSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStartSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStartSample.ts index 0f1b986f9ada..27a561bdbea0 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStartSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts an UpdateRun. diff --git a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStopSample.ts b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStopSample.ts index e16fe981dfc3..b0632cd68b52 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStopSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples-dev/updateRunsStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops an UpdateRun. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesCreateOrUpdateSample.ts index e5d68e21b5e9..c23e4b24743b 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a AutoUpgradeProfile diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesDeleteSample.ts index 5e863b30f87a..94d9e09d6ee3 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a AutoUpgradeProfile diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesGetSample.ts index c0d32ed77f2c..57f2810a2e84 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a AutoUpgradeProfile diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesListByFleetSample.ts index 552f19c9148c..0a3b76991f34 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/autoUpgradeProfilesListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List AutoUpgradeProfile resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersCreateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersCreateSample.ts index 043724c22ec8..542c23b5acd4 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersCreateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersDeleteSample.ts index ca527a4f3bdf..c1b397cfb931 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersGetSample.ts index 5ef70278c64c..71996ed8f35f 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersListByFleetSample.ts index af4b41734d8d..f7856e990dd2 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List FleetMember resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersUpdateSample.ts index a775801fe9b3..2bd85e57ec82 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetMembersUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts index 7a5078a353c4..6c73551da2bf 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesDeleteSample.ts index 35829dfe217b..fe3cac6fddf8 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesGetSample.ts index 9236eac07804..78371058bb93 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesListByFleetSample.ts index a36ca7c4139c..99cc8f68583f 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetUpdateStrategiesListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List FleetUpdateStrategy resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsCreateOrUpdateSample.ts index daf9a0615a59..a372b17d67b3 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsDeleteSample.ts index ce1d78b5aafc..11984d42d392 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsGetSample.ts index e4353146e266..963d60e1d6ac 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListByResourceGroupSample.ts index 442369594b06..31782eff4424 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists fleets in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListBySubscriptionSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListBySubscriptionSample.ts index 9ef4e8d0227e..6bf62c82c6dd 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListBySubscriptionSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists fleets in the specified subscription. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListCredentialsSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListCredentialsSample.ts index d3cfc6be2906..d2ebaa40bdf9 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsListCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the user credentials of a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsUpdateSample.ts index 8ccf757d4eb7..7fb924d1f9b5 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/fleetsUpdateSample.ts @@ -14,9 +14,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/operationsListSample.ts index 7fc1275024b1..7680e6f1585c 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/operationsListSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the operations for the provider diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsCreateOrUpdateSample.ts index 3b387f147cbd..a3d3da5ffea4 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsDeleteSample.ts index f1db82b8e7aa..494de76a50ce 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsGetSample.ts index 747edd8626f3..65375bc16b17 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsListByFleetSample.ts index 9a858bab0d3d..5a7d09082dc6 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List UpdateRun resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsSkipSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsSkipSample.ts index efbc0b62ce2a..2c96bc755503 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsSkipSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsSkipSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStartSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStartSample.ts index 0f1b986f9ada..27a561bdbea0 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStartSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts an UpdateRun. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStopSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStopSample.ts index e16fe981dfc3..b0632cd68b52 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStopSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1-beta/typescript/src/updateRunsStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops an UpdateRun. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersCreateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersCreateSample.ts index 280298621e08..4847a35c2a88 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersCreateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersCreateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersDeleteSample.ts index 999c3c26b5fc..4340ea4471dc 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersGetSample.ts index 7462331934e8..c0cc045319b8 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersListByFleetSample.ts index fcd0397b644a..25d82394fb91 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List FleetMember resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersUpdateSample.ts index be3c4b3748ce..aa4aea8f0cf9 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetMembersUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a FleetMember diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts index 956442c1fb9d..9bb3991c82b8 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesDeleteSample.ts index d52ea87e460b..febb5749409b 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesGetSample.ts index 8e5160e584b8..1af3a4baea18 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a FleetUpdateStrategy diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesListByFleetSample.ts index 8bf3fba6bb86..4dff775e1e83 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetUpdateStrategiesListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List FleetUpdateStrategy resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts index aa271370cc20..a87c1dbf9793 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Creates or updates a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsDeleteSample.ts index 94799f43a303..ec14d3ae96a8 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsGetSample.ts index d60c091bb42c..2254838a049f 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Gets a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts index f1faf8634399..91258453690a 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListByResourceGroupSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists fleets in the specified subscription and resource group. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts index e167b8bd2982..2798af6898c7 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListBySubscriptionSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists fleets in the specified subscription. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListCredentialsSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListCredentialsSample.ts index 0108e40f3724..facaf3ae71e8 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListCredentialsSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsListCredentialsSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Lists the user credentials of a Fleet. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsUpdateSample.ts index 106e2f097800..9c528e2b0274 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/fleetsUpdateSample.ts @@ -14,9 +14,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Update a Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/operationsListSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/operationsListSample.ts index 94d11aee92ab..8a1fe8ca4ad6 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/operationsListSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/operationsListSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List the operations for the provider diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsCreateOrUpdateSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsCreateOrUpdateSample.ts index 2d122cd32239..d0e0c9323854 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsCreateOrUpdateSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsCreateOrUpdateSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Create a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsDeleteSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsDeleteSample.ts index 002f4a3c2883..6a3030f72185 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsDeleteSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsDeleteSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Delete a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsGetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsGetSample.ts index 3e60e1a4be5f..587f476dc47f 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsGetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsGetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Get a UpdateRun diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsListByFleetSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsListByFleetSample.ts index 8fa826908cd5..4c49fd5a2418 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsListByFleetSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsListByFleetSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to List UpdateRun resources by Fleet diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsSkipSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsSkipSample.ts index a318aea773ba..212aa3db43d6 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsSkipSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsSkipSample.ts @@ -13,9 +13,7 @@ import { ContainerServiceFleetClient, } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Skips one or a combination of member/group/stage/afterStageWait(s) of an update run. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStartSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStartSample.ts index acd2cbd88c47..48139a01e281 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStartSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStartSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Starts an UpdateRun. diff --git a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStopSample.ts b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStopSample.ts index 1d83f51f9d9c..18fd0f22b016 100644 --- a/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStopSample.ts +++ b/sdk/containerservice/arm-containerservicefleet/samples/v1/typescript/src/updateRunsStopSample.ts @@ -10,9 +10,7 @@ // Licensed under the MIT License. import { ContainerServiceFleetClient } from "@azure/arm-containerservicefleet"; import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); +import "dotenv/config"; /** * This sample demonstrates how to Stops an UpdateRun. diff --git a/sdk/containerservice/arm-containerservicefleet/src/containerServiceFleetClient.ts b/sdk/containerservice/arm-containerservicefleet/src/containerServiceFleetClient.ts index d09ee647413d..2206c9a0c1b1 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/containerServiceFleetClient.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/containerServiceFleetClient.ts @@ -21,7 +21,7 @@ import { FleetMembersImpl, UpdateRunsImpl, FleetUpdateStrategiesImpl, -} from "./operations"; +} from "./operations/index.js"; import { Operations, Fleets, @@ -29,8 +29,8 @@ import { FleetMembers, UpdateRuns, FleetUpdateStrategies, -} from "./operationsInterfaces"; -import { ContainerServiceFleetClientOptionalParams } from "./models"; +} from "./operationsInterfaces/index.js"; +import { ContainerServiceFleetClientOptionalParams } from "./models/index.js"; export class ContainerServiceFleetClient extends coreClient.ServiceClient { $host: string; diff --git a/sdk/containerservice/arm-containerservicefleet/src/index.ts b/sdk/containerservice/arm-containerservicefleet/src/index.ts index c911c686cec2..daed46912296 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/index.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/index.ts @@ -7,7 +7,7 @@ */ /// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { ContainerServiceFleetClient } from "./containerServiceFleetClient"; -export * from "./operationsInterfaces"; +export { getContinuationToken } from "./pagingHelper.js"; +export * from "./models/index.js"; +export { ContainerServiceFleetClient } from "./containerServiceFleetClient.js"; +export * from "./operationsInterfaces/index.js"; diff --git a/sdk/containerservice/arm-containerservicefleet/src/models/parameters.ts b/sdk/containerservice/arm-containerservicefleet/src/models/parameters.ts index 9383608a00bc..d460087dba68 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/models/parameters.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/models/parameters.ts @@ -20,7 +20,7 @@ import { UpdateRun as UpdateRunMapper, SkipProperties as SkipPropertiesMapper, FleetUpdateStrategy as FleetUpdateStrategyMapper, -} from "../models/mappers"; +} from "../models/mappers.js"; export const accept: OperationParameter = { parameterPath: "accept", diff --git a/sdk/containerservice/arm-containerservicefleet/src/operations/autoUpgradeProfiles.ts b/sdk/containerservice/arm-containerservicefleet/src/operations/autoUpgradeProfiles.ts index 4b31058e2399..54aca19354ea 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operations/autoUpgradeProfiles.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operations/autoUpgradeProfiles.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AutoUpgradeProfiles } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { AutoUpgradeProfiles } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceFleetClient } from "../containerServiceFleetClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceFleetClient } from "../containerServiceFleetClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { AutoUpgradeProfile, AutoUpgradeProfilesListByFleetNextOptionalParams, @@ -31,7 +31,7 @@ import { AutoUpgradeProfilesDeleteOptionalParams, AutoUpgradeProfilesDeleteResponse, AutoUpgradeProfilesListByFleetNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing AutoUpgradeProfiles operations. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operations/fleetMembers.ts b/sdk/containerservice/arm-containerservicefleet/src/operations/fleetMembers.ts index c4e6b9667879..6c17ad2f7f35 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operations/fleetMembers.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operations/fleetMembers.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FleetMembers } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FleetMembers } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceFleetClient } from "../containerServiceFleetClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceFleetClient } from "../containerServiceFleetClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { FleetMember, FleetMembersListByFleetNextOptionalParams, @@ -33,7 +33,7 @@ import { FleetMembersUpdateResponse, FleetMembersDeleteOptionalParams, FleetMembersListByFleetNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FleetMembers operations. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operations/fleetUpdateStrategies.ts b/sdk/containerservice/arm-containerservicefleet/src/operations/fleetUpdateStrategies.ts index 245dc773dc0c..cc765f1c59b4 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operations/fleetUpdateStrategies.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operations/fleetUpdateStrategies.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { FleetUpdateStrategies } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { FleetUpdateStrategies } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceFleetClient } from "../containerServiceFleetClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceFleetClient } from "../containerServiceFleetClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { FleetUpdateStrategy, FleetUpdateStrategiesListByFleetNextOptionalParams, @@ -30,7 +30,7 @@ import { FleetUpdateStrategiesCreateOrUpdateResponse, FleetUpdateStrategiesDeleteOptionalParams, FleetUpdateStrategiesListByFleetNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing FleetUpdateStrategies operations. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operations/fleets.ts b/sdk/containerservice/arm-containerservicefleet/src/operations/fleets.ts index 0a7d9cedc2bf..83bdf80eccf9 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operations/fleets.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operations/fleets.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Fleets } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { Fleets } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceFleetClient } from "../containerServiceFleetClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceFleetClient } from "../containerServiceFleetClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { Fleet, FleetsListBySubscriptionNextOptionalParams, @@ -39,7 +39,7 @@ import { FleetsListCredentialsResponse, FleetsListBySubscriptionNextResponse, FleetsListByResourceGroupNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Fleets operations. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operations/index.ts b/sdk/containerservice/arm-containerservicefleet/src/operations/index.ts index e95cc610206a..def1d388b6a2 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operations/index.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operations/index.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./fleets"; -export * from "./autoUpgradeProfiles"; -export * from "./fleetMembers"; -export * from "./updateRuns"; -export * from "./fleetUpdateStrategies"; +export * from "./operations.js"; +export * from "./fleets.js"; +export * from "./autoUpgradeProfiles.js"; +export * from "./fleetMembers.js"; +export * from "./updateRuns.js"; +export * from "./fleetUpdateStrategies.js"; diff --git a/sdk/containerservice/arm-containerservicefleet/src/operations/operations.ts b/sdk/containerservice/arm-containerservicefleet/src/operations/operations.ts index cae97e5bfdc7..68bb5c6a78d7 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operations/operations.ts +++ b/sdk/containerservice/arm-containerservicefleet/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 { ContainerServiceFleetClient } from "../containerServiceFleetClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceFleetClient } from "../containerServiceFleetClient.js"; import { Operation, OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, OperationsListNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing Operations operations. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operations/updateRuns.ts b/sdk/containerservice/arm-containerservicefleet/src/operations/updateRuns.ts index 54a60247eec6..91ed80c62bea 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operations/updateRuns.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operations/updateRuns.ts @@ -7,18 +7,18 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { UpdateRuns } from "../operationsInterfaces"; +import { setContinuationToken } from "../pagingHelper.js"; +import { UpdateRuns } from "../operationsInterfaces/index.js"; import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ContainerServiceFleetClient } from "../containerServiceFleetClient"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { ContainerServiceFleetClient } from "../containerServiceFleetClient.js"; import { SimplePollerLike, OperationState, createHttpPoller, } from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; +import { createLroSpec } from "../lroImpl.js"; import { UpdateRun, UpdateRunsListByFleetNextOptionalParams, @@ -37,7 +37,7 @@ import { UpdateRunsStopOptionalParams, UpdateRunsStopResponse, UpdateRunsListByFleetNextResponse, -} from "../models"; +} from "../models/index.js"; /// /** Class containing UpdateRuns operations. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/autoUpgradeProfiles.ts b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/autoUpgradeProfiles.ts index e4fab5ef6f12..7875f0cfca34 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/autoUpgradeProfiles.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/autoUpgradeProfiles.ts @@ -17,7 +17,7 @@ import { AutoUpgradeProfilesCreateOrUpdateResponse, AutoUpgradeProfilesDeleteOptionalParams, AutoUpgradeProfilesDeleteResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a AutoUpgradeProfiles. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetMembers.ts b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetMembers.ts index 0c7564868830..587ac3924f34 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetMembers.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetMembers.ts @@ -19,7 +19,7 @@ import { FleetMembersUpdateOptionalParams, FleetMembersUpdateResponse, FleetMembersDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FleetMembers. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetUpdateStrategies.ts b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetUpdateStrategies.ts index 1212cf7ac74b..a28f791bffeb 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetUpdateStrategies.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleetUpdateStrategies.ts @@ -16,7 +16,7 @@ import { FleetUpdateStrategiesCreateOrUpdateOptionalParams, FleetUpdateStrategiesCreateOrUpdateResponse, FleetUpdateStrategiesDeleteOptionalParams, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a FleetUpdateStrategies. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleets.ts b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleets.ts index 81bd8eb9ec2a..67721336091d 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleets.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/fleets.ts @@ -22,7 +22,7 @@ import { FleetsDeleteOptionalParams, FleetsListCredentialsOptionalParams, FleetsListCredentialsResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a Fleets. */ diff --git a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/index.ts b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/index.ts index e95cc610206a..def1d388b6a2 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/index.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/index.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./operations"; -export * from "./fleets"; -export * from "./autoUpgradeProfiles"; -export * from "./fleetMembers"; -export * from "./updateRuns"; -export * from "./fleetUpdateStrategies"; +export * from "./operations.js"; +export * from "./fleets.js"; +export * from "./autoUpgradeProfiles.js"; +export * from "./fleetMembers.js"; +export * from "./updateRuns.js"; +export * from "./fleetUpdateStrategies.js"; diff --git a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/operations.ts b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/operations.ts index 251f5f582e64..2c280c7eb723 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/operations.ts +++ b/sdk/containerservice/arm-containerservicefleet/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/containerservice/arm-containerservicefleet/src/operationsInterfaces/updateRuns.ts b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/updateRuns.ts index 5263f611663f..c0448ea6f73b 100644 --- a/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/updateRuns.ts +++ b/sdk/containerservice/arm-containerservicefleet/src/operationsInterfaces/updateRuns.ts @@ -23,7 +23,7 @@ import { UpdateRunsStartResponse, UpdateRunsStopOptionalParams, UpdateRunsStopResponse, -} from "../models"; +} from "../models/index.js"; /// /** Interface representing a UpdateRuns. */ diff --git a/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts b/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts index 195e34062f73..8bf8e7fb27b1 100644 --- a/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts +++ b/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_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 { ContainerServiceFleetClient } from "../src/containerServiceFleetClient"; +import { ContainerServiceFleetClient } from "../src/containerServiceFleetClient.js"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "azure_subscription_id" @@ -42,8 +40,8 @@ describe("containerservicefleet 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 @@ -96,7 +94,6 @@ describe("containerservicefleet test", () => { it("fleets delete test", async function () { const resArray = new Array(); - const res = await client.fleets.beginDeleteAndWait(resourceGroup, resourceName, testPollingOptions) for await (let item of client.fleets.listByResourceGroup(resourceGroup)) { resArray.push(item); } From a1d74065cc0797f287cd731213545ce0436b48f0 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:30 +0800 Subject: [PATCH 53/64] Migration: Apply codemod: "fixTestingImports" --- .../test/containerservicefleet_operations_test.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts b/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts index 8bf8e7fb27b1..12f5853f640e 100644 --- a/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts +++ b/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts @@ -13,8 +13,8 @@ import { isPlaybackMode, } from "@azure-tools/test-recorder"; import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; import { ContainerServiceFleetClient } from "../src/containerServiceFleetClient.js"; +import { describe, it, assert, beforeEach, afterEach } from "vitest"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "azure_subscription_id" From 1038fe045b837f435430a1ee589dcacb59d39fc8 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:31 +0800 Subject: [PATCH 54/64] Migration: Apply codemod: "replaceAssertIsRejected" From 2cfaf0994909bdae15bfc63115b2efebcc1ead05 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:32 +0800 Subject: [PATCH 55/64] Migration: Apply codemod: "replaceSinonStub" From 16a5ce1c3ff3327cd22073825bbe7f6930d458ff Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:33 +0800 Subject: [PATCH 56/64] Migration: Apply codemod: "addViHelper" From f1cbcc16363cb92a6b8fb4abbab56602ff5b3468 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:34 +0800 Subject: [PATCH 57/64] Migration: Apply codemod: "replaceSupportTracing" From bd7b755c60959b33ac49597ed2feaea1591ff7dd Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:34 +0800 Subject: [PATCH 58/64] Migration: Apply codemod: "replaceTestUtils" From a6e6236d59b263eae193bf92b10e290e473ddf40 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:01:51 +0800 Subject: [PATCH 59/64] Migration: rushx format From 8f6f42cf99a67fc9c787da97a50228a107086f79 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:10:54 +0800 Subject: [PATCH 60/64] update --- common/config/rush/pnpm-lock.yaml | 36 ++++++++++++------- .../arm-containerservicefleet/package.json | 29 ++++++++++++--- 2 files changed, 49 insertions(+), 16 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 65a3f32d79d2..5d0bc7f7f7c6 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -231,7 +231,7 @@ importers: version: file:projects/arm-containerservice-1.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-containerservicefleet': specifier: file:./projects/arm-containerservicefleet.tgz - version: file:projects/arm-containerservicefleet.tgz + version: file:projects/arm-containerservicefleet.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) '@rush-temp/arm-cosmosdb': specifier: file:./projects/arm-cosmosdb.tgz version: file:projects/arm-cosmosdb.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9)) @@ -2779,7 +2779,7 @@ packages: version: 0.0.0 '@rush-temp/arm-containerservicefleet@file:projects/arm-containerservicefleet.tgz': - resolution: {integrity: sha512-TVduI4oRkqnhUwxSMoPifU4trEnWZw450q3mIAtM1850OVx6h9tqHgAiUt3GnvPlfHPw4VZxCHy8S+IWqwIFTg==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-scmrMDs8HhZsWke92KZgJhQ0o+ABdK/vsV91EFWzf4/enz0neKkRvTK3TkNdOMnNfo+Ys0+++bP1eQvBq/rduA==, tarball: file:projects/arm-containerservicefleet.tgz} version: 0.0.0 '@rush-temp/arm-cosmosdb@file:projects/arm-cosmosdb.tgz': @@ -11653,25 +11653,37 @@ snapshots: - supports-color - utf-8-validate - '@rush-temp/arm-containerservicefleet@file:projects/arm-containerservicefleet.tgz': + '@rush-temp/arm-containerservicefleet@file:projects/arm-containerservicefleet.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.68 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.7.2)(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.0.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.2 + vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2)) 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-cosmosdb@file:projects/arm-cosmosdb.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: diff --git a/sdk/containerservice/arm-containerservicefleet/package.json b/sdk/containerservice/arm-containerservicefleet/package.json index 66a84b5ddc87..1f2293b35350 100644 --- a/sdk/containerservice/arm-containerservicefleet/package.json +++ b/sdk/containerservice/arm-containerservicefleet/package.json @@ -24,9 +24,9 @@ "isomorphic" ], "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-containerservicefleet.d.ts", + "main": "./dist/commonjs/index.js", + "module": "./dist/esm/index.js", + "types": "./dist/commonjs/index.d.ts", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", @@ -118,5 +118,26 @@ "selfLink": false }, "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/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" + } + } + } } From d362bc4e794a2509f5f6a6ff4884e83227fc9229 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 27 Dec 2024 16:37:15 +0800 Subject: [PATCH 61/64] update --- sdk/consumption/arm-consumption/vitest.config.ts | 12 ++++++++++-- .../arm-containerinstance/vitest.config.ts | 12 ++++++++++-- .../arm-containerregistry/vitest.config.ts | 12 ++++++++++-- .../arm-containerservice/vitest.config.ts | 12 ++++++++++-- .../arm-containerservicefleet/vitest.config.ts | 12 ++++++++++-- 5 files changed, 50 insertions(+), 10 deletions(-) diff --git a/sdk/consumption/arm-consumption/vitest.config.ts b/sdk/consumption/arm-consumption/vitest.config.ts index cc5cd85d4131..2a4750c84292 100644 --- a/sdk/consumption/arm-consumption/vitest.config.ts +++ b/sdk/consumption/arm-consumption/vitest.config.ts @@ -1,7 +1,15 @@ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { defineConfig, mergeConfig } from "vitest/config"; import viteConfig from "../../../vitest.shared.config.ts"; -export default viteConfig; +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + hookTimeout: 1200000, + testTimeout: 1200000, + }, + }), +); diff --git a/sdk/containerinstance/arm-containerinstance/vitest.config.ts b/sdk/containerinstance/arm-containerinstance/vitest.config.ts index cc5cd85d4131..2a4750c84292 100644 --- a/sdk/containerinstance/arm-containerinstance/vitest.config.ts +++ b/sdk/containerinstance/arm-containerinstance/vitest.config.ts @@ -1,7 +1,15 @@ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { defineConfig, mergeConfig } from "vitest/config"; import viteConfig from "../../../vitest.shared.config.ts"; -export default viteConfig; +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + hookTimeout: 1200000, + testTimeout: 1200000, + }, + }), +); diff --git a/sdk/containerregistry/arm-containerregistry/vitest.config.ts b/sdk/containerregistry/arm-containerregistry/vitest.config.ts index cc5cd85d4131..2a4750c84292 100644 --- a/sdk/containerregistry/arm-containerregistry/vitest.config.ts +++ b/sdk/containerregistry/arm-containerregistry/vitest.config.ts @@ -1,7 +1,15 @@ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { defineConfig, mergeConfig } from "vitest/config"; import viteConfig from "../../../vitest.shared.config.ts"; -export default viteConfig; +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + hookTimeout: 1200000, + testTimeout: 1200000, + }, + }), +); diff --git a/sdk/containerservice/arm-containerservice/vitest.config.ts b/sdk/containerservice/arm-containerservice/vitest.config.ts index cc5cd85d4131..2a4750c84292 100644 --- a/sdk/containerservice/arm-containerservice/vitest.config.ts +++ b/sdk/containerservice/arm-containerservice/vitest.config.ts @@ -1,7 +1,15 @@ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { defineConfig, mergeConfig } from "vitest/config"; import viteConfig from "../../../vitest.shared.config.ts"; -export default viteConfig; +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + hookTimeout: 1200000, + testTimeout: 1200000, + }, + }), +); diff --git a/sdk/containerservice/arm-containerservicefleet/vitest.config.ts b/sdk/containerservice/arm-containerservicefleet/vitest.config.ts index cc5cd85d4131..2a4750c84292 100644 --- a/sdk/containerservice/arm-containerservicefleet/vitest.config.ts +++ b/sdk/containerservice/arm-containerservicefleet/vitest.config.ts @@ -1,7 +1,15 @@ - // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { defineConfig, mergeConfig } from "vitest/config"; import viteConfig from "../../../vitest.shared.config.ts"; -export default viteConfig; +export default mergeConfig( + viteConfig, + defineConfig({ + test: { + hookTimeout: 1200000, + testTimeout: 1200000, + }, + }), +); From e2e97a050a5103910a3ed9d34f7ab7b279030004 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 3 Jan 2025 14:59:37 +0800 Subject: [PATCH 62/64] update --- sdk/consumption/arm-consumption/package.json | 2 +- .../test/consumption_examples.spec.ts | 1 + .../arm-containerinstance/package.json | 2 +- .../test/containerinstance_examples.spec.ts | 1 + .../arm-containerregistry/package.json | 2 +- .../test/containerregistry_examples.spec.ts | 2 ++ .../arm-containerservice/package.json | 2 +- .../test/containerservice_examples.spec.ts | 25 ++++++++++--------- .../arm-containerservicefleet/package.json | 2 +- ...tainerservicefleet_operations_test.spec.ts | 1 + 10 files changed, 23 insertions(+), 17 deletions(-) diff --git a/sdk/consumption/arm-consumption/package.json b/sdk/consumption/arm-consumption/package.json index 9953cbefdba9..06dc7a85990e 100644 --- a/sdk/consumption/arm-consumption/package.json +++ b/sdk/consumption/arm-consumption/package.json @@ -75,7 +75,7 @@ "test:browser": "echo skipped", "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, diff --git a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts index 02ef5de62fd9..ff5d2fd726c0 100644 --- a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts +++ b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts @@ -121,5 +121,6 @@ describe("Consumption test", () => { }); it("budgets delete test", async function () { + await client.budgets.delete(scope, budgetName); }); }); diff --git a/sdk/containerinstance/arm-containerinstance/package.json b/sdk/containerinstance/arm-containerinstance/package.json index 4793c1121cc7..123b4e1b2df8 100644 --- a/sdk/containerinstance/arm-containerinstance/package.json +++ b/sdk/containerinstance/arm-containerinstance/package.json @@ -78,7 +78,7 @@ "test:browser": "echo skipped", "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run test:vitest" }, "sideEffects": false, diff --git a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts index 744776700dbf..abd55fa0a112 100644 --- a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts +++ b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts @@ -128,6 +128,7 @@ describe("ContainerInstance test", () => { it("containerGroups delete test", async function () { const resArray = new Array(); + await client.containerGroups.beginDeleteAndWait(resourceGroup, containerGroupName, testPollingOptions); for await (let item of client.containerGroups.listByResourceGroup(resourceGroup)) { resArray.push(item); } diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index 0c180fbe0c7f..a5f6502f2756 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -77,7 +77,7 @@ "test:browser": "echo skipped", "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, diff --git a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts index 1b0eac1226e3..560f8d593669 100644 --- a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts +++ b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts @@ -242,6 +242,7 @@ describe("ContainerRegistry test", () => { }); it("tasks delete test", async function () { + await client.tasks.beginDeleteAndWait(resourceGroup, registryName, taskName, testPollingOptions); const resArray = new Array(); for await (let item of client.tasks.list(resourceGroup, registryName)) { resArray.push(item); @@ -250,5 +251,6 @@ describe("ContainerRegistry test", () => { }); it("registries delete test", async function () { + await client.registries.beginDeleteAndWait(resourceGroup, registryName, testPollingOptions); }); }); diff --git a/sdk/containerservice/arm-containerservice/package.json b/sdk/containerservice/arm-containerservice/package.json index ca02b4a1f89b..a49cc1f85b68 100644 --- a/sdk/containerservice/arm-containerservice/package.json +++ b/sdk/containerservice/arm-containerservice/package.json @@ -79,7 +79,7 @@ "test:browser": "echo skipped", "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run test:vitest", "update-snippets": "echo skipped" }, diff --git a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts index 29f550ab074c..92980d434ce6 100644 --- a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts +++ b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts @@ -65,7 +65,7 @@ describe("ContainerService test", () => { await recorder.stop(); }); - it.only("operation list test", async function () { + it("operation list test", async function () { const resArray = new Array(); for await (let item of client.operations.list()) { resArray.push(item); @@ -73,8 +73,8 @@ describe("ContainerService test", () => { assert.notEqual(resArray.length, 0); }); - it("managedClusters create test", async function () { - const res = await client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, { + it.skip("managedClusters create test", async function () { + const res = await client.managedClusters.beginCreateOrUpdateAndWait.skip(resourceGroupName, resourceName, { dnsPrefix: "aksjssdk", agentPoolProfiles: [ { @@ -99,8 +99,8 @@ describe("ContainerService test", () => { assert.equal(res.name, resourceName); }); - it("agentPools create test", async function () { - const res = await client.agentPools.beginCreateOrUpdateAndWait( + it.skip("agentPools create test", async function () { + const res = await client.agentPools.beginCreateOrUpdateAndWait.skip( resourceGroupName, resourceName, "aksagent1", @@ -118,17 +118,17 @@ describe("ContainerService test", () => { assert.equal(res.name, "aksagent1"); }); - it("managedClusters get test", async function () { + it.skip("managedClusters get test", async function () { const res = await client.managedClusters.get(resourceGroupName, resourceName); assert.equal(res.name, resourceName); }); - it("managedClusters getUpgradeProfile test", async function () { + it.skip("managedClusters getUpgradeProfile test", async function () { const res = await client.managedClusters.getUpgradeProfile(resourceGroupName, resourceName); assert.equal(res.name, "default"); }); - it("managedClusters list test", async function () { + it.skip("managedClusters list test", async function () { const resArray = new Array(); for await (let item of client.managedClusters.listByResourceGroup(resourceGroupName)) { resArray.push(item); @@ -136,7 +136,7 @@ describe("ContainerService test", () => { assert.equal(resArray.length, 1); }); - it("agentPools list test", async function () { + it.skip("agentPools list test", async function () { const resArray = new Array(); for await (let item of client.agentPools.list( resourceGroupName, @@ -147,13 +147,14 @@ describe("ContainerService test", () => { assert.equal(resArray.length, 1); }); - it("managedClusters update test", async function () { - const res = await client.managedClusters.beginUpdateTagsAndWait(resourceGroupName, resourceName, { tags: { tier: "testing", archv3: "" } }, testPollingOptions); + it.skip("managedClusters update test", async function () { + const res = await client.managedClusters.beginUpdateTagsAndWait.skip(resourceGroupName, resourceName, { tags: { tier: "testing", archv3: "" } }, testPollingOptions); assert.equal(res.type, "Microsoft.ContainerService/ManagedClusters"); }); - it("managedClusters delete test", async function () { + it.skip("managedClusters delete test", async function () { const resArray = new Array(); + await client.managedClusters.beginDeleteAndWait.skip(resourceGroupName, resourceName, testPollingOptions); for await (let item of client.managedClusters.listByResourceGroup(resourceGroupName)) { resArray.push(item); } diff --git a/sdk/containerservice/arm-containerservicefleet/package.json b/sdk/containerservice/arm-containerservicefleet/package.json index 1f2293b35350..987758149ae7 100644 --- a/sdk/containerservice/arm-containerservicefleet/package.json +++ b/sdk/containerservice/arm-containerservicefleet/package.json @@ -78,7 +78,7 @@ "test:browser": "echo skipped", "test:node": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run test:vitest" }, "sideEffects": false, diff --git a/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts b/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts index 12f5853f640e..90d4b89c2837 100644 --- a/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts +++ b/sdk/containerservice/arm-containerservicefleet/test/containerservicefleet_operations_test.spec.ts @@ -94,6 +94,7 @@ describe("containerservicefleet test", () => { it("fleets delete test", async function () { const resArray = new Array(); + await client.fleets.beginDeleteAndWait(resourceGroup, resourceName, testPollingOptions) for await (let item of client.fleets.listByResourceGroup(resourceGroup)) { resArray.push(item); } From 21963dde94da367df8eb1b7502b56b9577ed6ed2 Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:10:40 +0800 Subject: [PATCH 63/64] update --- .../arm-consumption/test/consumption_examples.spec.ts | 2 -- .../test/containerinstance_examples.spec.ts | 2 +- .../test/containerregistry_examples.spec.ts | 8 ++++---- .../test/containerservice_examples.spec.ts | 8 ++++---- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts index ff5d2fd726c0..7fe39c671b57 100644 --- a/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts +++ b/sdk/consumption/arm-consumption/test/consumption_examples.spec.ts @@ -39,7 +39,6 @@ describe("Consumption test", () => { let recorder: Recorder; let subscriptionId: string; let client: ConsumptionManagementClient; - let location: string; let resourceGroup: string; let budgetName: string; let vmName: string; @@ -52,7 +51,6 @@ describe("Consumption test", () => { // This is an example of how the environment variables are used const credential = createTestCredential(); client = new ConsumptionManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; resourceGroup = "myjstest"; budgetName = "mybudgetxxxy"; vmName = "myvmxxx"; diff --git a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts index abd55fa0a112..78a7ac41bb3b 100644 --- a/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts +++ b/sdk/containerinstance/arm-containerinstance/test/containerinstance_examples.spec.ts @@ -111,7 +111,7 @@ describe("ContainerInstance test", () => { ] }, testPollingOptions) assert.equal(res.name, containerGroupName); - }).timeout(3600000); + }); it("containerGroups get test", async function () { const res = await client.containerGroups.get(resourceGroup, containerGroupName); diff --git a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts index 560f8d593669..6b875b19df71 100644 --- a/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts +++ b/sdk/containerregistry/arm-containerregistry/test/containerregistry_examples.spec.ts @@ -42,8 +42,8 @@ describe("ContainerRegistry test", () => { let location: string; let resourceGroup: string; let registryName: string; - let importPipelineName: string; - let exportPipelineName: string; + // let importPipelineName: string; + // let exportPipelineName: string; let taskName: string beforeEach(async function (ctx) { @@ -56,8 +56,8 @@ describe("ContainerRegistry test", () => { location = "eastus"; resourceGroup = "myjstest"; registryName = "myregistryxxxyy"; - importPipelineName = "myimportpipelinexxx"; - exportPipelineName = 'myexportpipelinexxx'; + // importPipelineName = "myimportpipelinexxx"; + // exportPipelineName = 'myexportpipelinexxx'; taskName = "mytaskxxx"; }); diff --git a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts index 92980d434ce6..fa0820a4bfae 100644 --- a/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts +++ b/sdk/containerservice/arm-containerservice/test/containerservice_examples.spec.ts @@ -74,7 +74,7 @@ describe("ContainerService test", () => { }); it.skip("managedClusters create test", async function () { - const res = await client.managedClusters.beginCreateOrUpdateAndWait.skip(resourceGroupName, resourceName, { + const res = await client.managedClusters.beginCreateOrUpdateAndWait(resourceGroupName, resourceName, { dnsPrefix: "aksjssdk", agentPoolProfiles: [ { @@ -100,7 +100,7 @@ describe("ContainerService test", () => { }); it.skip("agentPools create test", async function () { - const res = await client.agentPools.beginCreateOrUpdateAndWait.skip( + const res = await client.agentPools.beginCreateOrUpdateAndWait( resourceGroupName, resourceName, "aksagent1", @@ -148,13 +148,13 @@ describe("ContainerService test", () => { }); it.skip("managedClusters update test", async function () { - const res = await client.managedClusters.beginUpdateTagsAndWait.skip(resourceGroupName, resourceName, { tags: { tier: "testing", archv3: "" } }, testPollingOptions); + const res = await client.managedClusters.beginUpdateTagsAndWait(resourceGroupName, resourceName, { tags: { tier: "testing", archv3: "" } }, testPollingOptions); assert.equal(res.type, "Microsoft.ContainerService/ManagedClusters"); }); it.skip("managedClusters delete test", async function () { const resArray = new Array(); - await client.managedClusters.beginDeleteAndWait.skip(resourceGroupName, resourceName, testPollingOptions); + await client.managedClusters.beginDeleteAndWait(resourceGroupName, resourceName, testPollingOptions); for await (let item of client.managedClusters.listByResourceGroup(resourceGroupName)) { resArray.push(item); } From 82339d502363878b60cc30fc571e9a5042b0f91e Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:45:21 +0800 Subject: [PATCH 64/64] Update pnpm-lock.yaml --- common/config/rush/pnpm-lock.yaml | 192 +++++++++++++++++++----------- 1 file changed, 123 insertions(+), 69 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 78d3769a9be2..bfc15d3eb42d 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -213,25 +213,25 @@ importers: version: file:projects/arm-connectedvmware.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-consumption': specifier: file:./projects/arm-consumption.tgz - version: file:projects/arm-consumption.tgz + version: file:projects/arm-consumption.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-containerinstance': specifier: file:./projects/arm-containerinstance.tgz - version: file:projects/arm-containerinstance.tgz + version: file:projects/arm-containerinstance.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-containerorchestratorruntime': specifier: file:./projects/arm-containerorchestratorruntime.tgz version: file:projects/arm-containerorchestratorruntime.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-containerregistry': specifier: file:./projects/arm-containerregistry.tgz - version: file:projects/arm-containerregistry.tgz + version: file:projects/arm-containerregistry.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-containerservice': specifier: file:./projects/arm-containerservice.tgz version: file:projects/arm-containerservice.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-containerservice-1': specifier: file:./projects/arm-containerservice-1.tgz - version: file:projects/arm-containerservice-1.tgz + version: file:projects/arm-containerservice-1.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-containerservicefleet': specifier: file:./projects/arm-containerservicefleet.tgz - version: file:projects/arm-containerservicefleet.tgz + version: file:projects/arm-containerservicefleet.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-cosmosdb': specifier: file:./projects/arm-cosmosdb.tgz version: file:projects/arm-cosmosdb.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9)) @@ -2563,15 +2563,15 @@ packages: version: 0.0.0 '@rush-temp/arm-apimanagement@file:projects/arm-apimanagement.tgz': - resolution: {integrity: sha512-21fUiCFQejze8e2l3PwTiHFc8KDuj3L8nXnEeFExNELM/nS+iCf6rEih+d5pe0+O6rQ3camxDNAA223kC/eBCA==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-Oo7NsnCPAlo7YDMq88CdrMM+T3Ul6F7PyjMSQ3BJzua1xVx0Z3ZglwoW4ca7SNdJaPqIjdtInqMltmTdc4V4zw==, tarball: file:projects/arm-apimanagement.tgz} version: 0.0.0 '@rush-temp/arm-appcomplianceautomation@file:projects/arm-appcomplianceautomation.tgz': - resolution: {integrity: sha512-wVhFZffEgVUEVkJ/JXkXAw7AgsKAt9t4YdiDqhT85Os3EHVQCfs9zL2GOYo1TsJW8B94xeB1Q8NR5Gjb6tYUsA==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-zB3KF5bcZVyCGC44uZFL/cNLbx9wHvVSixB+MibWs/vUrYJkSjn/aMAla40Y2ohdvSG0MQErrrykZ6xh0/ZzEQ==, tarball: file:projects/arm-appcomplianceautomation.tgz} version: 0.0.0 '@rush-temp/arm-appconfiguration@file:projects/arm-appconfiguration.tgz': - resolution: {integrity: sha512-X9vtg38hrEXVCKUdUFtZRTnbI4l+PzBGYO9lQYuimnRTxCMiTXc6GGjbOVQTTBzUZGfKwqNh0KH8+tCc2uwlPw==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-Ob7iFm0aHcW5QKlrWG9nT9s6qrr/MMxtZUp6PnTwaa0d5fnCzaeODXaJJuLEOuc3/o1JW5duk3dudzYVq/6OJA==, tarball: file:projects/arm-appconfiguration.tgz} version: 0.0.0 '@rush-temp/arm-appcontainers@file:projects/arm-appcontainers.tgz': @@ -2731,11 +2731,11 @@ packages: version: 0.0.0 '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz': - resolution: {integrity: sha512-rHj6mnz21Z4PoRZnazbDDICDKW/LCkn5V3N32yMoKc6FHq0zrdZgBLvDnUVBFk+rfeBI9by7Ijgv6M62a5uJLw==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-vGlGo4P6yqBrTBwd59WxwLuBJ6xzWQJwcjUBSmDW6wc7RvDlMBEGIXR2/KPQzpAOaoSU8aS0b6MsOhaf8BMdKQ==, tarball: file:projects/arm-consumption.tgz} version: 0.0.0 '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz': - resolution: {integrity: sha512-7Ln6v9AFDpQl/LWoSVgt14Vk/6G6b2Ng5+fPi0xVAu1KmskucUfmcQWof1ZYvqk8YSaYP535tuVUPyi4vL7gwg==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-ZTiZ115zw89oG3iDUqHUCFh5ns50TBtSHRj3DSxJRXw/4w5iIa8elkPZrnbJIth353R69oVu2gDJekNqMvbOGA==, tarball: file:projects/arm-containerinstance.tgz} version: 0.0.0 '@rush-temp/arm-containerorchestratorruntime@file:projects/arm-containerorchestratorruntime.tgz': @@ -2743,11 +2743,11 @@ packages: version: 0.0.0 '@rush-temp/arm-containerregistry@file:projects/arm-containerregistry.tgz': - resolution: {integrity: sha512-nQRVE5Dmd7+CxKK/OWv2BMjjjo5LVgiZJ45yqkwf3YqCijeakpNZH9eZNfSwDlZSxCo8wPw1qkqjgJ4XhS2dFw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-zII4fD+eeO6r8MqgydlAPLGdLyDyvmfP2QMV1QlbJToolMdzZUrVAt97PzzqYztpfkK8tAVzt33b2O00KVeZEA==, tarball: file:projects/arm-containerregistry.tgz} version: 0.0.0 '@rush-temp/arm-containerservice-1@file:projects/arm-containerservice-1.tgz': - resolution: {integrity: sha512-MXdBJpqSwAmqEG53FsDK3T68anPmUWPadKn+29aXq+hEqQn1mYaWJdAtBr/DV+UI8j7bhSuq4xskk24HJLC6LA==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-F5rlOznGfVnhzpi5TiTDoaaHGG9uAgJE34REhsAyP8Z/dEqUSNKv35w42KCUcpA5xNepz4EcUxSWxTntwKAeow==, tarball: file:projects/arm-containerservice-1.tgz} version: 0.0.0 '@rush-temp/arm-containerservice@file:projects/arm-containerservice.tgz': @@ -2755,7 +2755,7 @@ packages: version: 0.0.0 '@rush-temp/arm-containerservicefleet@file:projects/arm-containerservicefleet.tgz': - resolution: {integrity: sha512-TVduI4oRkqnhUwxSMoPifU4trEnWZw450q3mIAtM1850OVx6h9tqHgAiUt3GnvPlfHPw4VZxCHy8S+IWqwIFTg==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-scmrMDs8HhZsWke92KZgJhQ0o+ABdK/vsV91EFWzf4/enz0neKkRvTK3TkNdOMnNfo+Ys0+++bP1eQvBq/rduA==, tarball: file:projects/arm-containerservicefleet.tgz} version: 0.0.0 '@rush-temp/arm-cosmosdb@file:projects/arm-cosmosdb.tgz': @@ -10560,7 +10560,6 @@ snapshots: '@rush-temp/arm-appcomplianceautomation@file:projects/arm-appcomplianceautomation.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/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 '@types/node': 18.19.70 '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) @@ -10568,7 +10567,6 @@ snapshots: dotenv: 16.4.7 playwright: 1.49.1 tslib: 2.8.1 - tsx: 4.19.2 typescript: 5.7.2 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: @@ -10598,13 +10596,9 @@ snapshots: '@types/node': 18.19.70 '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) - cross-env: 7.0.3 dotenv: 16.4.7 - mkdirp: 3.0.1 playwright: 1.49.1 - rimraf: 5.0.10 tslib: 2.8.1 - tsx: 4.19.2 typescript: 5.7.2 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: @@ -11776,43 +11770,67 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-consumption@file:projects/arm-consumption.tgz': + '@rush-temp/arm-consumption@file:projects/arm-consumption.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 - '@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.2)(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.2) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.2 + 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-containerinstance@file:projects/arm-containerinstance.tgz': + '@rush-temp/arm-containerinstance@file:projects/arm-containerinstance.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.70 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(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.2) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.2 + 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-containerorchestratorruntime@file:projects/arm-containerorchestratorruntime.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: @@ -11846,46 +11864,70 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-containerregistry@file:projects/arm-containerregistry.tgz': + '@rush-temp/arm-containerregistry@file:projects/arm-containerregistry.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.2)(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.2) + playwright: 1.49.1 tslib: 2.8.1 typescript: 5.7.2 + 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-containerservice-1@file:projects/arm-containerservice-1.tgz': + '@rush-temp/arm-containerservice-1@file:projects/arm-containerservice-1.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 '@microsoft/api-extractor': 7.48.1(@types/node@18.19.70) - '@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.2)(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.2) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.2 + 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-containerservice@file:projects/arm-containerservice.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: @@ -11921,25 +11963,37 @@ snapshots: - vite - webdriverio - '@rush-temp/arm-containerservicefleet@file:projects/arm-containerservicefleet.tgz': + '@rush-temp/arm-containerservicefleet@file:projects/arm-containerservicefleet.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: - '@azure-tools/test-credential': 1.3.1 - '@azure-tools/test-recorder': 3.5.2 '@azure/core-lro': 2.7.2 - '@types/chai': 4.3.20 - '@types/mocha': 10.0.10 '@types/node': 18.19.70 - chai: 4.5.0 + '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(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.2) + playwright: 1.49.1 tslib: 2.8.1 tsx: 4.19.2 typescript: 5.7.2 + 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-cosmosdb@file:projects/arm-cosmosdb.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))': dependencies: