From 34527798c6370efbaba7d3d2b7383a70bda36ba7 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Oct 2023 21:57:55 +0000 Subject: [PATCH] CodeGen from PR 25543 in Azure/azure-rest-api-specs Merge 933c21d59c33283e4a075aed971ad86bb80b7050 into ceffc2870986ab280d7ee7e056297ca5b449abed --- common/config/rush/pnpm-lock.yaml | 64 ++- sdk/compute/arm-compute/CHANGELOG.md | 19 +- sdk/compute/arm-compute/_meta.json | 8 +- sdk/compute/arm-compute/package.json | 40 +- .../arm-compute/review/arm-compute.api.md | 36 ++ sdk/compute/arm-compute/rollup.config.js | 122 ++++++ .../src/computeManagementClient.ts | 2 +- sdk/compute/arm-compute/src/models/index.ts | 408 ++++++++++-------- sdk/compute/arm-compute/src/models/mappers.ts | 36 ++ .../arm-compute/src/models/parameters.ts | 2 +- .../operations/virtualMachineScaleSetVMs.ts | 133 ++++++ .../src/operations/virtualMachineScaleSets.ts | 125 ++++++ .../virtualMachineScaleSetVMs.ts | 33 ++ .../virtualMachineScaleSets.ts | 29 ++ sdk/compute/arm-compute/test/sampleTest.ts | 43 ++ sdk/compute/arm-compute/tsconfig.json | 10 +- 16 files changed, 883 insertions(+), 227 deletions(-) create mode 100644 sdk/compute/arm-compute/rollup.config.js create mode 100644 sdk/compute/arm-compute/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index a9d46d020fc8..2780e4a0495b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1154,6 +1154,21 @@ packages: - supports-color dev: false + /@azure/arm-compute@21.2.0: + resolution: {integrity: sha512-ySwLS2rHvvWTl03t0I0gJR8zLkShV/zAxZ2dRKPbm9043d7G9IXwATrUXGOqW6sQnBOOF1STriLQS6aDB03eoA==} + engines: {node: '>=14.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.5.0 + '@azure/core-client': 1.7.3 + '@azure/core-lro': 2.5.4 + '@azure/core-paging': 1.5.0 + '@azure/core-rest-pipeline': 1.12.1 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-signaling@1.0.0-beta.20: resolution: {integrity: sha512-Vjsiv6lWiVFqTG51cKNOAwnhuUhKbb6oOsQ833NEaWl9MwlqEQtxSOMJPYsoSCjb+pnIYvbioC+hIHkKfkAxbQ==} engines: {node: '>=8.0.0'} @@ -8956,6 +8971,37 @@ packages: code-block-writer: 12.0.0 dev: false + /ts-node@10.9.1(@types/node@16.18.55)(typescript@5.0.4): + resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 16.18.55 + acorn: 8.10.0 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.0.4 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /ts-node@10.9.1(@types/node@16.18.55)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true @@ -11452,7 +11498,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-nxMEr0oGDzJrV/vEYy16myhcYQLYY7b//dbOf2bmhuWsRPg1mAfB0VXHF1O1ed+dyi/nDY7mJVQmISmb92iIfQ==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-Nbb0LCo9KAxXShxYSN99p4GTFFhG2tlJbYBiMwQ76kURegQowMINHGv5RDn/IJWvontgGVmw+wW8DOwv6JbDCA==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -11462,18 +11508,20 @@ packages: '@rollup/plugin-multi-entry': 6.0.0(rollup@2.79.1) '@rollup/plugin-node-resolve': 13.3.0(rollup@2.79.1) '@types/chai': 4.3.6 + '@types/mocha': 10.0.2 '@types/node': 16.18.55 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 + rimraf: 5.0.5 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@16.18.55)(rollup@2.79.1) - ts-node: 10.9.1(@types/node@16.18.55)(typescript@5.2.2) + ts-node: 10.9.1(@types/node@16.18.55)(typescript@5.0.4) tslib: 2.6.2 - typescript: 5.2.2 + typescript: 5.0.4 uglify-js: 3.17.4 transitivePeerDependencies: - '@swc/core' @@ -13290,10 +13338,11 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-RxrqqGABlwFfQYZRlWB8zRiAAQP7uoA+hIKXGuucEz713do3l/8ln5ypZufVk1eWGmvZaeSVX0ZYxH0fxpVpzw==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-G+fpR5DAem4OyuqpyqPXirg/UPDkfh0iCWaZfLlY07UluhUDPFc3FtYu3OwBAydSMMAfbWu2AAj+xdTvbF0Ytw==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: + '@azure/arm-compute': 21.2.0 '@microsoft/api-extractor': 7.38.0(@types/node@16.18.55) '@rollup/plugin-commonjs': 24.1.0(rollup@2.79.1) '@rollup/plugin-json': 6.0.0(rollup@2.79.1) @@ -13316,6 +13365,7 @@ packages: transitivePeerDependencies: - '@swc/core' - '@swc/wasm' + - supports-color dev: false file:projects/arm-iotcentral.tgz: @@ -19212,7 +19262,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-I2HoDbXKPMnWCzSLvBfSeRvhcEcjo5QbWjR69KuNMGEeNtuyi9ZIYdRhvDkh1jhmXF0pUFIO+gxW1fDLZNHL+w==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-N3MzxkAtHFu1M6+2m0+9fYOpGu66U9JAjLwxrkMPgj/qtovuH2m8lFizg6B4k4mnWSo19Z0kl04vF7nNS9CR6g==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -20028,7 +20078,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-HPJq35LqAc0O4ZWamZunXj5BkVfVNdv2w1RdY2uw64qwsyHfDNFl2AQ9RSGn9HxJtZopAmf93tueLSiARnjQsg==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-xYnrqVPQaBXxwvLxAX32bPmxIQyZCHNlUmtJoOMxe1ij2h7Mki4+y4OTBA7UVwgqfHWd2FzEClwuZGomo0LpwQ==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index d6efe1d1f3f3..dede3bfec724 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,5 +1,22 @@ # Release History +## 21.3.0 (2023-10-24) + +**Features** + + - Added operation VirtualMachineScaleSets.beginApproveRollingUpgrade + - Added operation VirtualMachineScaleSets.beginApproveRollingUpgradeAndWait + - Added operation VirtualMachineScaleSetVMs.beginApproveRollingUpgrade + - Added operation VirtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait + - Added Interface VirtualMachineScaleSetsApproveRollingUpgradeHeaders + - Added Interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + - Added Interface VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + - Added Interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + - Added Type Alias VirtualMachineScaleSetsApproveRollingUpgradeResponse + - Added Type Alias VirtualMachineScaleSetVMsApproveRollingUpgradeResponse + - Interface AutomaticOSUpgradePolicy has a new optional parameter osRollingUpgradeDeferral + + ## 21.2.0 (2023-08-14) **Features** @@ -515,4 +532,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 05696e9a09ca..aaf8dcc16f89 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "baac183ffa684d94f697f0fc6f480e02cfb00f3d", + "commit": "adafc9b3c9e78a64b972a8e641a968a1a45c1705", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.11", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.11" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index d8099b120b13..1e0b32a70361 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.2.0", + "version": "21.3.0", "engines": { "node": ">=16.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -29,22 +29,29 @@ "types": "./types/arm-compute.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", + "@rollup/plugin-commonjs": "^24.0.0", + "@rollup/plugin-json": "^6.0.0", + "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^2.1.2", - "typescript": "~5.2.0", + "rollup": "^2.66.1", + "rollup-plugin-sourcemaps": "^0.6.3", + "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^16.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/arm-network": "^32.2.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -65,20 +72,21 @@ "src/**/*.ts", "README.md", "LICENSE", + "rollup.config.js", "tsconfig.json", "review/*", "CHANGELOG.md", "types/*" ], "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -106,13 +114,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute" +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 5009066562c1..40ebe5d36960 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -83,6 +83,7 @@ export type ArchitectureTypes = string; export interface AutomaticOSUpgradePolicy { disableAutomaticRollback?: boolean; enableAutomaticOSUpgrade?: boolean; + osRollingUpgradeDeferral?: boolean; useRollingUpgradePolicy?: boolean; } @@ -6843,6 +6844,8 @@ export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalPara // @public export interface VirtualMachineScaleSets { + beginApproveRollingUpgrade(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams): Promise, VirtualMachineScaleSetsApproveRollingUpgradeResponse>>; + beginApproveRollingUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise; beginDeallocate(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams): Promise, void>>; @@ -6884,6 +6887,22 @@ export interface VirtualMachineScaleSets { listSkus(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface VirtualMachineScaleSetsApproveRollingUpgradeHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; +} + +// @public +export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = VirtualMachineScaleSetsApproveRollingUpgradeHeaders; + // @public export type VirtualMachineScaleSetScaleInRules = string; @@ -7492,6 +7511,8 @@ export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRu // @public export interface VirtualMachineScaleSetVMs { + beginApproveRollingUpgrade(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise, VirtualMachineScaleSetVMsApproveRollingUpgradeResponse>>; + beginApproveRollingUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise; beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise, void>>; beginDeallocateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise; beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise, void>>; @@ -7521,6 +7542,21 @@ export interface VirtualMachineScaleSetVMs { simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams): Promise; } +// @public +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; + // @public export interface VirtualMachineScaleSetVMsDeallocateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/compute/arm-compute/rollup.config.js b/sdk/compute/arm-compute/rollup.config.js new file mode 100644 index 000000000000..3f89d7309da5 --- /dev/null +++ b/sdk/compute/arm-compute/rollup.config.js @@ -0,0 +1,122 @@ +/* + * 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 nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +// #region Warning Handler + +/** + * A function that can determine whether a rollup warning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEval(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependency(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs(), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false +}; + +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index e1fc45dbf8c3..68bc467bcdd8 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/21.2.0`; + const packageDetails = `azsdk-js-arm-compute/21.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index dad43b7e80de..dd1d006cddad 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -207,6 +207,8 @@ export interface AutomaticOSUpgradePolicy { disableAutomaticRollback?: boolean; /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value is false. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */ useRollingUpgradePolicy?: boolean; + /** Indicates whether Auto OS Upgrade should undergo deferral. Deferred OS upgrades will send advanced notifications on a per-VM basis that an OS upgrade from rolling upgrades is incoming, via the IMDS tag 'Platform.PendingOSUpgrade'. The upgrade then defers until the upgrade is approved via an ApproveRollingUpgrade call. */ + osRollingUpgradeDeferral?: boolean; } /** Specifies the configuration parameters for automatic repairs on the virtual machine scale set. */ @@ -4701,7 +4703,7 @@ export interface ImageReference extends SubResource { } /** Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. */ -export interface DiskEncryptionSetParameters extends SubResource { } +export interface DiskEncryptionSetParameters extends SubResource {} /** The parameters of a managed disk. */ export interface ManagedDiskParameters extends SubResource { @@ -5989,7 +5991,7 @@ export interface AvailabilitySetUpdate extends UpdateResource { } /** Specifies information about the proximity placement group. */ -export interface ProximityPlacementGroupUpdate extends UpdateResource { } +export interface ProximityPlacementGroupUpdate extends UpdateResource {} /** Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. */ export interface DedicatedHostGroupUpdate extends UpdateResource { @@ -6197,7 +6199,7 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ export interface VirtualMachineScaleSetVMReimageParameters - extends VirtualMachineReimageParameters { } + extends VirtualMachineReimageParameters {} /** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */ export interface DedicatedHostInstanceViewWithName @@ -6264,7 +6266,7 @@ export interface RequestRateByIntervalInput extends LogAnalyticsInputBase { } /** Api request input for LogAnalytics getThrottledRequests Api. */ -export interface ThrottledRequestsInput extends LogAnalyticsInputBase { } +export interface ThrottledRequestsInput extends LogAnalyticsInputBase {} /** Describes the properties of a Run Command. */ export interface RunCommandDocument extends RunCommandDocumentBase { @@ -6454,7 +6456,7 @@ export interface GalleryApplicationVersionUpdate /** The publishing profile of a gallery image Version. */ export interface GalleryImageVersionPublishingProfile - extends GalleryArtifactPublishingProfileBase { } + extends GalleryArtifactPublishingProfileBase {} /** The publishing profile of a gallery image version. */ export interface GalleryApplicationVersionPublishingProfile @@ -6500,7 +6502,7 @@ export interface GalleryDiskImageSource extends GalleryArtifactVersionSource { } /** This is the OS disk image. */ -export interface GalleryOSDiskImage extends GalleryDiskImage { } +export interface GalleryOSDiskImage extends GalleryDiskImage {} /** This is the data disk image. */ export interface GalleryDataDiskImage extends GalleryDiskImage { @@ -6525,7 +6527,7 @@ export interface GalleryImageVersionSafetyProfile /** The safety profile of the Gallery Application Version. */ export interface GalleryApplicationVersionSafetyProfile - extends GalleryArtifactSafetyProfileBase { } + extends GalleryArtifactSafetyProfileBase {} /** Base information about the shared gallery resource in pir. */ export interface PirSharedGalleryResource extends PirResource { @@ -6534,7 +6536,7 @@ export interface PirSharedGalleryResource extends PirResource { } /** This is the OS disk image. */ -export interface SharedGalleryOSDiskImage extends SharedGalleryDiskImage { } +export interface SharedGalleryOSDiskImage extends SharedGalleryDiskImage {} /** This is the data disk image. */ export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { @@ -6543,7 +6545,7 @@ export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { } /** Specifies information about the Community Gallery that you want to create or update. */ -export interface CommunityGallery extends PirCommunityGalleryResource { } +export interface CommunityGallery extends PirCommunityGalleryResource {} /** Specifies information about the gallery image definition that you want to create or update. */ export interface CommunityGalleryImage extends PirCommunityGalleryResource { @@ -6614,7 +6616,7 @@ export interface VirtualMachineScaleSetReimageParameters } /** Specifies information about the Shared Gallery that you want to create or update. */ -export interface SharedGallery extends PirSharedGalleryResource { } +export interface SharedGallery extends PirSharedGalleryResource {} /** Specifies information about the gallery image definition that you want to create or update. */ export interface SharedGalleryImage extends PirSharedGalleryResource { @@ -6661,6 +6663,16 @@ export interface VirtualMachineScaleSetsReapplyHeaders { location?: string; } +/** Defines headers for VirtualMachineScaleSets_approveRollingUpgrade operation. */ +export interface VirtualMachineScaleSetsApproveRollingUpgradeHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineScaleSetVMs_approveRollingUpgrade operation. */ +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders { + location?: string; +} + /** Known values of {@link RepairAction} that the service accepts. */ export enum KnownRepairAction { /** Replace */ @@ -9324,34 +9336,34 @@ export type GalleryApplicationCustomActionParameterType = /** Optional parameters. */ export interface OperationsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type OperationsListResponse = ComputeOperationListResult; /** Optional parameters. */ -export interface UsageListOptionalParams extends coreClient.OperationOptions { } +export interface UsageListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type UsageListResponse = ListUsagesResult; /** Optional parameters. */ export interface UsageListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type UsageListNextResponse = ListUsagesResult; /** Optional parameters. */ export interface VirtualMachineSizesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListByLocationOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult; @@ -9427,35 +9439,35 @@ export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams /** Optional parameters. */ export interface VirtualMachineScaleSetsGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type VirtualMachineScaleSetsGetInstanceViewResponse = VirtualMachineScaleSetInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineScaleSetsListResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type VirtualMachineScaleSetsListAllResponse = VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ export type VirtualMachineScaleSetsListSkusResponse = VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistory operation. */ export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = VirtualMachineScaleSetListOSUpgradeHistory; @@ -9557,6 +9569,20 @@ export interface VirtualMachineScaleSetsReimageAllOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + extends coreClient.OperationOptions { + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the approveRollingUpgrade operation. */ +export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = VirtualMachineScaleSetsApproveRollingUpgradeHeaders; + /** Optional parameters. */ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams extends coreClient.OperationOptions { @@ -9571,7 +9597,7 @@ export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomai /** Optional parameters. */ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams @@ -9584,35 +9610,35 @@ export interface VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalPara /** Optional parameters. */ export interface VirtualMachineScaleSetsListByLocationNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ export type VirtualMachineScaleSetsListByLocationNextResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type VirtualMachineScaleSetsListAllNextResponse = VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkusNext operation. */ export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistoryNext operation. */ export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = VirtualMachineScaleSetListOSUpgradeHistory; @@ -9662,14 +9688,14 @@ export type VirtualMachineScaleSetExtensionsGetResponse = VirtualMachineScaleSet /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetExtensionsListNextResponse = VirtualMachineScaleSetExtensionListResult; @@ -9703,7 +9729,7 @@ export interface VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptio /** Optional parameters. */ export interface VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getLatest operation. */ export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgradeStatusInfo; @@ -9781,6 +9807,18 @@ export interface VirtualMachineScaleSetVMsReimageAllOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the approveRollingUpgrade operation. */ +export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; + /** Optional parameters. */ export interface VirtualMachineScaleSetVMsDeallocateOptionalParams extends coreClient.OperationOptions { @@ -9825,7 +9863,7 @@ export type VirtualMachineScaleSetVMsGetResponse = VirtualMachineScaleSetVM; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView; @@ -9903,7 +9941,7 @@ export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams /** Optional parameters. */ export interface VirtualMachineScaleSetVMsSimulateEvictionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachineScaleSetVMsRunCommandOptionalParams @@ -9919,7 +9957,7 @@ export type VirtualMachineScaleSetVMsRunCommandResponse = RunCommandResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult; @@ -9979,7 +10017,7 @@ export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListR /** Optional parameters. */ export interface VirtualMachinesListByLocationOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ export type VirtualMachinesListByLocationResponse = VirtualMachineListResult; @@ -10043,7 +10081,7 @@ export type VirtualMachinesGetResponse = VirtualMachine; /** Optional parameters. */ export interface VirtualMachinesInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the instanceView operation. */ export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView; @@ -10070,7 +10108,7 @@ export interface VirtualMachinesDeallocateOptionalParams /** Optional parameters. */ export interface VirtualMachinesGeneralizeOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachinesListOptionalParams @@ -10100,7 +10138,7 @@ export type VirtualMachinesListAllResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListAvailableSizesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult; @@ -10184,7 +10222,7 @@ export interface VirtualMachinesPerformMaintenanceOptionalParams /** Optional parameters. */ export interface VirtualMachinesSimulateEvictionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachinesAssessPatchesOptionalParams @@ -10224,28 +10262,28 @@ export type VirtualMachinesRunCommandResponse = RunCommandResult; /** Optional parameters. */ export interface VirtualMachinesListByLocationNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachinesListNextResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type VirtualMachinesListAllNextResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachineImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineImagesGetResponse = VirtualMachineImage; @@ -10264,35 +10302,35 @@ export type VirtualMachineImagesListResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListOffersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ export type VirtualMachineImagesListOffersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListPublishersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ export type VirtualMachineImagesListPublishersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListSkusOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ export type VirtualMachineImagesListSkusResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListByEdgeZoneOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByEdgeZone operation. */ export type VirtualMachineImagesListByEdgeZoneResponse = VmImagesInEdgeZoneListResult; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage; @@ -10313,35 +10351,35 @@ export type VirtualMachineImagesEdgeZoneListResponse = VirtualMachineImageResour /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListOffersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListPublishersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ export type VirtualMachineImagesEdgeZoneListPublishersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListSkusOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ export type VirtualMachineImagesEdgeZoneListSkusResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListTypesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listTypes operation. */ export type VirtualMachineExtensionImagesListTypesResponse = VirtualMachineExtensionImage[]; @@ -10360,25 +10398,25 @@ export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineEx /** Optional parameters. */ export interface AvailabilitySetsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet; /** Optional parameters. */ export interface AvailabilitySetsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type AvailabilitySetsUpdateResponse = AvailabilitySet; /** Optional parameters. */ export interface AvailabilitySetsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface AvailabilitySetsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AvailabilitySetsGetResponse = AvailabilitySet; @@ -10395,49 +10433,49 @@ export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResu /** Optional parameters. */ export interface AvailabilitySetsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AvailabilitySetsListResponse = AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListAvailableSizesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult; /** Optional parameters. */ export interface AvailabilitySetsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AvailabilitySetsListNextResponse = AvailabilitySetListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface ProximityPlacementGroupsGetOptionalParams @@ -10451,49 +10489,49 @@ export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsListBySubscriptionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup; /** Optional parameters. */ export interface DedicatedHostGroupsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup; /** Optional parameters. */ export interface DedicatedHostGroupsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface DedicatedHostGroupsGetOptionalParams @@ -10507,28 +10545,28 @@ export type DedicatedHostGroupsGetResponse = DedicatedHostGroup; /** Optional parameters. */ export interface DedicatedHostGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult; @@ -10578,7 +10616,7 @@ export type DedicatedHostsGetResponse = DedicatedHost; /** Optional parameters. */ export interface DedicatedHostsListByHostGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByHostGroup operation. */ export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult; @@ -10594,74 +10632,74 @@ export interface DedicatedHostsRestartOptionalParams /** Optional parameters. */ export interface DedicatedHostsListAvailableSizesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ export type DedicatedHostsListAvailableSizesResponse = DedicatedHostSizeListResult; /** Optional parameters. */ export interface DedicatedHostsListByHostGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByHostGroupNext operation. */ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult; /** Optional parameters. */ export interface SshPublicKeysListBySubscriptionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysCreateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ export type SshPublicKeysCreateResponse = SshPublicKeyResource; /** Optional parameters. */ export interface SshPublicKeysUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type SshPublicKeysUpdateResponse = SshPublicKeyResource; /** Optional parameters. */ export interface SshPublicKeysDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface SshPublicKeysGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SshPublicKeysGetResponse = SshPublicKeyResource; /** Optional parameters. */ export interface SshPublicKeysGenerateKeyPairOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the generateKeyPair operation. */ export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult; /** Optional parameters. */ export interface SshPublicKeysListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult; @@ -10710,41 +10748,41 @@ export type ImagesGetResponse = Image; /** Optional parameters. */ export interface ImagesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type ImagesListByResourceGroupResponse = ImageListResult; /** Optional parameters. */ -export interface ImagesListOptionalParams extends coreClient.OperationOptions { } +export interface ImagesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ImagesListResponse = ImageListResult; /** Optional parameters. */ export interface ImagesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type ImagesListByResourceGroupNextResponse = ImageListResult; /** Optional parameters. */ export interface ImagesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ImagesListNextResponse = ImageListResult; /** Optional parameters. */ export interface RestorePointCollectionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type RestorePointCollectionsCreateOrUpdateResponse = RestorePointCollection; /** Optional parameters. */ export interface RestorePointCollectionsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type RestorePointCollectionsUpdateResponse = RestorePointCollection; @@ -10770,28 +10808,28 @@ export type RestorePointCollectionsGetResponse = RestorePointCollection; /** Optional parameters. */ export interface RestorePointCollectionsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type RestorePointCollectionsListResponse = RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type RestorePointCollectionsListAllResponse = RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type RestorePointCollectionsListNextResponse = RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type RestorePointCollectionsListAllNextResponse = RestorePointCollectionListResult; @@ -10829,21 +10867,21 @@ export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ export interface CapacityReservationGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; /** Optional parameters. */ export interface CapacityReservationGroupsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; /** Optional parameters. */ export interface CapacityReservationGroupsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface CapacityReservationGroupsGetOptionalParams @@ -10877,14 +10915,14 @@ export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReserv /** Optional parameters. */ export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type CapacityReservationGroupsListByResourceGroupNextResponse = CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupListResult; @@ -10934,14 +10972,14 @@ export type CapacityReservationsGetResponse = CapacityReservation; /** Optional parameters. */ export interface CapacityReservationsListByCapacityReservationGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroup operation. */ export type CapacityReservationsListByCapacityReservationGroupResponse = CapacityReservationListResult; /** Optional parameters. */ export interface CapacityReservationsListByCapacityReservationGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroupNext operation. */ export type CapacityReservationsListByCapacityReservationGroupNextResponse = CapacityReservationListResult; @@ -10972,14 +11010,14 @@ export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationR /** Optional parameters. */ export interface VirtualMachineRunCommandsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineRunCommandsListResponse = RunCommandListResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineRunCommandsGetResponse = RunCommandDocument; @@ -11039,14 +11077,14 @@ export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachi /** Optional parameters. */ export interface VirtualMachineRunCommandsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByVirtualMachineNext operation. */ export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult; @@ -11106,7 +11144,7 @@ export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunC /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; @@ -11135,7 +11173,7 @@ export interface DisksUpdateOptionalParams extends coreClient.OperationOptions { export type DisksUpdateResponse = Disk; /** Optional parameters. */ -export interface DisksGetOptionalParams extends coreClient.OperationOptions { } +export interface DisksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DisksGetResponse = Disk; @@ -11150,13 +11188,13 @@ export interface DisksDeleteOptionalParams extends coreClient.OperationOptions { /** Optional parameters. */ export interface DisksListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DisksListByResourceGroupResponse = DiskList; /** Optional parameters. */ -export interface DisksListOptionalParams extends coreClient.OperationOptions { } +export interface DisksListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type DisksListResponse = DiskList; @@ -11184,14 +11222,14 @@ export interface DisksRevokeAccessOptionalParams /** Optional parameters. */ export interface DisksListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DisksListByResourceGroupNextResponse = DiskList; /** Optional parameters. */ export interface DisksListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DisksListNextResponse = DiskList; @@ -11222,7 +11260,7 @@ export type DiskAccessesUpdateResponse = DiskAccess; /** Optional parameters. */ export interface DiskAccessesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DiskAccessesGetResponse = DiskAccess; @@ -11238,21 +11276,21 @@ export interface DiskAccessesDeleteOptionalParams /** Optional parameters. */ export interface DiskAccessesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DiskAccessesListByResourceGroupResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type DiskAccessesListResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesGetPrivateLinkResourcesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getPrivateLinkResources operation. */ export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; @@ -11271,7 +11309,7 @@ export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpoi /** Optional parameters. */ export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getAPrivateEndpointConnection operation. */ export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; @@ -11287,28 +11325,28 @@ export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams /** Optional parameters. */ export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnections operation. */ export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskAccessesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DiskAccessesListByResourceGroupNextResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DiskAccessesListNextResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnectionsNext operation. */ export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; @@ -11339,7 +11377,7 @@ export type DiskEncryptionSetsUpdateResponse = DiskEncryptionSet; /** Optional parameters. */ export interface DiskEncryptionSetsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DiskEncryptionSetsGetResponse = DiskEncryptionSet; @@ -11355,56 +11393,56 @@ export interface DiskEncryptionSetsDeleteOptionalParams /** Optional parameters. */ export interface DiskEncryptionSetsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type DiskEncryptionSetsListResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListAssociatedResourcesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAssociatedResources operation. */ export type DiskEncryptionSetsListAssociatedResourcesResponse = ResourceUriList; /** Optional parameters. */ export interface DiskEncryptionSetsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DiskEncryptionSetsListNextResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAssociatedResourcesNext operation. */ export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; /** Optional parameters. */ export interface DiskRestorePointGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DiskRestorePointGetResponse = DiskRestorePoint; /** Optional parameters. */ export interface DiskRestorePointListByRestorePointOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByRestorePoint operation. */ export type DiskRestorePointListByRestorePointResponse = DiskRestorePointList; @@ -11432,7 +11470,7 @@ export interface DiskRestorePointRevokeAccessOptionalParams /** Optional parameters. */ export interface DiskRestorePointListByRestorePointNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByRestorePointNext operation. */ export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; @@ -11463,7 +11501,7 @@ export type SnapshotsUpdateResponse = Snapshot; /** Optional parameters. */ export interface SnapshotsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SnapshotsGetResponse = Snapshot; @@ -11479,14 +11517,14 @@ export interface SnapshotsDeleteOptionalParams /** Optional parameters. */ export interface SnapshotsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type SnapshotsListByResourceGroupResponse = SnapshotList; /** Optional parameters. */ export interface SnapshotsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SnapshotsListResponse = SnapshotList; @@ -11514,14 +11552,14 @@ export interface SnapshotsRevokeAccessOptionalParams /** Optional parameters. */ export interface SnapshotsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type SnapshotsListByResourceGroupNextResponse = SnapshotList; /** Optional parameters. */ export interface SnapshotsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SnapshotsListNextResponse = SnapshotList; @@ -11540,7 +11578,7 @@ export type ResourceSkusListResponse = ResourceSkusResult; /** Optional parameters. */ export interface ResourceSkusListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ResourceSkusListNextResponse = ResourceSkusResult; @@ -11592,28 +11630,28 @@ export interface GalleriesDeleteOptionalParams /** Optional parameters. */ export interface GalleriesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type GalleriesListByResourceGroupResponse = GalleryList; /** Optional parameters. */ export interface GalleriesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type GalleriesListResponse = GalleryList; /** Optional parameters. */ export interface GalleriesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type GalleriesListByResourceGroupNextResponse = GalleryList; /** Optional parameters. */ export interface GalleriesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GalleriesListNextResponse = GalleryList; @@ -11644,7 +11682,7 @@ export type GalleryImagesUpdateResponse = GalleryImage; /** Optional parameters. */ export interface GalleryImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GalleryImagesGetResponse = GalleryImage; @@ -11660,14 +11698,14 @@ export interface GalleryImagesDeleteOptionalParams /** Optional parameters. */ export interface GalleryImagesListByGalleryOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGallery operation. */ export type GalleryImagesListByGalleryResponse = GalleryImageList; /** Optional parameters. */ export interface GalleryImagesListByGalleryNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryNext operation. */ export type GalleryImagesListByGalleryNextResponse = GalleryImageList; @@ -11717,14 +11755,14 @@ export interface GalleryImageVersionsDeleteOptionalParams /** Optional parameters. */ export interface GalleryImageVersionsListByGalleryImageOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImage operation. */ export type GalleryImageVersionsListByGalleryImageResponse = GalleryImageVersionList; /** Optional parameters. */ export interface GalleryImageVersionsListByGalleryImageNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImageNext operation. */ export type GalleryImageVersionsListByGalleryImageNextResponse = GalleryImageVersionList; @@ -11755,7 +11793,7 @@ export type GalleryApplicationsUpdateResponse = GalleryApplication; /** Optional parameters. */ export interface GalleryApplicationsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GalleryApplicationsGetResponse = GalleryApplication; @@ -11771,14 +11809,14 @@ export interface GalleryApplicationsDeleteOptionalParams /** Optional parameters. */ export interface GalleryApplicationsListByGalleryOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGallery operation. */ export type GalleryApplicationsListByGalleryResponse = GalleryApplicationList; /** Optional parameters. */ export interface GalleryApplicationsListByGalleryNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryNext operation. */ export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationList; @@ -11828,14 +11866,14 @@ export interface GalleryApplicationVersionsDeleteOptionalParams /** Optional parameters. */ export interface GalleryApplicationVersionsListByGalleryApplicationOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplication operation. */ export type GalleryApplicationVersionsListByGalleryApplicationResponse = GalleryApplicationVersionList; /** Optional parameters. */ export interface GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplicationNext operation. */ export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList; @@ -11864,14 +11902,14 @@ export type SharedGalleriesListResponse = SharedGalleryList; /** Optional parameters. */ export interface SharedGalleriesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SharedGalleriesGetResponse = SharedGallery; /** Optional parameters. */ export interface SharedGalleriesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SharedGalleriesListNextResponse = SharedGalleryList; @@ -11888,14 +11926,14 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList; /** Optional parameters. */ export interface SharedGalleryImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SharedGalleryImagesGetResponse = SharedGalleryImage; /** Optional parameters. */ export interface SharedGalleryImagesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SharedGalleryImagesListNextResponse = SharedGalleryImageList; @@ -11912,63 +11950,63 @@ export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionLi /** Optional parameters. */ export interface SharedGalleryImageVersionsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SharedGalleryImageVersionsGetResponse = SharedGalleryImageVersion; /** Optional parameters. */ export interface SharedGalleryImageVersionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SharedGalleryImageVersionsListNextResponse = SharedGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleriesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CommunityGalleriesGetResponse = CommunityGallery; /** Optional parameters. */ export interface CommunityGalleryImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CommunityGalleryImagesGetResponse = CommunityGalleryImage; /** Optional parameters. */ export interface CommunityGalleryImagesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; /** Optional parameters. */ export interface CommunityGalleryImagesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CommunityGalleryImagesListNextResponse = CommunityGalleryImageList; /** Optional parameters. */ export interface CommunityGalleryImageVersionsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CommunityGalleryImageVersionsGetResponse = CommunityGalleryImageVersion; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CommunityGalleryImageVersionsListResponse = CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CommunityGalleryImageVersionsListNextResponse = CommunityGalleryImageVersionList; @@ -11994,7 +12032,7 @@ export type CloudServiceRoleInstancesGetResponse = RoleInstance; /** Optional parameters. */ export interface CloudServiceRoleInstancesGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type CloudServiceRoleInstancesGetInstanceViewResponse = RoleInstanceView; @@ -12038,7 +12076,7 @@ export interface CloudServiceRoleInstancesRebuildOptionalParams /** Optional parameters. */ export interface CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getRemoteDesktopFile operation. */ export type CloudServiceRoleInstancesGetRemoteDesktopFileResponse = { @@ -12060,28 +12098,28 @@ export type CloudServiceRoleInstancesGetRemoteDesktopFileResponse = { /** Optional parameters. */ export interface CloudServiceRoleInstancesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CloudServiceRoleInstancesListNextResponse = RoleInstanceListResult; /** Optional parameters. */ export interface CloudServiceRolesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CloudServiceRolesGetResponse = CloudServiceRole; /** Optional parameters. */ export interface CloudServiceRolesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CloudServiceRolesListResponse = CloudServiceRoleListResult; /** Optional parameters. */ export interface CloudServiceRolesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CloudServiceRolesListNextResponse = CloudServiceRoleListResult; @@ -12125,28 +12163,28 @@ export interface CloudServicesDeleteOptionalParams /** Optional parameters. */ export interface CloudServicesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CloudServicesGetResponse = CloudService; /** Optional parameters. */ export interface CloudServicesGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type CloudServicesGetInstanceViewResponse = CloudServiceInstanceView; /** Optional parameters. */ export interface CloudServicesListAllOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type CloudServicesListAllResponse = CloudServiceListResult; /** Optional parameters. */ export interface CloudServicesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CloudServicesListResponse = CloudServiceListResult; @@ -12215,14 +12253,14 @@ export interface CloudServicesDeleteInstancesOptionalParams /** Optional parameters. */ export interface CloudServicesListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type CloudServicesListAllNextResponse = CloudServiceListResult; /** Optional parameters. */ export interface CloudServicesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CloudServicesListNextResponse = CloudServiceListResult; @@ -12240,63 +12278,63 @@ export interface CloudServicesUpdateDomainWalkUpdateDomainOptionalParams /** Optional parameters. */ export interface CloudServicesUpdateDomainGetUpdateDomainOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getUpdateDomain operation. */ export type CloudServicesUpdateDomainGetUpdateDomainResponse = UpdateDomain; /** Optional parameters. */ export interface CloudServicesUpdateDomainListUpdateDomainsOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomains operation. */ export type CloudServicesUpdateDomainListUpdateDomainsResponse = UpdateDomainListResult; /** Optional parameters. */ export interface CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomainsNext operation. */ export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = UpdateDomainListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSVersionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSVersion operation. */ export type CloudServiceOperatingSystemsGetOSVersionResponse = OSVersion; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSVersionsOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSVersions operation. */ export type CloudServiceOperatingSystemsListOSVersionsResponse = OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSFamilyOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSFamily operation. */ export type CloudServiceOperatingSystemsGetOSFamilyResponse = OSFamily; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSFamiliesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSFamilies operation. */ export type CloudServiceOperatingSystemsListOSFamiliesResponse = OSFamilyListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSVersionsNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSVersionsNext operation. */ export type CloudServiceOperatingSystemsListOSVersionsNextResponse = OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSFamiliesNext operation. */ export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = OSFamilyListResult; diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index f9f5533ae745..442351f4a9fa 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -553,6 +553,12 @@ export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + osRollingUpgradeDeferral: { + serializedName: "osRollingUpgradeDeferral", + type: { + name: "Boolean" + } } } } @@ -17161,3 +17167,33 @@ export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = } } }; + +export const VirtualMachineScaleSetsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 912183585781..8866621d5752 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -110,7 +110,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-07-01", + defaultValue: "2023-09-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index e5bcb0c15845..10a2d99f2f9d 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -26,6 +26,8 @@ import { VirtualMachineScaleSetVMsListResponse, VirtualMachineScaleSetVMsReimageOptionalParams, VirtualMachineScaleSetVMsReimageAllOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, VirtualMachineScaleSetVMsDeallocateOptionalParams, VirtualMachineScaleSetVMsUpdateOptionalParams, VirtualMachineScaleSetVMsUpdateResponse, @@ -322,6 +324,101 @@ export class VirtualMachineScaleSetVMsImpl return poller.pollUntilDone(); } + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + async beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: approveRollingUpgradeOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + async beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise { + const poller = await this.beginApproveRollingUpgrade( + resourceGroupName, + vmScaleSetName, + instanceId, + options + ); + return poller.pollUntilDone(); + } + /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and * releases the compute resources it uses. You are not billed for the compute resources of this virtual @@ -1319,6 +1416,42 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", + httpMethod: "POST", + responses: { + 200: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + 201: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + 202: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + 204: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId + ], + headerParameters: [Parameters.accept], + serializer +}; const deallocateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index 09a163751fbe..b0d8130eda87 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -60,6 +60,8 @@ import { VirtualMachineScaleSetsUpdateInstancesOptionalParams, VirtualMachineScaleSetsReimageOptionalParams, VirtualMachineScaleSetsReimageAllOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeResponse, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, VMScaleSetConvertToSinglePlacementGroupInput, @@ -1749,6 +1751,96 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { return poller.pollUntilDone(); } + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + async beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetsApproveRollingUpgradeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: approveRollingUpgradeOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetsApproveRollingUpgradeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + async beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise { + const poller = await this.beginApproveRollingUpgrade( + resourceGroupName, + vmScaleSetName, + options + ); + return poller.pollUntilDone(); + } + /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine * scale set. @@ -2476,6 +2568,39 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + 201: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + 202: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + 204: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.vmInstanceIDs, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts index 5ddf9379316b..2fd6c4e6ffaa 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts @@ -13,6 +13,8 @@ import { VirtualMachineScaleSetVMsListOptionalParams, VirtualMachineScaleSetVMsReimageOptionalParams, VirtualMachineScaleSetVMsReimageAllOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, VirtualMachineScaleSetVMsDeallocateOptionalParams, VirtualMachineScaleSetVMsUpdateOptionalParams, VirtualMachineScaleSetVMsUpdateResponse, @@ -102,6 +104,37 @@ export interface VirtualMachineScaleSetVMs { instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams ): Promise; + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse + > + >; + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and * releases the compute resources it uses. You are not billed for the compute resources of this virtual diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts index 7fd91293bcbb..6b7366c5365b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -39,6 +39,8 @@ import { VirtualMachineScaleSetsUpdateInstancesOptionalParams, VirtualMachineScaleSetsReimageOptionalParams, VirtualMachineScaleSetsReimageAllOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeResponse, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, VMScaleSetConvertToSinglePlacementGroupInput, @@ -478,6 +480,33 @@ export interface VirtualMachineScaleSets { vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageAllOptionalParams ): Promise; + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetsApproveRollingUpgradeResponse + > + >; + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise; /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine * scale set. diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/compute/arm-compute/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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 { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index b84abc8423ab..3e6ae96443f3 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-compute": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"