From 1d3a7c6a7c520d30c8d0d3a1eb53de79ef9ffe92 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 17 Dec 2024 08:49:34 +0000 Subject: [PATCH] CodeGen from PR 31907 in Azure/azure-rest-api-specs Merge 2e40823fc42f3faa4698db4d19cb342c2464ab51 into 400c11792452dcb27582223863171cd596680a58 --- common/config/rush/pnpm-lock.yaml | 1169 +---------------- sdk/standbypool/arm-standbypool/CHANGELOG.md | 21 +- sdk/standbypool/arm-standbypool/README.md | 32 +- sdk/standbypool/arm-standbypool/assets.json | 6 - .../arm-standbypool/eslint.config.mjs | 17 + sdk/standbypool/arm-standbypool/package.json | 74 +- .../review/arm-standbypool-models.api.md | 99 +- .../review/arm-standbypool.api.md | 17 +- sdk/standbypool/arm-standbypool/sample.env | 2 +- .../samples-dev/operationsListSample.ts | 29 - ...ContainerGroupPoolRuntimeViewsGetSample.ts | 29 - ...PoolRuntimeViewsListByStandbyPoolSample.ts | 32 - ...ContainerGroupPoolsCreateOrUpdateSample.ts | 42 - .../standbyContainerGroupPoolsDeleteSample.ts | 24 - .../standbyContainerGroupPoolsGetSample.ts | 25 - ...inerGroupPoolsListByResourceGroupSample.ts | 29 - ...ainerGroupPoolsListBySubscriptionSample.ts | 29 - .../standbyContainerGroupPoolsUpdateSample.ts | 41 - ...VirtualMachinePoolRuntimeViewsGetSample.ts | 29 - ...PoolRuntimeViewsListByStandbyPoolSample.ts | 32 - ...VirtualMachinePoolsCreateOrUpdateSample.ts | 34 - .../standbyVirtualMachinePoolsDeleteSample.ts | 24 - .../standbyVirtualMachinePoolsGetSample.ts | 25 - ...alMachinePoolsListByResourceGroupSample.ts | 29 - ...ualMachinePoolsListBySubscriptionSample.ts | 29 - .../standbyVirtualMachinePoolsUpdateSample.ts | 33 - .../standbyVirtualMachinesGetSample.ts | 25 - ...StandbyVirtualMachinePoolResourceSample.ts | 32 - .../samples/v1/javascript/README.md | 86 -- .../v1/javascript/operationsListSample.js | 29 - .../samples/v1/javascript/package.json | 33 - .../samples/v1/javascript/sample.env | 1 - ...ContainerGroupPoolRuntimeViewsGetSample.js | 29 - ...PoolRuntimeViewsListByStandbyPoolSample.js | 32 - ...ContainerGroupPoolsCreateOrUpdateSample.js | 42 - .../standbyContainerGroupPoolsDeleteSample.js | 24 - .../standbyContainerGroupPoolsGetSample.js | 25 - ...inerGroupPoolsListByResourceGroupSample.js | 29 - ...ainerGroupPoolsListBySubscriptionSample.js | 29 - .../standbyContainerGroupPoolsUpdateSample.js | 41 - ...VirtualMachinePoolRuntimeViewsGetSample.js | 29 - ...PoolRuntimeViewsListByStandbyPoolSample.js | 32 - ...VirtualMachinePoolsCreateOrUpdateSample.js | 34 - .../standbyVirtualMachinePoolsDeleteSample.js | 24 - .../standbyVirtualMachinePoolsGetSample.js | 25 - ...alMachinePoolsListByResourceGroupSample.js | 29 - ...ualMachinePoolsListBySubscriptionSample.js | 29 - .../standbyVirtualMachinePoolsUpdateSample.js | 33 - .../standbyVirtualMachinesGetSample.js | 25 - ...StandbyVirtualMachinePoolResourceSample.js | 32 - .../samples/v1/typescript/README.md | 99 -- .../samples/v1/typescript/package.json | 42 - .../samples/v1/typescript/sample.env | 1 - .../v1/typescript/src/operationsListSample.ts | 29 - ...ContainerGroupPoolRuntimeViewsGetSample.ts | 29 - ...PoolRuntimeViewsListByStandbyPoolSample.ts | 32 - ...ContainerGroupPoolsCreateOrUpdateSample.ts | 42 - .../standbyContainerGroupPoolsDeleteSample.ts | 24 - .../standbyContainerGroupPoolsGetSample.ts | 25 - ...inerGroupPoolsListByResourceGroupSample.ts | 29 - ...ainerGroupPoolsListBySubscriptionSample.ts | 29 - .../standbyContainerGroupPoolsUpdateSample.ts | 41 - ...VirtualMachinePoolRuntimeViewsGetSample.ts | 29 - ...PoolRuntimeViewsListByStandbyPoolSample.ts | 32 - ...VirtualMachinePoolsCreateOrUpdateSample.ts | 34 - .../standbyVirtualMachinePoolsDeleteSample.ts | 24 - .../standbyVirtualMachinePoolsGetSample.ts | 25 - ...alMachinePoolsListByResourceGroupSample.ts | 29 - ...ualMachinePoolsListBySubscriptionSample.ts | 29 - .../standbyVirtualMachinePoolsUpdateSample.ts | 33 - .../src/standbyVirtualMachinesGetSample.ts | 25 - ...StandbyVirtualMachinePoolResourceSample.ts | 32 - .../samples/v1/typescript/tsconfig.json | 17 - .../arm-standbypool/src/api/index.ts | 23 +- .../src/api/operations/index.ts | 42 +- .../src/{models => api}/options.ts | 33 +- .../index.ts | 97 +- .../api/standbyContainerGroupPools/index.ts | 299 +---- .../src/api/standbyPoolManagementContext.ts | 19 +- .../index.ts | 99 +- .../api/standbyVirtualMachinePools/index.ts | 257 +--- .../src/api/standbyVirtualMachines/index.ts | 83 +- .../src/classic/operations/index.ts | 19 +- .../index.ts | 10 +- .../standbyContainerGroupPools/index.ts | 29 +- .../index.ts | 16 +- .../standbyVirtualMachinePools/index.ts | 41 +- .../classic/standbyVirtualMachines/index.ts | 19 +- .../src/helpers/serializerHelpers.ts | 12 +- sdk/standbypool/arm-standbypool/src/index.ts | 25 +- .../arm-standbypool/src/models/index.ts | 36 +- .../arm-standbypool/src/models/models.ts | 772 ++++++++--- .../src/restorePollerHelpers.ts | 26 +- .../src/standbyPoolManagementClient.ts | 32 +- .../src/static-helpers/pagingHelpers.ts | 58 +- .../src/static-helpers/pollingHelpers.ts | 22 +- .../test/public/sampleTest.spec.ts | 21 + .../standbypool_operations_test.spec.ts | 48 - .../test/public/utils/recordedClient.ts | 14 +- .../tsconfig.browser.config.json | 9 +- sdk/standbypool/arm-standbypool/tsconfig.json | 17 +- .../arm-standbypool/tsconfig.samples.json | 8 - .../arm-standbypool/tsconfig.src.json | 3 - .../arm-standbypool/tsconfig.test.json | 3 - .../arm-standbypool/tsp-location.yaml | 6 +- .../arm-standbypool/vitest.browser.config.ts | 2 +- .../arm-standbypool/vitest.config.ts | 39 +- sdk/standbypool/ci.mgmt.yml | 5 +- 108 files changed, 1203 insertions(+), 4473 deletions(-) delete mode 100644 sdk/standbypool/arm-standbypool/assets.json create mode 100644 sdk/standbypool/arm-standbypool/eslint.config.mjs delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/operationsListSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsDeleteSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsDeleteSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/README.md delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/operationsListSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/package.json delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/sample.env delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsGetSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsCreateOrUpdateSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsDeleteSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsGetSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListByResourceGroupSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListBySubscriptionSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsUpdateSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsGetSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsCreateOrUpdateSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsDeleteSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsGetSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListByResourceGroupSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListBySubscriptionSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsUpdateSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesGetSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/README.md delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/package.json delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/sample.env delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/operationsListSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsCreateOrUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsDeleteSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListByResourceGroupSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListBySubscriptionSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsCreateOrUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsDeleteSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListByResourceGroupSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListBySubscriptionSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsUpdateSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesGetSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts delete mode 100644 sdk/standbypool/arm-standbypool/samples/v1/typescript/tsconfig.json rename sdk/standbypool/arm-standbypool/src/{models => api}/options.ts (73%) create mode 100644 sdk/standbypool/arm-standbypool/test/public/sampleTest.spec.ts delete mode 100644 sdk/standbypool/arm-standbypool/test/public/standbypool_operations_test.spec.ts delete mode 100644 sdk/standbypool/arm-standbypool/tsconfig.samples.json delete mode 100644 sdk/standbypool/arm-standbypool/tsconfig.src.json delete mode 100644 sdk/standbypool/arm-standbypool/tsconfig.test.json diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index c40ce8aab8ff..57fe09f67e36 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1528,12 +1528,6 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/aix-ppc64@0.24.0': - resolution: {integrity: sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - '@esbuild/android-arm64@0.21.5': resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} engines: {node: '>=12'} @@ -1546,12 +1540,6 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.24.0': - resolution: {integrity: sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm@0.21.5': resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} engines: {node: '>=12'} @@ -1564,12 +1552,6 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.24.0': - resolution: {integrity: sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - '@esbuild/android-x64@0.21.5': resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} engines: {node: '>=12'} @@ -1582,12 +1564,6 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.24.0': - resolution: {integrity: sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - '@esbuild/darwin-arm64@0.21.5': resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} engines: {node: '>=12'} @@ -1600,12 +1576,6 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.24.0': - resolution: {integrity: sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-x64@0.21.5': resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} engines: {node: '>=12'} @@ -1618,12 +1588,6 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.24.0': - resolution: {integrity: sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - '@esbuild/freebsd-arm64@0.21.5': resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} engines: {node: '>=12'} @@ -1636,12 +1600,6 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.24.0': - resolution: {integrity: sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-x64@0.21.5': resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} engines: {node: '>=12'} @@ -1654,12 +1612,6 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.24.0': - resolution: {integrity: sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - '@esbuild/linux-arm64@0.21.5': resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} engines: {node: '>=12'} @@ -1672,12 +1624,6 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.24.0': - resolution: {integrity: sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm@0.21.5': resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} engines: {node: '>=12'} @@ -1690,12 +1636,6 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.24.0': - resolution: {integrity: sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - '@esbuild/linux-ia32@0.21.5': resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} engines: {node: '>=12'} @@ -1708,12 +1648,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.24.0': - resolution: {integrity: sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-loong64@0.21.5': resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} engines: {node: '>=12'} @@ -1726,12 +1660,6 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.24.0': - resolution: {integrity: sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-mips64el@0.21.5': resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} engines: {node: '>=12'} @@ -1744,12 +1672,6 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.24.0': - resolution: {integrity: sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-ppc64@0.21.5': resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} engines: {node: '>=12'} @@ -1762,12 +1684,6 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.24.0': - resolution: {integrity: sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-riscv64@0.21.5': resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} engines: {node: '>=12'} @@ -1780,12 +1696,6 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.24.0': - resolution: {integrity: sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-s390x@0.21.5': resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} engines: {node: '>=12'} @@ -1798,12 +1708,6 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.24.0': - resolution: {integrity: sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-x64@0.21.5': resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} engines: {node: '>=12'} @@ -1816,12 +1720,6 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.24.0': - resolution: {integrity: sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - '@esbuild/netbsd-x64@0.21.5': resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} engines: {node: '>=12'} @@ -1834,24 +1732,12 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.24.0': - resolution: {integrity: sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - '@esbuild/openbsd-arm64@0.23.1': resolution: {integrity: sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-arm64@0.24.0': - resolution: {integrity: sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - '@esbuild/openbsd-x64@0.21.5': resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} engines: {node: '>=12'} @@ -1864,12 +1750,6 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.24.0': - resolution: {integrity: sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - '@esbuild/sunos-x64@0.21.5': resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} engines: {node: '>=12'} @@ -1882,12 +1762,6 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.24.0': - resolution: {integrity: sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - '@esbuild/win32-arm64@0.21.5': resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} engines: {node: '>=12'} @@ -1900,12 +1774,6 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.24.0': - resolution: {integrity: sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-ia32@0.21.5': resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} engines: {node: '>=12'} @@ -1918,12 +1786,6 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.24.0': - resolution: {integrity: sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-x64@0.21.5': resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} engines: {node: '>=12'} @@ -1936,12 +1798,6 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.24.0': - resolution: {integrity: sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@eslint-community/eslint-utils@4.4.1': resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2006,9 +1862,6 @@ packages: engines: {node: '>=6'} hasBin: true - '@hapi/bourne@3.0.0': - resolution: {integrity: sha512-Waj1cwPXJDucOib4a3bAISsKJVb15MKi9IvmTI/7ssVEm6sywXGjVJDhl6/umt1pK1ZS7PacXU3A1PmFKHEZ2w==} - '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -2120,9 +1973,6 @@ packages: peerDependencies: tslib: '2' - '@mdn/browser-compat-data@4.2.1': - resolution: {integrity: sha512-EWUguj2kd7ldmrF9F+vI5hUOralPd+sdsUnYbRy33vZTuZkduC1shE9TtEMEjAQwyfyMb4ole5KtjF8MsnQOlA==} - '@microsoft/api-extractor-model@7.30.0': resolution: {integrity: sha512-26/LJZBrsWDKAkOWRiQbdVgcfd1F3nyJnAiJzsAgpouPk7LtOIj7PK9aJtBaw/pUXrkotEg27RrT+Jm/q0bbug==} @@ -3560,7 +3410,7 @@ packages: version: 0.0.0 '@rush-temp/arm-standbypool@file:projects/arm-standbypool.tgz': - resolution: {integrity: sha512-lBp+YGTwo3+S+0zRPNL42SjK4lLENcKqTdRrqbJfiiLvwu92k6wmM2YWr5xZXHh5arGKmz2FkNZuo5nFlRdKOA==, tarball: file:projects/arm-standbypool.tgz} + resolution: {integrity: sha512-LuQafw2bQkC0xj2L3MaqY1DrKfGIBOdNZK+6Dciu8T+tfXqZsY39wyqpzm4o6lmkYSoeKilp9+BdVOc/uJZbHA==, tarball: file:projects/arm-standbypool.tgz} version: 0.0.0 '@rush-temp/arm-storage-profile-2020-09-01-hybrid@file:projects/arm-storage-profile-2020-09-01-hybrid.tgz': @@ -4004,11 +3854,11 @@ packages: version: 0.0.0 '@rush-temp/perf-ai-metrics-advisor@file:projects/perf-ai-metrics-advisor.tgz': - resolution: {integrity: sha512-6JSVuIfIFvRVwSXA5O5uLyr0gPb5j2Spu6AFzoHNcoMtfCl/94mWPmgofhG9qGsIOybTyAVS0jkD1nlxcsQWkQ==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-+EI1/2y01yAyGAf7ICP7CLKMCEaPxr2UH1wE/oZrmx3JyF+DzBfGAXEzifrNNFcSlM9B/4SThFzzk9w202G1Kw==, tarball: file:projects/perf-ai-metrics-advisor.tgz} version: 0.0.0 '@rush-temp/perf-ai-text-analytics@file:projects/perf-ai-text-analytics.tgz': - resolution: {integrity: sha512-HEeXcquBy4/HxCQDiHYIh56U/wSyFktEifaFi6u5aWjQHA0YVCZ2mL4n2UNp8/B+G7Z4Di2gAsinuyXdk04VFQ==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-Pan1PGinVC3NSJWrVyHJT04npqIDFlna70gSOyN/gwPRa1CGoWSa2UCeH1bXbXwzE02/hWfyCfNCenj4ZK+xkg==, tarball: file:projects/perf-ai-text-analytics.tgz} version: 0.0.0 '@rush-temp/perf-app-configuration@file:projects/perf-app-configuration.tgz': @@ -4020,7 +3870,7 @@ packages: version: 0.0.0 '@rush-temp/perf-core-rest-pipeline@file:projects/perf-core-rest-pipeline.tgz': - resolution: {integrity: sha512-CA4ACPBdLdTWNEL9EeXGvHFkFEbjL4L6z92yZHgr5kZH2mG3WyweFp5jAVeI1iXFtfaTKvPkma7l+uUhDj9hXw==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-KWEPnchNnpCiHjuk8vd2aza0LmqMfhUOVJ402HWrXZXo0ilrsq1YYvoPhbNj1Bk5sNjLDvA4Y9xI9ofAe1NwGQ==, tarball: file:projects/perf-core-rest-pipeline.tgz} version: 0.0.0 '@rush-temp/perf-data-tables@file:projects/perf-data-tables.tgz': @@ -4212,7 +4062,7 @@ packages: version: 0.0.0 '@rush-temp/test-utils@file:projects/test-utils.tgz': - resolution: {integrity: sha512-PhzayiVPJXdsu6TATkAFgyqHODq6FhybsoAjVI+W+7fDUQzdGHoYDCBn5vcqiDb5Xe49R9aBheHPRvTXNHFfwA==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-A1LivzUuFF+kXN4mR9u430aQKuLaD5pVk94AzzOcAAASvkTPJQuU2yE34MR8FtXFi9yKmwnLFw56stqEontcdw==, tarball: file:projects/test-utils.tgz} version: 0.0.0 '@rush-temp/ts-http-runtime@file:projects/ts-http-runtime.tgz': @@ -4314,9 +4164,6 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@types/accepts@1.3.7': - resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==} - '@types/archiver@6.0.3': resolution: {integrity: sha512-a6wUll6k3zX6qs5KlxIggs1P1JcYJaTCx2gnlr+f0S1yd2DoaEwoIK10HmBaLnZwWneBz+JBm0dwcZu0zECBcQ==} @@ -4326,9 +4173,6 @@ packages: '@types/aria-query@5.0.4': resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==} - '@types/babel__code-frame@7.0.6': - resolution: {integrity: sha512-Anitqkl3+KrzcW2k77lRlg/GfLZLWXBuNgbEcIOU6M92yw42vsd3xV/Z/yAHEj8m+KUjL6bWOVOFqX8PFPJ4LA==} - '@types/body-parser@1.19.5': resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} @@ -4347,36 +4191,18 @@ packages: '@types/chai@5.0.1': resolution: {integrity: sha512-5T8ajsg3M/FOncpLYW7sdOcD6yf4+722sze/tc4KQV0P8Z2rAr3SAuHCIkYmYpt8VbcQlnz8SxlOlPQYefe4cA==} - '@types/co-body@6.1.3': - resolution: {integrity: sha512-UhuhrQ5hclX6UJctv5m4Rfp52AfG9o9+d9/HwjxhVB5NjXxr5t9oKgJxN8xRHgr35oo8meUEHUPFWiKg6y71aA==} - - '@types/command-line-args@5.2.3': - resolution: {integrity: sha512-uv0aG6R0Y8WHZLTamZwtfsDLVRnOa+n+n5rEvFWL5Na5gZ8V2Teab/duDPFzIIIhs9qizDpcavCusCLJZu62Kw==} - '@types/connect@3.4.38': resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} - '@types/content-disposition@0.5.8': - resolution: {integrity: sha512-QVSSvno3dE0MgO76pJhmv4Qyi/j0Yk9pBp0Y7TJ2Tlj+KCgJWY6qX7nnxCOLkZ3VYRSIk1WTxCvwUSdx6CCLdg==} - - '@types/convert-source-map@2.0.3': - resolution: {integrity: sha512-ag0BfJLZf6CQz8VIuRIEYQ5Ggwk/82uvTQf27RcpyDNbY0Vw49LIPqAxk5tqYfrCs9xDaIMvl4aj7ZopnYL8bA==} - '@types/cookie@0.4.1': resolution: {integrity: sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==} '@types/cookie@0.6.0': resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} - '@types/cookies@0.9.0': - resolution: {integrity: sha512-40Zk8qR147RABiQ7NQnBzWzDcjKzNrntB5BAmeGCb2p/MIyOE+4BVvc17wumsUqUw00bJYqoXFHYygQnEFh4/Q==} - '@types/cors@2.8.17': resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} - '@types/debounce@1.2.4': - resolution: {integrity: sha512-jBqiORIzKDOToaF63Fm//haOCHuwQuLa2202RK4MozpA6lh93eCBc+/8+wZn5OzjJt3ySdc+74SXWXB55Ewtyw==} - '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} @@ -4413,9 +4239,6 @@ packages: '@types/glob@7.2.0': resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} - '@types/http-assert@1.5.6': - resolution: {integrity: sha512-TTEwmtjgVbYAzZYWyeHPrrtWnfVkm8tQkP8P21uQifPgMRgjrow3XDEYqucuC8SKZJT7pUnhU/JymvjggxO9vw==} - '@types/http-errors@2.0.4': resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==} @@ -4425,15 +4248,6 @@ packages: '@types/is-buffer@2.0.2': resolution: {integrity: sha512-G6OXy83Va+xEo8XgqAJYOuvOMxeey9xM5XKkvwJNmN8rVdcB+r15HvHsG86hl86JvU0y1aa7Z2ERkNFYWw9ySg==} - '@types/istanbul-lib-coverage@2.0.6': - resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} - - '@types/istanbul-lib-report@3.0.3': - resolution: {integrity: sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==} - - '@types/istanbul-reports@3.0.4': - resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} - '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -4446,15 +4260,6 @@ packages: '@types/jws@3.2.10': resolution: {integrity: sha512-cOevhttJmssERB88/+XvZXvsq5m9JLKZNUiGfgjUb5lcPRdV2ZQciU6dU76D/qXXFYpSqkP3PrSg4hMTiafTZw==} - '@types/keygrip@1.0.6': - resolution: {integrity: sha512-lZuNAY9xeJt7Bx4t4dx0rYCDqGPW8RXhQZK1td7d4H6E9zYbLoOtjBvfwdTKpsyxQI/2jv+armjX/RW+ZNpXOQ==} - - '@types/koa-compose@3.2.8': - resolution: {integrity: sha512-4Olc63RY+MKvxMwVknCUDhRQX1pFQoBZ/lXcRLP69PQkEpze/0cr8LNqJQe5NFb/b19DWi2a5bTi2VAlQzhJuA==} - - '@types/koa@2.15.0': - resolution: {integrity: sha512-7QFsywoE5URbuVnG3loe03QXuGajrnotr3gQkXcEBShORai23MePfFYdhz90FEtBBpkyIYQbVD+evKtloCgX3g==} - '@types/linkify-it@5.0.0': resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==} @@ -4506,9 +4311,6 @@ packages: '@types/pako@2.0.3': resolution: {integrity: sha512-bq0hMV9opAcrmE0Byyo0fY3Ew4tgOevJmQ9grUhpXQhYfyLJ1Kqg3P33JT5fdbT2AjeAjR51zqqVjAL/HMkx7Q==} - '@types/parse5@6.0.3': - resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} - '@types/pg-pool@2.0.6': resolution: {integrity: sha512-TaAUE5rq2VQYxab5Ts7WZhKNmuN78Q6PiFonTDdpbx8a1H0M1vhy3rhiMjl+e2iHmogyMw7jZF4FrE6eJUy5HQ==} @@ -4736,64 +4538,6 @@ packages: '@vitest/utils@2.1.8': resolution: {integrity: sha512-dwSoui6djdwbfFmIgbIjX2ZhIoG7Ex/+xpxyiEgIGzjliY8xGkcpITKTlp6B4MgtGkF2ilvm97cPM96XZaAgcA==} - '@web/browser-logs@0.4.0': - resolution: {integrity: sha512-/EBiDAUCJ2DzZhaFxTPRIznEPeafdLbXShIL6aTu7x73x7ZoxSDv7DGuTsh2rWNMUa4+AKli4UORrpyv6QBOiA==} - engines: {node: '>=18.0.0'} - - '@web/config-loader@0.3.2': - resolution: {integrity: sha512-Vrjv/FexBGmAdnCYpJKLHX1dfT1UaUdvHmX1JRaWos9OvDf/tFznYJ5SpJwww3Rl87/ewvLSYG7kfsMqEAsizQ==} - engines: {node: '>=18.0.0'} - - '@web/dev-server-core@0.7.4': - resolution: {integrity: sha512-nHSNrJ1J9GjmSceKNHpWRMjvpfE2NTV9EYUffPIr7j0sIV59gK7NI/4+9slotJ/ODXw0+e1gSeJshTOhjjVNxQ==} - engines: {node: '>=18.0.0'} - - '@web/dev-server-esbuild@1.0.3': - resolution: {integrity: sha512-oImN4/cpyfQC8+JcCx61M7WIo09zE2aDMFuwh+brqxuNXIBRQ+hnRGQK7fEIZSQeWWT5dFrWmH4oYZfqzCAlfQ==} - engines: {node: '>=18.0.0'} - - '@web/dev-server-rollup@0.6.4': - resolution: {integrity: sha512-sJZfTGCCrdku5xYnQQG51odGI092hKY9YFM0X3Z0tRY3iXKXcYRaLZrErw5KfCxr6g0JRuhe4BBhqXTA5Q2I3Q==} - engines: {node: '>=18.0.0'} - - '@web/dev-server@0.4.6': - resolution: {integrity: sha512-jj/1bcElAy5EZet8m2CcUdzxT+CRvUjIXGh8Lt7vxtthkN9PzY9wlhWx/9WOs5iwlnG1oj0VGo6f/zvbPO0s9w==} - engines: {node: '>=18.0.0'} - hasBin: true - - '@web/parse5-utils@2.1.0': - resolution: {integrity: sha512-GzfK5disEJ6wEjoPwx8AVNwUe9gYIiwc+x//QYxYDAFKUp4Xb1OJAGLc2l2gVrSQmtPGLKrTRcW90Hv4pEq1qA==} - engines: {node: '>=18.0.0'} - - '@web/test-runner-chrome@0.17.0': - resolution: {integrity: sha512-Il5N9z41NKWCrQM1TVgRaDWWYoJtG5Ha4fG+cN1MWL2OlzBS4WoOb4lFV3EylZ7+W3twZOFr1zy2Rx61yDYd/A==} - engines: {node: '>=18.0.0'} - - '@web/test-runner-commands@0.9.0': - resolution: {integrity: sha512-zeLI6QdH0jzzJMDV5O42Pd8WLJtYqovgdt0JdytgHc0d1EpzXDsc7NTCJSImboc2NcayIsWAvvGGeRF69SMMYg==} - engines: {node: '>=18.0.0'} - - '@web/test-runner-core@0.13.4': - resolution: {integrity: sha512-84E1025aUSjvZU1j17eCTwV7m5Zg3cZHErV3+CaJM9JPCesZwLraIa0ONIQ9w4KLgcDgJFw9UnJ0LbFf42h6tg==} - engines: {node: '>=18.0.0'} - - '@web/test-runner-coverage-v8@0.8.0': - resolution: {integrity: sha512-PskiucYpjUtgNfR2zF2AWqWwjXL7H3WW/SnCAYmzUrtob7X9o/+BjdyZ4wKbOxWWSbJO4lEdGIDLu+8X2Xw+lA==} - engines: {node: '>=18.0.0'} - - '@web/test-runner-mocha@0.9.0': - resolution: {integrity: sha512-ZL9F6FXd0DBQvo/h/+mSfzFTSRVxzV9st/AHhpgABtUtV/AIpVE9to6+xdkpu6827kwjezdpuadPfg+PlrBWqQ==} - engines: {node: '>=18.0.0'} - - '@web/test-runner-playwright@0.11.0': - resolution: {integrity: sha512-s+f43DSAcssKYVOD9SuzueUcctJdHzq1by45gAnSCKa9FQcaTbuYe8CzmxA21g+NcL5+ayo4z+MA9PO4H+PssQ==} - engines: {node: '>=18.0.0'} - - '@web/test-runner@0.19.0': - resolution: {integrity: sha512-qLUupi88OK1Kl52cWPD/2JewUCRUxYsZ1V1DyLd05P7u09zCdrUYrtkB/cViWyxlBe/TOvqkSNpcTv6zLJ9GoA==} - engines: {node: '>=18.0.0'} - hasBin: true - abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -4926,14 +4670,6 @@ packages: aria-query@5.3.0: resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==} - array-back@3.1.0: - resolution: {integrity: sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==} - engines: {node: '>=6'} - - array-back@6.2.2: - resolution: {integrity: sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==} - engines: {node: '>=12.17'} - array-flatten@1.1.1: resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} @@ -4960,16 +4696,6 @@ packages: resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} engines: {node: '>=4'} - astral-regex@2.0.0: - resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} - engines: {node: '>=8'} - - async-mutex@0.4.0: - resolution: {integrity: sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==} - - async@2.6.4: - resolution: {integrity: sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==} - asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} @@ -5093,10 +4819,6 @@ packages: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} - cache-content-type@1.0.1: - resolution: {integrity: sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==} - engines: {node: '>= 6.0.0'} - caching-transform@4.0.0: resolution: {integrity: sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==} engines: {node: '>=8'} @@ -5168,10 +4890,6 @@ packages: resolution: {integrity: sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==} engines: {node: '>=12'} - chalk-template@0.4.0: - resolution: {integrity: sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==} - engines: {node: '>=12'} - chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -5211,18 +4929,9 @@ packages: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} - chokidar@4.0.2: - resolution: {integrity: sha512-/b57FK+bblSU+dfewfFe0rT1YjVDfOmeLQwCAuC+vwvgLkXboATqqmy+Ipux6JrF6L5joe5CBnFOw+gLWH6yKg==} - engines: {node: '>= 14.16.0'} - chownr@1.1.4: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} - chrome-launcher@0.15.2: - resolution: {integrity: sha512-zdLEwNo3aUVzIhKhTtXfxhdvZhUghrnmkvcAq2NoDd+LeOHKf03H5jwZ8T/STsAlzyALkBVK552iaG1fGf1xVQ==} - engines: {node: '>=12.13.0'} - hasBin: true - chromium-bidi@0.8.0: resolution: {integrity: sha512-uJydbGdTw0DEUjhoogGveneJVWX/9YuqkWePzMmkBYwtdAqo5d3J/ovNKFr+/2hWXYmYCr6it8mSSTIj6SS6Ug==} peerDependencies: @@ -5274,18 +4983,6 @@ packages: resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} engines: {node: '>=0.8'} - clone@2.1.2: - resolution: {integrity: sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==} - engines: {node: '>=0.8'} - - co-body@6.2.0: - resolution: {integrity: sha512-Kbpv2Yd1NdL1V/V4cwLVxraHDV6K8ayohr2rmH0J87Er8+zJjcTa6dAn9QMPC9CRgU8+aNajKbSf1TzDB1yKPA==} - engines: {node: '>=8.0.0'} - - co@4.6.0: - resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} - engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} - code-block-writer@13.0.3: resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==} @@ -5309,14 +5006,6 @@ packages: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} - command-line-args@5.2.1: - resolution: {integrity: sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==} - engines: {node: '>=4.0.0'} - - command-line-usage@7.0.3: - resolution: {integrity: sha512-PqMLy5+YGwhMh1wS04mVG44oqDsgyLRSKJBdOo1bnYhMKBW65gZF1dRp2OZRhiTjgUHljy99qkO7bsctLaw35Q==} - engines: {node: '>=12.20.0'} - commander@10.0.1: resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} engines: {node: '>=14'} @@ -5371,10 +5060,6 @@ packages: resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} - cookies@0.9.1: - resolution: {integrity: sha512-TG2hpqe4ELx54QER/S3HQ9SRVnQnGBtKUz5bLQWtYAQ+o6GpgMs6sYUvaiJjVxb+UXwhRhAEP3m7LbsIZ77Hmw==} - engines: {node: '>= 0.8'} - copyfiles@2.4.1: resolution: {integrity: sha512-fereAvAvxDrQDOXybk3Qu3dPbOoKoysFMWtkY3mv5BsL8//OSZVL5DCLYqgRfY5cWirgRzlC+WSrxp6Bo3eNZg==} hasBin: true @@ -5441,15 +5126,9 @@ packages: dayjs@1.11.13: resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==} - debounce@1.2.1: - resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==} - debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} - debug@3.2.7: - resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} - debug@4.3.7: resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} @@ -5516,9 +5195,6 @@ packages: resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} engines: {node: '>=6'} - deep-equal@1.0.1: - resolution: {integrity: sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==} - deep-extend@0.6.0: resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} engines: {node: '>=4.0.0'} @@ -5538,10 +5214,6 @@ packages: resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} engines: {node: '>=18'} - default-gateway@6.0.3: - resolution: {integrity: sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==} - engines: {node: '>= 10'} - default-require-extensions@3.0.1: resolution: {integrity: sha512-eXTJmRbm2TIt9MgWTsOH1wEuhew6XGZcMeGKCtLedIg/NCsg1iBePXkceTdK4Fii7pzmN9tGsZhKzZ4h7O/fxw==} engines: {node: '>=8'} @@ -5569,21 +5241,10 @@ packages: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} - delegates@1.0.0: - resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} - - depd@1.1.2: - resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} - engines: {node: '>= 0.6'} - depd@2.0.0: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} - dependency-graph@0.11.0: - resolution: {integrity: sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==} - engines: {node: '>= 0.6.0'} - dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -5703,9 +5364,6 @@ packages: error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} - errorstacks@2.4.1: - resolution: {integrity: sha512-jE4i0SMYevwu/xxAuzhly/KTwtj0xDhbzB6m1xPImxTkw8wcCbgarOQPfCVMi5JKVyW7in29pNJCCJrry3Ynnw==} - es-define-property@1.0.1: resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} engines: {node: '>= 0.4'} @@ -5737,11 +5395,6 @@ packages: engines: {node: '>=18'} hasBin: true - esbuild@0.24.0: - resolution: {integrity: sha512-FuLPevChGDshgSicjisSooU0cemp/sGXR841D5LHMB7mTVOmsEHcAxaH3irL53+8YDIeVNQEySh4DaYU/iuPqQ==} - engines: {node: '>=18'} - hasBin: true - escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -6026,10 +5679,6 @@ packages: resolution: {integrity: sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==} engines: {node: '>=8'} - find-replace@3.0.0: - resolution: {integrity: sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==} - engines: {node: '>=4.0.0'} - find-up@4.1.0: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} @@ -6215,10 +5864,6 @@ packages: resolution: {integrity: sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==} engines: {node: '>=8'} - globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} - engines: {node: '>=10'} - globby@13.2.2: resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -6285,18 +5930,6 @@ packages: html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} - http-assert@1.5.0: - resolution: {integrity: sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w==} - engines: {node: '>= 0.8'} - - http-errors@1.6.3: - resolution: {integrity: sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==} - engines: {node: '>= 0.6'} - - http-errors@1.8.1: - resolution: {integrity: sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==} - engines: {node: '>= 0.6'} - http-errors@2.0.0: resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} engines: {node: '>= 0.8'} @@ -6370,17 +6003,10 @@ packages: resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==} engines: {node: '>=12'} - inflation@2.1.0: - resolution: {integrity: sha512-t54PPJHG1Pp7VQvxyVCJ9mBbjG3Hqryges9bXoOO6GExCPa+//i/d5GSuFtpx3ALLd7lgIAur6zrIlBQyJuMlQ==} - engines: {node: '>= 0.8.0'} - inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - inherits@2.0.3: - resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} - inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} @@ -6391,18 +6017,10 @@ packages: resolution: {integrity: sha512-LJKFHCSeIRq9hanN14IlOtPSTe3lNES7TYDTE2xxdAy1LS5rYphajK1qtwvj3YmQXvvk0U2Vbmcni8P9EIQW9w==} engines: {node: '>=18'} - internal-ip@6.2.0: - resolution: {integrity: sha512-D8WGsR6yDt8uq7vDMu7mjcR+yRMm3dW8yufyChmszWRjcSHuxLBkR3GdS2HZAjodsaGuCvXeEJpueisXJULghg==} - engines: {node: '>=10'} - ip-address@9.0.5: resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} engines: {node: '>= 12'} - ip-regex@4.3.0: - resolution: {integrity: sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==} - engines: {node: '>=8'} - ipaddr.js@1.9.1: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} @@ -6477,10 +6095,6 @@ packages: resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==} engines: {node: '>=8'} - is-ip@3.1.0: - resolution: {integrity: sha512-35vd5necO7IitFPjd/YBeqwWnyDWbuLH9ZXQdMfDA8TEo7pv5X8yfrvVO3xbJbLUlERCMvf6X0hTUamQxCYJ9Q==} - engines: {node: '>=8'} - is-module@1.0.0: resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} @@ -6558,10 +6172,6 @@ packages: resolution: {integrity: sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==} engines: {node: '>= 8.0.0'} - isbinaryfile@5.0.4: - resolution: {integrity: sha512-YKBKVkKhty7s8rxddb40oOkuP0NbaeXrQvLin6QMHL7Ypiy2RW9LwOVrVgZRyOrhQlayMd9t+D8yDy8MKFTSDQ==} - engines: {node: '>= 18.0.0'} - isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -6753,10 +6363,6 @@ packages: engines: {node: '>= 10'} hasBin: true - keygrip@1.1.0: - resolution: {integrity: sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==} - engines: {node: '>= 0.6'} - keytar@7.9.0: resolution: {integrity: sha512-VPD8mtVtm5JNtA2AErl6Chp06JBfy7diFQ7TQQhdpWOl6MrCRB+eRbvAZUsbGQS9kiMq0coJsy0W0vHpDCkWsQ==} @@ -6774,28 +6380,6 @@ packages: resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} engines: {node: '>=6'} - koa-compose@4.1.0: - resolution: {integrity: sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw==} - - koa-convert@2.0.0: - resolution: {integrity: sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA==} - engines: {node: '>= 10'} - - koa-etag@4.0.0: - resolution: {integrity: sha512-1cSdezCkBWlyuB9l6c/IFoe1ANCDdPBxkDkRiaIup40xpUub6U/wwRXoKBZw/O5BifX9OlqAjYnDyzM6+l+TAg==} - - koa-send@5.0.1: - resolution: {integrity: sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ==} - engines: {node: '>= 8'} - - koa-static@5.0.0: - resolution: {integrity: sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ==} - engines: {node: '>= 7.6.0'} - - koa@2.15.3: - resolution: {integrity: sha512-j/8tY9j5t+GVMLeioLaxweJiKUayFhlGqNTzf2ZGwL0ZCQijd2RLHK0SLW5Tsko8YyyqCZC2cojIb0/s62qTAg==} - engines: {node: ^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4} - levn@0.3.0: resolution: {integrity: sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==} engines: {node: '>= 0.8.0'} @@ -6804,9 +6388,6 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} - lighthouse-logger@1.4.2: - resolution: {integrity: sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==} - lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} @@ -6869,10 +6450,6 @@ packages: resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} engines: {node: '>=10'} - log-update@4.0.0: - resolution: {integrity: sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==} - engines: {node: '>=10'} - log4js@6.9.1: resolution: {integrity: sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g==} engines: {node: '>=8.0'} @@ -6907,10 +6484,6 @@ packages: resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} engines: {node: '>=12'} - lru-cache@8.0.5: - resolution: {integrity: sha512-MhWWlVnuab1RG5/zMRRcVGXZLCXrZTgfwMikgzCegsPnG62yDQo5JnqKkrK4jO5iKqDAZGItAqN5CtKBCBWRUA==} - engines: {node: '>=16.14'} - lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true @@ -6970,9 +6543,6 @@ packages: engines: {node: '>= 16'} hasBin: true - marky@1.2.5: - resolution: {integrity: sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==} - matched@5.0.1: resolution: {integrity: sha512-E1fhSTPRyhAlNaNvGXAgZQlq1hL0bgYMTk/6bktVlIhzUnX/SZs7296ACdVeNJE8xFNGSuvd9IpI7vSnmcqLvw==} engines: {node: '>=10'} @@ -7172,9 +6742,6 @@ packages: mz@2.7.0: resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - nanocolors@0.2.13: - resolution: {integrity: sha512-0n3mSAQLPpGLV9ORXT5+C/D4mwew7Ebws69Hx4E2sgz2ZA5+32Q80B9tL8PbL7XHnRDiAxH/pnrUJ9a4fkTNTA==} - nanoid@3.3.8: resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -7289,9 +6856,6 @@ packages: resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} engines: {node: '>=12'} - only@0.0.2: - resolution: {integrity: sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ==} - open@10.1.0: resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} engines: {node: '>=18'} @@ -7328,10 +6892,6 @@ packages: outvariant@1.4.3: resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==} - p-event@4.2.0: - resolution: {integrity: sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==} - engines: {node: '>=8'} - p-event@5.0.1: resolution: {integrity: sha512-dd589iCQ7m1L0bmC5NLlVYfy3TbBEsMUfWx9PyAgPeIcFZ/E2yaTZ4Rz4MiBmmJShviiftHVXOqfnfzJ6kyMrQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -7340,10 +6900,6 @@ packages: resolution: {integrity: sha512-QtoWLjXAW++uTX67HZQz1dbTpqBfiidsB6VtQUC9iR85S120+s0T5sO6s+B5MLzFcZkrEd/DGMmCjR+f2Qpxwg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - p-finally@1.0.0: - resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} - engines: {node: '>=4'} - p-limit@2.3.0: resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} engines: {node: '>=6'} @@ -7376,10 +6932,6 @@ packages: resolution: {integrity: sha512-T8BatKGY+k5rU+Q/GTYgrEf2r4xRMevAN5mtXc2aPc4rS1j3s+vWTaO2Wag94neXuCAUAs8cxBL9EeB5EA6diw==} engines: {node: '>=16'} - p-timeout@3.2.0: - resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==} - engines: {node: '>=8'} - p-timeout@5.1.0: resolution: {integrity: sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==} engines: {node: '>=12'} @@ -7546,10 +7098,6 @@ packages: resolution: {integrity: sha512-OLS/0XeUAcE8a2fdwemNja+udKgXNnY6yKVIXqAD2zVRx1KvY6Ato/rZ2vdzbxqYwPW0u6SCNC/bAMPNzpzxbw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - portfinder@1.0.32: - resolution: {integrity: sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==} - engines: {node: '>= 0.12.0'} - possible-typed-array-names@1.0.0: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} @@ -7738,10 +7286,6 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - readdirp@4.0.2: - resolution: {integrity: sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==} - engines: {node: '>= 14.16.0'} - redent@4.0.0: resolution: {integrity: sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==} engines: {node: '>=12'} @@ -7791,10 +7335,6 @@ packages: resolution: {integrity: sha512-CIw9e64QcKcCFUj9+KxUCJPy8hYofv6eVfo3U9wdhCm2E4IjvFnZ6G4/yIC4yP3f11+h6uU5b3LdS7O64LgqrA==} engines: {node: 16 >=16.17.0 || 18 >= 18.6.0 || >=20} - resolve-path@1.4.0: - resolution: {integrity: sha512-i1xevIst/Qa+nA9olDxLWnLk8YZbi8R/7JPbCMcgyWaFR6bKWaexgJgEB5oc2PKMjYdrHynyz0NY+if+H98t1w==} - engines: {node: '>= 0.8'} - resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} @@ -7922,9 +7462,6 @@ packages: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} - setprototypeof@1.1.0: - resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==} - setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -8000,10 +7537,6 @@ packages: resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==} engines: {node: '>=12'} - slice-ansi@4.0.0: - resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} - engines: {node: '>=10'} - smart-buffer@4.2.0: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} @@ -8193,10 +7726,6 @@ packages: engines: {node: '>=14'} hasBin: true - table-layout@4.1.1: - resolution: {integrity: sha512-iK5/YhZxq5GO5z8wb0bY1317uDF3Zjpha0QFFLA8/trAoiLbQD0HUbMesEaxyzUgDxi2QlcbM8IvqOlEjgoXBA==} - engines: {node: '>=12.17'} - tapable@2.2.1: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} engines: {node: '>=6'} @@ -8314,10 +7843,6 @@ packages: tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - tr46@5.0.0: - resolution: {integrity: sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==} - engines: {node: '>=18'} - tree-dump@1.0.2: resolution: {integrity: sha512-dpev9ABuLWdEubk+cIaI9cHwRNNDjkBBLXTwI4UCUFdQ5xXKqNXoK4FEciw/vxf+NQ7Cb7sGUyeUtORvHIdRXQ==} engines: {node: '>=10.0'} @@ -8372,10 +7897,6 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - tsscmp@1.0.6: - resolution: {integrity: sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==} - engines: {node: '>=0.6.x'} - tsx@4.19.2: resolution: {integrity: sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==} engines: {node: '>=18.0.0'} @@ -8478,22 +7999,10 @@ packages: engines: {node: '>=14.17'} hasBin: true - typical@4.0.0: - resolution: {integrity: sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==} - engines: {node: '>=8'} - - typical@7.3.0: - resolution: {integrity: sha512-ya4mg/30vm+DOWfBg4YK3j2WD6TWtRkCbasOJr40CseYENzCUby/7rIvXA99JGsQHeNxLbnXdyLLxKSv3tauFw==} - engines: {node: '>=12.17'} - ua-parser-js@0.7.39: resolution: {integrity: sha512-IZ6acm6RhQHNibSt7+c09hhvsKy9WUr4DVbeq9U8o71qxyYtJpQeDxQnMrVqnIFMLcQjHO0I9wgfO2vIahht4w==} hasBin: true - ua-parser-js@1.0.39: - resolution: {integrity: sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw==} - hasBin: true - uc.micro@2.1.0: resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} @@ -8588,10 +8097,6 @@ packages: v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - v8-to-istanbul@9.3.0: - resolution: {integrity: sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==} - engines: {node: '>=10.12.0'} - validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} @@ -8711,14 +8216,6 @@ packages: webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - webidl-conversions@7.0.0: - resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} - engines: {node: '>=12'} - - whatwg-url@14.1.0: - resolution: {integrity: sha512-jlf/foYIKywAt3x/XWKZ/3rz8OSJPiWktjmk891alJUEjiVxKX9LEO92qH3hv4aJ0mN3MWPvGMCy8jQi95xK4w==} - engines: {node: '>=18'} - whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} @@ -8756,10 +8253,6 @@ packages: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} - wordwrapjs@5.1.0: - resolution: {integrity: sha512-JNjcULU2e4KJwUNv6CHgI46UvDGitb6dGryHajXTDiLgg1/RiGoPSDw4kZfYnwGtEXf2ZMeIewDQgFGzkCB2Sg==} - engines: {node: '>=12.17'} - workerpool@6.5.1: resolution: {integrity: sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==} @@ -8877,10 +8370,6 @@ packages: yauzl@2.10.0: resolution: {integrity: sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==} - ylru@1.4.0: - resolution: {integrity: sha512-2OQsPNEmBCvXuFlIni/a+Rn+R2pHW9INm0BxXJ4hVDA8TirqMj+J/Rp9ItLatT/5pZqWwefVrTQcHpixsxnVlA==} - engines: {node: '>= 4.0.0'} - yn@3.1.1: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} @@ -9454,213 +8943,141 @@ snapshots: '@esbuild/aix-ppc64@0.23.1': optional: true - '@esbuild/aix-ppc64@0.24.0': - optional: true - '@esbuild/android-arm64@0.21.5': optional: true '@esbuild/android-arm64@0.23.1': optional: true - '@esbuild/android-arm64@0.24.0': - optional: true - '@esbuild/android-arm@0.21.5': optional: true '@esbuild/android-arm@0.23.1': optional: true - '@esbuild/android-arm@0.24.0': - optional: true - '@esbuild/android-x64@0.21.5': optional: true '@esbuild/android-x64@0.23.1': optional: true - '@esbuild/android-x64@0.24.0': - optional: true - - '@esbuild/darwin-arm64@0.21.5': + '@esbuild/darwin-arm64@0.21.5': optional: true '@esbuild/darwin-arm64@0.23.1': optional: true - '@esbuild/darwin-arm64@0.24.0': - optional: true - '@esbuild/darwin-x64@0.21.5': optional: true '@esbuild/darwin-x64@0.23.1': optional: true - '@esbuild/darwin-x64@0.24.0': - optional: true - '@esbuild/freebsd-arm64@0.21.5': optional: true '@esbuild/freebsd-arm64@0.23.1': optional: true - '@esbuild/freebsd-arm64@0.24.0': - optional: true - '@esbuild/freebsd-x64@0.21.5': optional: true '@esbuild/freebsd-x64@0.23.1': optional: true - '@esbuild/freebsd-x64@0.24.0': - optional: true - '@esbuild/linux-arm64@0.21.5': optional: true '@esbuild/linux-arm64@0.23.1': optional: true - '@esbuild/linux-arm64@0.24.0': - optional: true - '@esbuild/linux-arm@0.21.5': optional: true '@esbuild/linux-arm@0.23.1': optional: true - '@esbuild/linux-arm@0.24.0': - optional: true - '@esbuild/linux-ia32@0.21.5': optional: true '@esbuild/linux-ia32@0.23.1': optional: true - '@esbuild/linux-ia32@0.24.0': - optional: true - '@esbuild/linux-loong64@0.21.5': optional: true '@esbuild/linux-loong64@0.23.1': optional: true - '@esbuild/linux-loong64@0.24.0': - optional: true - '@esbuild/linux-mips64el@0.21.5': optional: true '@esbuild/linux-mips64el@0.23.1': optional: true - '@esbuild/linux-mips64el@0.24.0': - optional: true - '@esbuild/linux-ppc64@0.21.5': optional: true '@esbuild/linux-ppc64@0.23.1': optional: true - '@esbuild/linux-ppc64@0.24.0': - optional: true - '@esbuild/linux-riscv64@0.21.5': optional: true '@esbuild/linux-riscv64@0.23.1': optional: true - '@esbuild/linux-riscv64@0.24.0': - optional: true - '@esbuild/linux-s390x@0.21.5': optional: true '@esbuild/linux-s390x@0.23.1': optional: true - '@esbuild/linux-s390x@0.24.0': - optional: true - '@esbuild/linux-x64@0.21.5': optional: true '@esbuild/linux-x64@0.23.1': optional: true - '@esbuild/linux-x64@0.24.0': - optional: true - '@esbuild/netbsd-x64@0.21.5': optional: true '@esbuild/netbsd-x64@0.23.1': optional: true - '@esbuild/netbsd-x64@0.24.0': - optional: true - '@esbuild/openbsd-arm64@0.23.1': optional: true - '@esbuild/openbsd-arm64@0.24.0': - optional: true - '@esbuild/openbsd-x64@0.21.5': optional: true '@esbuild/openbsd-x64@0.23.1': optional: true - '@esbuild/openbsd-x64@0.24.0': - optional: true - '@esbuild/sunos-x64@0.21.5': optional: true '@esbuild/sunos-x64@0.23.1': optional: true - '@esbuild/sunos-x64@0.24.0': - optional: true - '@esbuild/win32-arm64@0.21.5': optional: true '@esbuild/win32-arm64@0.23.1': optional: true - '@esbuild/win32-arm64@0.24.0': - optional: true - '@esbuild/win32-ia32@0.21.5': optional: true '@esbuild/win32-ia32@0.23.1': optional: true - '@esbuild/win32-ia32@0.24.0': - optional: true - '@esbuild/win32-x64@0.21.5': optional: true '@esbuild/win32-x64@0.23.1': optional: true - '@esbuild/win32-x64@0.24.0': - optional: true - '@eslint-community/eslint-utils@4.4.1(eslint@8.57.1)': dependencies: eslint: 8.57.1 @@ -9741,8 +9158,6 @@ snapshots: protobufjs: 7.4.0 yargs: 17.7.2 - '@hapi/bourne@3.0.0': {} - '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.6': @@ -9883,8 +9298,6 @@ snapshots: dependencies: tslib: 2.8.1 - '@mdn/browser-compat-data@4.2.1': {} - '@microsoft/api-extractor-model@7.30.0(@types/node@18.19.68)': dependencies: '@microsoft/tsdoc': 0.15.1 @@ -15685,13 +15098,13 @@ snapshots: '@rush-temp/arm-standbypool@file:projects/arm-standbypool.tgz(msw@2.6.8(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: + '@microsoft/api-extractor': 7.48.0(@types/node@18.19.68) '@types/node': 18.19.68 '@vitest/browser': 2.1.8(@types/node@18.19.68)(playwright@1.49.1)(typescript@5.6.3)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8) '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8) dotenv: 16.4.7 eslint: 9.17.0 playwright: 1.49.1 - prettier: 3.4.2 tslib: 2.8.1 typescript: 5.6.3 vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.6.8(@types/node@22.7.9)(typescript@5.7.2)) @@ -19077,12 +18490,9 @@ snapshots: '@types/node': 18.19.68 dotenv: 16.4.7 eslint: 9.17.0 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - jiti - supports-color @@ -19091,12 +18501,9 @@ snapshots: '@types/node': 18.19.68 dotenv: 16.4.7 eslint: 9.17.0 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - jiti - supports-color @@ -19134,13 +18541,10 @@ snapshots: dotenv: 16.4.7 eslint: 9.17.0 express: 4.21.2 - ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.6.3) tslib: 2.8.1 typescript: 5.6.3 undici: 7.1.0 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - jiti - supports-color @@ -20428,15 +19832,11 @@ snapshots: '@types/chai-as-promised': 7.1.8 '@types/node': 18.19.68 '@types/sinon': 17.0.3 - '@web/dev-server-esbuild': 1.0.3 - '@web/test-runner': 0.19.0 - '@web/test-runner-playwright': 0.11.0 chai: 4.5.0 chai-as-promised: 7.1.2(chai@4.5.0) chai-exclude: 2.1.1(chai@4.5.0) eslint: 9.17.0 mocha: 11.0.2 - playwright: 1.49.1 sinon: 19.0.2 ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.6.3) tslib: 2.8.1 @@ -20444,10 +19844,8 @@ snapshots: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - - bufferutil - jiti - supports-color - - utf-8-validate '@rush-temp/ts-http-runtime@file:projects/ts-http-runtime.tgz(msw@2.6.8(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))': dependencies: @@ -20730,10 +20128,6 @@ snapshots: '@tsconfig/node16@1.0.4': {} - '@types/accepts@1.3.7': - dependencies: - '@types/node': 22.7.9 - '@types/archiver@6.0.3': dependencies: '@types/readdir-glob': 1.1.5 @@ -20742,8 +20136,6 @@ snapshots: '@types/aria-query@5.0.4': {} - '@types/babel__code-frame@7.0.6': {} - '@types/body-parser@1.19.5': dependencies: '@types/connect': 3.4.38 @@ -20767,38 +20159,18 @@ snapshots: dependencies: '@types/deep-eql': 4.0.2 - '@types/co-body@6.1.3': - dependencies: - '@types/node': 22.7.9 - '@types/qs': 6.9.17 - - '@types/command-line-args@5.2.3': {} - '@types/connect@3.4.38': dependencies: '@types/node': 18.19.68 - '@types/content-disposition@0.5.8': {} - - '@types/convert-source-map@2.0.3': {} - '@types/cookie@0.4.1': {} '@types/cookie@0.6.0': {} - '@types/cookies@0.9.0': - dependencies: - '@types/connect': 3.4.38 - '@types/express': 4.17.21 - '@types/keygrip': 1.0.6 - '@types/node': 22.7.9 - '@types/cors@2.8.17': dependencies: '@types/node': 18.19.68 - '@types/debounce@1.2.4': {} - '@types/debug@4.1.12': dependencies: '@types/ms': 0.7.34 @@ -20850,8 +20222,6 @@ snapshots: '@types/minimatch': 5.1.2 '@types/node': 18.19.68 - '@types/http-assert@1.5.6': {} - '@types/http-errors@2.0.4': {} '@types/inquirer@9.0.7': @@ -20863,16 +20233,6 @@ snapshots: dependencies: '@types/node': 18.19.68 - '@types/istanbul-lib-coverage@2.0.6': {} - - '@types/istanbul-lib-report@3.0.3': - dependencies: - '@types/istanbul-lib-coverage': 2.0.6 - - '@types/istanbul-reports@3.0.4': - dependencies: - '@types/istanbul-lib-report': 3.0.3 - '@types/json-schema@7.0.15': {} '@types/jsonfile@6.1.4': @@ -20887,23 +20247,6 @@ snapshots: dependencies: '@types/node': 18.19.68 - '@types/keygrip@1.0.6': {} - - '@types/koa-compose@3.2.8': - dependencies: - '@types/koa': 2.15.0 - - '@types/koa@2.15.0': - dependencies: - '@types/accepts': 1.3.7 - '@types/content-disposition': 0.5.8 - '@types/cookies': 0.9.0 - '@types/http-assert': 1.5.6 - '@types/http-errors': 2.0.4 - '@types/keygrip': 1.0.6 - '@types/koa-compose': 3.2.8 - '@types/node': 22.7.9 - '@types/linkify-it@5.0.0': {} '@types/markdown-it@14.1.2': @@ -20954,8 +20297,6 @@ snapshots: '@types/pako@2.0.3': {} - '@types/parse5@6.0.3': {} - '@types/pg-pool@2.0.6': dependencies: '@types/pg': 8.6.1 @@ -21361,195 +20702,6 @@ snapshots: loupe: 3.1.2 tinyrainbow: 1.2.0 - '@web/browser-logs@0.4.0': - dependencies: - errorstacks: 2.4.1 - - '@web/config-loader@0.3.2': {} - - '@web/dev-server-core@0.7.4': - dependencies: - '@types/koa': 2.15.0 - '@types/ws': 7.4.7 - '@web/parse5-utils': 2.1.0 - chokidar: 4.0.2 - clone: 2.1.2 - es-module-lexer: 1.5.4 - get-stream: 6.0.1 - is-stream: 2.0.1 - isbinaryfile: 5.0.4 - koa: 2.15.3 - koa-etag: 4.0.0 - koa-send: 5.0.1 - koa-static: 5.0.0 - lru-cache: 8.0.5 - mime-types: 2.1.35 - parse5: 6.0.1 - picomatch: 2.3.1 - ws: 7.5.10 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/dev-server-esbuild@1.0.3': - dependencies: - '@mdn/browser-compat-data': 4.2.1 - '@web/dev-server-core': 0.7.4 - esbuild: 0.24.0 - parse5: 6.0.1 - ua-parser-js: 1.0.39 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/dev-server-rollup@0.6.4': - dependencies: - '@rollup/plugin-node-resolve': 15.3.0(rollup@4.28.1) - '@web/dev-server-core': 0.7.4 - nanocolors: 0.2.13 - parse5: 6.0.1 - rollup: 4.28.1 - whatwg-url: 14.1.0 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/dev-server@0.4.6': - dependencies: - '@babel/code-frame': 7.26.2 - '@types/command-line-args': 5.2.3 - '@web/config-loader': 0.3.2 - '@web/dev-server-core': 0.7.4 - '@web/dev-server-rollup': 0.6.4 - camelcase: 6.3.0 - command-line-args: 5.2.1 - command-line-usage: 7.0.3 - debounce: 1.2.1 - deepmerge: 4.3.1 - internal-ip: 6.2.0 - nanocolors: 0.2.13 - open: 8.4.2 - portfinder: 1.0.32 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/parse5-utils@2.1.0': - dependencies: - '@types/parse5': 6.0.3 - parse5: 6.0.1 - - '@web/test-runner-chrome@0.17.0': - dependencies: - '@web/test-runner-core': 0.13.4 - '@web/test-runner-coverage-v8': 0.8.0 - async-mutex: 0.4.0 - chrome-launcher: 0.15.2 - puppeteer-core: 23.10.4 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/test-runner-commands@0.9.0': - dependencies: - '@web/test-runner-core': 0.13.4 - mkdirp: 1.0.4 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/test-runner-core@0.13.4': - dependencies: - '@babel/code-frame': 7.26.2 - '@types/babel__code-frame': 7.0.6 - '@types/co-body': 6.1.3 - '@types/convert-source-map': 2.0.3 - '@types/debounce': 1.2.4 - '@types/istanbul-lib-coverage': 2.0.6 - '@types/istanbul-reports': 3.0.4 - '@web/browser-logs': 0.4.0 - '@web/dev-server-core': 0.7.4 - chokidar: 4.0.2 - cli-cursor: 3.1.0 - co-body: 6.2.0 - convert-source-map: 2.0.0 - debounce: 1.2.1 - dependency-graph: 0.11.0 - globby: 11.1.0 - internal-ip: 6.2.0 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-report: 3.0.1 - istanbul-reports: 3.1.7 - log-update: 4.0.0 - nanocolors: 0.2.13 - nanoid: 3.3.8 - open: 8.4.2 - picomatch: 2.3.1 - source-map: 0.7.4 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/test-runner-coverage-v8@0.8.0': - dependencies: - '@web/test-runner-core': 0.13.4 - istanbul-lib-coverage: 3.2.2 - lru-cache: 8.0.5 - picomatch: 2.3.1 - v8-to-istanbul: 9.3.0 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/test-runner-mocha@0.9.0': - dependencies: - '@web/test-runner-core': 0.13.4 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/test-runner-playwright@0.11.0': - dependencies: - '@web/test-runner-core': 0.13.4 - '@web/test-runner-coverage-v8': 0.8.0 - playwright: 1.49.1 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - - '@web/test-runner@0.19.0': - dependencies: - '@web/browser-logs': 0.4.0 - '@web/config-loader': 0.3.2 - '@web/dev-server': 0.4.6 - '@web/test-runner-chrome': 0.17.0 - '@web/test-runner-commands': 0.9.0 - '@web/test-runner-core': 0.13.4 - '@web/test-runner-mocha': 0.9.0 - camelcase: 6.3.0 - command-line-args: 5.2.1 - command-line-usage: 7.0.3 - convert-source-map: 2.0.0 - diff: 5.2.0 - globby: 11.1.0 - nanocolors: 0.2.13 - portfinder: 1.0.32 - source-map: 0.7.4 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - abort-controller@3.0.0: dependencies: event-target-shim: 5.0.1 @@ -21678,10 +20830,6 @@ snapshots: dependencies: dequal: 2.0.3 - array-back@3.1.0: {} - - array-back@6.2.2: {} - array-flatten@1.1.1: {} array-union@2.1.0: {} @@ -21698,16 +20846,6 @@ snapshots: dependencies: tslib: 2.8.1 - astral-regex@2.0.0: {} - - async-mutex@0.4.0: - dependencies: - tslib: 2.8.1 - - async@2.6.4: - dependencies: - lodash: 4.17.21 - asynckit@0.4.0: {} autorest@3.7.1: {} @@ -21838,11 +20976,6 @@ snapshots: cac@6.7.14: {} - cache-content-type@1.0.1: - dependencies: - mime-types: 2.1.35 - ylru: 1.4.0 - caching-transform@4.0.0: dependencies: hasha: 5.2.2 @@ -21934,10 +21067,6 @@ snapshots: loupe: 3.1.2 pathval: 2.0.0 - chalk-template@0.4.0: - dependencies: - chalk: 4.1.2 - chalk@2.4.2: dependencies: ansi-styles: 3.2.1 @@ -21979,19 +21108,8 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - chokidar@4.0.2: - dependencies: - readdirp: 4.0.2 - chownr@1.1.4: {} - chrome-launcher@0.15.2: - dependencies: - '@types/node': 22.7.9 - escape-string-regexp: 4.0.0 - is-wsl: 2.2.0 - lighthouse-logger: 1.4.2 - chromium-bidi@0.8.0(devtools-protocol@0.0.1367902): dependencies: devtools-protocol: 0.0.1367902 @@ -22050,18 +21168,6 @@ snapshots: clone@1.0.4: {} - clone@2.1.2: {} - - co-body@6.2.0: - dependencies: - '@hapi/bourne': 3.0.0 - inflation: 2.1.0 - qs: 6.13.0 - raw-body: 2.5.2 - type-is: 1.6.18 - - co@4.6.0: {} - code-block-writer@13.0.3: {} color-convert@1.9.3: @@ -22082,20 +21188,6 @@ snapshots: dependencies: delayed-stream: 1.0.0 - command-line-args@5.2.1: - dependencies: - array-back: 3.1.0 - find-replace: 3.0.0 - lodash.camelcase: 4.3.0 - typical: 4.0.0 - - command-line-usage@7.0.3: - dependencies: - array-back: 6.2.2 - chalk-template: 0.4.0 - table-layout: 4.1.1 - typical: 7.3.0 - commander@10.0.1: {} commander@2.20.3: {} @@ -22143,11 +21235,6 @@ snapshots: cookie@0.7.2: {} - cookies@0.9.1: - dependencies: - depd: 2.0.0 - keygrip: 1.1.0 - copyfiles@2.4.1: dependencies: glob: 7.2.3 @@ -22222,16 +21309,10 @@ snapshots: dayjs@1.11.13: {} - debounce@1.2.1: {} - debug@2.6.9: dependencies: ms: 2.0.0 - debug@3.2.7: - dependencies: - ms: 2.1.3 - debug@4.3.7: dependencies: ms: 2.1.3 @@ -22301,8 +21382,6 @@ snapshots: deep-eql@5.0.2: {} - deep-equal@1.0.1: {} - deep-extend@0.6.0: {} deep-is@0.1.4: {} @@ -22316,10 +21395,6 @@ snapshots: bundle-name: 4.1.0 default-browser-id: 5.0.0 - default-gateway@6.0.3: - dependencies: - execa: 5.1.1 - default-require-extensions@3.0.1: dependencies: strip-bom: 4.0.0 @@ -22346,14 +21421,8 @@ snapshots: delayed-stream@1.0.0: {} - delegates@1.0.0: {} - - depd@1.1.2: {} - depd@2.0.0: {} - dependency-graph@0.11.0: {} - dequal@2.0.3: {} destroy@1.2.0: {} @@ -22459,8 +21528,6 @@ snapshots: dependencies: is-arrayish: 0.2.1 - errorstacks@2.4.1: {} - es-define-property@1.0.1: {} es-errors@1.3.0: {} @@ -22528,33 +21595,6 @@ snapshots: '@esbuild/win32-ia32': 0.23.1 '@esbuild/win32-x64': 0.23.1 - esbuild@0.24.0: - optionalDependencies: - '@esbuild/aix-ppc64': 0.24.0 - '@esbuild/android-arm': 0.24.0 - '@esbuild/android-arm64': 0.24.0 - '@esbuild/android-x64': 0.24.0 - '@esbuild/darwin-arm64': 0.24.0 - '@esbuild/darwin-x64': 0.24.0 - '@esbuild/freebsd-arm64': 0.24.0 - '@esbuild/freebsd-x64': 0.24.0 - '@esbuild/linux-arm': 0.24.0 - '@esbuild/linux-arm64': 0.24.0 - '@esbuild/linux-ia32': 0.24.0 - '@esbuild/linux-loong64': 0.24.0 - '@esbuild/linux-mips64el': 0.24.0 - '@esbuild/linux-ppc64': 0.24.0 - '@esbuild/linux-riscv64': 0.24.0 - '@esbuild/linux-s390x': 0.24.0 - '@esbuild/linux-x64': 0.24.0 - '@esbuild/netbsd-x64': 0.24.0 - '@esbuild/openbsd-arm64': 0.24.0 - '@esbuild/openbsd-x64': 0.24.0 - '@esbuild/sunos-x64': 0.24.0 - '@esbuild/win32-arm64': 0.24.0 - '@esbuild/win32-ia32': 0.24.0 - '@esbuild/win32-x64': 0.24.0 - escalade@3.2.0: {} escape-html@1.0.3: {} @@ -22946,10 +21986,6 @@ snapshots: make-dir: 3.1.0 pkg-dir: 4.2.0 - find-replace@3.0.0: - dependencies: - array-back: 3.1.0 - find-up@4.1.0: dependencies: locate-path: 5.0.0 @@ -23145,15 +22181,6 @@ snapshots: merge2: 1.4.1 slash: 3.0.0 - globby@11.1.0: - dependencies: - array-union: 2.1.0 - dir-glob: 3.0.1 - fast-glob: 3.3.2 - ignore: 5.3.2 - merge2: 1.4.1 - slash: 3.0.0 - globby@13.2.2: dependencies: dir-glob: 3.0.1 @@ -23207,26 +22234,6 @@ snapshots: html-escaper@2.0.2: {} - http-assert@1.5.0: - dependencies: - deep-equal: 1.0.1 - http-errors: 1.8.1 - - http-errors@1.6.3: - dependencies: - depd: 1.1.2 - inherits: 2.0.3 - setprototypeof: 1.1.0 - statuses: 1.5.0 - - http-errors@1.8.1: - dependencies: - depd: 1.1.2 - inherits: 2.0.4 - setprototypeof: 1.2.0 - statuses: 1.5.0 - toidentifier: 1.0.1 - http-errors@2.0.0: dependencies: depd: 2.0.0 @@ -23301,15 +22308,11 @@ snapshots: indent-string@5.0.0: {} - inflation@2.1.0: {} - inflight@1.0.6: dependencies: once: 1.4.0 wrappy: 1.0.2 - inherits@2.0.3: {} - inherits@2.0.4: {} ini@1.3.8: {} @@ -23329,20 +22332,11 @@ snapshots: wrap-ansi: 6.2.0 yoctocolors-cjs: 2.1.2 - internal-ip@6.2.0: - dependencies: - default-gateway: 6.0.3 - ipaddr.js: 1.9.1 - is-ip: 3.1.0 - p-event: 4.2.0 - ip-address@9.0.5: dependencies: jsbn: 1.1.0 sprintf-js: 1.1.3 - ip-regex@4.3.0: {} - ipaddr.js@1.9.1: {} is-alphabetical@1.0.4: {} @@ -23397,10 +22391,6 @@ snapshots: is-interactive@1.0.0: {} - is-ip@3.1.0: - dependencies: - ip-regex: 4.3.0 - is-module@1.0.0: {} is-natural-number@4.0.1: {} @@ -23451,8 +22441,6 @@ snapshots: isbinaryfile@4.0.10: {} - isbinaryfile@5.0.4: {} - isexe@2.0.0: {} istanbul-lib-coverage@3.2.2: {} @@ -23727,10 +22715,6 @@ snapshots: - supports-color - utf-8-validate - keygrip@1.1.0: - dependencies: - tsscmp: 1.0.6 - keytar@7.9.0: dependencies: node-addon-api: 4.3.0 @@ -23748,60 +22732,6 @@ snapshots: kleur@3.0.3: {} - koa-compose@4.1.0: {} - - koa-convert@2.0.0: - dependencies: - co: 4.6.0 - koa-compose: 4.1.0 - - koa-etag@4.0.0: - dependencies: - etag: 1.8.1 - - koa-send@5.0.1: - dependencies: - debug: 4.4.0(supports-color@8.1.1) - http-errors: 1.8.1 - resolve-path: 1.4.0 - transitivePeerDependencies: - - supports-color - - koa-static@5.0.0: - dependencies: - debug: 3.2.7 - koa-send: 5.0.1 - transitivePeerDependencies: - - supports-color - - koa@2.15.3: - dependencies: - accepts: 1.3.8 - cache-content-type: 1.0.1 - content-disposition: 0.5.4 - content-type: 1.0.5 - cookies: 0.9.1 - debug: 4.4.0(supports-color@8.1.1) - delegates: 1.0.0 - depd: 2.0.0 - destroy: 1.2.0 - encodeurl: 1.0.2 - escape-html: 1.0.3 - fresh: 0.5.2 - http-assert: 1.5.0 - http-errors: 1.8.1 - is-generator-function: 1.0.10 - koa-compose: 4.1.0 - koa-convert: 2.0.0 - on-finished: 2.4.1 - only: 0.0.2 - parseurl: 1.3.3 - statuses: 1.5.0 - type-is: 1.6.18 - vary: 1.1.2 - transitivePeerDependencies: - - supports-color - levn@0.3.0: dependencies: prelude-ls: 1.1.2 @@ -23812,11 +22742,6 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 - lighthouse-logger@1.4.2: - dependencies: - debug: 2.6.9 - marky: 1.2.5 - lines-and-columns@1.2.4: {} linkify-it@5.0.0: @@ -23869,13 +22794,6 @@ snapshots: chalk: 4.1.2 is-unicode-supported: 0.1.0 - log-update@4.0.0: - dependencies: - ansi-escapes: 4.3.2 - cli-cursor: 3.1.0 - slice-ansi: 4.0.0 - wrap-ansi: 6.2.0 - log4js@6.9.1: dependencies: date-format: 4.0.14 @@ -23917,8 +22835,6 @@ snapshots: lru-cache@7.18.3: {} - lru-cache@8.0.5: {} - lz-string@1.5.0: {} magic-string@0.30.15: @@ -23978,8 +22894,6 @@ snapshots: marked@9.1.6: {} - marky@1.2.5: {} - matched@5.0.1: dependencies: glob: 7.2.3 @@ -24294,8 +23208,6 @@ snapshots: object-assign: 4.1.1 thenify-all: 1.6.0 - nanocolors@0.2.13: {} - nanoid@3.3.8: {} napi-build-utils@1.0.2: {} @@ -24435,8 +23347,6 @@ snapshots: dependencies: mimic-fn: 4.0.0 - only@0.0.2: {} - open@10.1.0: dependencies: default-browser: 5.2.1 @@ -24498,10 +23408,6 @@ snapshots: outvariant@1.4.3: {} - p-event@4.2.0: - dependencies: - p-timeout: 3.2.0 - p-event@5.0.1: dependencies: p-timeout: 5.1.0 @@ -24510,8 +23416,6 @@ snapshots: dependencies: p-map: 5.5.0 - p-finally@1.0.0: {} - p-limit@2.3.0: dependencies: p-try: 2.2.0 @@ -24542,10 +23446,6 @@ snapshots: p-map@6.0.0: {} - p-timeout@3.2.0: - dependencies: - p-finally: 1.0.0 - p-timeout@5.1.0: {} p-try@2.2.0: {} @@ -24692,12 +23592,6 @@ snapshots: polite-json@5.0.0: {} - portfinder@1.0.32: - dependencies: - async: 2.6.4 - debug: 3.2.7 - mkdirp: 0.5.6 - possible-typed-array-names@1.0.0: {} postcss@8.4.49: @@ -24937,8 +23831,6 @@ snapshots: dependencies: picomatch: 2.3.1 - readdirp@4.0.2: {} - redent@4.0.0: dependencies: indent-string: 5.0.0 @@ -24981,11 +23873,6 @@ snapshots: glob: 10.4.5 walk-up-path: 3.0.1 - resolve-path@1.4.0: - dependencies: - http-errors: 1.6.3 - path-is-absolute: 1.0.1 - resolve-pkg-maps@1.0.0: {} resolve@1.19.0: @@ -25149,8 +24036,6 @@ snapshots: gopd: 1.2.0 has-property-descriptors: 1.0.2 - setprototypeof@1.1.0: {} - setprototypeof@1.2.0: {} shebang-command@2.0.0: @@ -25239,12 +24124,6 @@ snapshots: slash@4.0.0: {} - slice-ansi@4.0.0: - dependencies: - ansi-styles: 4.3.0 - astral-regex: 2.0.0 - is-fullwidth-code-point: 3.0.0 - smart-buffer@4.2.0: {} socket.io-adapter@2.5.5: @@ -25450,11 +24329,6 @@ snapshots: path-scurry: 1.11.1 rimraf: 5.0.10 - table-layout@4.1.1: - dependencies: - array-back: 6.2.2 - wordwrapjs: 5.1.0 - tapable@2.2.1: {} tar-fs@2.1.1: @@ -25583,10 +24457,6 @@ snapshots: tr46@0.0.3: {} - tr46@5.0.0: - dependencies: - punycode: 2.3.1 - tree-dump@1.0.2(tslib@2.8.1): dependencies: tslib: 2.8.1 @@ -25672,8 +24542,6 @@ snapshots: tslib@2.8.1: {} - tsscmp@1.0.6: {} - tsx@4.19.2: dependencies: esbuild: 0.23.1 @@ -25748,14 +24616,8 @@ snapshots: typescript@5.7.2: {} - typical@4.0.0: {} - - typical@7.3.0: {} - ua-parser-js@0.7.39: {} - ua-parser-js@1.0.39: {} - uc.micro@2.1.0: {} ufo@1.5.4: {} @@ -25830,12 +24692,6 @@ snapshots: v8-compile-cache-lib@3.0.1: {} - v8-to-istanbul@9.3.0: - dependencies: - '@jridgewell/trace-mapping': 0.3.25 - '@types/istanbul-lib-coverage': 2.0.6 - convert-source-map: 2.0.0 - validate-npm-package-license@3.0.4: dependencies: spdx-correct: 3.2.0 @@ -26097,13 +24953,6 @@ snapshots: webidl-conversions@3.0.1: {} - webidl-conversions@7.0.0: {} - - whatwg-url@14.1.0: - dependencies: - tr46: 5.0.0 - webidl-conversions: 7.0.0 - whatwg-url@5.0.0: dependencies: tr46: 0.0.3 @@ -26144,8 +24993,6 @@ snapshots: word-wrap@1.2.5: {} - wordwrapjs@5.1.0: {} - workerpool@6.5.1: {} wrap-ansi@6.2.0: @@ -26252,8 +25099,6 @@ snapshots: buffer-crc32: 0.2.13 fd-slicer: 1.1.0 - ylru@1.4.0: {} - yn@3.1.1: {} yocto-queue@0.1.0: {} diff --git a/sdk/standbypool/arm-standbypool/CHANGELOG.md b/sdk/standbypool/arm-standbypool/CHANGELOG.md index caf9a735a7df..d0543133adbb 100644 --- a/sdk/standbypool/arm-standbypool/CHANGELOG.md +++ b/sdk/standbypool/arm-standbypool/CHANGELOG.md @@ -1,15 +1,22 @@ # Release History - -## 1.0.2 (Unreleased) - + +## 2.0.0 (2024-12-17) + ### Features Added -### Breaking Changes + - Added Enum KnownVersions + - Enum KnownOrigin has a new value "user,system" + - Enum KnownOrigin has a new value system + - Enum KnownOrigin has a new value user + - Enum KnownRefillPolicy has a new value always -### Bugs Fixed - -### Other Changes +### Breaking Changes + - Enum KnownOrigin no longer has value System + - Enum KnownOrigin no longer has value User + - Enum KnownOrigin no longer has value UserSystem + - Enum KnownRefillPolicy no longer has value Always + ## 1.0.1 (2024-11-04) ### Bugs Fixed diff --git a/sdk/standbypool/arm-standbypool/README.md b/sdk/standbypool/arm-standbypool/README.md index 6d7900d04072..50be1255b4c7 100644 --- a/sdk/standbypool/arm-standbypool/README.md +++ b/sdk/standbypool/arm-standbypool/README.md @@ -1,13 +1,14 @@ -# Azure StandbyPoolManagement client library for JavaScript +# Azure StandbyPool client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure StandbyPoolManagement client. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure StandbyPool client. -[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool) | -[Package (NPM)](https://www.npmjs.com/package/@azure/arm-standbypool) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-standbypool?view=azure-node-preview) | -[Samples](https://github.com/Azure-Samples/azure-samples-js-management) +Key links: + +- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool) +- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-standbypool) +- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-standbypool?view=azure-node-preview) ## Getting started @@ -24,16 +25,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ### Install the `@azure/arm-standbypool` package -Install the Azure StandbyPoolManagement client library for JavaScript with `npm`: +Install the Azure StandbyPool client library for JavaScript with `npm`: ```bash npm install @azure/arm-standbypool ``` -### Create and authenticate a `StandbyPoolManagementClient` +### Create and authenticate a `StandbyPoolClient` -To create a client object to access the Azure StandbyPoolManagement API, you will need the `endpoint` of your Azure StandbyPoolManagement resource and a `credential`. The Azure StandbyPoolManagement client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure StandbyPoolManagement resource in the [Azure Portal][azure_portal]. +To create a client object to access the Azure StandbyPool API, you will need the `endpoint` of your Azure StandbyPool resource and a `credential`. The Azure StandbyPool client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure StandbyPool resource in the [Azure Portal][azure_portal]. You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). @@ -44,24 +45,23 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure StandbyPool** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). ```javascript -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); +const { StandbyPoolClient } = require("@azure/arm-standbypool"); const { DefaultAzureCredential } = require("@azure/identity"); // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new StandbyPoolManagementClient(new DefaultAzureCredential(), subscriptionId); +const client = new StandbyPoolClient(new DefaultAzureCredential(), subscriptionId); // For client-side applications running in the browser, use this code instead: // const credential = new InteractiveBrowserCredential({ // tenantId: "", // clientId: "" // }); -// const client = new StandbyPoolManagementClient(credential, subscriptionId); +// const client = new StandbyPoolClient(credential, subscriptionId); ``` @@ -70,9 +70,9 @@ To use this client library in the browser, first you need to use a bundler. For ## Key concepts -### StandbyPoolManagementClient +### StandbyPoolClient -`StandbyPoolManagementClient` is the primary interface for developers using the Azure StandbyPoolManagement client library. Explore the methods on this client object to understand the different features of the Azure StandbyPoolManagement service that you can access. +`StandbyPoolClient` is the primary interface for developers using the Azure StandbyPool client library. Explore the methods on this client object to understand the different features of the Azure StandbyPool service that you can access. ## Troubleshooting diff --git a/sdk/standbypool/arm-standbypool/assets.json b/sdk/standbypool/arm-standbypool/assets.json deleted file mode 100644 index 8396f9b36ed5..000000000000 --- a/sdk/standbypool/arm-standbypool/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/standbypool/arm-standbypool", - "Tag": "js/standbypool/arm-standbypool_128c5a15a5" -} diff --git a/sdk/standbypool/arm-standbypool/eslint.config.mjs b/sdk/standbypool/arm-standbypool/eslint.config.mjs new file mode 100644 index 000000000000..113bdc3eaf5f --- /dev/null +++ b/sdk/standbypool/arm-standbypool/eslint.config.mjs @@ -0,0 +1,17 @@ +import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; + +export default [ + ...azsdkEslint.configs.recommended, + { + rules: { + "@azure/azure-sdk/ts-modules-only-named": "warn", + "@azure/azure-sdk/ts-apiextractor-json-types": "warn", + "@azure/azure-sdk/ts-package-json-types": "warn", + "@azure/azure-sdk/ts-package-json-engine-is-present": "warn", + "@azure/azure-sdk/ts-package-json-module": "off", + "@azure/azure-sdk/ts-package-json-files-required": "off", + "@azure/azure-sdk/ts-package-json-main-is-cjs": "off", + "tsdoc/syntax": "warn" + } + } +]; diff --git a/sdk/standbypool/arm-standbypool/package.json b/sdk/standbypool/arm-standbypool/package.json index 182a7a56962b..bd69a0af3bc8 100644 --- a/sdk/standbypool/arm-standbypool/package.json +++ b/sdk/standbypool/arm-standbypool/package.json @@ -1,6 +1,6 @@ { "name": "@azure/arm-standbypool", - "version": "1.0.2", + "version": "2.0.0", "description": "A generated SDK for StandbyPoolClient.", "engines": { "node": ">=18.0.0" @@ -21,8 +21,7 @@ "browser", "react-native" ], - "selfLink": false, - "project": "./tsconfig.src.json" + "selfLink": false }, "type": "module", "keywords": [ @@ -47,6 +46,7 @@ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool/README.md", "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "//metadata": { "constantPaths": [ @@ -57,64 +57,56 @@ ] }, "dependencies": { - "@azure-rest/core-client": "^2.1.0", - "@azure/abort-controller": "^2.1.2", + "@azure/core-util": "^1.9.2", + "@azure-rest/core-client": "^2.3.1", "@azure/core-auth": "^1.6.0", - "@azure/core-lro": "^3.0.0", "@azure/core-rest-pipeline": "^1.5.0", - "@azure/core-util": "^1.9.2", "@azure/logger": "^1.0.0", - "tslib": "^2.6.2" + "tslib": "^2.6.2", + "@azure/core-lro": "^3.1.0", + "@azure/abort-controller": "^2.1.2" }, "devDependencies": { - "@azure-tools/test-credential": "^2.0.0", - "@azure-tools/test-recorder": "^4.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^4.2.1", + "dotenv": "^16.0.0", + "@microsoft/api-extractor": "^7.40.3", "@types/node": "^18.0.0", + "eslint": "^9.9.0", + "typescript": "~5.6.2", + "@azure/identity": "^4.2.1", "@vitest/browser": "^2.0.5", "@vitest/coverage-istanbul": "^2.0.5", - "dotenv": "^16.0.0", - "eslint": "^9.9.0", "playwright": "^1.41.2", - "prettier": "^3.2.5", - "typescript": "~5.6.2", - "vitest": "^2.0.5" + "vitest": "^2.0.5", + "@azure-tools/test-credential": "^2.0.0", + "@azure-tools/test-recorder": "^4.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/eslint-plugin-azure-sdk": "^3.0.0" }, "scripts": { - "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "build:samples": "tsc -p tsconfig.samples.json && dev-tool samples publish -f", - "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", - "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "execute:samples": "dev-tool samples run samples-dev", "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", - "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"", - "generate:client": "echo skipped", + "pack": "npm pack 2>&1", + "lint": "eslint package.json api-extractor.json src test", + "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", + "unit-test:node": "dev-tool run test:vitest", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "echo skipped", - "lint": "echo skipped", - "lint:fix": "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", - "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", + "build:samples": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "execute:samples": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "generate:client": "echo skipped", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test", + "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api", "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser", - "unit-test:node": "dev-tool run test:vitest", + "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", "update-snippets": "echo skipped" }, - "//sampleConfiguration": { - "productName": "@azure/arm-standbypool", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-standbypool?view=azure-node-preview" - }, "exports": { "./package.json": "./package.json", ".": { diff --git a/sdk/standbypool/arm-standbypool/review/arm-standbypool-models.api.md b/sdk/standbypool/arm-standbypool/review/arm-standbypool-models.api.md index 72b428d685ba..60047d28c843 100644 --- a/sdk/standbypool/arm-standbypool/review/arm-standbypool-models.api.md +++ b/sdk/standbypool/arm-standbypool/review/arm-standbypool-models.api.md @@ -4,8 +4,6 @@ ```ts -import { OperationOptions } from '@azure-rest/core-client'; - // @public export type ActionType = string; @@ -44,9 +42,9 @@ export enum KnownCreatedByType { // @public export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" + "user,system" = "user,system", + system = "system", + user = "user" } // @public @@ -59,7 +57,12 @@ export enum KnownProvisioningState { // @public export enum KnownRefillPolicy { - Always = "always" + always = "always" +} + +// @public +export enum KnownVersions { + "2024-03-01" = "2024-03-01" } // @public @@ -70,8 +73,8 @@ export enum KnownVirtualMachineState { // @public export interface Operation { - actionType?: ActionType; - readonly display?: OperationDisplay; + readonly actionType?: ActionType; + display?: OperationDisplay; readonly isDataAction?: boolean; readonly name?: string; readonly origin?: Origin; @@ -85,10 +88,6 @@ export interface OperationDisplay { readonly resource?: string; } -// @public -export interface OperationsListOptionalParams extends OperationOptions { -} - // @public export type Origin = string; @@ -157,40 +156,6 @@ export interface StandbyContainerGroupPoolRuntimeViewResourceProperties { readonly provisioningState?: ProvisioningState; } -// @public -export interface StandbyContainerGroupPoolRuntimeViewsGetOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyContainerGroupPoolsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface StandbyContainerGroupPoolsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface StandbyContainerGroupPoolsGetOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyContainerGroupPoolsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyContainerGroupPoolsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyContainerGroupPoolsUpdateOptionalParams extends OperationOptions { -} - // @public export interface StandbyVirtualMachinePoolElasticityProfile { maxReadyCapacity: number; @@ -234,40 +199,6 @@ export interface StandbyVirtualMachinePoolRuntimeViewResourceProperties { readonly provisioningState?: ProvisioningState; } -// @public -export interface StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface StandbyVirtualMachinePoolsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface StandbyVirtualMachinePoolsGetOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyVirtualMachinePoolsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyVirtualMachinePoolsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyVirtualMachinePoolsUpdateOptionalParams extends OperationOptions { -} - // @public export interface StandbyVirtualMachineResource extends ProxyResource { properties?: StandbyVirtualMachineResourceProperties; @@ -279,14 +210,6 @@ export interface StandbyVirtualMachineResourceProperties { virtualMachineResourceId: string; } -// @public -export interface StandbyVirtualMachinesGetOptionalParams extends OperationOptions { -} - -// @public -export interface StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams extends OperationOptions { -} - // @public export interface Subnet { id: string; diff --git a/sdk/standbypool/arm-standbypool/review/arm-standbypool.api.md b/sdk/standbypool/arm-standbypool/review/arm-standbypool.api.md index 4a77b7ef7436..3ead3851091a 100644 --- a/sdk/standbypool/arm-standbypool/review/arm-standbypool.api.md +++ b/sdk/standbypool/arm-standbypool/review/arm-standbypool.api.md @@ -56,9 +56,9 @@ export enum KnownCreatedByType { // @public export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" + "user,system" = "user,system", + system = "system", + user = "user" } // @public @@ -71,7 +71,12 @@ export enum KnownProvisioningState { // @public export enum KnownRefillPolicy { - Always = "always" + always = "always" +} + +// @public +export enum KnownVersions { + "2024-03-01" = "2024-03-01" } // @public @@ -82,8 +87,8 @@ export enum KnownVirtualMachineState { // @public export interface Operation { - actionType?: ActionType; - readonly display?: OperationDisplay; + readonly actionType?: ActionType; + display?: OperationDisplay; readonly isDataAction?: boolean; readonly name?: string; readonly origin?: Origin; diff --git a/sdk/standbypool/arm-standbypool/sample.env b/sdk/standbypool/arm-standbypool/sample.env index efbc7787bd3b..508439fc7d62 100644 --- a/sdk/standbypool/arm-standbypool/sample.env +++ b/sdk/standbypool/arm-standbypool/sample.env @@ -1 +1 @@ -# Feel free to add your own environment variables. +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/standbypool/arm-standbypool/samples-dev/operationsListSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/operationsListSample.ts deleted file mode 100644 index 49bd314d08e6..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list the operations for the provider - * - * @summary list the operations for the provider - * x-ms-original-file: 2024-03-01/Operations_List.json - */ -async function operationsList() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-00000000000"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsGetSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsGetSample.ts deleted file mode 100644 index c332e9b97753..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsGetSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyContainerGroupPoolRuntimeViewResource - * - * @summary get a StandbyContainerGroupPoolRuntimeViewResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_Get.json - */ -async function standbyContainerGroupPoolRuntimeViewsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPoolRuntimeViews.get( - "rgstandbypool", - "pool", - "latest", - ); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolRuntimeViewsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts deleted file mode 100644 index 9b2cec06f54c..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource - * - * @summary list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.json - */ -async function standbyContainerGroupPoolRuntimeViewsListByStandbyPool() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPoolRuntimeViews.listByStandbyPool( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolRuntimeViewsListByStandbyPool(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.ts deleted file mode 100644 index bdaeaf05da9c..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a StandbyContainerGroupPoolResource - * - * @summary create a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_CreateOrUpdate.json - */ -async function standbyContainerGroupPoolsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.createOrUpdate("rgstandbypool", "pool", { - properties: { - elasticityProfile: { maxReadyCapacity: 688, refillPolicy: "always" }, - containerGroupProperties: { - containerGroupProfile: { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile", - revision: 1, - }, - subnetIds: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet", - }, - ], - }, - }, - tags: {}, - location: "West US", - }); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsDeleteSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsDeleteSample.ts deleted file mode 100644 index 3cd4b4c38705..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a StandbyContainerGroupPoolResource - * - * @summary delete a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Delete.json - */ -async function standbyContainerGroupPoolsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - await client.standbyContainerGroupPools.delete("rgstandbypool", "pool"); -} - -async function main() { - standbyContainerGroupPoolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsGetSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsGetSample.ts deleted file mode 100644 index 1ac71a70ed77..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyContainerGroupPoolResource - * - * @summary get a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Get.json - */ -async function standbyContainerGroupPoolsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.get("rgstandbypool", "pool"); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.ts deleted file mode 100644 index 685eed5edd66..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolResource resources by resource group - * - * @summary list StandbyContainerGroupPoolResource resources by resource group - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListByResourceGroup.json - */ -async function standbyContainerGroupPoolsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPools.listByResourceGroup("rgstandbypool")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.ts deleted file mode 100644 index 0e388ebccf42..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolResource resources by subscription ID - * - * @summary list StandbyContainerGroupPoolResource resources by subscription ID - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListBySubscription.json - */ -async function standbyContainerGroupPoolsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsUpdateSample.ts deleted file mode 100644 index 635c23982de8..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyContainerGroupPoolsUpdateSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a StandbyContainerGroupPoolResource - * - * @summary update a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Update.json - */ -async function standbyContainerGroupPoolsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.update("rgstandbypool", "pool", { - tags: {}, - properties: { - elasticityProfile: { maxReadyCapacity: 1743, refillPolicy: "always" }, - containerGroupProperties: { - containerGroupProfile: { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile", - revision: 2, - }, - subnetIds: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet", - }, - ], - }, - }, - }); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsGetSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsGetSample.ts deleted file mode 100644 index 7811a499ab75..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsGetSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyVirtualMachinePoolRuntimeViewResource - * - * @summary get a StandbyVirtualMachinePoolRuntimeViewResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_Get.json - */ -async function standbyVirtualMachinePoolRuntimeViewsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePoolRuntimeViews.get( - "rgstandbypool", - "pool", - "latest", - ); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolRuntimeViewsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts deleted file mode 100644 index f0636418c0f2..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource - * - * @summary list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.json - */ -async function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePoolRuntimeViews.listByStandbyPool( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.ts deleted file mode 100644 index 9e01b5253953..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a StandbyVirtualMachinePoolResource - * - * @summary create a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_CreateOrUpdate.json - */ -async function standbyVirtualMachinePoolsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.createOrUpdate("rgstandbypool", "pool", { - properties: { - elasticityProfile: { maxReadyCapacity: 304, minReadyCapacity: 300 }, - virtualMachineState: "Running", - attachedVirtualMachineScaleSetId: - "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss", - }, - tags: {}, - location: "West US", - }); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsDeleteSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsDeleteSample.ts deleted file mode 100644 index 13854a5b536c..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a StandbyVirtualMachinePoolResource - * - * @summary delete a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Delete.json - */ -async function standbyVirtualMachinePoolsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - await client.standbyVirtualMachinePools.delete("rgstandbypool", "pool"); -} - -async function main() { - standbyVirtualMachinePoolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsGetSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsGetSample.ts deleted file mode 100644 index 6e711be3f83b..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyVirtualMachinePoolResource - * - * @summary get a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Get.json - */ -async function standbyVirtualMachinePoolsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.get("rgstandbypool", "pool"); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.ts deleted file mode 100644 index 0d33c9646b67..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolResource resources by resource group - * - * @summary list StandbyVirtualMachinePoolResource resources by resource group - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListByResourceGroup.json - */ -async function standbyVirtualMachinePoolsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePools.listByResourceGroup("rgstandbypool")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.ts deleted file mode 100644 index 95e2eb31d0f1..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolResource resources by subscription ID - * - * @summary list StandbyVirtualMachinePoolResource resources by subscription ID - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListBySubscription.json - */ -async function standbyVirtualMachinePoolsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsUpdateSample.ts deleted file mode 100644 index 2651641d2f1f..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinePoolsUpdateSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a StandbyVirtualMachinePoolResource - * - * @summary update a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Update.json - */ -async function standbyVirtualMachinePoolsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.update("rgstandbypool", "pool", { - tags: {}, - properties: { - elasticityProfile: { maxReadyCapacity: 304, minReadyCapacity: 300 }, - virtualMachineState: "Running", - attachedVirtualMachineScaleSetId: - "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss", - }, - }); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesGetSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesGetSample.ts deleted file mode 100644 index 6a6003decb48..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyVirtualMachineResource - * - * @summary get a StandbyVirtualMachineResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_Get.json - */ -async function standbyVirtualMachinesGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachines.get("rgstandbypool", "pool", "virtualMachine"); - console.log(result); -} - -async function main() { - standbyVirtualMachinesGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts b/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts deleted file mode 100644 index d92be150cea1..000000000000 --- a/sdk/standbypool/arm-standbypool/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource - * - * @summary list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.json - */ -async function standbyVirtualMachinesListByStandbyVirtualMachinePoolResource() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachines.listByStandbyVirtualMachinePoolResource( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinesListByStandbyVirtualMachinePoolResource(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/README.md b/sdk/standbypool/arm-standbypool/samples/v1/javascript/README.md deleted file mode 100644 index f8b217a214bc..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/README.md +++ /dev/null @@ -1,86 +0,0 @@ -# @azure/arm-mongocluster client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for @azure/arm-mongocluster in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [operationsListSample.js][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-03-01/Operations_List.json | -| [standbyContainerGroupPoolRuntimeViewsGetSample.js][standbycontainergrouppoolruntimeviewsgetsample] | get a StandbyContainerGroupPoolRuntimeViewResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_Get.json | -| [standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.js][standbycontainergrouppoolruntimeviewslistbystandbypoolsample] | list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.json | -| [standbyContainerGroupPoolsCreateOrUpdateSample.js][standbycontainergrouppoolscreateorupdatesample] | create a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_CreateOrUpdate.json | -| [standbyContainerGroupPoolsDeleteSample.js][standbycontainergrouppoolsdeletesample] | delete a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Delete.json | -| [standbyContainerGroupPoolsGetSample.js][standbycontainergrouppoolsgetsample] | get a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Get.json | -| [standbyContainerGroupPoolsListByResourceGroupSample.js][standbycontainergrouppoolslistbyresourcegroupsample] | list StandbyContainerGroupPoolResource resources by resource group x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListByResourceGroup.json | -| [standbyContainerGroupPoolsListBySubscriptionSample.js][standbycontainergrouppoolslistbysubscriptionsample] | list StandbyContainerGroupPoolResource resources by subscription ID x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListBySubscription.json | -| [standbyContainerGroupPoolsUpdateSample.js][standbycontainergrouppoolsupdatesample] | update a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Update.json | -| [standbyVirtualMachinePoolRuntimeViewsGetSample.js][standbyvirtualmachinepoolruntimeviewsgetsample] | get a StandbyVirtualMachinePoolRuntimeViewResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_Get.json | -| [standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.js][standbyvirtualmachinepoolruntimeviewslistbystandbypoolsample] | list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.json | -| [standbyVirtualMachinePoolsCreateOrUpdateSample.js][standbyvirtualmachinepoolscreateorupdatesample] | create a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_CreateOrUpdate.json | -| [standbyVirtualMachinePoolsDeleteSample.js][standbyvirtualmachinepoolsdeletesample] | delete a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Delete.json | -| [standbyVirtualMachinePoolsGetSample.js][standbyvirtualmachinepoolsgetsample] | get a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Get.json | -| [standbyVirtualMachinePoolsListByResourceGroupSample.js][standbyvirtualmachinepoolslistbyresourcegroupsample] | list StandbyVirtualMachinePoolResource resources by resource group x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListByResourceGroup.json | -| [standbyVirtualMachinePoolsListBySubscriptionSample.js][standbyvirtualmachinepoolslistbysubscriptionsample] | list StandbyVirtualMachinePoolResource resources by subscription ID x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListBySubscription.json | -| [standbyVirtualMachinePoolsUpdateSample.js][standbyvirtualmachinepoolsupdatesample] | update a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Update.json | -| [standbyVirtualMachinesGetSample.js][standbyvirtualmachinesgetsample] | get a StandbyVirtualMachineResource x-ms-original-file: 2024-03-01/StandbyVirtualMachines_Get.json | -| [standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js][standbyvirtualmachineslistbystandbyvirtualmachinepoolresourcesample] | list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node operationsListSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env node operationsListSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/operationsListSample.js -[standbycontainergrouppoolruntimeviewsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsGetSample.js -[standbycontainergrouppoolruntimeviewslistbystandbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.js -[standbycontainergrouppoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsCreateOrUpdateSample.js -[standbycontainergrouppoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsDeleteSample.js -[standbycontainergrouppoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsGetSample.js -[standbycontainergrouppoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListByResourceGroupSample.js -[standbycontainergrouppoolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListBySubscriptionSample.js -[standbycontainergrouppoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsUpdateSample.js -[standbyvirtualmachinepoolruntimeviewsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsGetSample.js -[standbyvirtualmachinepoolruntimeviewslistbystandbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.js -[standbyvirtualmachinepoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsCreateOrUpdateSample.js -[standbyvirtualmachinepoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsDeleteSample.js -[standbyvirtualmachinepoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsGetSample.js -[standbyvirtualmachinepoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListByResourceGroupSample.js -[standbyvirtualmachinepoolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListBySubscriptionSample.js -[standbyvirtualmachinepoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsUpdateSample.js -[standbyvirtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesGetSample.js -[standbyvirtualmachineslistbystandbyvirtualmachinepoolresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-mongocluster?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool/README.md diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/operationsListSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/operationsListSample.js deleted file mode 100644 index d6dbab938f6e..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/operationsListSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list the operations for the provider - * - * @summary list the operations for the provider - * x-ms-original-file: 2024-03-01/Operations_List.json - */ -async function operationsList() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-00000000000"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/package.json b/sdk/standbypool/arm-standbypool/samples/v1/javascript/package.json deleted file mode 100644 index 7982e96b6d2f..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@azure-samples/arm-standbypool-js", - "private": true, - "version": "1.0.0", - "description": "@azure/arm-mongocluster client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/standbypool/arm-standbypool" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool", - "dependencies": { - "@azure/arm-standbypool": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/sample.env b/sdk/standbypool/arm-standbypool/samples/v1/javascript/sample.env deleted file mode 100644 index efbc7787bd3b..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/sample.env +++ /dev/null @@ -1 +0,0 @@ -# Feel free to add your own environment variables. diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsGetSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsGetSample.js deleted file mode 100644 index ddff44922df2..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsGetSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a StandbyContainerGroupPoolRuntimeViewResource - * - * @summary get a StandbyContainerGroupPoolRuntimeViewResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_Get.json - */ -async function standbyContainerGroupPoolRuntimeViewsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPoolRuntimeViews.get( - "rgstandbypool", - "pool", - "latest", - ); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolRuntimeViewsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.js deleted file mode 100644 index 64e50ef1a2f2..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource - * - * @summary list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.json - */ -async function standbyContainerGroupPoolRuntimeViewsListByStandbyPool() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPoolRuntimeViews.listByStandbyPool( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolRuntimeViewsListByStandbyPool(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsCreateOrUpdateSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsCreateOrUpdateSample.js deleted file mode 100644 index f2ef7760110b..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsCreateOrUpdateSample.js +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create a StandbyContainerGroupPoolResource - * - * @summary create a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_CreateOrUpdate.json - */ -async function standbyContainerGroupPoolsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.createOrUpdate("rgstandbypool", "pool", { - properties: { - elasticityProfile: { maxReadyCapacity: 688, refillPolicy: "always" }, - containerGroupProperties: { - containerGroupProfile: { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile", - revision: 1, - }, - subnetIds: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet", - }, - ], - }, - }, - tags: {}, - location: "West US", - }); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsDeleteSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsDeleteSample.js deleted file mode 100644 index a0760841001b..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsDeleteSample.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to delete a StandbyContainerGroupPoolResource - * - * @summary delete a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Delete.json - */ -async function standbyContainerGroupPoolsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - await client.standbyContainerGroupPools.delete("rgstandbypool", "pool"); -} - -async function main() { - standbyContainerGroupPoolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsGetSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsGetSample.js deleted file mode 100644 index 44cc7784b4dd..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a StandbyContainerGroupPoolResource - * - * @summary get a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Get.json - */ -async function standbyContainerGroupPoolsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.get("rgstandbypool", "pool"); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListByResourceGroupSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListByResourceGroupSample.js deleted file mode 100644 index 838225acbda9..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListByResourceGroupSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolResource resources by resource group - * - * @summary list StandbyContainerGroupPoolResource resources by resource group - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListByResourceGroup.json - */ -async function standbyContainerGroupPoolsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPools.listByResourceGroup("rgstandbypool")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListBySubscriptionSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListBySubscriptionSample.js deleted file mode 100644 index 09e0eb540cdf..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsListBySubscriptionSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolResource resources by subscription ID - * - * @summary list StandbyContainerGroupPoolResource resources by subscription ID - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListBySubscription.json - */ -async function standbyContainerGroupPoolsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsUpdateSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsUpdateSample.js deleted file mode 100644 index e598c600adab..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyContainerGroupPoolsUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to update a StandbyContainerGroupPoolResource - * - * @summary update a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Update.json - */ -async function standbyContainerGroupPoolsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.update("rgstandbypool", "pool", { - tags: {}, - properties: { - elasticityProfile: { maxReadyCapacity: 1743, refillPolicy: "always" }, - containerGroupProperties: { - containerGroupProfile: { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile", - revision: 2, - }, - subnetIds: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet", - }, - ], - }, - }, - }); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsGetSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsGetSample.js deleted file mode 100644 index d1f1e08138a6..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsGetSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a StandbyVirtualMachinePoolRuntimeViewResource - * - * @summary get a StandbyVirtualMachinePoolRuntimeViewResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_Get.json - */ -async function standbyVirtualMachinePoolRuntimeViewsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePoolRuntimeViews.get( - "rgstandbypool", - "pool", - "latest", - ); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolRuntimeViewsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.js deleted file mode 100644 index b102d89ad26d..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource - * - * @summary list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.json - */ -async function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePoolRuntimeViews.listByStandbyPool( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsCreateOrUpdateSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsCreateOrUpdateSample.js deleted file mode 100644 index 9ba9b77815ec..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsCreateOrUpdateSample.js +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create a StandbyVirtualMachinePoolResource - * - * @summary create a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_CreateOrUpdate.json - */ -async function standbyVirtualMachinePoolsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.createOrUpdate("rgstandbypool", "pool", { - properties: { - elasticityProfile: { maxReadyCapacity: 304, minReadyCapacity: 300 }, - virtualMachineState: "Running", - attachedVirtualMachineScaleSetId: - "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss", - }, - tags: {}, - location: "West US", - }); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsDeleteSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsDeleteSample.js deleted file mode 100644 index 756873e734c9..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsDeleteSample.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to delete a StandbyVirtualMachinePoolResource - * - * @summary delete a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Delete.json - */ -async function standbyVirtualMachinePoolsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - await client.standbyVirtualMachinePools.delete("rgstandbypool", "pool"); -} - -async function main() { - standbyVirtualMachinePoolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsGetSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsGetSample.js deleted file mode 100644 index 47a36aceebc7..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a StandbyVirtualMachinePoolResource - * - * @summary get a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Get.json - */ -async function standbyVirtualMachinePoolsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.get("rgstandbypool", "pool"); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListByResourceGroupSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListByResourceGroupSample.js deleted file mode 100644 index 14c93af15d74..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListByResourceGroupSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolResource resources by resource group - * - * @summary list StandbyVirtualMachinePoolResource resources by resource group - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListByResourceGroup.json - */ -async function standbyVirtualMachinePoolsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePools.listByResourceGroup("rgstandbypool")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListBySubscriptionSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListBySubscriptionSample.js deleted file mode 100644 index 96974219b753..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsListBySubscriptionSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolResource resources by subscription ID - * - * @summary list StandbyVirtualMachinePoolResource resources by subscription ID - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListBySubscription.json - */ -async function standbyVirtualMachinePoolsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsUpdateSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsUpdateSample.js deleted file mode 100644 index 1b76e1315f80..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinePoolsUpdateSample.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to update a StandbyVirtualMachinePoolResource - * - * @summary update a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Update.json - */ -async function standbyVirtualMachinePoolsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.update("rgstandbypool", "pool", { - tags: {}, - properties: { - elasticityProfile: { maxReadyCapacity: 304, minReadyCapacity: 300 }, - virtualMachineState: "Running", - attachedVirtualMachineScaleSetId: - "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss", - }, - }); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesGetSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesGetSample.js deleted file mode 100644 index 9e042802bb00..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a StandbyVirtualMachineResource - * - * @summary get a StandbyVirtualMachineResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_Get.json - */ -async function standbyVirtualMachinesGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachines.get("rgstandbypool", "pool", "virtualMachine"); - console.log(result); -} - -async function main() { - standbyVirtualMachinesGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js b/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js deleted file mode 100644 index 1928117b3382..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/javascript/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { StandbyPoolManagementClient } = require("@azure/arm-standbypool"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource - * - * @summary list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.json - */ -async function standbyVirtualMachinesListByStandbyVirtualMachinePoolResource() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachines.listByStandbyVirtualMachinePoolResource( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinesListByStandbyVirtualMachinePoolResource(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/README.md b/sdk/standbypool/arm-standbypool/samples/v1/typescript/README.md deleted file mode 100644 index 5c531e42ca7b..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/README.md +++ /dev/null @@ -1,99 +0,0 @@ -# @azure/arm-mongocluster client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for @azure/arm-mongocluster in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [operationsListSample.ts][operationslistsample] | list the operations for the provider x-ms-original-file: 2024-03-01/Operations_List.json | -| [standbyContainerGroupPoolRuntimeViewsGetSample.ts][standbycontainergrouppoolruntimeviewsgetsample] | get a StandbyContainerGroupPoolRuntimeViewResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_Get.json | -| [standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts][standbycontainergrouppoolruntimeviewslistbystandbypoolsample] | list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.json | -| [standbyContainerGroupPoolsCreateOrUpdateSample.ts][standbycontainergrouppoolscreateorupdatesample] | create a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_CreateOrUpdate.json | -| [standbyContainerGroupPoolsDeleteSample.ts][standbycontainergrouppoolsdeletesample] | delete a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Delete.json | -| [standbyContainerGroupPoolsGetSample.ts][standbycontainergrouppoolsgetsample] | get a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Get.json | -| [standbyContainerGroupPoolsListByResourceGroupSample.ts][standbycontainergrouppoolslistbyresourcegroupsample] | list StandbyContainerGroupPoolResource resources by resource group x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListByResourceGroup.json | -| [standbyContainerGroupPoolsListBySubscriptionSample.ts][standbycontainergrouppoolslistbysubscriptionsample] | list StandbyContainerGroupPoolResource resources by subscription ID x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListBySubscription.json | -| [standbyContainerGroupPoolsUpdateSample.ts][standbycontainergrouppoolsupdatesample] | update a StandbyContainerGroupPoolResource x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Update.json | -| [standbyVirtualMachinePoolRuntimeViewsGetSample.ts][standbyvirtualmachinepoolruntimeviewsgetsample] | get a StandbyVirtualMachinePoolRuntimeViewResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_Get.json | -| [standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts][standbyvirtualmachinepoolruntimeviewslistbystandbypoolsample] | list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.json | -| [standbyVirtualMachinePoolsCreateOrUpdateSample.ts][standbyvirtualmachinepoolscreateorupdatesample] | create a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_CreateOrUpdate.json | -| [standbyVirtualMachinePoolsDeleteSample.ts][standbyvirtualmachinepoolsdeletesample] | delete a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Delete.json | -| [standbyVirtualMachinePoolsGetSample.ts][standbyvirtualmachinepoolsgetsample] | get a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Get.json | -| [standbyVirtualMachinePoolsListByResourceGroupSample.ts][standbyvirtualmachinepoolslistbyresourcegroupsample] | list StandbyVirtualMachinePoolResource resources by resource group x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListByResourceGroup.json | -| [standbyVirtualMachinePoolsListBySubscriptionSample.ts][standbyvirtualmachinepoolslistbysubscriptionsample] | list StandbyVirtualMachinePoolResource resources by subscription ID x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListBySubscription.json | -| [standbyVirtualMachinePoolsUpdateSample.ts][standbyvirtualmachinepoolsupdatesample] | update a StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Update.json | -| [standbyVirtualMachinesGetSample.ts][standbyvirtualmachinesgetsample] | get a StandbyVirtualMachineResource x-ms-original-file: 2024-03-01/StandbyVirtualMachines_Get.json | -| [standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts][standbyvirtualmachineslistbystandbyvirtualmachinepoolresourcesample] | list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource x-ms-original-file: 2024-03-01/StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/operationsListSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx dev-tool run vendored cross-env node dist/operationsListSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/operationsListSample.ts -[standbycontainergrouppoolruntimeviewsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsGetSample.ts -[standbycontainergrouppoolruntimeviewslistbystandbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts -[standbycontainergrouppoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsCreateOrUpdateSample.ts -[standbycontainergrouppoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsDeleteSample.ts -[standbycontainergrouppoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsGetSample.ts -[standbycontainergrouppoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListByResourceGroupSample.ts -[standbycontainergrouppoolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListBySubscriptionSample.ts -[standbycontainergrouppoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsUpdateSample.ts -[standbyvirtualmachinepoolruntimeviewsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsGetSample.ts -[standbyvirtualmachinepoolruntimeviewslistbystandbypoolsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts -[standbyvirtualmachinepoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsCreateOrUpdateSample.ts -[standbyvirtualmachinepoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsDeleteSample.ts -[standbyvirtualmachinepoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsGetSample.ts -[standbyvirtualmachinepoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListByResourceGroupSample.ts -[standbyvirtualmachinepoolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListBySubscriptionSample.ts -[standbyvirtualmachinepoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsUpdateSample.ts -[standbyvirtualmachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesGetSample.ts -[standbyvirtualmachineslistbystandbyvirtualmachinepoolresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-mongocluster?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/package.json b/sdk/standbypool/arm-standbypool/samples/v1/typescript/package.json deleted file mode 100644 index 2eaad5074105..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "@azure-samples/arm-standbypool-ts", - "private": true, - "version": "1.0.0", - "description": "@azure/arm-mongocluster client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/standbypool/arm-standbypool" - }, - "keywords": [ - "node", - "azure", - "cloud", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool", - "dependencies": { - "@azure/arm-standbypool": "latest", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.6.2", - "rimraf": "latest" - } -} diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/sample.env b/sdk/standbypool/arm-standbypool/samples/v1/typescript/sample.env deleted file mode 100644 index efbc7787bd3b..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/sample.env +++ /dev/null @@ -1 +0,0 @@ -# Feel free to add your own environment variables. diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/operationsListSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/operationsListSample.ts deleted file mode 100644 index 49bd314d08e6..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list the operations for the provider - * - * @summary list the operations for the provider - * x-ms-original-file: 2024-03-01/Operations_List.json - */ -async function operationsList() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-00000000000"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - operationsList(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsGetSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsGetSample.ts deleted file mode 100644 index c332e9b97753..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsGetSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyContainerGroupPoolRuntimeViewResource - * - * @summary get a StandbyContainerGroupPoolRuntimeViewResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_Get.json - */ -async function standbyContainerGroupPoolRuntimeViewsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPoolRuntimeViews.get( - "rgstandbypool", - "pool", - "latest", - ); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolRuntimeViewsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts deleted file mode 100644 index 9b2cec06f54c..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolRuntimeViewsListByStandbyPoolSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource - * - * @summary list StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPoolRuntimeViews_ListByStandbyPool.json - */ -async function standbyContainerGroupPoolRuntimeViewsListByStandbyPool() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPoolRuntimeViews.listByStandbyPool( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolRuntimeViewsListByStandbyPool(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsCreateOrUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsCreateOrUpdateSample.ts deleted file mode 100644 index bdaeaf05da9c..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a StandbyContainerGroupPoolResource - * - * @summary create a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_CreateOrUpdate.json - */ -async function standbyContainerGroupPoolsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.createOrUpdate("rgstandbypool", "pool", { - properties: { - elasticityProfile: { maxReadyCapacity: 688, refillPolicy: "always" }, - containerGroupProperties: { - containerGroupProfile: { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile", - revision: 1, - }, - subnetIds: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet", - }, - ], - }, - }, - tags: {}, - location: "West US", - }); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsDeleteSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsDeleteSample.ts deleted file mode 100644 index 3cd4b4c38705..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a StandbyContainerGroupPoolResource - * - * @summary delete a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Delete.json - */ -async function standbyContainerGroupPoolsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - await client.standbyContainerGroupPools.delete("rgstandbypool", "pool"); -} - -async function main() { - standbyContainerGroupPoolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsGetSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsGetSample.ts deleted file mode 100644 index 1ac71a70ed77..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyContainerGroupPoolResource - * - * @summary get a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Get.json - */ -async function standbyContainerGroupPoolsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.get("rgstandbypool", "pool"); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListByResourceGroupSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListByResourceGroupSample.ts deleted file mode 100644 index 685eed5edd66..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolResource resources by resource group - * - * @summary list StandbyContainerGroupPoolResource resources by resource group - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListByResourceGroup.json - */ -async function standbyContainerGroupPoolsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPools.listByResourceGroup("rgstandbypool")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListBySubscriptionSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListBySubscriptionSample.ts deleted file mode 100644 index 0e388ebccf42..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyContainerGroupPoolResource resources by subscription ID - * - * @summary list StandbyContainerGroupPoolResource resources by subscription ID - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_ListBySubscription.json - */ -async function standbyContainerGroupPoolsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyContainerGroupPools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyContainerGroupPoolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsUpdateSample.ts deleted file mode 100644 index 635c23982de8..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyContainerGroupPoolsUpdateSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a StandbyContainerGroupPoolResource - * - * @summary update a StandbyContainerGroupPoolResource - * x-ms-original-file: 2024-03-01/StandbyContainerGroupPools_Update.json - */ -async function standbyContainerGroupPoolsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyContainerGroupPools.update("rgstandbypool", "pool", { - tags: {}, - properties: { - elasticityProfile: { maxReadyCapacity: 1743, refillPolicy: "always" }, - containerGroupProperties: { - containerGroupProfile: { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile", - revision: 2, - }, - subnetIds: [ - { - id: "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet", - }, - ], - }, - }, - }); - console.log(result); -} - -async function main() { - standbyContainerGroupPoolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsGetSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsGetSample.ts deleted file mode 100644 index 7811a499ab75..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsGetSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyVirtualMachinePoolRuntimeViewResource - * - * @summary get a StandbyVirtualMachinePoolRuntimeViewResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_Get.json - */ -async function standbyVirtualMachinePoolRuntimeViewsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePoolRuntimeViews.get( - "rgstandbypool", - "pool", - "latest", - ); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolRuntimeViewsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts deleted file mode 100644 index f0636418c0f2..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource - * - * @summary list StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePoolRuntimeViews_ListByStandbyPool.json - */ -async function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePoolRuntimeViews.listByStandbyPool( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsCreateOrUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsCreateOrUpdateSample.ts deleted file mode 100644 index 9e01b5253953..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a StandbyVirtualMachinePoolResource - * - * @summary create a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_CreateOrUpdate.json - */ -async function standbyVirtualMachinePoolsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.createOrUpdate("rgstandbypool", "pool", { - properties: { - elasticityProfile: { maxReadyCapacity: 304, minReadyCapacity: 300 }, - virtualMachineState: "Running", - attachedVirtualMachineScaleSetId: - "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss", - }, - tags: {}, - location: "West US", - }); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsDeleteSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsDeleteSample.ts deleted file mode 100644 index 13854a5b536c..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a StandbyVirtualMachinePoolResource - * - * @summary delete a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Delete.json - */ -async function standbyVirtualMachinePoolsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - await client.standbyVirtualMachinePools.delete("rgstandbypool", "pool"); -} - -async function main() { - standbyVirtualMachinePoolsDelete(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsGetSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsGetSample.ts deleted file mode 100644 index 6e711be3f83b..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyVirtualMachinePoolResource - * - * @summary get a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Get.json - */ -async function standbyVirtualMachinePoolsGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.get("rgstandbypool", "pool"); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListByResourceGroupSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListByResourceGroupSample.ts deleted file mode 100644 index 0d33c9646b67..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolResource resources by resource group - * - * @summary list StandbyVirtualMachinePoolResource resources by resource group - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListByResourceGroup.json - */ -async function standbyVirtualMachinePoolsListByResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePools.listByResourceGroup("rgstandbypool")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolsListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListBySubscriptionSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListBySubscriptionSample.ts deleted file mode 100644 index 95e2eb31d0f1..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachinePoolResource resources by subscription ID - * - * @summary list StandbyVirtualMachinePoolResource resources by subscription ID - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_ListBySubscription.json - */ -async function standbyVirtualMachinePoolsListBySubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachinePools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinePoolsListBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsUpdateSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsUpdateSample.ts deleted file mode 100644 index 2651641d2f1f..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinePoolsUpdateSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a StandbyVirtualMachinePoolResource - * - * @summary update a StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachinePools_Update.json - */ -async function standbyVirtualMachinePoolsUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachinePools.update("rgstandbypool", "pool", { - tags: {}, - properties: { - elasticityProfile: { maxReadyCapacity: 304, minReadyCapacity: 300 }, - virtualMachineState: "Running", - attachedVirtualMachineScaleSetId: - "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss", - }, - }); - console.log(result); -} - -async function main() { - standbyVirtualMachinePoolsUpdate(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesGetSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesGetSample.ts deleted file mode 100644 index 6a6003decb48..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a StandbyVirtualMachineResource - * - * @summary get a StandbyVirtualMachineResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_Get.json - */ -async function standbyVirtualMachinesGet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const result = await client.standbyVirtualMachines.get("rgstandbypool", "pool", "virtualMachine"); - console.log(result); -} - -async function main() { - standbyVirtualMachinesGet(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts b/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts deleted file mode 100644 index d92be150cea1..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/src/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { StandbyPoolManagementClient } from "@azure/arm-standbypool"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource - * - * @summary list StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource - * x-ms-original-file: 2024-03-01/StandbyVirtualMachines_ListByStandbyVirtualMachinePoolResource.json - */ -async function standbyVirtualMachinesListByStandbyVirtualMachinePoolResource() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "00000000-0000-0000-0000-000000000009"; - const client = new StandbyPoolManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.standbyVirtualMachines.listByStandbyVirtualMachinePoolResource( - "rgstandbypool", - "pool", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - standbyVirtualMachinesListByStandbyVirtualMachinePoolResource(); -} - -main().catch(console.error); diff --git a/sdk/standbypool/arm-standbypool/samples/v1/typescript/tsconfig.json b/sdk/standbypool/arm-standbypool/samples/v1/typescript/tsconfig.json deleted file mode 100644 index 984eed535aa8..000000000000 --- a/sdk/standbypool/arm-standbypool/samples/v1/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts" - ] -} diff --git a/sdk/standbypool/arm-standbypool/src/api/index.ts b/sdk/standbypool/arm-standbypool/src/api/index.ts index 583b7b0fab0c..40188ac5eabb 100644 --- a/sdk/standbypool/arm-standbypool/src/api/index.ts +++ b/sdk/standbypool/arm-standbypool/src/api/index.ts @@ -1,9 +1,30 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +export { + OperationsListOptionalParams, + StandbyVirtualMachinePoolsGetOptionalParams, + StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, + StandbyVirtualMachinePoolsDeleteOptionalParams, + StandbyVirtualMachinePoolsUpdateOptionalParams, + StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, + StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, + StandbyVirtualMachinesGetOptionalParams, + StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams, + StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams, + StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams, + StandbyContainerGroupPoolsGetOptionalParams, + StandbyContainerGroupPoolsCreateOrUpdateOptionalParams, + StandbyContainerGroupPoolsDeleteOptionalParams, + StandbyContainerGroupPoolsUpdateOptionalParams, + StandbyContainerGroupPoolsListByResourceGroupOptionalParams, + StandbyContainerGroupPoolsListBySubscriptionOptionalParams, + StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, + StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams, +} from "./options.js"; export { createStandbyPoolManagement, - StandbyPoolContext, + StandbyPoolManagementContext, StandbyPoolManagementClientOptionalParams, } from "./standbyPoolManagementContext.js"; export { operationsList } from "./operations/index.js"; diff --git a/sdk/standbypool/arm-standbypool/src/api/operations/index.ts b/sdk/standbypool/arm-standbypool/src/api/operations/index.ts index 18aa4b660ed4..c0d6104c64b1 100644 --- a/sdk/standbypool/arm-standbypool/src/api/operations/index.ts +++ b/sdk/standbypool/arm-standbypool/src/api/operations/index.ts @@ -1,19 +1,25 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { Operation, _OperationListResult } from "../../models/models.js"; -import { StandbyPoolContext as Client } from "../index.js"; import { - StreamableMethod, - operationOptionsToRequestParameters, - PathUncheckedResponse, - createRestError, -} from "@azure-rest/core-client"; + StandbyPoolManagementContext as Client, + OperationsListOptionalParams, +} from "../index.js"; +import { + _OperationListResult, + _operationListResultDeserializer, + Operation, +} from "../../models/models.js"; import { PagedAsyncIterableIterator, buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js"; -import { OperationsListOptionalParams } from "../../models/options.js"; +import { + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; export function _operationsListSend( context: Client, @@ -32,25 +38,7 @@ export async function _operationsListDeserialize( throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - name: p["name"], - isDataAction: p["isDataAction"], - display: !p.display - ? undefined - : { - provider: p.display?.["provider"], - resource: p.display?.["resource"], - operation: p.display?.["operation"], - description: p.display?.["description"], - }, - origin: p["origin"], - actionType: p["actionType"], - }; - }), - nextLink: result.body["nextLink"], - }; + return _operationListResultDeserializer(result.body); } /** List the operations for the provider */ diff --git a/sdk/standbypool/arm-standbypool/src/models/options.ts b/sdk/standbypool/arm-standbypool/src/api/options.ts similarity index 73% rename from sdk/standbypool/arm-standbypool/src/models/options.ts rename to sdk/standbypool/arm-standbypool/src/api/options.ts index 269357aad774..0452753c87f1 100644 --- a/sdk/standbypool/arm-standbypool/src/models/options.ts +++ b/sdk/standbypool/arm-standbypool/src/api/options.ts @@ -7,22 +7,26 @@ import { OperationOptions } from "@azure-rest/core-client"; export interface OperationsListOptionalParams extends OperationOptions {} /** Optional parameters. */ -export interface StandbyVirtualMachinePoolsGetOptionalParams extends OperationOptions {} +export interface StandbyVirtualMachinePoolsGetOptionalParams + extends OperationOptions {} /** Optional parameters. */ -export interface StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams extends OperationOptions { +export interface StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams + extends OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; } /** Optional parameters. */ -export interface StandbyVirtualMachinePoolsDeleteOptionalParams extends OperationOptions { +export interface StandbyVirtualMachinePoolsDeleteOptionalParams + extends OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; } /** Optional parameters. */ -export interface StandbyVirtualMachinePoolsUpdateOptionalParams extends OperationOptions {} +export interface StandbyVirtualMachinePoolsUpdateOptionalParams + extends OperationOptions {} /** Optional parameters. */ export interface StandbyVirtualMachinePoolsListByResourceGroupOptionalParams @@ -33,36 +37,42 @@ export interface StandbyVirtualMachinePoolsListBySubscriptionOptionalParams extends OperationOptions {} /** Optional parameters. */ -export interface StandbyVirtualMachinesGetOptionalParams extends OperationOptions {} +export interface StandbyVirtualMachinesGetOptionalParams + extends OperationOptions {} /** Optional parameters. */ export interface StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams extends OperationOptions {} /** Optional parameters. */ -export interface StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams extends OperationOptions {} +export interface StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams + extends OperationOptions {} /** Optional parameters. */ export interface StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams extends OperationOptions {} /** Optional parameters. */ -export interface StandbyContainerGroupPoolsGetOptionalParams extends OperationOptions {} +export interface StandbyContainerGroupPoolsGetOptionalParams + extends OperationOptions {} /** Optional parameters. */ -export interface StandbyContainerGroupPoolsCreateOrUpdateOptionalParams extends OperationOptions { +export interface StandbyContainerGroupPoolsCreateOrUpdateOptionalParams + extends OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; } /** Optional parameters. */ -export interface StandbyContainerGroupPoolsDeleteOptionalParams extends OperationOptions { +export interface StandbyContainerGroupPoolsDeleteOptionalParams + extends OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; } /** Optional parameters. */ -export interface StandbyContainerGroupPoolsUpdateOptionalParams extends OperationOptions {} +export interface StandbyContainerGroupPoolsUpdateOptionalParams + extends OperationOptions {} /** Optional parameters. */ export interface StandbyContainerGroupPoolsListByResourceGroupOptionalParams @@ -73,7 +83,8 @@ export interface StandbyContainerGroupPoolsListBySubscriptionOptionalParams extends OperationOptions {} /** Optional parameters. */ -export interface StandbyContainerGroupPoolRuntimeViewsGetOptionalParams extends OperationOptions {} +export interface StandbyContainerGroupPoolRuntimeViewsGetOptionalParams + extends OperationOptions {} /** Optional parameters. */ export interface StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams diff --git a/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPoolRuntimeViews/index.ts b/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPoolRuntimeViews/index.ts index 055fce3dae78..965a5347de7a 100644 --- a/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPoolRuntimeViews/index.ts +++ b/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPoolRuntimeViews/index.ts @@ -1,25 +1,27 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { + StandbyPoolManagementContext as Client, + StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, + StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams, +} from "../index.js"; import { StandbyContainerGroupPoolRuntimeViewResource, + standbyContainerGroupPoolRuntimeViewResourceDeserializer, _StandbyContainerGroupPoolRuntimeViewResourceListResult, + _standbyContainerGroupPoolRuntimeViewResourceListResultDeserializer, } from "../../models/models.js"; -import { StandbyPoolContext as Client } from "../index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - PathUncheckedResponse, - createRestError, -} from "@azure-rest/core-client"; import { PagedAsyncIterableIterator, buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js"; import { - StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, - StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams, -} from "../../models/options.js"; + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; export function _standbyContainerGroupPoolRuntimeViewsGetSend( context: Client, @@ -50,39 +52,7 @@ export async function _standbyContainerGroupPoolRuntimeViewsGetDeserialize( throw createRestError(result); } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - instanceCountSummary: result.body.properties?.["instanceCountSummary"].map((p: any) => { - return { - instanceCountsByState: p["instanceCountsByState"].map((p: any) => { - return { state: p["state"], count: p["count"] }; - }), - }; - }), - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyContainerGroupPoolRuntimeViewResourceDeserializer(result.body); } /** Get a StandbyContainerGroupPoolRuntimeViewResource */ @@ -134,44 +104,9 @@ export async function _standbyContainerGroupPoolRuntimeViewsListByStandbyPoolDes throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - instanceCountSummary: p.properties?.["instanceCountSummary"].map((p: any) => { - return { - instanceCountsByState: p["instanceCountsByState"].map((p: any) => { - return { state: p["state"], count: p["count"] }; - }), - }; - }), - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _standbyContainerGroupPoolRuntimeViewResourceListResultDeserializer( + result.body, + ); } /** List StandbyContainerGroupPoolRuntimeViewResource resources by StandbyContainerGroupPoolResource */ diff --git a/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPools/index.ts b/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPools/index.ts index 3b0621773a94..b14e471b3563 100644 --- a/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPools/index.ts +++ b/sdk/standbypool/arm-standbypool/src/api/standbyContainerGroupPools/index.ts @@ -2,34 +2,35 @@ // Licensed under the MIT License. import { - standbyContainerGroupPoolResourcePropertiesSerializer, - standbyContainerGroupPoolResourceUpdatePropertiesSerializer, + StandbyPoolManagementContext as Client, + StandbyContainerGroupPoolsCreateOrUpdateOptionalParams, + StandbyContainerGroupPoolsDeleteOptionalParams, + StandbyContainerGroupPoolsGetOptionalParams, + StandbyContainerGroupPoolsListByResourceGroupOptionalParams, + StandbyContainerGroupPoolsListBySubscriptionOptionalParams, + StandbyContainerGroupPoolsUpdateOptionalParams, +} from "../index.js"; +import { StandbyContainerGroupPoolResource, + standbyContainerGroupPoolResourceSerializer, + standbyContainerGroupPoolResourceDeserializer, StandbyContainerGroupPoolResourceUpdate, + standbyContainerGroupPoolResourceUpdateSerializer, _StandbyContainerGroupPoolResourceListResult, + _standbyContainerGroupPoolResourceListResultDeserializer, } from "../../models/models.js"; -import { StandbyPoolContext as Client } from "../index.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; import { StreamableMethod, - operationOptionsToRequestParameters, PathUncheckedResponse, createRestError, + operationOptionsToRequestParameters, } from "@azure-rest/core-client"; -import { serializeRecord } from "../../helpers/serializerHelpers.js"; -import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; -import { - PagedAsyncIterableIterator, - buildPagedAsyncIterator, -} from "../../static-helpers/pagingHelpers.js"; import { PollerLike, OperationState } from "@azure/core-lro"; -import { - StandbyContainerGroupPoolsGetOptionalParams, - StandbyContainerGroupPoolsCreateOrUpdateOptionalParams, - StandbyContainerGroupPoolsDeleteOptionalParams, - StandbyContainerGroupPoolsUpdateOptionalParams, - StandbyContainerGroupPoolsListByResourceGroupOptionalParams, - StandbyContainerGroupPoolsListBySubscriptionOptionalParams, -} from "../../models/options.js"; export function _standbyContainerGroupPoolsGetSend( context: Client, @@ -56,51 +57,7 @@ export async function _standbyContainerGroupPoolsGetDeserialize( throw createRestError(result); } - return { - tags: result.body["tags"], - location: result.body["location"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - elasticityProfile: { - maxReadyCapacity: result.body.properties?.elasticityProfile["maxReadyCapacity"], - refillPolicy: result.body.properties?.elasticityProfile["refillPolicy"], - }, - containerGroupProperties: { - containerGroupProfile: { - id: result.body.properties?.containerGroupProperties.containerGroupProfile["id"], - revision: - result.body.properties?.containerGroupProperties.containerGroupProfile["revision"], - }, - subnetIds: - result.body.properties?.containerGroupProperties["subnetIds"] === undefined - ? result.body.properties?.containerGroupProperties["subnetIds"] - : result.body.properties?.containerGroupProperties["subnetIds"].map((p: any) => { - return { id: p["id"] }; - }), - }, - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyContainerGroupPoolResourceDeserializer(result.body); } /** Get a StandbyContainerGroupPoolResource */ @@ -140,13 +97,7 @@ export function _standbyContainerGroupPoolsCreateOrUpdateSend( ) .put({ ...operationOptionsToRequestParameters(options), - body: { - tags: !resource.tags ? resource.tags : (serializeRecord(resource.tags as any) as any), - location: resource["location"], - properties: !resource.properties - ? resource.properties - : standbyContainerGroupPoolResourcePropertiesSerializer(resource.properties), - }, + body: standbyContainerGroupPoolResourceSerializer(resource), }); } @@ -158,51 +109,7 @@ export async function _standbyContainerGroupPoolsCreateOrUpdateDeserialize( throw createRestError(result); } - return { - tags: result.body["tags"], - location: result.body["location"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - elasticityProfile: { - maxReadyCapacity: result.body.properties?.elasticityProfile["maxReadyCapacity"], - refillPolicy: result.body.properties?.elasticityProfile["refillPolicy"], - }, - containerGroupProperties: { - containerGroupProfile: { - id: result.body.properties?.containerGroupProperties.containerGroupProfile["id"], - revision: - result.body.properties?.containerGroupProperties.containerGroupProfile["revision"], - }, - subnetIds: - result.body.properties?.containerGroupProperties["subnetIds"] === undefined - ? result.body.properties?.containerGroupProperties["subnetIds"] - : result.body.properties?.containerGroupProperties["subnetIds"].map((p: any) => { - return { id: p["id"] }; - }), - }, - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyContainerGroupPoolResourceDeserializer(result.body); } /** Create a StandbyContainerGroupPoolResource */ @@ -322,12 +229,7 @@ export function _standbyContainerGroupPoolsUpdateSend( ) .patch({ ...operationOptionsToRequestParameters(options), - body: { - tags: !properties.tags ? properties.tags : (serializeRecord(properties.tags as any) as any), - properties: !properties.properties - ? properties.properties - : standbyContainerGroupPoolResourceUpdatePropertiesSerializer(properties.properties), - }, + body: standbyContainerGroupPoolResourceUpdateSerializer(properties), }); } @@ -339,51 +241,7 @@ export async function _standbyContainerGroupPoolsUpdateDeserialize( throw createRestError(result); } - return { - tags: result.body["tags"], - location: result.body["location"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - elasticityProfile: { - maxReadyCapacity: result.body.properties?.elasticityProfile["maxReadyCapacity"], - refillPolicy: result.body.properties?.elasticityProfile["refillPolicy"], - }, - containerGroupProperties: { - containerGroupProfile: { - id: result.body.properties?.containerGroupProperties.containerGroupProfile["id"], - revision: - result.body.properties?.containerGroupProperties.containerGroupProfile["revision"], - }, - subnetIds: - result.body.properties?.containerGroupProperties["subnetIds"] === undefined - ? result.body.properties?.containerGroupProperties["subnetIds"] - : result.body.properties?.containerGroupProperties["subnetIds"].map((p: any) => { - return { id: p["id"] }; - }), - }, - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyContainerGroupPoolResourceDeserializer(result.body); } /** Update a StandbyContainerGroupPoolResource */ @@ -433,56 +291,7 @@ export async function _standbyContainerGroupPoolsListByResourceGroupDeserialize( throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - tags: p["tags"], - location: p["location"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - elasticityProfile: { - maxReadyCapacity: p.properties?.elasticityProfile["maxReadyCapacity"], - refillPolicy: p.properties?.elasticityProfile["refillPolicy"], - }, - containerGroupProperties: { - containerGroupProfile: { - id: p.properties?.containerGroupProperties.containerGroupProfile["id"], - revision: - p.properties?.containerGroupProperties.containerGroupProfile["revision"], - }, - subnetIds: - p.properties?.containerGroupProperties["subnetIds"] === undefined - ? p.properties?.containerGroupProperties["subnetIds"] - : p.properties?.containerGroupProperties["subnetIds"].map((p: any) => { - return { id: p["id"] }; - }), - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _standbyContainerGroupPoolResourceListResultDeserializer(result.body); } /** List StandbyContainerGroupPoolResource resources by resource group */ @@ -532,56 +341,7 @@ export async function _standbyContainerGroupPoolsListBySubscriptionDeserialize( throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - tags: p["tags"], - location: p["location"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - elasticityProfile: { - maxReadyCapacity: p.properties?.elasticityProfile["maxReadyCapacity"], - refillPolicy: p.properties?.elasticityProfile["refillPolicy"], - }, - containerGroupProperties: { - containerGroupProfile: { - id: p.properties?.containerGroupProperties.containerGroupProfile["id"], - revision: - p.properties?.containerGroupProperties.containerGroupProfile["revision"], - }, - subnetIds: - p.properties?.containerGroupProperties["subnetIds"] === undefined - ? p.properties?.containerGroupProperties["subnetIds"] - : p.properties?.containerGroupProperties["subnetIds"].map((p: any) => { - return { id: p["id"] }; - }), - }, - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _standbyContainerGroupPoolResourceListResultDeserializer(result.body); } /** List StandbyContainerGroupPoolResource resources by subscription ID */ @@ -594,7 +354,12 @@ export function standbyContainerGroupPoolsListBySubscription( ): PagedAsyncIterableIterator { return buildPagedAsyncIterator( context, - () => _standbyContainerGroupPoolsListBySubscriptionSend(context, subscriptionId, options), + () => + _standbyContainerGroupPoolsListBySubscriptionSend( + context, + subscriptionId, + options, + ), _standbyContainerGroupPoolsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" }, diff --git a/sdk/standbypool/arm-standbypool/src/api/standbyPoolManagementContext.ts b/sdk/standbypool/arm-standbypool/src/api/standbyPoolManagementContext.ts index 670981eee147..7043000f70e3 100644 --- a/sdk/standbypool/arm-standbypool/src/api/standbyPoolManagementContext.ts +++ b/sdk/standbypool/arm-standbypool/src/api/standbyPoolManagementContext.ts @@ -1,26 +1,29 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { TokenCredential } from "@azure/core-auth"; -import { ClientOptions, Client, getClient } from "@azure-rest/core-client"; import { logger } from "../logger.js"; +import { KnownVersions } from "../models/models.js"; +import { Client, ClientOptions, getClient } from "@azure-rest/core-client"; +import { TokenCredential } from "@azure/core-auth"; -export interface StandbyPoolContext extends Client {} +export interface StandbyPoolManagementContext extends Client {} /** Optional parameters for the client. */ -export interface StandbyPoolManagementClientOptionalParams extends ClientOptions { +export interface StandbyPoolManagementClientOptionalParams + extends ClientOptions { /** The API version to use for this operation. */ + /** Known values of {@link KnownVersions} that the service accepts. */ apiVersion?: string; } export function createStandbyPoolManagement( credential: TokenCredential, options: StandbyPoolManagementClientOptionalParams = {}, -): StandbyPoolContext { - const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; - +): StandbyPoolManagementContext { + const endpointUrl = + options.endpoint ?? options.baseUrl ?? `https://management.azure.com`; const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentInfo = `azsdk-js-arm-standbypool/1.0.2`; + const userAgentInfo = `azsdk-js-arm-standbypool/1.0.0-beta.1`; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`; diff --git a/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePoolRuntimeViews/index.ts b/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePoolRuntimeViews/index.ts index 0e05d5a92b04..b150d0a761db 100644 --- a/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePoolRuntimeViews/index.ts +++ b/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePoolRuntimeViews/index.ts @@ -1,25 +1,27 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { + StandbyPoolManagementContext as Client, + StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams, + StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams, +} from "../index.js"; import { StandbyVirtualMachinePoolRuntimeViewResource, + standbyVirtualMachinePoolRuntimeViewResourceDeserializer, _StandbyVirtualMachinePoolRuntimeViewResourceListResult, + _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer, } from "../../models/models.js"; -import { StandbyPoolContext as Client } from "../index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - PathUncheckedResponse, - createRestError, -} from "@azure-rest/core-client"; import { PagedAsyncIterableIterator, buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js"; import { - StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams, - StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams, -} from "../../models/options.js"; + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; export function _standbyVirtualMachinePoolRuntimeViewsGetSend( context: Client, @@ -50,40 +52,7 @@ export async function _standbyVirtualMachinePoolRuntimeViewsGetDeserialize( throw createRestError(result); } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - instanceCountSummary: result.body.properties?.["instanceCountSummary"].map((p: any) => { - return { - zone: p["zone"], - instanceCountsByState: p["instanceCountsByState"].map((p: any) => { - return { state: p["state"], count: p["count"] }; - }), - }; - }), - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyVirtualMachinePoolRuntimeViewResourceDeserializer(result.body); } /** Get a StandbyVirtualMachinePoolRuntimeViewResource */ @@ -135,45 +104,9 @@ export async function _standbyVirtualMachinePoolRuntimeViewsListByStandbyPoolDes throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - instanceCountSummary: p.properties?.["instanceCountSummary"].map((p: any) => { - return { - zone: p["zone"], - instanceCountsByState: p["instanceCountsByState"].map((p: any) => { - return { state: p["state"], count: p["count"] }; - }), - }; - }), - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer( + result.body, + ); } /** List StandbyVirtualMachinePoolRuntimeViewResource resources by StandbyVirtualMachinePoolResource */ diff --git a/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePools/index.ts b/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePools/index.ts index 57ff863d266c..01944cd3a69c 100644 --- a/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePools/index.ts +++ b/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachinePools/index.ts @@ -2,34 +2,35 @@ // Licensed under the MIT License. import { - standbyVirtualMachinePoolResourcePropertiesSerializer, - standbyVirtualMachinePoolResourceUpdatePropertiesSerializer, + StandbyPoolManagementContext as Client, + StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, + StandbyVirtualMachinePoolsDeleteOptionalParams, + StandbyVirtualMachinePoolsGetOptionalParams, + StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, + StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, + StandbyVirtualMachinePoolsUpdateOptionalParams, +} from "../index.js"; +import { StandbyVirtualMachinePoolResource, + standbyVirtualMachinePoolResourceSerializer, + standbyVirtualMachinePoolResourceDeserializer, StandbyVirtualMachinePoolResourceUpdate, + standbyVirtualMachinePoolResourceUpdateSerializer, _StandbyVirtualMachinePoolResourceListResult, + _standbyVirtualMachinePoolResourceListResultDeserializer, } from "../../models/models.js"; -import { StandbyPoolContext as Client } from "../index.js"; +import { + PagedAsyncIterableIterator, + buildPagedAsyncIterator, +} from "../../static-helpers/pagingHelpers.js"; +import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; import { StreamableMethod, - operationOptionsToRequestParameters, PathUncheckedResponse, createRestError, + operationOptionsToRequestParameters, } from "@azure-rest/core-client"; -import { serializeRecord } from "../../helpers/serializerHelpers.js"; -import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; -import { - PagedAsyncIterableIterator, - buildPagedAsyncIterator, -} from "../../static-helpers/pagingHelpers.js"; import { PollerLike, OperationState } from "@azure/core-lro"; -import { - StandbyVirtualMachinePoolsGetOptionalParams, - StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, - StandbyVirtualMachinePoolsDeleteOptionalParams, - StandbyVirtualMachinePoolsUpdateOptionalParams, - StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, - StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, -} from "../../models/options.js"; export function _standbyVirtualMachinePoolsGetSend( context: Client, @@ -56,43 +57,7 @@ export async function _standbyVirtualMachinePoolsGetDeserialize( throw createRestError(result); } - return { - tags: result.body["tags"], - location: result.body["location"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - elasticityProfile: !result.body.properties?.elasticityProfile - ? undefined - : { - maxReadyCapacity: result.body.properties?.elasticityProfile?.["maxReadyCapacity"], - minReadyCapacity: result.body.properties?.elasticityProfile?.["minReadyCapacity"], - }, - virtualMachineState: result.body.properties?.["virtualMachineState"], - attachedVirtualMachineScaleSetId: - result.body.properties?.["attachedVirtualMachineScaleSetId"], - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyVirtualMachinePoolResourceDeserializer(result.body); } /** Get a StandbyVirtualMachinePoolResource */ @@ -132,13 +97,7 @@ export function _standbyVirtualMachinePoolsCreateOrUpdateSend( ) .put({ ...operationOptionsToRequestParameters(options), - body: { - tags: !resource.tags ? resource.tags : (serializeRecord(resource.tags as any) as any), - location: resource["location"], - properties: !resource.properties - ? resource.properties - : standbyVirtualMachinePoolResourcePropertiesSerializer(resource.properties), - }, + body: standbyVirtualMachinePoolResourceSerializer(resource), }); } @@ -150,43 +109,7 @@ export async function _standbyVirtualMachinePoolsCreateOrUpdateDeserialize( throw createRestError(result); } - return { - tags: result.body["tags"], - location: result.body["location"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - elasticityProfile: !result.body.properties?.elasticityProfile - ? undefined - : { - maxReadyCapacity: result.body.properties?.elasticityProfile?.["maxReadyCapacity"], - minReadyCapacity: result.body.properties?.elasticityProfile?.["minReadyCapacity"], - }, - virtualMachineState: result.body.properties?.["virtualMachineState"], - attachedVirtualMachineScaleSetId: - result.body.properties?.["attachedVirtualMachineScaleSetId"], - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyVirtualMachinePoolResourceDeserializer(result.body); } /** Create a StandbyVirtualMachinePoolResource */ @@ -306,12 +229,7 @@ export function _standbyVirtualMachinePoolsUpdateSend( ) .patch({ ...operationOptionsToRequestParameters(options), - body: { - tags: !properties.tags ? properties.tags : (serializeRecord(properties.tags as any) as any), - properties: !properties.properties - ? properties.properties - : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(properties.properties), - }, + body: standbyVirtualMachinePoolResourceUpdateSerializer(properties), }); } @@ -323,43 +241,7 @@ export async function _standbyVirtualMachinePoolsUpdateDeserialize( throw createRestError(result); } - return { - tags: result.body["tags"], - location: result.body["location"], - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - elasticityProfile: !result.body.properties?.elasticityProfile - ? undefined - : { - maxReadyCapacity: result.body.properties?.elasticityProfile?.["maxReadyCapacity"], - minReadyCapacity: result.body.properties?.elasticityProfile?.["minReadyCapacity"], - }, - virtualMachineState: result.body.properties?.["virtualMachineState"], - attachedVirtualMachineScaleSetId: - result.body.properties?.["attachedVirtualMachineScaleSetId"], - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyVirtualMachinePoolResourceDeserializer(result.body); } /** Update a StandbyVirtualMachinePoolResource */ @@ -409,47 +291,7 @@ export async function _standbyVirtualMachinePoolsListByResourceGroupDeserialize( throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - tags: p["tags"], - location: p["location"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - elasticityProfile: !p.properties?.elasticityProfile - ? undefined - : { - maxReadyCapacity: p.properties?.elasticityProfile?.["maxReadyCapacity"], - minReadyCapacity: p.properties?.elasticityProfile?.["minReadyCapacity"], - }, - virtualMachineState: p.properties?.["virtualMachineState"], - attachedVirtualMachineScaleSetId: p.properties?.["attachedVirtualMachineScaleSetId"], - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _standbyVirtualMachinePoolResourceListResultDeserializer(result.body); } /** List StandbyVirtualMachinePoolResource resources by resource group */ @@ -499,47 +341,7 @@ export async function _standbyVirtualMachinePoolsListBySubscriptionDeserialize( throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - tags: p["tags"], - location: p["location"], - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - elasticityProfile: !p.properties?.elasticityProfile - ? undefined - : { - maxReadyCapacity: p.properties?.elasticityProfile?.["maxReadyCapacity"], - minReadyCapacity: p.properties?.elasticityProfile?.["minReadyCapacity"], - }, - virtualMachineState: p.properties?.["virtualMachineState"], - attachedVirtualMachineScaleSetId: p.properties?.["attachedVirtualMachineScaleSetId"], - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _standbyVirtualMachinePoolResourceListResultDeserializer(result.body); } /** List StandbyVirtualMachinePoolResource resources by subscription ID */ @@ -552,7 +354,12 @@ export function standbyVirtualMachinePoolsListBySubscription( ): PagedAsyncIterableIterator { return buildPagedAsyncIterator( context, - () => _standbyVirtualMachinePoolsListBySubscriptionSend(context, subscriptionId, options), + () => + _standbyVirtualMachinePoolsListBySubscriptionSend( + context, + subscriptionId, + options, + ), _standbyVirtualMachinePoolsListBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" }, diff --git a/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachines/index.ts b/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachines/index.ts index 3c94a437bb30..d60925f968e0 100644 --- a/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachines/index.ts +++ b/sdk/standbypool/arm-standbypool/src/api/standbyVirtualMachines/index.ts @@ -1,25 +1,27 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +import { + StandbyPoolManagementContext as Client, + StandbyVirtualMachinesGetOptionalParams, + StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams, +} from "../index.js"; import { StandbyVirtualMachineResource, + standbyVirtualMachineResourceDeserializer, _StandbyVirtualMachineResourceListResult, + _standbyVirtualMachineResourceListResultDeserializer, } from "../../models/models.js"; -import { StandbyPoolContext as Client } from "../index.js"; -import { - StreamableMethod, - operationOptionsToRequestParameters, - PathUncheckedResponse, - createRestError, -} from "@azure-rest/core-client"; import { PagedAsyncIterableIterator, buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js"; import { - StandbyVirtualMachinesGetOptionalParams, - StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams, -} from "../../models/options.js"; + StreamableMethod, + PathUncheckedResponse, + createRestError, + operationOptionsToRequestParameters, +} from "@azure-rest/core-client"; export function _standbyVirtualMachinesGetSend( context: Client, @@ -48,33 +50,7 @@ export async function _standbyVirtualMachinesGetDeserialize( throw createRestError(result); } - return { - id: result.body["id"], - name: result.body["name"], - type: result.body["type"], - systemData: !result.body.systemData - ? undefined - : { - createdBy: result.body.systemData?.["createdBy"], - createdByType: result.body.systemData?.["createdByType"], - createdAt: - result.body.systemData?.["createdAt"] !== undefined - ? new Date(result.body.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: result.body.systemData?.["lastModifiedBy"], - lastModifiedByType: result.body.systemData?.["lastModifiedByType"], - lastModifiedAt: - result.body.systemData?.["lastModifiedAt"] !== undefined - ? new Date(result.body.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !result.body.properties - ? undefined - : { - virtualMachineResourceId: result.body.properties?.["virtualMachineResourceId"], - provisioningState: result.body.properties?.["provisioningState"], - }, - }; + return standbyVirtualMachineResourceDeserializer(result.body); } /** Get a StandbyVirtualMachineResource */ @@ -124,38 +100,7 @@ export async function _standbyVirtualMachinesListByStandbyVirtualMachinePoolReso throw createRestError(result); } - return { - value: result.body["value"].map((p: any) => { - return { - id: p["id"], - name: p["name"], - type: p["type"], - systemData: !p.systemData - ? undefined - : { - createdBy: p.systemData?.["createdBy"], - createdByType: p.systemData?.["createdByType"], - createdAt: - p.systemData?.["createdAt"] !== undefined - ? new Date(p.systemData?.["createdAt"]) - : undefined, - lastModifiedBy: p.systemData?.["lastModifiedBy"], - lastModifiedByType: p.systemData?.["lastModifiedByType"], - lastModifiedAt: - p.systemData?.["lastModifiedAt"] !== undefined - ? new Date(p.systemData?.["lastModifiedAt"]) - : undefined, - }, - properties: !p.properties - ? undefined - : { - virtualMachineResourceId: p.properties?.["virtualMachineResourceId"], - provisioningState: p.properties?.["provisioningState"], - }, - }; - }), - nextLink: result.body["nextLink"], - }; + return _standbyVirtualMachineResourceListResultDeserializer(result.body); } /** List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource */ diff --git a/sdk/standbypool/arm-standbypool/src/classic/operations/index.ts b/sdk/standbypool/arm-standbypool/src/classic/operations/index.ts index 889b03a4f5db..bc420ad17e6b 100644 --- a/sdk/standbypool/arm-standbypool/src/classic/operations/index.ts +++ b/sdk/standbypool/arm-standbypool/src/classic/operations/index.ts @@ -1,25 +1,30 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { StandbyPoolContext } from "../../api/standbyPoolManagementContext.js"; -import { Operation } from "../../models/models.js"; +import { StandbyPoolManagementContext } from "../../api/standbyPoolManagementContext.js"; import { operationsList } from "../../api/operations/index.js"; +import { Operation } from "../../models/models.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { OperationsListOptionalParams } from "../../models/options.js"; +import { OperationsListOptionalParams } from "../../api/options.js"; /** Interface representing a Operations operations. */ export interface OperationsOperations { /** List the operations for the provider */ - list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator; + list: ( + options?: OperationsListOptionalParams, + ) => PagedAsyncIterableIterator; } -export function getOperations(context: StandbyPoolContext) { +export function getOperations(context: StandbyPoolManagementContext) { return { - list: (options?: OperationsListOptionalParams) => operationsList(context, options), + list: (options?: OperationsListOptionalParams) => + operationsList(context, options), }; } -export function getOperationsOperations(context: StandbyPoolContext): OperationsOperations { +export function getOperationsOperations( + context: StandbyPoolManagementContext, +): OperationsOperations { return { ...getOperations(context), }; diff --git a/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPoolRuntimeViews/index.ts b/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPoolRuntimeViews/index.ts index 17cdf5c64985..b1655df7f901 100644 --- a/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPoolRuntimeViews/index.ts +++ b/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPoolRuntimeViews/index.ts @@ -1,17 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { StandbyPoolContext } from "../../api/standbyPoolManagementContext.js"; -import { StandbyContainerGroupPoolRuntimeViewResource } from "../../models/models.js"; +import { StandbyPoolManagementContext } from "../../api/standbyPoolManagementContext.js"; import { standbyContainerGroupPoolRuntimeViewsGet, standbyContainerGroupPoolRuntimeViewsListByStandbyPool, } from "../../api/standbyContainerGroupPoolRuntimeViews/index.js"; +import { StandbyContainerGroupPoolRuntimeViewResource } from "../../models/models.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams, -} from "../../models/options.js"; +} from "../../api/options.js"; /** Interface representing a StandbyContainerGroupPoolRuntimeViews operations. */ export interface StandbyContainerGroupPoolRuntimeViewsOperations { @@ -31,7 +31,7 @@ export interface StandbyContainerGroupPoolRuntimeViewsOperations { } export function getStandbyContainerGroupPoolRuntimeViews( - context: StandbyPoolContext, + context: StandbyPoolManagementContext, subscriptionId: string, ) { return { @@ -65,7 +65,7 @@ export function getStandbyContainerGroupPoolRuntimeViews( } export function getStandbyContainerGroupPoolRuntimeViewsOperations( - context: StandbyPoolContext, + context: StandbyPoolManagementContext, subscriptionId: string, ): StandbyContainerGroupPoolRuntimeViewsOperations { return { diff --git a/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPools/index.ts b/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPools/index.ts index 4c936caff788..40190070aaf8 100644 --- a/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPools/index.ts +++ b/sdk/standbypool/arm-standbypool/src/classic/standbyContainerGroupPools/index.ts @@ -1,11 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { StandbyPoolContext } from "../../api/standbyPoolManagementContext.js"; -import { - StandbyContainerGroupPoolResource, - StandbyContainerGroupPoolResourceUpdate, -} from "../../models/models.js"; +import { StandbyPoolManagementContext } from "../../api/standbyPoolManagementContext.js"; import { standbyContainerGroupPoolsGet, standbyContainerGroupPoolsCreateOrUpdate, @@ -14,6 +10,10 @@ import { standbyContainerGroupPoolsListByResourceGroup, standbyContainerGroupPoolsListBySubscription, } from "../../api/standbyContainerGroupPools/index.js"; +import { + StandbyContainerGroupPoolResource, + StandbyContainerGroupPoolResourceUpdate, +} from "../../models/models.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { PollerLike, OperationState } from "@azure/core-lro"; import { @@ -23,7 +23,7 @@ import { StandbyContainerGroupPoolsUpdateOptionalParams, StandbyContainerGroupPoolsListByResourceGroupOptionalParams, StandbyContainerGroupPoolsListBySubscriptionOptionalParams, -} from "../../models/options.js"; +} from "../../api/options.js"; /** Interface representing a StandbyContainerGroupPools operations. */ export interface StandbyContainerGroupPoolsOperations { @@ -67,7 +67,10 @@ export interface StandbyContainerGroupPoolsOperations { ) => PagedAsyncIterableIterator; } -export function getStandbyContainerGroupPools(context: StandbyPoolContext, subscriptionId: string) { +export function getStandbyContainerGroupPools( + context: StandbyPoolManagementContext, + subscriptionId: string, +) { return { get: ( resourceGroupName: string, @@ -131,13 +134,19 @@ export function getStandbyContainerGroupPools(context: StandbyPoolContext, subsc resourceGroupName, options, ), - listBySubscription: (options?: StandbyContainerGroupPoolsListBySubscriptionOptionalParams) => - standbyContainerGroupPoolsListBySubscription(context, subscriptionId, options), + listBySubscription: ( + options?: StandbyContainerGroupPoolsListBySubscriptionOptionalParams, + ) => + standbyContainerGroupPoolsListBySubscription( + context, + subscriptionId, + options, + ), }; } export function getStandbyContainerGroupPoolsOperations( - context: StandbyPoolContext, + context: StandbyPoolManagementContext, subscriptionId: string, ): StandbyContainerGroupPoolsOperations { return { diff --git a/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePoolRuntimeViews/index.ts b/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePoolRuntimeViews/index.ts index 53391598bc32..218fa14e9e8f 100644 --- a/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePoolRuntimeViews/index.ts +++ b/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePoolRuntimeViews/index.ts @@ -1,17 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { StandbyPoolContext } from "../../api/standbyPoolManagementContext.js"; -import { StandbyVirtualMachinePoolRuntimeViewResource } from "../../models/models.js"; +import { + StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams, + StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams, +} from "../../api/options.js"; +import { StandbyPoolManagementContext } from "../../api/standbyPoolManagementContext.js"; import { standbyVirtualMachinePoolRuntimeViewsGet, standbyVirtualMachinePoolRuntimeViewsListByStandbyPool, } from "../../api/standbyVirtualMachinePoolRuntimeViews/index.js"; +import { StandbyVirtualMachinePoolRuntimeViewResource } from "../../models/models.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { - StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams, - StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams, -} from "../../models/options.js"; /** Interface representing a StandbyVirtualMachinePoolRuntimeViews operations. */ export interface StandbyVirtualMachinePoolRuntimeViewsOperations { @@ -31,7 +31,7 @@ export interface StandbyVirtualMachinePoolRuntimeViewsOperations { } export function getStandbyVirtualMachinePoolRuntimeViews( - context: StandbyPoolContext, + context: StandbyPoolManagementContext, subscriptionId: string, ) { return { @@ -65,7 +65,7 @@ export function getStandbyVirtualMachinePoolRuntimeViews( } export function getStandbyVirtualMachinePoolRuntimeViewsOperations( - context: StandbyPoolContext, + context: StandbyPoolManagementContext, subscriptionId: string, ): StandbyVirtualMachinePoolRuntimeViewsOperations { return { diff --git a/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePools/index.ts b/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePools/index.ts index 0bc6701cd80b..8418a5e4f03e 100644 --- a/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePools/index.ts +++ b/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachinePools/index.ts @@ -1,11 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { StandbyPoolContext } from "../../api/standbyPoolManagementContext.js"; import { - StandbyVirtualMachinePoolResource, - StandbyVirtualMachinePoolResourceUpdate, -} from "../../models/models.js"; + StandbyVirtualMachinePoolsGetOptionalParams, + StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, + StandbyVirtualMachinePoolsDeleteOptionalParams, + StandbyVirtualMachinePoolsUpdateOptionalParams, + StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, + StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, +} from "../../api/options.js"; +import { StandbyPoolManagementContext } from "../../api/standbyPoolManagementContext.js"; import { standbyVirtualMachinePoolsGet, standbyVirtualMachinePoolsCreateOrUpdate, @@ -14,16 +18,12 @@ import { standbyVirtualMachinePoolsListByResourceGroup, standbyVirtualMachinePoolsListBySubscription, } from "../../api/standbyVirtualMachinePools/index.js"; +import { + StandbyVirtualMachinePoolResource, + StandbyVirtualMachinePoolResourceUpdate, +} from "../../models/models.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { PollerLike, OperationState } from "@azure/core-lro"; -import { - StandbyVirtualMachinePoolsGetOptionalParams, - StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, - StandbyVirtualMachinePoolsDeleteOptionalParams, - StandbyVirtualMachinePoolsUpdateOptionalParams, - StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, - StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, -} from "../../models/options.js"; /** Interface representing a StandbyVirtualMachinePools operations. */ export interface StandbyVirtualMachinePoolsOperations { @@ -67,7 +67,10 @@ export interface StandbyVirtualMachinePoolsOperations { ) => PagedAsyncIterableIterator; } -export function getStandbyVirtualMachinePools(context: StandbyPoolContext, subscriptionId: string) { +export function getStandbyVirtualMachinePools( + context: StandbyPoolManagementContext, + subscriptionId: string, +) { return { get: ( resourceGroupName: string, @@ -131,13 +134,19 @@ export function getStandbyVirtualMachinePools(context: StandbyPoolContext, subsc resourceGroupName, options, ), - listBySubscription: (options?: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams) => - standbyVirtualMachinePoolsListBySubscription(context, subscriptionId, options), + listBySubscription: ( + options?: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, + ) => + standbyVirtualMachinePoolsListBySubscription( + context, + subscriptionId, + options, + ), }; } export function getStandbyVirtualMachinePoolsOperations( - context: StandbyPoolContext, + context: StandbyPoolManagementContext, subscriptionId: string, ): StandbyVirtualMachinePoolsOperations { return { diff --git a/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachines/index.ts b/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachines/index.ts index de1330f065db..4960e9712e51 100644 --- a/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachines/index.ts +++ b/sdk/standbypool/arm-standbypool/src/classic/standbyVirtualMachines/index.ts @@ -1,17 +1,17 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { StandbyPoolContext } from "../../api/standbyPoolManagementContext.js"; -import { StandbyVirtualMachineResource } from "../../models/models.js"; +import { + StandbyVirtualMachinesGetOptionalParams, + StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams, +} from "../../api/options.js"; +import { StandbyPoolManagementContext } from "../../api/standbyPoolManagementContext.js"; import { standbyVirtualMachinesGet, standbyVirtualMachinesListByStandbyVirtualMachinePoolResource, } from "../../api/standbyVirtualMachines/index.js"; +import { StandbyVirtualMachineResource } from "../../models/models.js"; import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { - StandbyVirtualMachinesGetOptionalParams, - StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams, -} from "../../models/options.js"; /** Interface representing a StandbyVirtualMachines operations. */ export interface StandbyVirtualMachinesOperations { @@ -30,7 +30,10 @@ export interface StandbyVirtualMachinesOperations { ) => PagedAsyncIterableIterator; } -export function getStandbyVirtualMachines(context: StandbyPoolContext, subscriptionId: string) { +export function getStandbyVirtualMachines( + context: StandbyPoolManagementContext, + subscriptionId: string, +) { return { get: ( resourceGroupName: string, @@ -62,7 +65,7 @@ export function getStandbyVirtualMachines(context: StandbyPoolContext, subscript } export function getStandbyVirtualMachinesOperations( - context: StandbyPoolContext, + context: StandbyPoolManagementContext, subscriptionId: string, ): StandbyVirtualMachinesOperations { return { diff --git a/sdk/standbypool/arm-standbypool/src/helpers/serializerHelpers.ts b/sdk/standbypool/arm-standbypool/src/helpers/serializerHelpers.ts index 7518a16c2ee9..4baaac77c8be 100644 --- a/sdk/standbypool/arm-standbypool/src/helpers/serializerHelpers.ts +++ b/sdk/standbypool/arm-standbypool/src/helpers/serializerHelpers.ts @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -export function serializeRecord( - item: Record, -): Record; +export function serializeRecord< + T extends string | number | boolean | Date | null, + R, +>(item: Record): Record; export function serializeRecord( item: Record, serializer: (item: T) => R, @@ -32,5 +33,8 @@ export function serializeRecord( } function isSupportedRecordType(t: any) { - return ["number", "string", "boolean", "null"].includes(typeof t) || t instanceof Date; + return ( + ["number", "string", "boolean", "null"].includes(typeof t) || + t instanceof Date + ); } diff --git a/sdk/standbypool/arm-standbypool/src/index.ts b/sdk/standbypool/arm-standbypool/src/index.ts index 2b8dfd256b02..2689264ba276 100644 --- a/sdk/standbypool/arm-standbypool/src/index.ts +++ b/sdk/standbypool/arm-standbypool/src/index.ts @@ -7,23 +7,20 @@ import { PagedAsyncIterableIterator, } from "./static-helpers/pagingHelpers.js"; -export { - StandbyPoolManagementClient, - StandbyPoolManagementClientOptionalParams, -} from "./standbyPoolManagementClient.js"; +export { StandbyPoolManagementClient } from "./standbyPoolManagementClient.js"; export { restorePoller, RestorePollerOptions } from "./restorePollerHelpers.js"; export { - Resource, - SystemData, - KnownCreatedByType, - CreatedByType, - ProxyResource, StandbyContainerGroupPoolRuntimeViewResource, StandbyContainerGroupPoolRuntimeViewResourceProperties, ContainerGroupInstanceCountSummary, PoolResourceStateCount, KnownProvisioningState, - TrackedResource, + ProvisioningState, + ProxyResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, StandbyContainerGroupPoolResource, StandbyContainerGroupPoolResourceProperties, StandbyContainerGroupPoolElasticityProfile, @@ -32,6 +29,7 @@ export { ContainerGroupProperties, ContainerGroupProfile, Subnet, + TrackedResource, StandbyContainerGroupPoolResourceUpdate, StandbyContainerGroupPoolResourceUpdateProperties, StandbyVirtualMachinePoolRuntimeViewResource, @@ -52,7 +50,9 @@ export { Origin, KnownActionType, ActionType, - ProvisioningState, + KnownVersions, +} from "./models/index.js"; +export { OperationsListOptionalParams, StandbyVirtualMachinePoolsGetOptionalParams, StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, @@ -72,7 +72,8 @@ export { StandbyContainerGroupPoolsListBySubscriptionOptionalParams, StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams, -} from "./models/index.js"; + StandbyPoolManagementClientOptionalParams, +} from "./api/index.js"; export { OperationsOperations, StandbyContainerGroupPoolRuntimeViewsOperations, diff --git a/sdk/standbypool/arm-standbypool/src/models/index.ts b/sdk/standbypool/arm-standbypool/src/models/index.ts index e00c354f81a6..84d224e36169 100644 --- a/sdk/standbypool/arm-standbypool/src/models/index.ts +++ b/sdk/standbypool/arm-standbypool/src/models/index.ts @@ -2,17 +2,17 @@ // Licensed under the MIT License. export { - Resource, - SystemData, - KnownCreatedByType, - CreatedByType, - ProxyResource, StandbyContainerGroupPoolRuntimeViewResource, StandbyContainerGroupPoolRuntimeViewResourceProperties, ContainerGroupInstanceCountSummary, PoolResourceStateCount, KnownProvisioningState, - TrackedResource, + ProvisioningState, + ProxyResource, + Resource, + SystemData, + KnownCreatedByType, + CreatedByType, StandbyContainerGroupPoolResource, StandbyContainerGroupPoolResourceProperties, StandbyContainerGroupPoolElasticityProfile, @@ -21,6 +21,7 @@ export { ContainerGroupProperties, ContainerGroupProfile, Subnet, + TrackedResource, StandbyContainerGroupPoolResourceUpdate, StandbyContainerGroupPoolResourceUpdateProperties, StandbyVirtualMachinePoolRuntimeViewResource, @@ -41,26 +42,5 @@ export { Origin, KnownActionType, ActionType, - ProvisioningState, + KnownVersions, } from "./models.js"; -export { - OperationsListOptionalParams, - StandbyVirtualMachinePoolsGetOptionalParams, - StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams, - StandbyVirtualMachinePoolsDeleteOptionalParams, - StandbyVirtualMachinePoolsUpdateOptionalParams, - StandbyVirtualMachinePoolsListByResourceGroupOptionalParams, - StandbyVirtualMachinePoolsListBySubscriptionOptionalParams, - StandbyVirtualMachinesGetOptionalParams, - StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams, - StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams, - StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams, - StandbyContainerGroupPoolsGetOptionalParams, - StandbyContainerGroupPoolsCreateOrUpdateOptionalParams, - StandbyContainerGroupPoolsDeleteOptionalParams, - StandbyContainerGroupPoolsUpdateOptionalParams, - StandbyContainerGroupPoolsListByResourceGroupOptionalParams, - StandbyContainerGroupPoolsListBySubscriptionOptionalParams, - StandbyContainerGroupPoolRuntimeViewsGetOptionalParams, - StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams, -} from "./options.js"; diff --git a/sdk/standbypool/arm-standbypool/src/models/models.ts b/sdk/standbypool/arm-standbypool/src/models/models.ts index d35602ef9362..0e31e0a12309 100644 --- a/sdk/standbypool/arm-standbypool/src/models/models.ts +++ b/sdk/standbypool/arm-standbypool/src/models/models.ts @@ -1,7 +1,136 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { serializeRecord } from "../helpers/serializerHelpers.js"; +/** Contains information about a standby container group pool as last known by the StandbyPool resource provider. */ +export interface StandbyContainerGroupPoolRuntimeViewResource + extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: StandbyContainerGroupPoolRuntimeViewResourceProperties; +} + +export function standbyContainerGroupPoolRuntimeViewResourceDeserializer( + item: any, +): StandbyContainerGroupPoolRuntimeViewResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : standbyContainerGroupPoolRuntimeViewResourcePropertiesDeserializer( + item["properties"], + ), + }; +} + +/** Contains information about a standby pool as last known by the StandbyPool resource provider. */ +export interface StandbyContainerGroupPoolRuntimeViewResourceProperties { + /** A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider. */ + readonly instanceCountSummary: ContainerGroupInstanceCountSummary[]; + /** Displays the provisioning state of the standby pool */ + readonly provisioningState?: ProvisioningState; +} + +export function standbyContainerGroupPoolRuntimeViewResourcePropertiesDeserializer( + item: any, +): StandbyContainerGroupPoolRuntimeViewResourceProperties { + return { + instanceCountSummary: containerGroupInstanceCountSummaryArrayDeserializer( + item["instanceCountSummary"], + ), + provisioningState: item["provisioningState"], + }; +} + +export function containerGroupInstanceCountSummaryArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return containerGroupInstanceCountSummaryDeserializer(item); + }); +} + +/** Displays the counts of container groups in each state, as known by the StandbyPool resource provider. */ +export interface ContainerGroupInstanceCountSummary { + /** The count of pooled resources in each state. */ + instanceCountsByState: PoolResourceStateCount[]; +} + +export function containerGroupInstanceCountSummaryDeserializer( + item: any, +): ContainerGroupInstanceCountSummary { + return { + instanceCountsByState: poolResourceStateCountArrayDeserializer( + item["instanceCountsByState"], + ), + }; +} + +export function poolResourceStateCountArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return poolResourceStateCountDeserializer(item); + }); +} + +/** Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider. */ +export interface PoolResourceStateCount { + /** The state that the pooled resources count is for. */ + state: string; + /** The count of pooled resources in the given state. */ + count: number; +} + +export function poolResourceStateCountDeserializer( + item: any, +): PoolResourceStateCount { + return { + state: item["state"], + count: item["count"], + }; +} + +/** Provisioning state */ +export enum KnownProvisioningState { + /** Resource has been created. */ + Succeeded = "Succeeded", + /** Resource creation failed. */ + Failed = "Failed", + /** Resource creation was canceled. */ + Canceled = "Canceled", + /** Resource is being deleted. */ + Deleting = "Deleting", +} + +/** + * Provisioning state \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Resource has been created. \ + * **Failed**: Resource creation failed. \ + * **Canceled**: Resource creation was canceled. \ + * **Deleting**: Resource is being deleted. + */ +export type ProvisioningState = string; + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +export function proxyResourceDeserializer(item: any): ProxyResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; +} /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { @@ -15,8 +144,19 @@ export interface Resource { readonly systemData?: SystemData; } -export function resourceSerializer(item: Resource) { - return item as any; +export function resourceSerializer(item: Resource): any { + return item; +} + +export function resourceDeserializer(item: any): Resource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + }; } /** Metadata pertaining to creation and last modification of the resource. */ @@ -35,61 +175,45 @@ export interface SystemData { lastModifiedAt?: Date; } -/** Known values of {@link CreatedByType} that the service accepts. */ +export function systemDataDeserializer(item: any): SystemData { + return { + createdBy: item["createdBy"], + createdByType: item["createdByType"], + createdAt: !item["createdAt"] + ? item["createdAt"] + : new Date(item["createdAt"]), + lastModifiedBy: item["lastModifiedBy"], + lastModifiedByType: item["lastModifiedByType"], + lastModifiedAt: !item["lastModifiedAt"] + ? item["lastModifiedAt"] + : new Date(item["lastModifiedAt"]), + }; +} + +/** The kind of entity that created the resource. */ export enum KnownCreatedByType { - /** User */ + /** The entity was created by a user. */ User = "User", - /** Application */ + /** The entity was created by an application. */ Application = "Application", - /** ManagedIdentity */ + /** The entity was created by a managed identity. */ ManagedIdentity = "ManagedIdentity", - /** Key */ + /** The entity was created by a key. */ Key = "Key", } /** * The kind of entity that created the resource. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * {@link KnowncreatedByType} can be used interchangeably with createdByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **User**: The entity was created by a user. \ + * **Application**: The entity was created by an application. \ + * **ManagedIdentity**: The entity was created by a managed identity. \ + * **Key**: The entity was created by a key. */ export type CreatedByType = string; -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** Contains information about a standby container group pool as last known by the StandbyPool resource provider. */ -export interface StandbyContainerGroupPoolRuntimeViewResource extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: StandbyContainerGroupPoolRuntimeViewResourceProperties; -} - -/** Contains information about a standby pool as last known by the StandbyPool resource provider. */ -export interface StandbyContainerGroupPoolRuntimeViewResourceProperties { - /** A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider. */ - readonly instanceCountSummary: ContainerGroupInstanceCountSummary[]; - /** Displays the provisioning state of the standby pool */ - readonly provisioningState?: ProvisioningState; -} - -/** Displays the counts of container groups in each state, as known by the StandbyPool resource provider. */ -export interface ContainerGroupInstanceCountSummary { - /** The count of pooled resources in each state. */ - instanceCountsByState: PoolResourceStateCount[]; -} - -/** Displays the counts of pooled resources in each state, as known by the StandbyPool resource provider. */ -export interface PoolResourceStateCount { - /** The state that the pooled resources count is for. */ - state: string; - /** The count of pooled resources in the given state. */ - count: number; -} - /** The response of a StandbyContainerGroupPoolRuntimeViewResource list operation. */ export interface _StandbyContainerGroupPoolRuntimeViewResourceListResult { /** The StandbyContainerGroupPoolRuntimeViewResource items on this page */ @@ -98,21 +222,25 @@ export interface _StandbyContainerGroupPoolRuntimeViewResourceListResult { nextLink?: string; } -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: Record; - /** The geo-location where the resource lives */ - location: string; -} - -export function trackedResourceSerializer(item: TrackedResource): Record { +export function _standbyContainerGroupPoolRuntimeViewResourceListResultDeserializer( + item: any, +): _StandbyContainerGroupPoolRuntimeViewResourceListResult { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), - location: item["location"], + value: standbyContainerGroupPoolRuntimeViewResourceArrayDeserializer( + item["value"], + ), + nextLink: item["nextLink"], }; } +export function standbyContainerGroupPoolRuntimeViewResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return standbyContainerGroupPoolRuntimeViewResourceDeserializer(item); + }); +} + /** A StandbyContainerGroupPoolResource. */ export interface StandbyContainerGroupPoolResource extends TrackedResource { /** The resource-specific properties for this resource. */ @@ -121,13 +249,35 @@ export interface StandbyContainerGroupPoolResource extends TrackedResource { export function standbyContainerGroupPoolResourceSerializer( item: StandbyContainerGroupPoolResource, -): Record { +): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : standbyContainerGroupPoolResourcePropertiesSerializer( + item["properties"], + ), + }; +} + +export function standbyContainerGroupPoolResourceDeserializer( + item: any, +): StandbyContainerGroupPoolResource { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), + tags: item["tags"], location: item["location"], - properties: !item.properties - ? item.properties - : standbyContainerGroupPoolResourcePropertiesSerializer(item.properties), + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : standbyContainerGroupPoolResourcePropertiesDeserializer( + item["properties"], + ), }; } @@ -143,10 +293,28 @@ export interface StandbyContainerGroupPoolResourceProperties { export function standbyContainerGroupPoolResourcePropertiesSerializer( item: StandbyContainerGroupPoolResourceProperties, -): Record { +): any { + return { + elasticityProfile: standbyContainerGroupPoolElasticityProfileSerializer( + item["elasticityProfile"], + ), + containerGroupProperties: containerGroupPropertiesSerializer( + item["containerGroupProperties"], + ), + }; +} + +export function standbyContainerGroupPoolResourcePropertiesDeserializer( + item: any, +): StandbyContainerGroupPoolResourceProperties { return { - elasticityProfile: standbyContainerGroupPoolElasticityProfileSerializer(item.elasticityProfile), - containerGroupProperties: containerGroupPropertiesSerializer(item.containerGroupProperties), + elasticityProfile: standbyContainerGroupPoolElasticityProfileDeserializer( + item["elasticityProfile"], + ), + containerGroupProperties: containerGroupPropertiesDeserializer( + item["containerGroupProperties"], + ), + provisioningState: item["provisioningState"], }; } @@ -160,17 +328,26 @@ export interface StandbyContainerGroupPoolElasticityProfile { export function standbyContainerGroupPoolElasticityProfileSerializer( item: StandbyContainerGroupPoolElasticityProfile, -): Record { +): any { + return { + maxReadyCapacity: item["maxReadyCapacity"], + refillPolicy: item["refillPolicy"], + }; +} + +export function standbyContainerGroupPoolElasticityProfileDeserializer( + item: any, +): StandbyContainerGroupPoolElasticityProfile { return { maxReadyCapacity: item["maxReadyCapacity"], refillPolicy: item["refillPolicy"], }; } -/** Known values of {@link RefillPolicy} that the service accepts. */ +/** Refill policy of standby pool */ export enum KnownRefillPolicy { - /** always */ - Always = "always", + /** A refill policy that standby pool is automatically refilled to maintain maxReadyCapacity. */ + always = "always", } /** @@ -178,7 +355,7 @@ export enum KnownRefillPolicy { * {@link KnownRefillPolicy} can be used interchangeably with RefillPolicy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **always** + * **always**: A refill policy that standby pool is automatically refilled to maintain maxReadyCapacity. */ export type RefillPolicy = string; @@ -192,11 +369,27 @@ export interface ContainerGroupProperties { export function containerGroupPropertiesSerializer( item: ContainerGroupProperties, -): Record { +): any { + return { + containerGroupProfile: containerGroupProfileSerializer( + item["containerGroupProfile"], + ), + subnetIds: !item["subnetIds"] + ? item["subnetIds"] + : subnetArraySerializer(item["subnetIds"]), + }; +} + +export function containerGroupPropertiesDeserializer( + item: any, +): ContainerGroupProperties { return { - containerGroupProfile: containerGroupProfileSerializer(item.containerGroupProfile), - subnetIds: - item["subnetIds"] === undefined ? item["subnetIds"] : item["subnetIds"].map(subnetSerializer), + containerGroupProfile: containerGroupProfileDeserializer( + item["containerGroupProfile"], + ), + subnetIds: !item["subnetIds"] + ? item["subnetIds"] + : subnetArrayDeserializer(item["subnetIds"]), }; } @@ -210,25 +403,72 @@ export interface ContainerGroupProfile { export function containerGroupProfileSerializer( item: ContainerGroupProfile, -): Record { +): any { + return { id: item["id"], revision: item["revision"] }; +} + +export function containerGroupProfileDeserializer( + item: any, +): ContainerGroupProfile { return { id: item["id"], revision: item["revision"], }; } +export function subnetArraySerializer(result: Array): any[] { + return result.map((item) => { + return subnetSerializer(item); + }); +} + +export function subnetArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return subnetDeserializer(item); + }); +} + /** Subnet of container group */ export interface Subnet { /** Specifies ARM resource id of the subnet. */ id: string; } -export function subnetSerializer(item: Subnet): Record { +export function subnetSerializer(item: Subnet): any { + return { id: item["id"] }; +} + +export function subnetDeserializer(item: any): Subnet { return { id: item["id"], }; } +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: Record; + /** The geo-location where the resource lives */ + location: string; +} + +export function trackedResourceSerializer(item: TrackedResource): any { + return { tags: item["tags"], location: item["location"] }; +} + +export function trackedResourceDeserializer(item: any): TrackedResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + tags: item["tags"], + location: item["location"], + }; +} + /** The type used for update operations of the StandbyContainerGroupPoolResource. */ export interface StandbyContainerGroupPoolResourceUpdate { /** Resource tags. */ @@ -239,12 +479,14 @@ export interface StandbyContainerGroupPoolResourceUpdate { export function standbyContainerGroupPoolResourceUpdateSerializer( item: StandbyContainerGroupPoolResourceUpdate, -): Record { +): any { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), - properties: !item.properties - ? item.properties - : standbyContainerGroupPoolResourceUpdatePropertiesSerializer(item.properties), + tags: item["tags"], + properties: !item["properties"] + ? item["properties"] + : standbyContainerGroupPoolResourceUpdatePropertiesSerializer( + item["properties"], + ), }; } @@ -258,14 +500,16 @@ export interface StandbyContainerGroupPoolResourceUpdateProperties { export function standbyContainerGroupPoolResourceUpdatePropertiesSerializer( item: StandbyContainerGroupPoolResourceUpdateProperties, -): Record { +): any { return { - elasticityProfile: !item.elasticityProfile - ? item.elasticityProfile - : standbyContainerGroupPoolElasticityProfileSerializer(item.elasticityProfile), - containerGroupProperties: !item.containerGroupProperties - ? item.containerGroupProperties - : containerGroupPropertiesSerializer(item.containerGroupProperties), + elasticityProfile: !item["elasticityProfile"] + ? item["elasticityProfile"] + : standbyContainerGroupPoolElasticityProfileSerializer( + item["elasticityProfile"], + ), + containerGroupProperties: !item["containerGroupProperties"] + ? item["containerGroupProperties"] + : containerGroupPropertiesSerializer(item["containerGroupProperties"]), }; } @@ -277,12 +521,56 @@ export interface _StandbyContainerGroupPoolResourceListResult { nextLink?: string; } +export function _standbyContainerGroupPoolResourceListResultDeserializer( + item: any, +): _StandbyContainerGroupPoolResourceListResult { + return { + value: standbyContainerGroupPoolResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function standbyContainerGroupPoolResourceArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return standbyContainerGroupPoolResourceSerializer(item); + }); +} + +export function standbyContainerGroupPoolResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return standbyContainerGroupPoolResourceDeserializer(item); + }); +} + /** Contains information about a standby virtual machine pool as last known by the StandbyPool resource provider. */ -export interface StandbyVirtualMachinePoolRuntimeViewResource extends ProxyResource { +export interface StandbyVirtualMachinePoolRuntimeViewResource + extends ProxyResource { /** The resource-specific properties for this resource. */ properties?: StandbyVirtualMachinePoolRuntimeViewResourceProperties; } +export function standbyVirtualMachinePoolRuntimeViewResourceDeserializer( + item: any, +): StandbyVirtualMachinePoolRuntimeViewResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : standbyVirtualMachinePoolRuntimeViewResourcePropertiesDeserializer( + item["properties"], + ), + }; +} + /** Contains information about a standby pool as last known by the StandbyPool resource provider. */ export interface StandbyVirtualMachinePoolRuntimeViewResourceProperties { /** @@ -296,6 +584,25 @@ export interface StandbyVirtualMachinePoolRuntimeViewResourceProperties { readonly provisioningState?: ProvisioningState; } +export function standbyVirtualMachinePoolRuntimeViewResourcePropertiesDeserializer( + item: any, +): StandbyVirtualMachinePoolRuntimeViewResourceProperties { + return { + instanceCountSummary: virtualMachineInstanceCountSummaryArrayDeserializer( + item["instanceCountSummary"], + ), + provisioningState: item["provisioningState"], + }; +} + +export function virtualMachineInstanceCountSummaryArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return virtualMachineInstanceCountSummaryDeserializer(item); + }); +} + /** * Contains the counts of VMs in each power state in a given zone, fault domain, as known by the StandbyPool resource provider. * Note: any updates to pool resources outside of StandbyPoolRP (i.e deleting a VM through portal) are not reflected here. @@ -308,6 +615,17 @@ export interface VirtualMachineInstanceCountSummary { instanceCountsByState: PoolResourceStateCount[]; } +export function virtualMachineInstanceCountSummaryDeserializer( + item: any, +): VirtualMachineInstanceCountSummary { + return { + zone: item["zone"], + instanceCountsByState: poolResourceStateCountArrayDeserializer( + item["instanceCountsByState"], + ), + }; +} + /** The response of a StandbyVirtualMachinePoolRuntimeViewResource list operation. */ export interface _StandbyVirtualMachinePoolRuntimeViewResourceListResult { /** The StandbyVirtualMachinePoolRuntimeViewResource items on this page */ @@ -316,12 +634,47 @@ export interface _StandbyVirtualMachinePoolRuntimeViewResourceListResult { nextLink?: string; } +export function _standbyVirtualMachinePoolRuntimeViewResourceListResultDeserializer( + item: any, +): _StandbyVirtualMachinePoolRuntimeViewResourceListResult { + return { + value: standbyVirtualMachinePoolRuntimeViewResourceArrayDeserializer( + item["value"], + ), + nextLink: item["nextLink"], + }; +} + +export function standbyVirtualMachinePoolRuntimeViewResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return standbyVirtualMachinePoolRuntimeViewResourceDeserializer(item); + }); +} + /** Concrete proxy resource types can be created by aliasing this type using a specific property type. */ export interface StandbyVirtualMachineResource extends ProxyResource { /** The resource-specific properties for this resource. */ properties?: StandbyVirtualMachineResourceProperties; } +export function standbyVirtualMachineResourceDeserializer( + item: any, +): StandbyVirtualMachineResource { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : standbyVirtualMachineResourcePropertiesDeserializer(item["properties"]), + }; +} + /** Details of the StandbyVirtualMachine. */ export interface StandbyVirtualMachineResourceProperties { /** Resource id of the virtual machine. */ @@ -330,6 +683,15 @@ export interface StandbyVirtualMachineResourceProperties { readonly provisioningState?: ProvisioningState; } +export function standbyVirtualMachineResourcePropertiesDeserializer( + item: any, +): StandbyVirtualMachineResourceProperties { + return { + virtualMachineResourceId: item["virtualMachineResourceId"], + provisioningState: item["provisioningState"], + }; +} + /** The response of a StandbyVirtualMachineResource list operation. */ export interface _StandbyVirtualMachineResourceListResult { /** The StandbyVirtualMachineResource items on this page */ @@ -338,6 +700,23 @@ export interface _StandbyVirtualMachineResourceListResult { nextLink?: string; } +export function _standbyVirtualMachineResourceListResultDeserializer( + item: any, +): _StandbyVirtualMachineResourceListResult { + return { + value: standbyVirtualMachineResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function standbyVirtualMachineResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return standbyVirtualMachineResourceDeserializer(item); + }); +} + /** A StandbyVirtualMachinePoolResource. */ export interface StandbyVirtualMachinePoolResource extends TrackedResource { /** The resource-specific properties for this resource. */ @@ -346,13 +725,35 @@ export interface StandbyVirtualMachinePoolResource extends TrackedResource { export function standbyVirtualMachinePoolResourceSerializer( item: StandbyVirtualMachinePoolResource, -): Record { +): any { + return { + tags: item["tags"], + location: item["location"], + properties: !item["properties"] + ? item["properties"] + : standbyVirtualMachinePoolResourcePropertiesSerializer( + item["properties"], + ), + }; +} + +export function standbyVirtualMachinePoolResourceDeserializer( + item: any, +): StandbyVirtualMachinePoolResource { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), + tags: item["tags"], location: item["location"], - properties: !item.properties - ? item.properties - : standbyVirtualMachinePoolResourcePropertiesSerializer(item.properties), + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : standbyVirtualMachinePoolResourcePropertiesDeserializer( + item["properties"], + ), }; } @@ -370,13 +771,30 @@ export interface StandbyVirtualMachinePoolResourceProperties { export function standbyVirtualMachinePoolResourcePropertiesSerializer( item: StandbyVirtualMachinePoolResourceProperties, -): Record { +): any { + return { + elasticityProfile: !item["elasticityProfile"] + ? item["elasticityProfile"] + : standbyVirtualMachinePoolElasticityProfileSerializer( + item["elasticityProfile"], + ), + virtualMachineState: item["virtualMachineState"], + attachedVirtualMachineScaleSetId: item["attachedVirtualMachineScaleSetId"], + }; +} + +export function standbyVirtualMachinePoolResourcePropertiesDeserializer( + item: any, +): StandbyVirtualMachinePoolResourceProperties { return { - elasticityProfile: !item.elasticityProfile - ? item.elasticityProfile - : standbyVirtualMachinePoolElasticityProfileSerializer(item.elasticityProfile), + elasticityProfile: !item["elasticityProfile"] + ? item["elasticityProfile"] + : standbyVirtualMachinePoolElasticityProfileDeserializer( + item["elasticityProfile"], + ), virtualMachineState: item["virtualMachineState"], attachedVirtualMachineScaleSetId: item["attachedVirtualMachineScaleSetId"], + provisioningState: item["provisioningState"], }; } @@ -390,18 +808,27 @@ export interface StandbyVirtualMachinePoolElasticityProfile { export function standbyVirtualMachinePoolElasticityProfileSerializer( item: StandbyVirtualMachinePoolElasticityProfile, -): Record { +): any { return { maxReadyCapacity: item["maxReadyCapacity"], minReadyCapacity: item["minReadyCapacity"], }; } -/** Known values of {@link VirtualMachineState} that the service accepts. */ +export function standbyVirtualMachinePoolElasticityProfileDeserializer( + item: any, +): StandbyVirtualMachinePoolElasticityProfile { + return { + maxReadyCapacity: item["maxReadyCapacity"], + minReadyCapacity: item["minReadyCapacity"], + }; +} + +/** State of standby virtual machines */ export enum KnownVirtualMachineState { - /** Running */ + /** The virtual machine is up and running. */ Running = "Running", - /** Deallocated */ + /** The virtual machine has released the lease on the underlying hardware and is powered off. */ Deallocated = "Deallocated", } @@ -410,8 +837,8 @@ export enum KnownVirtualMachineState { * {@link KnownVirtualMachineState} can be used interchangeably with VirtualMachineState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Running** \ - * **Deallocated** + * **Running**: The virtual machine is up and running. \ + * **Deallocated**: The virtual machine has released the lease on the underlying hardware and is powered off. */ export type VirtualMachineState = string; @@ -425,12 +852,14 @@ export interface StandbyVirtualMachinePoolResourceUpdate { export function standbyVirtualMachinePoolResourceUpdateSerializer( item: StandbyVirtualMachinePoolResourceUpdate, -): Record { +): any { return { - tags: !item.tags ? item.tags : (serializeRecord(item.tags as any) as any), - properties: !item.properties - ? item.properties - : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer(item.properties), + tags: item["tags"], + properties: !item["properties"] + ? item["properties"] + : standbyVirtualMachinePoolResourceUpdatePropertiesSerializer( + item["properties"], + ), }; } @@ -446,11 +875,13 @@ export interface StandbyVirtualMachinePoolResourceUpdateProperties { export function standbyVirtualMachinePoolResourceUpdatePropertiesSerializer( item: StandbyVirtualMachinePoolResourceUpdateProperties, -): Record { +): any { return { - elasticityProfile: !item.elasticityProfile - ? item.elasticityProfile - : standbyVirtualMachinePoolElasticityProfileSerializer(item.elasticityProfile), + elasticityProfile: !item["elasticityProfile"] + ? item["elasticityProfile"] + : standbyVirtualMachinePoolElasticityProfileSerializer( + item["elasticityProfile"], + ), virtualMachineState: item["virtualMachineState"], attachedVirtualMachineScaleSetId: item["attachedVirtualMachineScaleSetId"], }; @@ -464,6 +895,31 @@ export interface _StandbyVirtualMachinePoolResourceListResult { nextLink?: string; } +export function _standbyVirtualMachinePoolResourceListResultDeserializer( + item: any, +): _StandbyVirtualMachinePoolResourceListResult { + return { + value: standbyVirtualMachinePoolResourceArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function standbyVirtualMachinePoolResourceArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return standbyVirtualMachinePoolResourceSerializer(item); + }); +} + +export function standbyVirtualMachinePoolResourceArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return standbyVirtualMachinePoolResourceDeserializer(item); + }); +} + /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ export interface _OperationListResult { /** The Operation items on this page */ @@ -472,6 +928,21 @@ export interface _OperationListResult { nextLink?: string; } +export function _operationListResultDeserializer( + item: any, +): _OperationListResult { + return { + value: operationArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function operationArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return operationDeserializer(item); + }); +} + /** Details of a REST API operation, returned from the Resource Provider Operations API */ export interface Operation { /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ @@ -479,11 +950,23 @@ export interface Operation { /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ readonly isDataAction?: boolean; /** Localized display information for this particular operation. */ - readonly display?: OperationDisplay; + display?: OperationDisplay; /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ readonly origin?: Origin; /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ - actionType?: ActionType; + readonly actionType?: ActionType; +} + +export function operationDeserializer(item: any): Operation { + return { + name: item["name"], + isDataAction: item["isDataAction"], + display: !item["display"] + ? item["display"] + : operationDisplayDeserializer(item["display"]), + origin: item["origin"], + actionType: item["actionType"], + }; } /** Localized display information for and operation. */ @@ -498,14 +981,23 @@ export interface OperationDisplay { readonly description?: string; } -/** Known values of {@link Origin} that the service accepts. */ +export function operationDisplayDeserializer(item: any): OperationDisplay { + return { + provider: item["provider"], + resource: item["resource"], + operation: item["operation"], + description: item["description"], + }; +} + +/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ export enum KnownOrigin { - /** user */ - User = "user", - /** system */ - System = "system", - /** user,system */ - UserSystem = "user,system", + /** Indicates the operation is initiated by a user. */ + user = "user", + /** Indicates the operation is initiated by a system. */ + system = "system", + /** Indicates the operation is initiated by a user or system. */ + "user,system" = "user,system", } /** @@ -513,15 +1005,15 @@ export enum KnownOrigin { * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** + * **user**: Indicates the operation is initiated by a user. \ + * **system**: Indicates the operation is initiated by a system. \ + * **user,system**: Indicates the operation is initiated by a user or system. */ export type Origin = string; -/** Known values of {@link ActionType} that the service accepts. */ +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ export enum KnownActionType { - /** Internal */ + /** Actions are for internal-only APIs. */ Internal = "Internal", } @@ -530,32 +1022,12 @@ export enum KnownActionType { * {@link KnownActionType} can be used interchangeably with ActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Internal** + * **Internal**: Actions are for internal-only APIs. */ export type ActionType = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", - /** Deleting */ - Deleting = "Deleting", +/** Supported API Versions for Microsoft.StandbyPool */ +export enum KnownVersions { + /** API Version 2024-03-01. */ + "2024-03-01" = "2024-03-01", } - -/** - * The provisioning state of a resource type. \ - * {@link KnownProvisioningState} can be used interchangeably with ResourceProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Deleting** - */ -/** Alias for ProvisioningState */ - -export type ProvisioningState = string; diff --git a/sdk/standbypool/arm-standbypool/src/restorePollerHelpers.ts b/sdk/standbypool/arm-standbypool/src/restorePollerHelpers.ts index 4cbc14d11b8c..6c075fd7d0e1 100644 --- a/sdk/standbypool/arm-standbypool/src/restorePollerHelpers.ts +++ b/sdk/standbypool/arm-standbypool/src/restorePollerHelpers.ts @@ -11,7 +11,10 @@ import { _standbyContainerGroupPoolsDeleteDeserialize, } from "./api/standbyContainerGroupPools/index.js"; import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js"; -import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client"; +import { + OperationOptions, + PathUncheckedResponse, +} from "@azure-rest/core-client"; import { AbortSignalLike } from "@azure/abort-controller"; import { PollerLike, @@ -42,7 +45,9 @@ export interface RestorePollerOptions< export function restorePoller( client: StandbyPoolManagementClient, serializedState: string, - sourceOperation: (...args: any[]) => PollerLike, TResult>, + sourceOperation: ( + ...args: any[] + ) => PollerLike, TResult>, options?: RestorePollerOptions, ): PollerLike, TResult> { const pollerConfig = deserializeState(serializedState).config; @@ -131,17 +136,24 @@ function getDeserializationHelper( // track if we have found a match to return the values found. let found = true; - for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { - if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { + for ( + let i = candidateParts.length - 1, j = pathParts.length - 1; + i >= 1 && j >= 1; + i--, j-- + ) { + if ( + candidateParts[i]?.startsWith("{") && + candidateParts[i]?.indexOf("}") !== -1 + ) { const start = candidateParts[i]!.indexOf("}") + 1, end = candidateParts[i]?.length; // If the current part of the candidate is a "template" part // Try to use the suffix of pattern to match the path // {guid} ==> $ // {guid}:export ==> :export$ - const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test( - pathParts[j] || "", - ); + const isMatched = new RegExp( + `${candidateParts[i]?.slice(start, end)}`, + ).test(pathParts[j] || ""); if (!isMatched) { found = false; diff --git a/sdk/standbypool/arm-standbypool/src/standbyPoolManagementClient.ts b/sdk/standbypool/arm-standbypool/src/standbyPoolManagementClient.ts index 4fdc5db0f672..c25d9ef76dd1 100644 --- a/sdk/standbypool/arm-standbypool/src/standbyPoolManagementClient.ts +++ b/sdk/standbypool/arm-standbypool/src/standbyPoolManagementClient.ts @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { TokenCredential } from "@azure/core-auth"; -import { Pipeline } from "@azure/core-rest-pipeline"; -import { getOperationsOperations, OperationsOperations } from "./classic/operations/index.js"; +import { + getOperationsOperations, + OperationsOperations, +} from "./classic/operations/index.js"; import { getStandbyVirtualMachinePoolsOperations, StandbyVirtualMachinePoolsOperations, @@ -26,14 +27,16 @@ import { } from "./classic/standbyContainerGroupPoolRuntimeViews/index.js"; import { createStandbyPoolManagement, - StandbyPoolContext, + StandbyPoolManagementContext, StandbyPoolManagementClientOptionalParams, } from "./api/index.js"; +import { Pipeline } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; export { StandbyPoolManagementClientOptionalParams } from "./api/standbyPoolManagementContext.js"; export class StandbyPoolManagementClient { - private _client: StandbyPoolContext; + private _client: StandbyPoolManagementContext; /** The pipeline used by this client to make requests */ public readonly pipeline: Pipeline; @@ -45,7 +48,7 @@ export class StandbyPoolManagementClient { const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-client` - : "azsdk-js-client"; + : `azsdk-js-client`; this._client = createStandbyPoolManagement(credential, { ...options, userAgentOptions: { userAgentPrefix }, @@ -56,19 +59,24 @@ export class StandbyPoolManagementClient { this._client, subscriptionId, ); - this.standbyVirtualMachines = getStandbyVirtualMachinesOperations(this._client, subscriptionId); - this.standbyVirtualMachinePoolRuntimeViews = getStandbyVirtualMachinePoolRuntimeViewsOperations( + this.standbyVirtualMachines = getStandbyVirtualMachinesOperations( this._client, subscriptionId, ); + this.standbyVirtualMachinePoolRuntimeViews = + getStandbyVirtualMachinePoolRuntimeViewsOperations( + this._client, + subscriptionId, + ); this.standbyContainerGroupPools = getStandbyContainerGroupPoolsOperations( this._client, subscriptionId, ); - this.standbyContainerGroupPoolRuntimeViews = getStandbyContainerGroupPoolRuntimeViewsOperations( - this._client, - subscriptionId, - ); + this.standbyContainerGroupPoolRuntimeViews = + getStandbyContainerGroupPoolRuntimeViewsOperations( + this._client, + subscriptionId, + ); } /** The operation groups for Operations */ diff --git a/sdk/standbypool/arm-standbypool/src/static-helpers/pagingHelpers.ts b/sdk/standbypool/arm-standbypool/src/static-helpers/pagingHelpers.ts index bff1376fd432..97a81e74e301 100644 --- a/sdk/standbypool/arm-standbypool/src/static-helpers/pagingHelpers.ts +++ b/sdk/standbypool/arm-standbypool/src/static-helpers/pagingHelpers.ts @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { Client, createRestError, PathUncheckedResponse } from "@azure-rest/core-client"; +import { + Client, + createRestError, + PathUncheckedResponse, +} from "@azure-rest/core-client"; import { RestError } from "@azure/core-rest-pipeline"; /** @@ -42,11 +43,17 @@ export interface PagedAsyncIterableIterator< /** * The connection to the async iterator, part of the iteration protocol */ - [Symbol.asyncIterator](): PagedAsyncIterableIterator; + [Symbol.asyncIterator](): PagedAsyncIterableIterator< + TElement, + TPage, + TPageSettings + >; /** * Return an AsyncIterableIterator that works a page at a time */ - byPage: (settings?: TPageSettings) => AsyncIterableIterator>; + byPage: ( + settings?: TPageSettings, + ) => AsyncIterableIterator>; } /** @@ -64,11 +71,15 @@ export interface PagedResult< /** * A method that returns a page of results. */ - getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; + getPage: ( + pageLink?: string, + ) => Promise<{ page: TPage; nextPageLink?: string } | undefined>; /** * a function to implement the `byPage` method on the paged async iterator. */ - byPage?: (settings?: TPageSettings) => AsyncIterableIterator>; + byPage?: ( + settings?: TPageSettings, + ) => AsyncIterableIterator>; /** * A function to extract elements from a page. @@ -141,7 +152,9 @@ function getPagedAsyncIterator< >( pagedResult: PagedResult, ): PagedAsyncIterableIterator { - const iter = getItemAsyncIterator(pagedResult); + const iter = getItemAsyncIterator( + pagedResult, + ); return { next() { return iter.next(); @@ -160,7 +173,11 @@ function getPagedAsyncIterator< }; } -async function* getItemAsyncIterator( +async function* getItemAsyncIterator< + TElement, + TPage, + TPageSettings extends PageSettings, +>( pagedResult: PagedResult, ): AsyncIterableIterator { const pages = getPageAsyncIterator(pagedResult); @@ -169,14 +186,20 @@ async function* getItemAsyncIterator( +async function* getPageAsyncIterator< + TElement, + TPage, + TPageSettings extends PageSettings, +>( pagedResult: PagedResult, options: { pageLink?: string; } = {}, ): AsyncIterableIterator> { const { pageLink } = options; - let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink); + let response = await pagedResult.getPage( + pageLink ?? pagedResult.firstPageLink, + ); if (!response) { return; } @@ -204,7 +227,11 @@ function getNextLink(body: unknown, nextLinkName?: string): string | undefined { const nextLink = (body as Record)[nextLinkName]; - if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) { + if ( + typeof nextLink !== "string" && + typeof nextLink !== "undefined" && + nextLink !== null + ) { throw new RestError( `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`, ); @@ -234,7 +261,10 @@ function getElements(body: unknown, itemName: string): T[] { /** * Checks if a request failed */ -function checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void { +function checkPagingRequest( + response: PathUncheckedResponse, + expectedStatuses: string[], +): void { if (!expectedStatuses.includes(response.status)) { throw createRestError( `Pagination failed with unexpected statusCode ${response.status}`, diff --git a/sdk/standbypool/arm-standbypool/src/static-helpers/pollingHelpers.ts b/sdk/standbypool/arm-standbypool/src/static-helpers/pollingHelpers.ts index 42df16073822..2edbf783be53 100644 --- a/sdk/standbypool/arm-standbypool/src/static-helpers/pollingHelpers.ts +++ b/sdk/standbypool/arm-standbypool/src/static-helpers/pollingHelpers.ts @@ -1,9 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - import { PollerLike, OperationState, @@ -13,7 +10,11 @@ import { OperationResponse, } from "@azure/core-lro"; -import { Client, PathUncheckedResponse, createRestError } from "@azure-rest/core-client"; +import { + Client, + PathUncheckedResponse, + createRestError, +} from "@azure-rest/core-client"; import { AbortSignalLike } from "@azure/abort-controller"; export interface GetLongRunningPollerOptions { @@ -41,7 +42,10 @@ export interface GetLongRunningPollerOptions { */ getInitialResponse?: () => PromiseLike; } -export function getLongRunningPoller( +export function getLongRunningPoller< + TResponse extends PathUncheckedResponse, + TResult = void, +>( client: Client, processResponseBody: (result: TResponse) => Promise, expectedStatuses: string[], @@ -49,14 +53,18 @@ export function getLongRunningPoller, TResult> { const { restoreFrom, getInitialResponse } = options; if (!restoreFrom && !getInitialResponse) { - throw new Error("Either restoreFrom or getInitialResponse must be specified"); + throw new Error( + "Either restoreFrom or getInitialResponse must be specified", + ); } let initialResponse: TResponse | undefined = undefined; const pollAbortController = new AbortController(); const poller: RunningOperation = { sendInitialRequest: async () => { if (!getInitialResponse) { - throw new Error("getInitialResponse is required when initializing a new poller"); + throw new Error( + "getInitialResponse is required when initializing a new poller", + ); } initialResponse = await getInitialResponse(); return getLroResponse(initialResponse, expectedStatuses); diff --git a/sdk/standbypool/arm-standbypool/test/public/sampleTest.spec.ts b/sdk/standbypool/arm-standbypool/test/public/sampleTest.spec.ts new file mode 100644 index 000000000000..d4919ac91ac5 --- /dev/null +++ b/sdk/standbypool/arm-standbypool/test/public/sampleTest.spec.ts @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { createRecorder } from "./utils/recordedClient.js"; +import { assert, beforeEach, afterEach, it, describe } from "vitest"; + +describe("My test", () => { + // let recorder: Recorder; + + beforeEach(async function () { + // recorder = await createRecorder(this); + }); + + afterEach(async function () { + // await recorder.stop(); + }); + + it("sample test", async function () { + assert.equal(1, 1); + }); +}); diff --git a/sdk/standbypool/arm-standbypool/test/public/standbypool_operations_test.spec.ts b/sdk/standbypool/arm-standbypool/test/public/standbypool_operations_test.spec.ts deleted file mode 100644 index 18df27a349b6..000000000000 --- a/sdk/standbypool/arm-standbypool/test/public/standbypool_operations_test.spec.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { env, Recorder, isPlaybackMode } from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert, beforeEach, afterEach, it, describe } from "vitest"; -import { createRecorder } from "./utils/recordedClient.js"; -import { StandbyPoolManagementClient } from "../../src/standbyPoolManagementClient.js"; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("StandbyPool test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: StandbyPoolManagementClient; - - beforeEach(async (context) => { - process.env.SystemRoot = process.env.SystemRoot || "C:\\Windows"; - recorder = await createRecorder(context); - subscriptionId = env.SUBSCRIPTION_ID || ""; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new StandbyPoolManagementClient( - credential, - subscriptionId, - recorder.configureClientOptions({}), - ); - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("operations list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}); diff --git a/sdk/standbypool/arm-standbypool/test/public/utils/recordedClient.ts b/sdk/standbypool/arm-standbypool/test/public/utils/recordedClient.ts index 527ccc9dee86..6e425fdcfdf9 100644 --- a/sdk/standbypool/arm-standbypool/test/public/utils/recordedClient.ts +++ b/sdk/standbypool/arm-standbypool/test/public/utils/recordedClient.ts @@ -1,7 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { Recorder, RecorderStartOptions, VitestTestContext } from "@azure-tools/test-recorder"; +import { + Recorder, + RecorderStartOptions, + VitestTestContext, +} from "@azure-tools/test-recorder"; const replaceableVariables: Record = { SUBSCRIPTION_ID: "azure_subscription_id", @@ -9,10 +13,6 @@ const replaceableVariables: Record = { const recorderEnvSetup: RecorderStartOptions = { envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], }; /** @@ -20,7 +20,9 @@ const recorderEnvSetup: RecorderStartOptions = { * Should be called first in the test suite to make sure environment variables are * read before they are being used. */ -export async function createRecorder(context: VitestTestContext): Promise { +export async function createRecorder( + context: VitestTestContext, +): Promise { const recorder = new Recorder(context); await recorder.start(recorderEnvSetup); return recorder; diff --git a/sdk/standbypool/arm-standbypool/tsconfig.browser.config.json b/sdk/standbypool/arm-standbypool/tsconfig.browser.config.json index 75871518e3a0..091177fcb991 100644 --- a/sdk/standbypool/arm-standbypool/tsconfig.browser.config.json +++ b/sdk/standbypool/arm-standbypool/tsconfig.browser.config.json @@ -1,3 +1,10 @@ { - "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] + "extends": "./.tshy/build.json", + "include": ["src/**/*.ts", "src/**/*.mts", "test/**/*.spec.ts"], + "exclude": ["test/**/node/**/*.ts"], + "compilerOptions": { + "outDir": "./dist-test/browser", + "rootDir": ".", + "skipLibCheck": true + } } diff --git a/sdk/standbypool/arm-standbypool/tsconfig.json b/sdk/standbypool/arm-standbypool/tsconfig.json index 273d9078a24a..72266609583d 100644 --- a/sdk/standbypool/arm-standbypool/tsconfig.json +++ b/sdk/standbypool/arm-standbypool/tsconfig.json @@ -1,7 +1,16 @@ { - "references": [ - { "path": "./tsconfig.src.json" }, - { "path": "./tsconfig.samples.json" }, - { "path": "./tsconfig.test.json" } + "extends": "../../../tsconfig", + "compilerOptions": { + "module": "NodeNext", + "moduleResolution": "NodeNext", + "rootDir": ".", + "skipLibCheck": true + }, + "include": [ + "src/**/*.ts", + "src/**/*.mts", + "src/**/*.cts", + "test/**/*.ts", + "test/**/*.ts" ] } diff --git a/sdk/standbypool/arm-standbypool/tsconfig.samples.json b/sdk/standbypool/arm-standbypool/tsconfig.samples.json deleted file mode 100644 index ad5aa5308249..000000000000 --- a/sdk/standbypool/arm-standbypool/tsconfig.samples.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../../tsconfig.samples.base.json", - "compilerOptions": { - "paths": { - "@azure/arm-standbypool": ["./dist/esm"] - } - } -} diff --git a/sdk/standbypool/arm-standbypool/tsconfig.src.json b/sdk/standbypool/arm-standbypool/tsconfig.src.json deleted file mode 100644 index bae70752dd38..000000000000 --- a/sdk/standbypool/arm-standbypool/tsconfig.src.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../../tsconfig.lib.json" -} diff --git a/sdk/standbypool/arm-standbypool/tsconfig.test.json b/sdk/standbypool/arm-standbypool/tsconfig.test.json deleted file mode 100644 index 290ca214aebc..000000000000 --- a/sdk/standbypool/arm-standbypool/tsconfig.test.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] -} diff --git a/sdk/standbypool/arm-standbypool/tsp-location.yaml b/sdk/standbypool/arm-standbypool/tsp-location.yaml index 5b2b24a1a7e6..cf91047b03b0 100644 --- a/sdk/standbypool/arm-standbypool/tsp-location.yaml +++ b/sdk/standbypool/arm-standbypool/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/standbypool/StandbyPool.Management -commit: 3519c80fe510a268f6e59a29ccac8a53fdec15b6 -repo: Azure/azure-rest-api-specs -additionalDirectories: +commit: 1521e6b108259d240d8b6b359247bbe072b41bc7 +repo: ../azure-rest-api-specs +additionalDirectories: diff --git a/sdk/standbypool/arm-standbypool/vitest.browser.config.ts b/sdk/standbypool/arm-standbypool/vitest.browser.config.ts index 93f3735b960c..da68c1d231aa 100644 --- a/sdk/standbypool/arm-standbypool/vitest.browser.config.ts +++ b/sdk/standbypool/arm-standbypool/vitest.browser.config.ts @@ -33,6 +33,6 @@ export default defineConfig({ reportsDirectory: "coverage-browser", }, testTimeout: 1200000, - hookTimeout: 1200000 + hookTimeout: 1200000, }, }); diff --git a/sdk/standbypool/arm-standbypool/vitest.config.ts b/sdk/standbypool/arm-standbypool/vitest.config.ts index 86a71911ccc2..2cf5d0e02c2e 100644 --- a/sdk/standbypool/arm-standbypool/vitest.config.ts +++ b/sdk/standbypool/arm-standbypool/vitest.config.ts @@ -1,15 +1,34 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { defineConfig, mergeConfig } from "vitest/config"; -import viteConfig from "../../../vitest.shared.config.ts"; +import { defineConfig } from "vitest/config"; +import { relativeRecordingsPath } from "@azure-tools/test-recorder"; -export default mergeConfig( - viteConfig, - defineConfig({ - test: { - testTimeout: 1200000, - hookTimeout: 1200000, +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.browser.xml", }, - }), -); + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts"], + exclude: ["test/**/browser/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + testTimeout: 1200000, + hookTimeout: 1200000, + }, +}); diff --git a/sdk/standbypool/ci.mgmt.yml b/sdk/standbypool/ci.mgmt.yml index 8f3f6c90c288..0dda7968ab42 100644 --- a/sdk/standbypool/ci.mgmt.yml +++ b/sdk/standbypool/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -13,7 +13,6 @@ trigger: include: - sdk/standbypool/arm-standbypool - sdk/standbypool/ci.mgmt.yml - pr: branches: include: @@ -27,7 +26,6 @@ pr: include: - sdk/standbypool/arm-standbypool - sdk/standbypool/ci.mgmt.yml - extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: @@ -35,4 +33,3 @@ extends: Artifacts: - name: azure-arm-standbypool safeName: azurearmstandbypool - \ No newline at end of file