From cc5a431d6b732d1dd070795ee56dd5cb079e6a94 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 28 Apr 2022 17:31:39 +0000 Subject: [PATCH] CodeGen from PR 18786 in Azure/azure-rest-api-specs Merge 6d944f51ff5119699c82a8acaa6bb647ff0799f0 into 908c4ee7d9d25717895abd2a74cfd18e179adbc6 --- common/config/rush/pnpm-lock.yaml | 48 +- sdk/compute/arm-compute/CHANGELOG.md | 21 +- sdk/compute/arm-compute/README.md | 11 - sdk/compute/arm-compute/_meta.json | 10 +- sdk/compute/arm-compute/package.json | 39 +- .../arm-compute/review/arm-compute.api.md | 17 + sdk/compute/arm-compute/rollup.config.js | 78 +- .../src/computeManagementClient.ts | 45 +- sdk/compute/arm-compute/src/models/index.ts | 1790 +++++++------ sdk/compute/arm-compute/src/models/mappers.ts | 2377 +++++++++-------- .../arm-compute/src/models/parameters.ts | 186 +- .../src/operations/capacityReservations.ts | 12 +- .../operations/cloudServiceRoleInstances.ts | 16 +- .../src/operations/cloudServices.ts | 36 +- .../operations/cloudServicesUpdateDomain.ts | 4 +- .../src/operations/communityGalleries.ts | 2 +- .../communityGalleryImageVersions.ts | 2 +- .../src/operations/communityGalleryImages.ts | 2 +- .../src/operations/dedicatedHosts.ts | 213 +- .../src/operations/diskAccesses.ts | 48 +- .../src/operations/diskEncryptionSets.ts | 32 +- .../operations/diskRestorePointOperations.ts | 18 +- .../arm-compute/src/operations/disks.ts | 40 +- .../arm-compute/src/operations/galleries.ts | 12 +- .../operations/galleryApplicationVersions.ts | 12 +- .../src/operations/galleryApplications.ts | 12 +- .../src/operations/galleryImageVersions.ts | 12 +- .../src/operations/galleryImages.ts | 12 +- .../src/operations/gallerySharingProfile.ts | 4 +- .../arm-compute/src/operations/images.ts | 12 +- .../arm-compute/src/operations/index.ts | 10 +- .../src/operations/logAnalytics.ts | 8 +- .../src/operations/resourceSkus.ts | 4 +- .../src/operations/restorePointCollections.ts | 4 +- .../src/operations/restorePoints.ts | 8 +- .../src/operations/sharedGalleries.ts | 6 +- .../operations/sharedGalleryImageVersions.ts | 6 +- .../src/operations/sharedGalleryImages.ts | 6 +- .../arm-compute/src/operations/snapshots.ts | 40 +- .../operations/virtualMachineExtensions.ts | 12 +- .../operations/virtualMachineRunCommands.ts | 12 +- .../virtualMachineScaleSetExtensions.ts | 12 +- .../virtualMachineScaleSetRollingUpgrades.ts | 12 +- .../virtualMachineScaleSetVMExtensions.ts | 12 +- .../virtualMachineScaleSetVMRunCommands.ts | 12 +- .../operations/virtualMachineScaleSetVMs.ts | 44 +- .../src/operations/virtualMachineScaleSets.ts | 56 +- .../src/operations/virtualMachines.ts | 64 +- .../operationsInterfaces/dedicatedHosts.ts | 11 +- .../src/operationsInterfaces/index.ts | 10 +- sdk/compute/arm-compute/test/sampleTest.ts | 48 + sdk/compute/arm-compute/tsconfig.json | 10 +- 52 files changed, 2752 insertions(+), 2778 deletions(-) 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 a11ad5969d67..a08082e73b1e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -648,6 +648,21 @@ packages: - encoding dev: false + /@azure/arm-compute/17.3.1: + resolution: {integrity: sha512-Yk2griZ/NiWzYCd5X6jS9dmKckp2A9f4LO57v8uQalqJNhgAZtSK8IvIYZEDQdPSinF3a1VHD4M5sfGSpl9hMw==} + engines: {node: '>=12.0.0'} + dependencies: + '@azure/abort-controller': 1.0.4 + '@azure/core-auth': 1.3.2 + '@azure/core-client': 1.5.0 + '@azure/core-lro': 2.2.4 + '@azure/core-paging': 1.2.1 + '@azure/core-rest-pipeline': 1.8.0 + tslib: 2.3.1 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/arm-msi/2.0.0: resolution: {integrity: sha512-yBprEoMQRNLyHtR/RuJh8ehQCcF6rO5049Pfped79uRd/Y8EW+pNpbW0EjqWC5lVllC1VG4B89aC5PwE3XeISA==} engines: {node: '>=12.0.0'} @@ -10011,28 +10026,27 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-U8bi5v2TKt1zbWZ/XqVC6fHPxw3m7I4trTo0ZuMCIO7K4Q3Vo7eIYIuAUIIkQFCQ8t0FP1hhatDKyhXJpgGHHg==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-CkJMDR3d+f00GcPgkTOQG1FbkqKiPDJoPakHKYohtZRQoPHP98UIcpTmJT6MG4KZm6dCrywUQQG66cL/QfKTxg==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 - '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 - '@rollup/plugin-json': 4.1.0_rollup@2.70.1 - '@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.1 - '@rollup/plugin-node-resolve': 13.2.0_rollup@2.70.1 + '@microsoft/api-extractor': 7.22.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.1 - rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.4 transitivePeerDependencies: - - '@types/node' - debug - encoding - supports-color @@ -10151,7 +10165,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-MM6SBcyllKbFydeqZTykiHih27ja4Ioj7mavWtZ4NVj7nK88flo7uelRlLlu+uUpJ3ZQLpPARq+VQ3dulZKaMA==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-ydzxfNP0RKW/IMAJIOMPMAr38GWiOKPriHKATazJlcETiAn2mfHAXrPj/5YZTe7/Cvh4anicieTseoA2LUf7Nw==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -10571,13 +10585,13 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-XDNuzgCr0FhdYtH89+GO1jX6nVV+XYLK+xEBUHTEEEGqleGxEOyrMQ1UOH/GCew95p2H7uEthsGm35KXlDB4Pg==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-b/2nLVG1BCHXMdqczl4C8sgqTEtn1zSsyxPEDS9G8aBEO8mfAtqzoTfoujkHDqBC/D5G+h0rIMs0k7otXq0smw==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 + '@microsoft/api-extractor': 7.22.1 '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 '@rollup/plugin-json': 4.1.0_rollup@2.70.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.1 @@ -11156,11 +11170,12 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-v7fc5NJVvw6eAgRd6Gs6mwRmJMq76vOLWmVJYQUE0dDEGMSj+gkztPpyJtL87Jcx9c4PUWxpVu46cmO0cPmmYA==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-X9qbjobfiBrHQb+mQaFSKe0gtsx5Xgm0PzeUAbEhQ2t4oHBzttjccxQaB/LHA6N/j5s7wyz6WPIiuCokM4ZufA==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 + '@azure/arm-compute': 17.3.1 '@azure/arm-msi': 2.0.0 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.18.11 @@ -12954,13 +12969,13 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-UxsXUDg/IyZjymFE+00igvcHk68ldF8qbSaQDTq9XQcgCJv2fhD87zXQ+oFmKKISLs0B+Bnkb94w8WkUhyQiyw==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-euabf0ZQdg1xTwrymKa0uVVt3G4fF57azoFRGeKelxTmAFWtJKRxtwLHFQXO0M7mw9lXa64fvP7UoktVwmHwMQ==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 + '@microsoft/api-extractor': 7.22.1 '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 '@rollup/plugin-json': 4.1.0_rollup@2.70.1 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.1 @@ -12977,6 +12992,7 @@ packages: transitivePeerDependencies: - '@types/node' - debug + - encoding - supports-color dev: false @@ -16048,7 +16064,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-F8uL9sreN54VAMDwAmuidpVLNr48YcrxgPoLsWTSyXQFmo9YCtNkw/FWBqsm4dmeWSfapmmjmkJmSGLBlryHwg==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-lRYBHDLzDxevbpp+U1TVaTjekck+ENk5T9pczhzuWLDkDxSmyd4VPxzZdl48uziZqRSJ/cwCd/RGtgCA+i3PpQ==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index bd6210932840..224a8825b983 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History + +## 17.4.0 (2022-04-28) + +**Features** -## 17.3.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface CopyCompletionErrorAutoGenerated + - Added Type Alias CopyCompletionError + - Type Alias DiskRestorePoint has a new parameter securityProfile + - Type Alias Snapshot has a new parameter copyCompletionError + - Added Enum KnownCopyCompletionError + - Enum KnownDiskStorageAccountTypes has a new value PremiumV2LRS + ## 17.3.1 (2022-04-06) **features** diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index 9a5b8e7c17fc..cb9f06fd0eac 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -16,8 +16,6 @@ Compute Client - [LTS versions of Node.js](https://nodejs.org/about/releases/) - Latest versions of Safari, Chrome, Edge and Firefox. -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. - ### Prerequisites - An [Azure subscription][azure_sub]. @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this ```javascript const { ComputeManagementClient } = require("@azure/arm-compute"); const { DefaultAzureCredential } = require("@azure/identity"); -// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. - const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new ComputeManagementClient(new DefaultAzureCredential(), subscriptionId); - -// For client-side applications running in the browser, use this code instead: -// const credential = new InteractiveBrowserCredential({ -// tenantId: "", -// clientId: "" -// }); -// const client = new ComputeManagementClient(credential, subscriptionId); ``` diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 289c54efcb22..6892eff19d8b 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1", - "readme": "specification\\apimanagement\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1", + "commit": "8d5a77080e819655de9c278e7abd375a0c3bd3f4", + "readme": "specification/compute/resource-manager/readme.md", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", - "use": "@autorest/typescript@6.0.0-alpha.18.20220329.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index e150a25d0f77..0628e234d398 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "17.3.2", + "version": "17.4.0", "engines": { "node": ">=12.0.0" }, @@ -28,22 +28,21 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-compute.d.ts", "devDependencies": { - "@microsoft/api-extractor": "7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-multi-entry": "^4.1.0", - "@rollup/plugin-node-resolve": "^13.1.3", + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.66.1", - "rollup-plugin-sourcemaps": "^0.6.3", + "rollup": "^1.16.3", + "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2", - "@azure/arm-network": "^26.0.0" + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", "repository": { @@ -99,21 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/computeManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "autoPublish": true +} \ 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 53ef7aaacaf7..8d5afb5452e5 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -1112,6 +1112,15 @@ export type ConfidentialVMEncryptionType = string; // @public export type ConsistencyModeTypes = string; +// @public +export type CopyCompletionError = string; + +// @public +export interface CopyCompletionErrorAutoGenerated { + errorCode: CopyCompletionError; + errorMessage: string; +} + // @public export interface CreationData { createOption: DiskCreateOption; @@ -1766,6 +1775,7 @@ export type DiskRestorePoint = ProxyOnlyResource & { completionPercent?: number; readonly replicationState?: string; readonly sourceResourceLocation?: string; + securityProfile?: DiskSecurityProfile; }; // @public @@ -2931,6 +2941,11 @@ export enum KnownConsistencyModeTypes { FileSystemConsistent = "FileSystemConsistent" } +// @public +export enum KnownCopyCompletionError { + CopySourceNotFound = "CopySourceNotFound" +} + // @public export enum KnownDataAccessAuthMode { AzureActiveDirectory = "AzureActiveDirectory", @@ -3035,6 +3050,7 @@ export enum KnownDiskState { // @public export enum KnownDiskStorageAccountTypes { PremiumLRS = "Premium_LRS", + PremiumV2LRS = "PremiumV2_LRS", PremiumZRS = "Premium_ZRS", StandardLRS = "Standard_LRS", StandardSSDLRS = "StandardSSD_LRS", @@ -5304,6 +5320,7 @@ export type Snapshot = Resource & { supportsHibernation?: boolean; publicNetworkAccess?: PublicNetworkAccess; completionPercent?: number; + copyCompletionError?: CopyCompletionErrorAutoGenerated; dataAccessAuthMode?: DataAccessAuthMode; }; diff --git a/sdk/compute/arm-compute/rollup.config.js b/sdk/compute/arm-compute/rollup.config.js index 3f89d7309da5..9be1955eb7f1 100644 --- a/sdk/compute/arm-compute/rollup.config.js +++ b/sdk/compute/arm-compute/rollup.config.js @@ -14,14 +14,62 @@ import json from "@rollup/plugin-json"; import nodeBuiltins from "builtin-modules"; +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + // #region Warning Handler /** - * A function that can determine whether a rollup warning should be ignored. If + * A function that can determine whether a rollupwarning should be ignored. If * the function returns `true`, then the warning will not be displayed. */ -function ignoreNiseSinonEval(warning) { +function ignoreNiseSinonEvalWarnings(warning) { return ( warning.code === "EVAL" && warning.id && @@ -30,14 +78,17 @@ function ignoreNiseSinonEval(warning) { ); } -function ignoreChaiCircularDependency(warning) { +function ignoreChaiCircularDependencyWarnings(warning) { return ( warning.code === "CIRCULAR_DEPENDENCY" && warning.importer && warning.importer.includes("node_modules/chai") === true ); } -const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; /** * Construct a warning handler for the shared rollup configuration @@ -71,7 +122,22 @@ function makeBrowserTestConfig() { nodeResolve({ mainFields: ["module", "browser"] }), - cjs(), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), json(), sourcemaps() //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) @@ -107,7 +173,7 @@ export function makeConfig(pkg, options) { ], output: { file: "dist/index.js", format: "cjs", sourcemap: true }, preserveSymlinks: false, - plugins: [sourcemaps(), nodeResolve()] + plugins: [sourcemaps(), nodeResolve(), cjs()] }; const config = [baseConfig]; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 9fca071827ef..77b2660a65d6 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -33,14 +33,14 @@ import { VirtualMachineScaleSetVMExtensionsImpl, VirtualMachineScaleSetVMsImpl, LogAnalyticsImpl, - VirtualMachineRunCommandsImpl, - VirtualMachineScaleSetVMRunCommandsImpl, - ResourceSkusImpl, DisksImpl, - SnapshotsImpl, - DiskEncryptionSetsImpl, DiskAccessesImpl, + DiskEncryptionSetsImpl, DiskRestorePointOperationsImpl, + SnapshotsImpl, + VirtualMachineRunCommandsImpl, + VirtualMachineScaleSetVMRunCommandsImpl, + ResourceSkusImpl, GalleriesImpl, GalleryImagesImpl, GalleryImageVersionsImpl, @@ -84,14 +84,14 @@ import { VirtualMachineScaleSetVMExtensions, VirtualMachineScaleSetVMs, LogAnalytics, - VirtualMachineRunCommands, - VirtualMachineScaleSetVMRunCommands, - ResourceSkus, Disks, - Snapshots, - DiskEncryptionSets, DiskAccesses, + DiskEncryptionSets, DiskRestorePointOperations, + Snapshots, + VirtualMachineRunCommands, + VirtualMachineScaleSetVMRunCommands, + ResourceSkus, Galleries, GalleryImages, GalleryImageVersions, @@ -144,7 +144,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/17.3.2`; + const packageDetails = `azsdk-js-arm-compute/17.4.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -159,8 +159,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix }, - baseUri: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + baseUri: options.endpoint || "https://management.azure.com" }; super(optionsWithDefaults); // Parameter assignments @@ -202,16 +201,16 @@ export class ComputeManagementClient extends coreClient.ServiceClient { ); this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this); this.logAnalytics = new LogAnalyticsImpl(this); + this.disks = new DisksImpl(this); + this.diskAccesses = new DiskAccessesImpl(this); + this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); + this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this); + this.snapshots = new SnapshotsImpl(this); this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this); this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl( this ); this.resourceSkus = new ResourceSkusImpl(this); - this.disks = new DisksImpl(this); - this.snapshots = new SnapshotsImpl(this); - this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); - this.diskAccesses = new DiskAccessesImpl(this); - this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this); this.galleries = new GalleriesImpl(this); this.galleryImages = new GalleryImagesImpl(this); this.galleryImageVersions = new GalleryImageVersionsImpl(this); @@ -259,14 +258,14 @@ export class ComputeManagementClient extends coreClient.ServiceClient { virtualMachineScaleSetVMExtensions: VirtualMachineScaleSetVMExtensions; virtualMachineScaleSetVMs: VirtualMachineScaleSetVMs; logAnalytics: LogAnalytics; - virtualMachineRunCommands: VirtualMachineRunCommands; - virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands; - resourceSkus: ResourceSkus; disks: Disks; - snapshots: Snapshots; - diskEncryptionSets: DiskEncryptionSets; diskAccesses: DiskAccesses; + diskEncryptionSets: DiskEncryptionSets; diskRestorePointOperations: DiskRestorePointOperations; + snapshots: Snapshots; + virtualMachineRunCommands: VirtualMachineRunCommands; + virtualMachineScaleSetVMRunCommands: VirtualMachineScaleSetVMRunCommands; + resourceSkus: ResourceSkus; galleries: Galleries; galleryImages: GalleryImages; galleryImageVersions: GalleryImageVersions; diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 4abb76fcfb79..e3bb724ce210 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -2355,317 +2355,7 @@ export interface LogAnalyticsOutput { readonly output?: string; } -/** The List Virtual Machine operation response. */ -export interface RunCommandListResult { - /** The list of virtual machine run commands. */ - value: RunCommandDocumentBase[]; - /** The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. */ - nextLink?: string; -} - -/** Describes the properties of a Run Command metadata. */ -export interface RunCommandDocumentBase { - /** The VM run command schema. */ - schema: string; - /** The VM run command id. */ - id: string; - /** The Operating System type. */ - osType: OperatingSystemTypes; - /** The VM run command label. */ - label: string; - /** The VM run command description. */ - description: string; -} - -/** Describes the properties of a run command parameter. */ -export interface RunCommandParameterDefinition { - /** The run command parameter name. */ - name: string; - /** The run command parameter type. */ - type: string; - /** The run command parameter default value. */ - defaultValue?: string; - /** The run command parameter required. */ - required?: boolean; -} - -/** Capture Virtual Machine parameters. */ -export interface RunCommandInput { - /** The run command id. */ - commandId: string; - /** Optional. The script to be executed. When this value is given, the given script will override the default script of the command. */ - script?: string[]; - /** The run command parameters. */ - parameters?: RunCommandInputParameter[]; -} - -/** Describes the properties of a run command parameter. */ -export interface RunCommandInputParameter { - /** The run command parameter name. */ - name: string; - /** The run command parameter value. */ - value: string; -} - -export interface RunCommandResult { - /** Run command operation response. */ - value?: InstanceViewStatus[]; -} - -/** Describes the script sources for run command. */ -export interface VirtualMachineRunCommandScriptSource { - /** Specifies the script content to be executed on the VM. */ - script?: string; - /** Specifies the script download location. */ - scriptUri?: string; - /** Specifies a commandId of predefined built-in script. */ - commandId?: string; -} - -/** The instance view of a virtual machine run command. */ -export interface VirtualMachineRunCommandInstanceView { - /** Script execution status. */ - executionState?: ExecutionState; - /** Communicate script configuration errors or execution messages. */ - executionMessage?: string; - /** Exit code returned from script execution. */ - exitCode?: number; - /** Script output stream. */ - output?: string; - /** Script error stream. */ - error?: string; - /** Script start time. */ - startTime?: Date; - /** Script end time. */ - endTime?: Date; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; -} - -/** The List run command operation response */ -export interface VirtualMachineRunCommandsListResult { - /** The list of run commands */ - value: VirtualMachineRunCommand[]; - /** The uri to fetch the next page of run commands. */ - nextLink?: string; -} - -/** The List Resource Skus operation response. */ -export interface ResourceSkusResult { - /** The list of skus available for the subscription. */ - value: ResourceSku[]; - /** The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus */ - nextLink?: string; -} - -/** Describes an available Compute SKU. */ -export interface ResourceSku { - /** - * The type of resource the SKU applies to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceType?: string; - /** - * The name of SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tier?: string; - /** - * The Size of the SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: string; - /** - * The Family of this particular SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly family?: string; - /** - * The Kind of resources that are supported in this SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly kind?: string; - /** - * Specifies the number of virtual machines in the scale set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capacity?: ResourceSkuCapacity; - /** - * The set of locations that the SKU is available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly locations?: string[]; - /** - * A list of locations and availability zones in those locations where the SKU is available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly locationInfo?: ResourceSkuLocationInfo[]; - /** - * The api versions that support this SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly apiVersions?: string[]; - /** - * Metadata for retrieving price info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly costs?: ResourceSkuCosts[]; - /** - * A name value pair to describe the capability. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capabilities?: ResourceSkuCapabilities[]; - /** - * The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly restrictions?: ResourceSkuRestrictions[]; -} - -/** Describes scaling information of a SKU. */ -export interface ResourceSkuCapacity { - /** - * The minimum capacity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimum?: number; - /** - * The maximum capacity that can be set. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maximum?: number; - /** - * The default capacity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly default?: number; - /** - * The scale type applicable to the sku. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scaleType?: ResourceSkuCapacityScaleType; -} - -/** Describes an available Compute SKU Location Information. */ -export interface ResourceSkuLocationInfo { - /** - * Location of the SKU - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly location?: string; - /** - * List of availability zones where the SKU is supported. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zones?: string[]; - /** - * Details of capabilities available to a SKU in specific zones. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zoneDetails?: ResourceSkuZoneDetails[]; - /** - * The names of extended locations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extendedLocations?: string[]; - /** - * The type of the extended location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: ExtendedLocationType; -} - -/** Describes The zonal capabilities of a SKU. */ -export interface ResourceSkuZoneDetails { - /** - * The set of zones that the SKU is available in with the specified capabilities. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string[]; - /** - * A list of capabilities that are available for the SKU in the specified list of zones. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly capabilities?: ResourceSkuCapabilities[]; -} - -/** Describes The SKU capabilities object. */ -export interface ResourceSkuCapabilities { - /** - * An invariant to describe the feature. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * An invariant if the feature is measured by quantity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: string; -} - -/** Describes metadata for retrieving price info. */ -export interface ResourceSkuCosts { - /** - * Used for querying price from commerce. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly meterID?: string; - /** - * The multiplier is needed to extend the base metered cost. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly quantity?: number; - /** - * An invariant to show the extended unit. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extendedUnit?: string; -} - -/** Describes scaling information of a SKU. */ -export interface ResourceSkuRestrictions { - /** - * The type of restrictions. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: ResourceSkuRestrictionsType; - /** - * The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly values?: string[]; - /** - * The information about the restriction where the SKU cannot be used. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly restrictionInfo?: ResourceSkuRestrictionInfo; - /** - * The reason for restriction. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reasonCode?: ResourceSkuRestrictionsReasonCode; -} - -/** Describes an available Compute SKU Restriction Information. */ -export interface ResourceSkuRestrictionInfo { - /** - * Locations where the SKU is restricted - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly locations?: string[]; - /** - * List of availability zones where the SKU is restricted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zones?: string[]; -} - -/** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ +/** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. */ export interface DiskSku { /** The sku name. */ name?: DiskStorageAccountTypes; @@ -2702,7 +2392,7 @@ export interface CreationData { createOption: DiskCreateOption; /** Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk. */ storageAccountId?: string; - /** Disk source information. */ + /** Disk source information for PIR or user images. */ imageReference?: ImageDiskReference; /** Required if creating from a Gallery Image. The id of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk. */ galleryImageReference?: ImageDiskReference; @@ -2805,7 +2495,7 @@ export interface DiskSecurityProfile { export interface DiskUpdate { /** Resource tags */ tags?: { [propertyName: string]: string }; - /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ + /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. */ sku?: DiskSku; /** the Operating System type. */ osType?: OperatingSystemTypes; @@ -2858,27 +2548,217 @@ export interface DiskList { nextLink?: string; } -/** Data used for requesting a SAS. */ -export interface GrantAccessData { - access: AccessLevel; - /** Time duration in seconds until the SAS access expires. */ - durationInSeconds: number; - /** Set this flag to true to get additional SAS for VM guest state */ - getSecureVMGuestStateSAS?: boolean; +/** Data used for requesting a SAS. */ +export interface GrantAccessData { + access: AccessLevel; + /** Time duration in seconds until the SAS access expires. */ + durationInSeconds: number; + /** Set this flag to true to get additional SAS for VM guest state */ + getSecureVMGuestStateSAS?: boolean; +} + +/** A disk access SAS uri. */ +export interface AccessUri { + /** + * A SAS uri for accessing a disk. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly accessSAS?: string; + /** + * A SAS uri for accessing a VM guest state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly securityDataAccessSAS?: string; +} + +/** The Private Endpoint Connection resource. */ +export interface PrivateEndpointConnection { + /** + * private endpoint connection Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * private endpoint connection name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * private endpoint connection type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The resource of private end point. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between DiskAccess and Virtual Network. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + /** + * The provisioning state of the private endpoint connection resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** The Private Endpoint resource. */ +export interface PrivateEndpoint { + /** + * The ARM identifier for Private Endpoint + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} + +/** Used for updating a disk access resource. */ +export interface DiskAccessUpdate { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +/** The List disk access operation response. */ +export interface DiskAccessList { + /** A list of disk access resources. */ + value: DiskAccess[]; + /** The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch the next page of disk access resources. */ + nextLink?: string; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + /** Array of private link resources */ + value?: PrivateLinkResource[]; +} + +/** A private link resource */ +export interface PrivateLinkResource { + /** + * private link resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * private link resource name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * private link resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requiredMembers?: string[]; + /** The private link resource DNS zone name. */ + requiredZoneNames?: string[]; +} + +/** A list of private link resources */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; + /** The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. */ + nextLink?: string; +} + +/** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ +export interface EncryptionSetIdentity { + /** The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. */ + type?: DiskEncryptionSetIdentityType; + /** + * The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; +} + +/** Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots */ +export interface KeyForDiskEncryptionSet { + /** Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription. */ + sourceVault?: SourceVault; + /** Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value. */ + keyUrl: string; +} + +/** disk encryption set update resource. */ +export interface DiskEncryptionSetUpdate { + /** Resource tags */ + tags?: { [propertyName: string]: string }; + /** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ + identity?: EncryptionSetIdentity; + /** The type of key used to encrypt the data of the disk. */ + encryptionType?: DiskEncryptionSetType; + /** Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots */ + activeKey?: KeyForDiskEncryptionSet; + /** Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. */ + rotationToLatestKeyVersionEnabled?: boolean; +} + +/** The List disk encryption set operation response. */ +export interface DiskEncryptionSetList { + /** A list of disk encryption sets. */ + value: DiskEncryptionSet[]; + /** The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the next page of disk encryption sets. */ + nextLink?: string; +} + +/** The List resources which are encrypted with the disk encryption set. */ +export interface ResourceUriList { + /** A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. */ + value: string[]; + /** The uri to fetch the next page of encrypted resources. Call ListNext() with this to fetch the next page of encrypted resources. */ + nextLink?: string; } -/** A disk access SAS uri. */ -export interface AccessUri { +/** The ProxyOnly Resource model definition. */ +export interface ProxyOnlyResource { /** - * A SAS uri for accessing a disk. + * Resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly accessSAS?: string; + readonly id?: string; /** - * A SAS uri for accessing a VM guest state. + * Resource name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly securityDataAccessSAS?: string; + readonly name?: string; + /** + * Resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** The List Disk Restore Points operation response. */ +export interface DiskRestorePointList { + /** A list of disk restore points. */ + value: DiskRestorePoint[]; + /** The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the next page of disk restore points. */ + nextLink?: string; } /** The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS. This is an optional parameter for incremental snapshot and the default behavior is the SKU will be set to the same sku as the previous snapshot */ @@ -2892,6 +2772,14 @@ export interface SnapshotSku { readonly tier?: string; } +/** Indicates the error details if the background copy of a resource created via the CopyStart operation fails. */ +export interface CopyCompletionErrorAutoGenerated { + /** Indicates the error code if the background copy of a resource created via the CopyStart operation fails. */ + errorCode: CopyCompletionError; + /** Indicates the error message if the background copy of a resource created via the CopyStart operation fails. */ + errorMessage: string; +} + /** Snapshot update resource. */ export interface SnapshotUpdate { /** Resource tags */ @@ -2928,194 +2816,314 @@ export interface SnapshotList { nextLink?: string; } -/** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ -export interface EncryptionSetIdentity { - /** The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys. */ - type?: DiskEncryptionSetIdentityType; - /** - * The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; +/** The List Virtual Machine operation response. */ +export interface RunCommandListResult { + /** The list of virtual machine run commands. */ + value: RunCommandDocumentBase[]; + /** The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. */ + nextLink?: string; } -/** Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots */ -export interface KeyForDiskEncryptionSet { - /** Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription. */ - sourceVault?: SourceVault; - /** Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value. */ - keyUrl: string; +/** Describes the properties of a Run Command metadata. */ +export interface RunCommandDocumentBase { + /** The VM run command schema. */ + schema: string; + /** The VM run command id. */ + id: string; + /** The Operating System type. */ + osType: OperatingSystemTypes; + /** The VM run command label. */ + label: string; + /** The VM run command description. */ + description: string; } -/** disk encryption set update resource. */ -export interface DiskEncryptionSetUpdate { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ - identity?: EncryptionSetIdentity; - /** The type of key used to encrypt the data of the disk. */ - encryptionType?: DiskEncryptionSetType; - /** Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots */ - activeKey?: KeyForDiskEncryptionSet; - /** Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. */ - rotationToLatestKeyVersionEnabled?: boolean; +/** Describes the properties of a run command parameter. */ +export interface RunCommandParameterDefinition { + /** The run command parameter name. */ + name: string; + /** The run command parameter type. */ + type: string; + /** The run command parameter default value. */ + defaultValue?: string; + /** The run command parameter required. */ + required?: boolean; } -/** The List disk encryption set operation response. */ -export interface DiskEncryptionSetList { - /** A list of disk encryption sets. */ - value: DiskEncryptionSet[]; - /** The uri to fetch the next page of disk encryption sets. Call ListNext() with this to fetch the next page of disk encryption sets. */ +/** Capture Virtual Machine parameters. */ +export interface RunCommandInput { + /** The run command id. */ + commandId: string; + /** Optional. The script to be executed. When this value is given, the given script will override the default script of the command. */ + script?: string[]; + /** The run command parameters. */ + parameters?: RunCommandInputParameter[]; +} + +/** Describes the properties of a run command parameter. */ +export interface RunCommandInputParameter { + /** The run command parameter name. */ + name: string; + /** The run command parameter value. */ + value: string; +} + +export interface RunCommandResult { + /** Run command operation response. */ + value?: InstanceViewStatus[]; +} + +/** Describes the script sources for run command. */ +export interface VirtualMachineRunCommandScriptSource { + /** Specifies the script content to be executed on the VM. */ + script?: string; + /** Specifies the script download location. */ + scriptUri?: string; + /** Specifies a commandId of predefined built-in script. */ + commandId?: string; +} + +/** The instance view of a virtual machine run command. */ +export interface VirtualMachineRunCommandInstanceView { + /** Script execution status. */ + executionState?: ExecutionState; + /** Communicate script configuration errors or execution messages. */ + executionMessage?: string; + /** Exit code returned from script execution. */ + exitCode?: number; + /** Script output stream. */ + output?: string; + /** Script error stream. */ + error?: string; + /** Script start time. */ + startTime?: Date; + /** Script end time. */ + endTime?: Date; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; +} + +/** The List run command operation response */ +export interface VirtualMachineRunCommandsListResult { + /** The list of run commands */ + value: VirtualMachineRunCommand[]; + /** The uri to fetch the next page of run commands. */ nextLink?: string; } -/** The List resources which are encrypted with the disk encryption set. */ -export interface ResourceUriList { - /** A list of IDs or Owner IDs of resources which are encrypted with the disk encryption set. */ - value: string[]; - /** The uri to fetch the next page of encrypted resources. Call ListNext() with this to fetch the next page of encrypted resources. */ +/** The List Resource Skus operation response. */ +export interface ResourceSkusResult { + /** The list of skus available for the subscription. */ + value: ResourceSku[]; + /** The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus */ nextLink?: string; } -/** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection { +/** Describes an available Compute SKU. */ +export interface ResourceSku { + /** + * The type of resource the SKU applies to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceType?: string; + /** + * The name of SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tier?: string; + /** + * The Size of the SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly size?: string; + /** + * The Family of this particular SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly family?: string; + /** + * The Kind of resources that are supported in this SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly kind?: string; + /** + * Specifies the number of virtual machines in the scale set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capacity?: ResourceSkuCapacity; + /** + * The set of locations that the SKU is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly locations?: string[]; + /** + * A list of locations and availability zones in those locations where the SKU is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly locationInfo?: ResourceSkuLocationInfo[]; + /** + * The api versions that support this SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly apiVersions?: string[]; + /** + * Metadata for retrieving price info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly costs?: ResourceSkuCosts[]; + /** + * A name value pair to describe the capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capabilities?: ResourceSkuCapabilities[]; + /** + * The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restrictions?: ResourceSkuRestrictions[]; +} + +/** Describes scaling information of a SKU. */ +export interface ResourceSkuCapacity { + /** + * The minimum capacity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly minimum?: number; + /** + * The maximum capacity that can be set. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maximum?: number; + /** + * The default capacity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly default?: number; + /** + * The scale type applicable to the sku. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scaleType?: ResourceSkuCapacityScaleType; +} + +/** Describes an available Compute SKU Location Information. */ +export interface ResourceSkuLocationInfo { /** - * private endpoint connection Id + * Location of the SKU * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly location?: string; /** - * private endpoint connection name + * List of availability zones where the SKU is supported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly zones?: string[]; /** - * private endpoint connection type + * Details of capabilities available to a SKU in specific zones. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly zoneDetails?: ResourceSkuZoneDetails[]; /** - * The resource of private end point. + * The names of extended locations. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between DiskAccess and Virtual Network. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly extendedLocations?: string[]; /** - * The provisioning state of the private endpoint connection resource. + * The type of the extended location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; + readonly type?: ExtendedLocationType; } -/** The Private Endpoint resource. */ -export interface PrivateEndpoint { +/** Describes The zonal capabilities of a SKU. */ +export interface ResourceSkuZoneDetails { /** - * The ARM identifier for Private Endpoint + * The set of zones that the SKU is available in with the specified capabilities. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; -} - -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; -} - -/** Used for updating a disk access resource. */ -export interface DiskAccessUpdate { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** The List disk access operation response. */ -export interface DiskAccessList { - /** A list of disk access resources. */ - value: DiskAccess[]; - /** The uri to fetch the next page of disk access resources. Call ListNext() with this to fetch the next page of disk access resources. */ - nextLink?: string; -} - -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; + readonly name?: string[]; + /** + * A list of capabilities that are available for the SKU in the specified list of zones. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capabilities?: ResourceSkuCapabilities[]; } -/** A private link resource */ -export interface PrivateLinkResource { +/** Describes The SKU capabilities object. */ +export interface ResourceSkuCapabilities { /** - * private link resource Id + * An invariant to describe the feature. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly name?: string; /** - * private link resource name + * An invariant if the feature is measured by quantity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly value?: string; +} + +/** Describes metadata for retrieving price info. */ +export interface ResourceSkuCosts { /** - * private link resource type + * Used for querying price from commerce. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly meterID?: string; /** - * The private link resource group id. + * The multiplier is needed to extend the base metered cost. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly quantity?: number; /** - * The private link resource required member names. + * An invariant to show the extended unit. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; - /** The private link resource DNS zone name. */ - requiredZoneNames?: string[]; -} - -/** A list of private link resources */ -export interface PrivateEndpointConnectionListResult { - /** Array of private endpoint connections */ - value?: PrivateEndpointConnection[]; - /** The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. */ - nextLink?: string; + readonly extendedUnit?: string; } -/** The ProxyOnly Resource model definition. */ -export interface ProxyOnlyResource { +/** Describes scaling information of a SKU. */ +export interface ResourceSkuRestrictions { /** - * Resource Id + * The type of restrictions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly type?: ResourceSkuRestrictionsType; /** - * Resource name + * The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly values?: string[]; /** - * Resource type + * The information about the restriction where the SKU cannot be used. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly restrictionInfo?: ResourceSkuRestrictionInfo; + /** + * The reason for restriction. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reasonCode?: ResourceSkuRestrictionsReasonCode; } -/** The List Disk Restore Points operation response. */ -export interface DiskRestorePointList { - /** A list of disk restore points. */ - value: DiskRestorePoint[]; - /** The uri to fetch the next page of disk restore points. Call ListNext() with this to fetch the next page of disk restore points. */ - nextLink?: string; +/** Describes an available Compute SKU Restriction Information. */ +export interface ResourceSkuRestrictionInfo { + /** + * Locations where the SKU is restricted + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly locations?: string[]; + /** + * List of availability zones where the SKU is restricted. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly zones?: string[]; } /** Describes the gallery unique name. */ @@ -4791,38 +4799,6 @@ export type VirtualMachineScaleSetVM = Resource & { userData?: string; }; -/** Describes a Virtual Machine run command. */ -export type VirtualMachineRunCommand = Resource & { - /** The source of the run command script. */ - source?: VirtualMachineRunCommandScriptSource; - /** The parameters used by the script. */ - parameters?: RunCommandInputParameter[]; - /** The parameters used by the script. */ - protectedParameters?: RunCommandInputParameter[]; - /** Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. */ - asyncExecution?: boolean; - /** Specifies the user account on the VM when executing the run command. */ - runAsUser?: string; - /** Specifies the user account password on the VM when executing the run command. */ - runAsPassword?: string; - /** The timeout in seconds to execute the run command. */ - timeoutInSeconds?: number; - /** Specifies the Azure storage blob where script output stream will be uploaded. */ - outputBlobUri?: string; - /** Specifies the Azure storage blob where script error stream will be uploaded. */ - errorBlobUri?: string; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The virtual machine run command instance view. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceView?: VirtualMachineRunCommandInstanceView; -}; - /** Disk resource. */ export type Disk = Resource & { /** @@ -4835,7 +4811,7 @@ export type Disk = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly managedByExtended?: string[]; - /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, or StandardSSD_ZRS. */ + /** The disks sku name. Can be Standard_LRS, Premium_LRS, StandardSSD_LRS, UltraSSD_LRS, Premium_ZRS, StandardSSD_ZRS, or PremiumV2_LRS. */ sku?: DiskSku; /** The Logical zone list for Disk. */ zones?: string[]; @@ -4906,20 +4882,73 @@ export type Disk = Resource & { /** Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by default. Does not apply to Ultra disks. */ burstingEnabled?: boolean; /** - * Properties of the disk for which update is pending. + * Properties of the disk for which update is pending. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly propertyUpdatesInProgress?: PropertyUpdatesInProgress; + /** Indicates the OS on a disk supports hibernation. */ + supportsHibernation?: boolean; + /** Contains the security related information for the resource. */ + securityProfile?: DiskSecurityProfile; + /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ + completionPercent?: number; + /** Policy for controlling export on the disk. */ + publicNetworkAccess?: PublicNetworkAccess; + /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ + dataAccessAuthMode?: DataAccessAuthMode; +}; + +/** disk access resource. */ +export type DiskAccess = Resource & { + /** The extended location where the disk access will be created. Extended location cannot be changed. */ + extendedLocation?: ExtendedLocation; + /** + * A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * The disk access resource provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** + * The time when the disk access was created. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeCreated?: Date; +}; + +/** disk encryption set resource. */ +export type DiskEncryptionSet = Resource & { + /** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ + identity?: EncryptionSetIdentity; + /** The type of key used to encrypt the data of the disk. */ + encryptionType?: DiskEncryptionSetType; + /** The key vault key which is currently used by this disk encryption set. */ + activeKey?: KeyForDiskEncryptionSet; + /** + * A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly previousKeys?: KeyForDiskEncryptionSet[]; + /** + * The disk encryption set provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. */ + rotationToLatestKeyVersionEnabled?: boolean; + /** + * The time when the active key of this disk encryption set was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastKeyRotationTimestamp?: Date; + /** + * The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly propertyUpdatesInProgress?: PropertyUpdatesInProgress; - /** Indicates the OS on a disk supports hibernation. */ - supportsHibernation?: boolean; - /** Contains the security related information for the resource. */ - securityProfile?: DiskSecurityProfile; - /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ - completionPercent?: number; - /** Policy for controlling export on the disk. */ - publicNetworkAccess?: PublicNetworkAccess; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; + readonly autoKeyRotationError?: ApiError; }; /** Snapshot resource. */ @@ -4988,61 +5017,42 @@ export type Snapshot = Resource & { publicNetworkAccess?: PublicNetworkAccess; /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ completionPercent?: number; + /** Indicates the error details if the background copy of a resource created via the CopyStart operation fails. */ + copyCompletionError?: CopyCompletionErrorAutoGenerated; /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ dataAccessAuthMode?: DataAccessAuthMode; }; -/** disk encryption set resource. */ -export type DiskEncryptionSet = Resource & { - /** The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks. */ - identity?: EncryptionSetIdentity; - /** The type of key used to encrypt the data of the disk. */ - encryptionType?: DiskEncryptionSetType; - /** The key vault key which is currently used by this disk encryption set. */ - activeKey?: KeyForDiskEncryptionSet; - /** - * A readonly collection of key vault keys previously used by this disk encryption set while a key rotation is in progress. It will be empty if there is no ongoing key rotation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly previousKeys?: KeyForDiskEncryptionSet[]; - /** - * The disk encryption set provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** Set this flag to true to enable auto-updating of this disk encryption set to the latest key version. */ - rotationToLatestKeyVersionEnabled?: boolean; - /** - * The time when the active key of this disk encryption set was updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastKeyRotationTimestamp?: Date; - /** - * The error that was encountered during auto-key rotation. If an error is present, then auto-key rotation will not be attempted until the error on this disk encryption set is fixed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly autoKeyRotationError?: ApiError; -}; - -/** disk access resource. */ -export type DiskAccess = Resource & { - /** The extended location where the disk access will be created. Extended location cannot be changed. */ - extendedLocation?: ExtendedLocation; - /** - * A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; +/** Describes a Virtual Machine run command. */ +export type VirtualMachineRunCommand = Resource & { + /** The source of the run command script. */ + source?: VirtualMachineRunCommandScriptSource; + /** The parameters used by the script. */ + parameters?: RunCommandInputParameter[]; + /** The parameters used by the script. */ + protectedParameters?: RunCommandInputParameter[]; + /** Optional. If set to true, provisioning will complete as soon as the script starts and will not wait for script to complete. */ + asyncExecution?: boolean; + /** Specifies the user account on the VM when executing the run command. */ + runAsUser?: string; + /** Specifies the user account password on the VM when executing the run command. */ + runAsPassword?: string; + /** The timeout in seconds to execute the run command. */ + timeoutInSeconds?: number; + /** Specifies the Azure storage blob where script output stream will be uploaded. */ + outputBlobUri?: string; + /** Specifies the Azure storage blob where script error stream will be uploaded. */ + errorBlobUri?: string; /** - * The disk access resource provisioning state. + * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; /** - * The time when the disk access was created. + * The virtual machine run command instance view. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeCreated?: Date; + readonly instanceView?: VirtualMachineRunCommandInstanceView; }; /** Specifies information about the Shared Image Gallery that you want to create or update. */ @@ -5719,14 +5729,6 @@ export type RequestRateByIntervalInput = LogAnalyticsInputBase & { /** Api request input for LogAnalytics getThrottledRequests Api. */ export type ThrottledRequestsInput = LogAnalyticsInputBase & {}; -/** Describes the properties of a Run Command. */ -export type RunCommandDocument = RunCommandDocumentBase & { - /** The script to be executed. */ - script: string[]; - /** The parameters used by the script. */ - parameters?: RunCommandParameterDefinition[]; -}; - /** Properties of disk restore point */ export type DiskRestorePoint = ProxyOnlyResource & { /** @@ -5785,6 +5787,16 @@ export type DiskRestorePoint = ProxyOnlyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly sourceResourceLocation?: string; + /** Contains the security related information for the resource. */ + securityProfile?: DiskSecurityProfile; +}; + +/** Describes the properties of a Run Command. */ +export type RunCommandDocument = RunCommandDocumentBase & { + /** The script to be executed. */ + script: string[]; + /** The parameters used by the script. */ + parameters?: RunCommandParameterDefinition[]; }; /** Specifies information about the Shared Image Gallery that you want to update. */ @@ -7199,46 +7211,6 @@ export enum KnownOrchestrationServiceStateAction { */ export type OrchestrationServiceStateAction = string; -/** Known values of {@link ExecutionState} that the service accepts. */ -export enum KnownExecutionState { - Unknown = "Unknown", - Pending = "Pending", - Running = "Running", - Failed = "Failed", - Succeeded = "Succeeded", - TimedOut = "TimedOut", - Canceled = "Canceled" -} - -/** - * Defines values for ExecutionState. \ - * {@link KnownExecutionState} can be used interchangeably with ExecutionState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **Pending** \ - * **Running** \ - * **Failed** \ - * **Succeeded** \ - * **TimedOut** \ - * **Canceled** - */ -export type ExecutionState = string; - -/** Known values of {@link ExtendedLocationType} that the service accepts. */ -export enum KnownExtendedLocationType { - EdgeZone = "EdgeZone" -} - -/** - * Defines values for ExtendedLocationType. \ - * {@link KnownExtendedLocationType} can be used interchangeably with ExtendedLocationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **EdgeZone** - */ -export type ExtendedLocationType = string; - /** Known values of {@link DiskStorageAccountTypes} that the service accepts. */ export enum KnownDiskStorageAccountTypes { /** Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access. */ @@ -7252,7 +7224,9 @@ export enum KnownDiskStorageAccountTypes { /** Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. */ PremiumZRS = "Premium_ZRS", /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev/test that need storage resiliency against zone failures. */ - StandardSSDZRS = "StandardSSD_ZRS" + StandardSSDZRS = "StandardSSD_ZRS", + /** Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ + PremiumV2LRS = "PremiumV2_LRS" } /** @@ -7265,7 +7239,8 @@ export enum KnownDiskStorageAccountTypes { * **StandardSSD_LRS**: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev\/test. \ * **UltraSSD_LRS**: Ultra SSD locally redundant storage. Best for IO-intensive workloads such as SAP HANA, top tier databases (for example, SQL, Oracle), and other transaction-heavy workloads. \ * **Premium_ZRS**: Premium SSD zone redundant storage. Best for the production workloads that need storage resiliency against zone failures. \ - * **StandardSSD_ZRS**: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. + * **StandardSSD_ZRS**: Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. \ + * **PremiumV2_LRS**: Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ export type DiskStorageAccountTypes = string; @@ -7499,26 +7474,43 @@ export enum KnownAccessLevel { */ export type AccessLevel = string; -/** Known values of {@link SnapshotStorageAccountTypes} that the service accepts. */ -export enum KnownSnapshotStorageAccountTypes { - /** Standard HDD locally redundant storage */ - StandardLRS = "Standard_LRS", - /** Premium SSD locally redundant storage */ - PremiumLRS = "Premium_LRS", - /** Standard zone redundant storage */ - StandardZRS = "Standard_ZRS" +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + Pending = "Pending", + Approved = "Approved", + Rejected = "Rejected" } /** - * Defines values for SnapshotStorageAccountTypes. \ - * {@link KnownSnapshotStorageAccountTypes} can be used interchangeably with SnapshotStorageAccountTypes, + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Standard_LRS**: Standard HDD locally redundant storage \ - * **Premium_LRS**: Premium SSD locally redundant storage \ - * **Standard_ZRS**: Standard zone redundant storage + * **Pending** \ + * **Approved** \ + * **Rejected** */ -export type SnapshotStorageAccountTypes = string; +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + Succeeded = "Succeeded", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed" +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; /** Known values of {@link DiskEncryptionSetIdentityType} that the service accepts. */ export enum KnownDiskEncryptionSetIdentityType { @@ -7557,43 +7549,81 @@ export enum KnownDiskEncryptionSetType { */ export type DiskEncryptionSetType = string; -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - Pending = "Pending", - Approved = "Approved", - Rejected = "Rejected" +/** Known values of {@link SnapshotStorageAccountTypes} that the service accepts. */ +export enum KnownSnapshotStorageAccountTypes { + /** Standard HDD locally redundant storage */ + StandardLRS = "Standard_LRS", + /** Premium SSD locally redundant storage */ + PremiumLRS = "Premium_LRS", + /** Standard zone redundant storage */ + StandardZRS = "Standard_ZRS" } /** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * Defines values for SnapshotStorageAccountTypes. \ + * {@link KnownSnapshotStorageAccountTypes} can be used interchangeably with SnapshotStorageAccountTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** + * **Standard_LRS**: Standard HDD locally redundant storage \ + * **Premium_LRS**: Premium SSD locally redundant storage \ + * **Standard_ZRS**: Standard zone redundant storage */ -export type PrivateEndpointServiceConnectionStatus = string; +export type SnapshotStorageAccountTypes = string; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { +/** Known values of {@link CopyCompletionError} that the service accepts. */ +export enum KnownCopyCompletionError { + /** Indicates that the source snapshot was deleted while the background copy of the resource created via CopyStart operation was in progress. */ + CopySourceNotFound = "CopySourceNotFound" +} + +/** + * Defines values for CopyCompletionError. \ + * {@link KnownCopyCompletionError} can be used interchangeably with CopyCompletionError, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CopySourceNotFound**: Indicates that the source snapshot was deleted while the background copy of the resource created via CopyStart operation was in progress. + */ +export type CopyCompletionError = string; + +/** Known values of {@link ExecutionState} that the service accepts. */ +export enum KnownExecutionState { + Unknown = "Unknown", + Pending = "Pending", + Running = "Running", + Failed = "Failed", Succeeded = "Succeeded", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed" + TimedOut = "TimedOut", + Canceled = "Canceled" } /** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * Defines values for ExecutionState. \ + * {@link KnownExecutionState} can be used interchangeably with ExecutionState, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Unknown** \ + * **Pending** \ + * **Running** \ + * **Failed** \ * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **TimedOut** \ + * **Canceled** + */ +export type ExecutionState = string; + +/** Known values of {@link ExtendedLocationType} that the service accepts. */ +export enum KnownExtendedLocationType { + EdgeZone = "EdgeZone" +} + +/** + * Defines values for ExtendedLocationType. \ + * {@link KnownExtendedLocationType} can be used interchangeably with ExtendedLocationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EdgeZone** */ -export type PrivateEndpointConnectionProvisioningState = string; +export type ExtendedLocationType = string; /** Known values of {@link GalleryPropertiesProvisioningState} that the service accepts. */ export enum KnownGalleryPropertiesProvisioningState { @@ -9674,21 +9704,7 @@ export interface LogAnalyticsExportThrottledRequestsOptionalParams export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationResult; /** Optional parameters. */ -export interface VirtualMachineRunCommandsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type VirtualMachineRunCommandsListResponse = RunCommandListResult; - -/** Optional parameters. */ -export interface VirtualMachineRunCommandsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type VirtualMachineRunCommandsGetResponse = RunCommandDocument; - -/** Optional parameters. */ -export interface VirtualMachineRunCommandsCreateOrUpdateOptionalParams +export interface DisksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9697,11 +9713,10 @@ export interface VirtualMachineRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type DisksCreateOrUpdateResponse = Disk; /** Optional parameters. */ -export interface VirtualMachineRunCommandsUpdateOptionalParams - extends coreClient.OperationOptions { +export interface DisksUpdateOptionalParams 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. */ @@ -9709,11 +9724,16 @@ export interface VirtualMachineRunCommandsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineRunCommandsUpdateResponse = VirtualMachineRunCommand; +export type DisksUpdateResponse = Disk; /** Optional parameters. */ -export interface VirtualMachineRunCommandsDeleteOptionalParams - extends coreClient.OperationOptions { +export interface DisksGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DisksGetResponse = Disk; + +/** Optional parameters. */ +export interface DisksDeleteOptionalParams 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. */ @@ -9721,44 +9741,55 @@ export interface VirtualMachineRunCommandsDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams +export interface DisksListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type DisksListByResourceGroupResponse = DiskList; + +/** Optional parameters. */ +export interface DisksListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DisksListResponse = DiskList; + +/** Optional parameters. */ +export interface DisksGrantAccessOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; + /** 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 getByVirtualMachine operation. */ -export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand; +/** Contains response data for the grantAccess operation. */ +export type DisksGrantAccessResponse = AccessUri; /** Optional parameters. */ -export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams +export interface DisksRevokeAccessOptionalParams extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; + /** 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 listByVirtualMachine operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult; - /** Optional parameters. */ -export interface VirtualMachineRunCommandsListNextOptionalParams +export interface DisksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type DisksListByResourceGroupNextResponse = DiskList; /** Optional parameters. */ -export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} +export interface DisksListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByVirtualMachineNext operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult; +/** Contains response data for the listNext operation. */ +export type DisksListNextResponse = DiskList; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams +export interface DiskAccessesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9767,10 +9798,10 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type DiskAccessesCreateOrUpdateResponse = DiskAccess; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams +export interface DiskAccessesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9779,10 +9810,17 @@ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand; +export type DiskAccessesUpdateResponse = DiskAccess; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams +export interface DiskAccessesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DiskAccessesGetResponse = DiskAccess; + +/** Optional parameters. */ +export interface DiskAccessesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9791,61 +9829,84 @@ export interface VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams } /** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} +export interface DiskAccessesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand; +/** Contains response data for the listByResourceGroup operation. */ +export type DiskAccessesListByResourceGroupResponse = DiskAccessList; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} +export interface DiskAccessesListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult; +export type DiskAccessesListResponse = DiskAccessList; /** Optional parameters. */ -export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams - extends coreClient.OperationOptions { - /** The expand expression to apply on the operation. */ - expand?: string; -} +export interface DiskAccessesGetPrivateLinkResourcesOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; +/** Contains response data for the getPrivateLinkResources operation. */ +export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; /** Optional parameters. */ -export interface ResourceSkusListOptionalParams +export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Only **location** filter is supported currently. */ - filter?: string; - /** To Include Extended Locations information or not in the response. */ - includeExtendedLocations?: string; + /** 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 list operation. */ -export type ResourceSkusListResponse = ResourceSkusResult; +/** Contains response data for the updateAPrivateEndpointConnection operation. */ +export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ResourceSkusListNextOptionalParams +export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAPrivateEndpointConnection operation. */ +export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams extends coreClient.OperationOptions { - /** The filter to apply on the operation. Only **location** filter is supported currently. */ - filter?: string; - /** To Include Extended Locations information or not in the response. */ - includeExtendedLocations?: string; + /** 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; } +/** Optional parameters. */ +export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listPrivateEndpointConnections operation. */ +export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface DiskAccessesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type DiskAccessesListByResourceGroupNextResponse = DiskAccessList; + +/** Optional parameters. */ +export interface DiskAccessesListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type ResourceSkusListNextResponse = ResourceSkusResult; +export type DiskAccessesListNextResponse = DiskAccessList; /** Optional parameters. */ -export interface DisksCreateOrUpdateOptionalParams +export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listPrivateEndpointConnectionsNext operation. */ +export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface DiskEncryptionSetsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9854,10 +9915,11 @@ export interface DisksCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DisksCreateOrUpdateResponse = Disk; +export type DiskEncryptionSetsCreateOrUpdateResponse = DiskEncryptionSet; /** Optional parameters. */ -export interface DisksUpdateOptionalParams extends coreClient.OperationOptions { +export interface DiskEncryptionSetsUpdateOptionalParams + 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. */ @@ -9865,16 +9927,18 @@ export interface DisksUpdateOptionalParams extends coreClient.OperationOptions { } /** Contains response data for the update operation. */ -export type DisksUpdateResponse = Disk; +export type DiskEncryptionSetsUpdateResponse = DiskEncryptionSet; /** Optional parameters. */ -export interface DisksGetOptionalParams extends coreClient.OperationOptions {} +export interface DiskEncryptionSetsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DisksGetResponse = Disk; +export type DiskEncryptionSetsGetResponse = DiskEncryptionSet; /** Optional parameters. */ -export interface DisksDeleteOptionalParams extends coreClient.OperationOptions { +export interface DiskEncryptionSetsDeleteOptionalParams + 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. */ @@ -9882,20 +9946,63 @@ export interface DisksDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ -export interface DisksListByResourceGroupOptionalParams +export interface DiskEncryptionSetsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList; + +/** Optional parameters. */ +export interface DiskEncryptionSetsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DiskEncryptionSetsListResponse = DiskEncryptionSetList; + +/** Optional parameters. */ +export interface DiskEncryptionSetsListAssociatedResourcesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAssociatedResources operation. */ +export type DiskEncryptionSetsListAssociatedResourcesResponse = ResourceUriList; + +/** Optional parameters. */ +export interface DiskEncryptionSetsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList; + +/** Optional parameters. */ +export interface DiskEncryptionSetsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DiskEncryptionSetsListNextResponse = DiskEncryptionSetList; + +/** Optional parameters. */ +export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAssociatedResourcesNext operation. */ +export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; + +/** Optional parameters. */ +export interface DiskRestorePointGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type DisksListByResourceGroupResponse = DiskList; +/** Contains response data for the get operation. */ +export type DiskRestorePointGetResponse = DiskRestorePoint; /** Optional parameters. */ -export interface DisksListOptionalParams extends coreClient.OperationOptions {} +export interface DiskRestorePointListByRestorePointOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DisksListResponse = DiskList; +/** Contains response data for the listByRestorePoint operation. */ +export type DiskRestorePointListByRestorePointResponse = DiskRestorePointList; /** Optional parameters. */ -export interface DisksGrantAccessOptionalParams +export interface DiskRestorePointGrantAccessOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9904,10 +10011,10 @@ export interface DisksGrantAccessOptionalParams } /** Contains response data for the grantAccess operation. */ -export type DisksGrantAccessResponse = AccessUri; +export type DiskRestorePointGrantAccessResponse = AccessUri; /** Optional parameters. */ -export interface DisksRevokeAccessOptionalParams +export interface DiskRestorePointRevokeAccessOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -9916,18 +10023,11 @@ export interface DisksRevokeAccessOptionalParams } /** Optional parameters. */ -export interface DisksListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type DisksListByResourceGroupNextResponse = DiskList; - -/** Optional parameters. */ -export interface DisksListNextOptionalParams +export interface DiskRestorePointListByRestorePointNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DisksListNextResponse = DiskList; +/** Contains response data for the listByRestorePointNext operation. */ +export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; /** Optional parameters. */ export interface SnapshotsCreateOrUpdateOptionalParams @@ -10019,7 +10119,21 @@ export interface SnapshotsListNextOptionalParams export type SnapshotsListNextResponse = SnapshotList; /** Optional parameters. */ -export interface DiskEncryptionSetsCreateOrUpdateOptionalParams +export interface VirtualMachineRunCommandsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualMachineRunCommandsListResponse = RunCommandListResult; + +/** Optional parameters. */ +export interface VirtualMachineRunCommandsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VirtualMachineRunCommandsGetResponse = RunCommandDocument; + +/** Optional parameters. */ +export interface VirtualMachineRunCommandsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10028,10 +10142,10 @@ export interface DiskEncryptionSetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DiskEncryptionSetsCreateOrUpdateResponse = DiskEncryptionSet; +export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; /** Optional parameters. */ -export interface DiskEncryptionSetsUpdateOptionalParams +export interface VirtualMachineRunCommandsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10040,17 +10154,10 @@ export interface DiskEncryptionSetsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type DiskEncryptionSetsUpdateResponse = DiskEncryptionSet; - -/** Optional parameters. */ -export interface DiskEncryptionSetsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DiskEncryptionSetsGetResponse = DiskEncryptionSet; +export type VirtualMachineRunCommandsUpdateResponse = VirtualMachineRunCommand; /** Optional parameters. */ -export interface DiskEncryptionSetsDeleteOptionalParams +export interface VirtualMachineRunCommandsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10059,49 +10166,44 @@ export interface DiskEncryptionSetsDeleteOptionalParams } /** Optional parameters. */ -export interface DiskEncryptionSetsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList; - -/** Optional parameters. */ -export interface DiskEncryptionSetsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type DiskEncryptionSetsListResponse = DiskEncryptionSetList; - -/** Optional parameters. */ -export interface DiskEncryptionSetsListAssociatedResourcesOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; +} -/** Contains response data for the listAssociatedResources operation. */ -export type DiskEncryptionSetsListAssociatedResourcesResponse = ResourceUriList; +/** Contains response data for the getByVirtualMachine operation. */ +export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand; /** Optional parameters. */ -export interface DiskEncryptionSetsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList; +/** Contains response data for the listByVirtualMachine operation. */ +export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult; /** Optional parameters. */ -export interface DiskEncryptionSetsListNextOptionalParams +export interface VirtualMachineRunCommandsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DiskEncryptionSetsListNextResponse = DiskEncryptionSetList; +export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult; /** Optional parameters. */ -export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; +} -/** Contains response data for the listAssociatedResourcesNext operation. */ -export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; +/** Contains response data for the listByVirtualMachineNext operation. */ +export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult; /** Optional parameters. */ -export interface DiskAccessesCreateOrUpdateOptionalParams +export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10110,10 +10212,10 @@ export interface DiskAccessesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type DiskAccessesCreateOrUpdateResponse = DiskAccess; +export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; /** Optional parameters. */ -export interface DiskAccessesUpdateOptionalParams +export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10122,17 +10224,10 @@ export interface DiskAccessesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type DiskAccessesUpdateResponse = DiskAccess; - -/** Optional parameters. */ -export interface DiskAccessesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DiskAccessesGetResponse = DiskAccess; +export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand; /** Optional parameters. */ -export interface DiskAccessesDeleteOptionalParams +export interface VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10141,123 +10236,58 @@ export interface DiskAccessesDeleteOptionalParams } /** Optional parameters. */ -export interface DiskAccessesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DiskAccessesListByResourceGroupResponse = DiskAccessList; - -/** Optional parameters. */ -export interface DiskAccessesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type DiskAccessesListResponse = DiskAccessList; - -/** Optional parameters. */ -export interface DiskAccessesGetPrivateLinkResourcesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getPrivateLinkResources operation. */ -export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; - -/** Optional parameters. */ -export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams +export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams 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; + /** The expand expression to apply on the operation. */ + expand?: string; } -/** Contains response data for the updateAPrivateEndpointConnection operation. */ -export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpointConnection; - -/** Optional parameters. */ -export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAPrivateEndpointConnection operation. */ -export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +/** Contains response data for the get operation. */ +export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand; /** Optional parameters. */ -export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams +export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams 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; + /** The expand expression to apply on the operation. */ + expand?: string; } -/** Optional parameters. */ -export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listPrivateEndpointConnections operation. */ -export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; - -/** Optional parameters. */ -export interface DiskAccessesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type DiskAccessesListByResourceGroupNextResponse = DiskAccessList; +/** Contains response data for the list operation. */ +export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult; /** Optional parameters. */ -export interface DiskAccessesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams + extends coreClient.OperationOptions { + /** The expand expression to apply on the operation. */ + expand?: string; +} /** Contains response data for the listNext operation. */ -export type DiskAccessesListNextResponse = DiskAccessList; - -/** Optional parameters. */ -export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listPrivateEndpointConnectionsNext operation. */ -export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; - -/** Optional parameters. */ -export interface DiskRestorePointGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DiskRestorePointGetResponse = DiskRestorePoint; - -/** Optional parameters. */ -export interface DiskRestorePointListByRestorePointOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByRestorePoint operation. */ -export type DiskRestorePointListByRestorePointResponse = DiskRestorePointList; +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; /** Optional parameters. */ -export interface DiskRestorePointGrantAccessOptionalParams +export interface ResourceSkusListOptionalParams 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; + /** The filter to apply on the operation. Only **location** filter is supported currently. */ + filter?: string; + /** To Include Extended Locations information or not in the response. */ + includeExtendedLocations?: string; } -/** Contains response data for the grantAccess operation. */ -export type DiskRestorePointGrantAccessResponse = AccessUri; +/** Contains response data for the list operation. */ +export type ResourceSkusListResponse = ResourceSkusResult; /** Optional parameters. */ -export interface DiskRestorePointRevokeAccessOptionalParams +export interface ResourceSkusListNextOptionalParams 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; + /** The filter to apply on the operation. Only **location** filter is supported currently. */ + filter?: string; + /** To Include Extended Locations information or not in the response. */ + includeExtendedLocations?: string; } -/** Optional parameters. */ -export interface DiskRestorePointListByRestorePointNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByRestorePointNext operation. */ -export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; +/** Contains response data for the listNext operation. */ +export type ResourceSkusListNextResponse = ResourceSkusResult; /** Optional parameters. */ export interface GalleriesCreateOrUpdateOptionalParams diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 12978d03ca18..188d9fb18567 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -6184,26 +6184,20 @@ export const LogAnalyticsOutput: coreClient.CompositeMapper = { } }; -export const RunCommandListResult: coreClient.CompositeMapper = { +export const DiskSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunCommandListResult", + className: "DiskSku", modelProperties: { - value: { - serializedName: "value", - required: true, + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandDocumentBase" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -6212,43 +6206,55 @@ export const RunCommandListResult: coreClient.CompositeMapper = { } }; -export const RunCommandDocumentBase: coreClient.CompositeMapper = { +export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunCommandDocumentBase", + className: "PurchasePlanAutoGenerated", modelProperties: { - schema: { - serializedName: "$schema", + name: { + serializedName: "name", required: true, type: { name: "String" } }, - id: { - serializedName: "id", + publisher: { + serializedName: "publisher", required: true, type: { name: "String" } }, - osType: { - serializedName: "osType", + product: { + serializedName: "product", required: true, type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] + name: "String" } }, - label: { - serializedName: "label", - required: true, + promotionCode: { + serializedName: "promotionCode", type: { name: "String" } + } + } + } +}; + +export const SupportedCapabilities: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SupportedCapabilities", + modelProperties: { + acceleratedNetwork: { + serializedName: "acceleratedNetwork", + type: { + name: "Boolean" + } }, - description: { - serializedName: "description", - required: true, + architecture: { + serializedName: "architecture", type: { name: "String" } @@ -6257,144 +6263,173 @@ export const RunCommandDocumentBase: coreClient.CompositeMapper = { } }; -export const RunCommandParameterDefinition: coreClient.CompositeMapper = { +export const CreationData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunCommandParameterDefinition", + className: "CreationData", modelProperties: { - name: { - serializedName: "name", + createOption: { + serializedName: "createOption", required: true, type: { name: "String" } }, - type: { - serializedName: "type", - required: true, + storageAccountId: { + serializedName: "storageAccountId", type: { name: "String" } }, - defaultValue: { - serializedName: "defaultValue", + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageDiskReference" + } + }, + galleryImageReference: { + serializedName: "galleryImageReference", + type: { + name: "Composite", + className: "ImageDiskReference" + } + }, + sourceUri: { + serializedName: "sourceUri", type: { name: "String" } }, - required: { - defaultValue: false, - serializedName: "required", + sourceResourceId: { + serializedName: "sourceResourceId", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const RunCommandInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RunCommandInput", - modelProperties: { - commandId: { - serializedName: "commandId", - required: true, + }, + sourceUniqueId: { + serializedName: "sourceUniqueId", + readOnly: true, type: { name: "String" } }, - script: { - serializedName: "script", + uploadSizeBytes: { + serializedName: "uploadSizeBytes", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - parameters: { - serializedName: "parameters", + logicalSectorSize: { + serializedName: "logicalSectorSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandInputParameter" - } - } + name: "Number" + } + }, + securityDataUri: { + serializedName: "securityDataUri", + type: { + name: "String" } } } } }; -export const RunCommandInputParameter: coreClient.CompositeMapper = { +export const ImageDiskReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunCommandInputParameter", + className: "ImageDiskReference", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", required: true, type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + lun: { + serializedName: "lun", type: { - name: "String" + name: "Number" } } } } }; -export const RunCommandResult: coreClient.CompositeMapper = { +export const EncryptionSettingsCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RunCommandResult", + className: "EncryptionSettingsCollection", modelProperties: { - value: { - serializedName: "value", + enabled: { + serializedName: "enabled", + required: true, + type: { + name: "Boolean" + } + }, + encryptionSettings: { + serializedName: "encryptionSettings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InstanceViewStatus" + className: "EncryptionSettingsElement" } } } + }, + encryptionSettingsVersion: { + serializedName: "encryptionSettingsVersion", + type: { + name: "String" + } } } } }; -export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = { +export const EncryptionSettingsElement: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource", + className: "EncryptionSettingsElement", modelProperties: { - script: { - serializedName: "script", + diskEncryptionKey: { + serializedName: "diskEncryptionKey", type: { - name: "String" + name: "Composite", + className: "KeyVaultAndSecretReference" } }, - scriptUri: { - serializedName: "scriptUri", + keyEncryptionKey: { + serializedName: "keyEncryptionKey", type: { - name: "String" + name: "Composite", + className: "KeyVaultAndKeyReference" + } + } + } + } +}; + +export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultAndSecretReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SourceVault" } }, - commandId: { - serializedName: "commandId", + secretUrl: { + serializedName: "secretUrl", + required: true, type: { name: "String" } @@ -6403,89 +6438,88 @@ export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = } }; -export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = { +export const SourceVault: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView", + className: "SourceVault", modelProperties: { - executionState: { - serializedName: "executionState", + id: { + serializedName: "id", type: { name: "String" } + } + } + } +}; + +export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultAndKeyReference", + modelProperties: { + sourceVault: { + serializedName: "sourceVault", + type: { + name: "Composite", + className: "SourceVault" + } }, - executionMessage: { - serializedName: "executionMessage", + keyUrl: { + serializedName: "keyUrl", + required: true, type: { name: "String" } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - output: { - serializedName: "output", + } + } + } +}; + +export const Encryption: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Encryption", + modelProperties: { + diskEncryptionSetId: { + serializedName: "diskEncryptionSetId", type: { name: "String" } }, - error: { - serializedName: "error", + type: { + serializedName: "type", type: { name: "String" } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } - }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } } } } }; -export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { +export const ShareInfoElement: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineRunCommandsListResult", + className: "ShareInfoElement", modelProperties: { - value: { - serializedName: "value", - required: true, + vmUri: { + serializedName: "vmUri", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineRunCommand" - } - } + name: "String" } - }, - nextLink: { - serializedName: "nextLink", + } + } + } +}; + +export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PropertyUpdatesInProgress", + modelProperties: { + targetTier: { + serializedName: "targetTier", type: { name: "String" } @@ -6494,26 +6528,19 @@ export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { } }; -export const ResourceSkusResult: coreClient.CompositeMapper = { +export const DiskSecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkusResult", + className: "DiskSecurityProfile", modelProperties: { - value: { - serializedName: "value", - required: true, + securityType: { + serializedName: "securityType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSku" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + secureVMDiskEncryptionSetId: { + serializedName: "secureVMDiskEncryptionSetId", type: { name: "String" } @@ -6522,230 +6549,141 @@ export const ResourceSkusResult: coreClient.CompositeMapper = { } }; -export const ResourceSku: coreClient.CompositeMapper = { +export const DiskUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSku", + className: "DiskUpdate", modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - name: { - serializedName: "name", - readOnly: true, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "DiskSku" } }, - tier: { - serializedName: "tier", - readOnly: true, + osType: { + serializedName: "properties.osType", type: { - name: "String" + name: "Enum", + allowedValues: ["Windows", "Linux"] } }, - size: { - serializedName: "size", - readOnly: true, + diskSizeGB: { + serializedName: "properties.diskSizeGB", type: { - name: "String" + name: "Number" } }, - family: { - serializedName: "family", - readOnly: true, + encryptionSettingsCollection: { + serializedName: "properties.encryptionSettingsCollection", type: { - name: "String" + name: "Composite", + className: "EncryptionSettingsCollection" } }, - kind: { - serializedName: "kind", - readOnly: true, + diskIopsReadWrite: { + serializedName: "properties.diskIOPSReadWrite", type: { - name: "String" + name: "Number" } }, - capacity: { - serializedName: "capacity", + diskMBpsReadWrite: { + serializedName: "properties.diskMBpsReadWrite", type: { - name: "Composite", - className: "ResourceSkuCapacity" + name: "Number" } }, - locations: { - serializedName: "locations", - readOnly: true, + diskIopsReadOnly: { + serializedName: "properties.diskIOPSReadOnly", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - locationInfo: { - serializedName: "locationInfo", - readOnly: true, + diskMBpsReadOnly: { + serializedName: "properties.diskMBpsReadOnly", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo" - } - } + name: "Number" } }, - apiVersions: { - serializedName: "apiVersions", - readOnly: true, + maxShares: { + serializedName: "properties.maxShares", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - costs: { - serializedName: "costs", - readOnly: true, + encryption: { + serializedName: "properties.encryption", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCosts" - } - } + name: "Composite", + className: "Encryption" } }, - capabilities: { - serializedName: "capabilities", - readOnly: true, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } + name: "String" } }, - restrictions: { - serializedName: "restrictions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuRestrictions" - } - } - } - } - } - } -}; - -export const ResourceSkuCapacity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuCapacity", - modelProperties: { - minimum: { - serializedName: "minimum", - readOnly: true, + diskAccessId: { + serializedName: "properties.diskAccessId", type: { - name: "Number" + name: "String" } }, - maximum: { - serializedName: "maximum", - readOnly: true, + tier: { + serializedName: "properties.tier", type: { - name: "Number" + name: "String" } }, - default: { - serializedName: "default", - readOnly: true, + burstingEnabled: { + serializedName: "properties.burstingEnabled", type: { - name: "Number" + name: "Boolean" } }, - scaleType: { - serializedName: "scaleType", - readOnly: true, + purchasePlan: { + serializedName: "properties.purchasePlan", type: { - name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] + name: "Composite", + className: "PurchasePlanAutoGenerated" } - } - } - } -}; - -export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuLocationInfo", - modelProperties: { - location: { - serializedName: "location", - readOnly: true, + }, + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", type: { - name: "String" + name: "Composite", + className: "SupportedCapabilities" } }, - zones: { - serializedName: "zones", - readOnly: true, + propertyUpdatesInProgress: { + serializedName: "properties.propertyUpdatesInProgress", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "PropertyUpdatesInProgress" } }, - zoneDetails: { - serializedName: "zoneDetails", - readOnly: true, + supportsHibernation: { + serializedName: "properties.supportsHibernation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails" - } - } + name: "Boolean" } }, - extendedLocations: { - serializedName: "extendedLocations", - readOnly: true, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", type: { name: "String" } @@ -6754,84 +6692,77 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { } }; -export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { +export const DiskList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuZoneDetails", + className: "DiskList", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "Disk" } } } }, - capabilities: { - serializedName: "capabilities", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuCapabilities" - } - } + name: "String" } } } } }; -export const ResourceSkuCapabilities: coreClient.CompositeMapper = { +export const GrantAccessData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCapabilities", + className: "GrantAccessData", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + access: { + serializedName: "access", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", - readOnly: true, + durationInSeconds: { + serializedName: "durationInSeconds", + required: true, type: { - name: "String" + name: "Number" + } + }, + getSecureVMGuestStateSAS: { + serializedName: "getSecureVMGuestStateSAS", + type: { + name: "Boolean" } } } } }; -export const ResourceSkuCosts: coreClient.CompositeMapper = { +export const AccessUri: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuCosts", + className: "AccessUri", modelProperties: { - meterID: { - serializedName: "meterID", + accessSAS: { + serializedName: "accessSAS", readOnly: true, type: { name: "String" } }, - quantity: { - serializedName: "quantity", - readOnly: true, - type: { - name: "Number" - } - }, - extendedUnit: { - serializedName: "extendedUnit", + securityDataAccessSAS: { + serializedName: "securityDataAccessSAS", readOnly: true, type: { name: "String" @@ -6841,96 +6772,64 @@ export const ResourceSkuCosts: coreClient.CompositeMapper = { } }; -export const ResourceSkuRestrictions: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuRestrictions", + className: "PrivateEndpointConnection", modelProperties: { - type: { - serializedName: "type", + id: { + serializedName: "id", readOnly: true, type: { - name: "Enum", - allowedValues: ["Location", "Zone"] + name: "String" } }, - values: { - serializedName: "values", + name: { + serializedName: "name", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - restrictionInfo: { - serializedName: "restrictionInfo", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "ResourceSkuRestrictionInfo" + name: "String" } }, - reasonCode: { - serializedName: "reasonCode", - readOnly: true, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] + name: "Composite", + className: "PrivateEndpoint" } - } - } - } -}; - -export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkuRestrictionInfo", - modelProperties: { - locations: { - serializedName: "locations", - readOnly: true, + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "PrivateLinkServiceConnectionState" } }, - zones: { - serializedName: "zones", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DiskSku: coreClient.CompositeMapper = { +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSku", + className: "PrivateEndpoint", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + id: { + serializedName: "id", readOnly: true, type: { name: "String" @@ -6940,34 +6839,25 @@ export const DiskSku: coreClient.CompositeMapper = { } }; -export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PurchasePlanAutoGenerated", + className: "PrivateLinkServiceConnectionState", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - publisher: { - serializedName: "publisher", - required: true, + status: { + serializedName: "status", type: { name: "String" } }, - product: { - serializedName: "product", - required: true, + description: { + serializedName: "description", type: { name: "String" } }, - promotionCode: { - serializedName: "promotionCode", + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } @@ -6976,148 +6866,179 @@ export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { } }; -export const SupportedCapabilities: coreClient.CompositeMapper = { +export const DiskAccessUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedCapabilities", + className: "DiskAccessUpdate", modelProperties: { - acceleratedNetwork: { - serializedName: "acceleratedNetwork", - type: { - name: "Boolean" - } - }, - architecture: { - serializedName: "architecture", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const CreationData: coreClient.CompositeMapper = { +export const DiskAccessList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreationData", + className: "DiskAccessList", modelProperties: { - createOption: { - serializedName: "createOption", + value: { + serializedName: "value", required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskAccess" + } + } } }, - storageAccountId: { - serializedName: "storageAccountId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageDiskReference" - } - }, - galleryImageReference: { - serializedName: "galleryImageReference", + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Composite", - className: "ImageDiskReference" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } - }, - sourceUri: { - serializedName: "sourceUri", + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - sourceResourceId: { - serializedName: "sourceResourceId", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - sourceUniqueId: { - serializedName: "sourceUniqueId", + type: { + serializedName: "type", readOnly: true, type: { name: "String" } }, - uploadSizeBytes: { - serializedName: "uploadSizeBytes", + groupId: { + serializedName: "properties.groupId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - logicalSectorSize: { - serializedName: "logicalSectorSize", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - securityDataUri: { - serializedName: "securityDataUri", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ImageDiskReference: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageDiskReference", + className: "PrivateEndpointConnectionListResult", modelProperties: { - id: { - serializedName: "id", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } }, - lun: { - serializedName: "lun", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } } } } }; -export const EncryptionSettingsCollection: coreClient.CompositeMapper = { +export const EncryptionSetIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsCollection", + className: "EncryptionSetIdentity", modelProperties: { - enabled: { - serializedName: "enabled", - required: true, + type: { + serializedName: "type", type: { - name: "Boolean" + name: "String" } }, - encryptionSettings: { - serializedName: "encryptionSettings", + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EncryptionSettingsElement" - } - } + name: "String" } }, - encryptionSettingsVersion: { - serializedName: "encryptionSettingsVersion", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { name: "String" } @@ -7126,59 +7047,91 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { } }; -export const EncryptionSettingsElement: coreClient.CompositeMapper = { +export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSettingsElement", + className: "KeyForDiskEncryptionSet", modelProperties: { - diskEncryptionKey: { - serializedName: "diskEncryptionKey", + sourceVault: { + serializedName: "sourceVault", type: { name: "Composite", - className: "KeyVaultAndSecretReference" + className: "SourceVault" } }, - keyEncryptionKey: { - serializedName: "keyEncryptionKey", + keyUrl: { + serializedName: "keyUrl", + required: true, type: { - name: "Composite", - className: "KeyVaultAndKeyReference" + name: "String" } } } } }; -export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { +export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultAndSecretReference", + className: "DiskEncryptionSetUpdate", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "SourceVault" + className: "EncryptionSetIdentity" } }, - secretUrl: { - serializedName: "secretUrl", - required: true, + encryptionType: { + serializedName: "properties.encryptionType", type: { name: "String" } + }, + activeKey: { + serializedName: "properties.activeKey", + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet" + } + }, + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", + type: { + name: "Boolean" + } } } } }; -export const SourceVault: coreClient.CompositeMapper = { +export const DiskEncryptionSetList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceVault", + className: "DiskEncryptionSetList", modelProperties: { - id: { - serializedName: "id", + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskEncryptionSet" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7187,21 +7140,25 @@ export const SourceVault: coreClient.CompositeMapper = { } }; -export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { +export const ResourceUriList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultAndKeyReference", + className: "ResourceUriList", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "SourceVault" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - keyUrl: { - serializedName: "keyUrl", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7210,19 +7167,28 @@ export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { } }; -export const Encryption: coreClient.CompositeMapper = { +export const ProxyOnlyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Encryption", + className: "ProxyOnlyResource", modelProperties: { - diskEncryptionSetId: { - serializedName: "diskEncryptionSetId", + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, type: { serializedName: "type", + readOnly: true, type: { name: "String" } @@ -7231,14 +7197,26 @@ export const Encryption: coreClient.CompositeMapper = { } }; -export const ShareInfoElement: coreClient.CompositeMapper = { +export const DiskRestorePointList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ShareInfoElement", + className: "DiskRestorePointList", modelProperties: { - vmUri: { - serializedName: "vmUri", - readOnly: true, + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskRestorePoint" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -7247,13 +7225,20 @@ export const ShareInfoElement: coreClient.CompositeMapper = { } }; -export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { +export const SnapshotSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PropertyUpdatesInProgress", + className: "SnapshotSku", modelProperties: { - targetTier: { - serializedName: "targetTier", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } @@ -7262,19 +7247,21 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { } }; -export const DiskSecurityProfile: coreClient.CompositeMapper = { +export const CopyCompletionErrorAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskSecurityProfile", + className: "CopyCompletionErrorAutoGenerated", modelProperties: { - securityType: { - serializedName: "securityType", + errorCode: { + serializedName: "errorCode", + required: true, type: { name: "String" } }, - secureVMDiskEncryptionSetId: { - serializedName: "secureVMDiskEncryptionSetId", + errorMessage: { + serializedName: "errorMessage", + required: true, type: { name: "String" } @@ -7283,10 +7270,10 @@ export const DiskSecurityProfile: coreClient.CompositeMapper = { } }; -export const DiskUpdate: coreClient.CompositeMapper = { +export const SnapshotUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskUpdate", + className: "SnapshotUpdate", modelProperties: { tags: { serializedName: "tags", @@ -7299,7 +7286,7 @@ export const DiskUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" + className: "SnapshotSku" } }, osType: { @@ -7322,36 +7309,6 @@ export const DiskUpdate: coreClient.CompositeMapper = { className: "EncryptionSettingsCollection" } }, - diskIopsReadWrite: { - serializedName: "properties.diskIOPSReadWrite", - type: { - name: "Number" - } - }, - diskMBpsReadWrite: { - serializedName: "properties.diskMBpsReadWrite", - type: { - name: "Number" - } - }, - diskIopsReadOnly: { - serializedName: "properties.diskIOPSReadOnly", - type: { - name: "Number" - } - }, - diskMBpsReadOnly: { - serializedName: "properties.diskMBpsReadOnly", - type: { - name: "Number" - } - }, - maxShares: { - serializedName: "properties.maxShares", - type: { - name: "Number" - } - }, encryption: { serializedName: "properties.encryption", type: { @@ -7371,39 +7328,6 @@ export const DiskUpdate: coreClient.CompositeMapper = { name: "String" } }, - tier: { - serializedName: "properties.tier", - type: { - name: "String" - } - }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", - type: { - name: "Boolean" - } - }, - purchasePlan: { - serializedName: "properties.purchasePlan", - type: { - name: "Composite", - className: "PurchasePlanAutoGenerated" - } - }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", - type: { - name: "Composite", - className: "SupportedCapabilities" - } - }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", - type: { - name: "Composite", - className: "PropertyUpdatesInProgress" - } - }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { @@ -7421,15 +7345,22 @@ export const DiskUpdate: coreClient.CompositeMapper = { type: { name: "String" } + }, + supportedCapabilities: { + serializedName: "properties.supportedCapabilities", + type: { + name: "Composite", + className: "SupportedCapabilities" + } } } } }; -export const DiskList: coreClient.CompositeMapper = { +export const SnapshotList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskList", + className: "SnapshotList", modelProperties: { value: { serializedName: "value", @@ -7439,7 +7370,7 @@ export const DiskList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Disk" + className: "Snapshot" } } } @@ -7454,72 +7385,71 @@ export const DiskList: coreClient.CompositeMapper = { } }; -export const GrantAccessData: coreClient.CompositeMapper = { +export const RunCommandListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GrantAccessData", + className: "RunCommandListResult", modelProperties: { - access: { - serializedName: "access", - required: true, - type: { - name: "String" - } - }, - durationInSeconds: { - serializedName: "durationInSeconds", + value: { + serializedName: "value", required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandDocumentBase" + } + } } }, - getSecureVMGuestStateSAS: { - serializedName: "getSecureVMGuestStateSAS", + nextLink: { + serializedName: "nextLink", type: { - name: "Boolean" + name: "String" } } } } }; -export const AccessUri: coreClient.CompositeMapper = { +export const RunCommandDocumentBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessUri", + className: "RunCommandDocumentBase", modelProperties: { - accessSAS: { - serializedName: "accessSAS", - readOnly: true, + schema: { + serializedName: "$schema", + required: true, type: { name: "String" } }, - securityDataAccessSAS: { - serializedName: "securityDataAccessSAS", - readOnly: true, + id: { + serializedName: "id", + required: true, type: { name: "String" } - } - } - } -}; - -export const SnapshotSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SnapshotSku", - modelProperties: { - name: { - serializedName: "name", + }, + osType: { + serializedName: "osType", + required: true, + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"] + } + }, + label: { + serializedName: "label", + required: true, type: { name: "String" } }, - tier: { - serializedName: "tier", - readOnly: true, + description: { + serializedName: "description", + required: true, type: { name: "String" } @@ -7528,142 +7458,144 @@ export const SnapshotSku: coreClient.CompositeMapper = { } }; -export const SnapshotUpdate: coreClient.CompositeMapper = { +export const RunCommandParameterDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotUpdate", + className: "RunCommandParameterDefinition", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SnapshotSku" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", + name: { + serializedName: "name", + required: true, type: { - name: "Number" + name: "String" } }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", + type: { + serializedName: "type", + required: true, type: { - name: "Composite", - className: "EncryptionSettingsCollection" + name: "String" } }, - encryption: { - serializedName: "properties.encryption", + defaultValue: { + serializedName: "defaultValue", type: { - name: "Composite", - className: "Encryption" + name: "String" } }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", + required: { + defaultValue: false, + serializedName: "required", type: { - name: "String" + name: "Boolean" } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", + } + } + } +}; + +export const RunCommandInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunCommandInput", + modelProperties: { + commandId: { + serializedName: "commandId", + required: true, type: { name: "String" } }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + script: { + serializedName: "script", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + parameters: { + serializedName: "parameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + } + } + } +}; + +export const RunCommandInputParameter: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunCommandInputParameter", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "SupportedCapabilities" + name: "String" } } } } }; -export const SnapshotList: coreClient.CompositeMapper = { +export const RunCommandResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotList", + className: "RunCommandResult", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Snapshot" + className: "InstanceViewStatus" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const EncryptionSetIdentity: coreClient.CompositeMapper = { +export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionSetIdentity", + className: "VirtualMachineRunCommandScriptSource", modelProperties: { - type: { - serializedName: "type", + script: { + serializedName: "script", type: { name: "String" } }, - principalId: { - serializedName: "principalId", - readOnly: true, + scriptUri: { + serializedName: "scriptUri", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + commandId: { + serializedName: "commandId", type: { name: "String" } @@ -7672,75 +7604,73 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { } }; -export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { +export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyForDiskEncryptionSet", + className: "VirtualMachineRunCommandInstanceView", modelProperties: { - sourceVault: { - serializedName: "sourceVault", + executionState: { + serializedName: "executionState", type: { - name: "Composite", - className: "SourceVault" + name: "String" } }, - keyUrl: { - serializedName: "keyUrl", - required: true, + executionMessage: { + serializedName: "executionMessage", type: { name: "String" } - } - } - } -}; - -export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskEncryptionSetUpdate", - modelProperties: { - tags: { - serializedName: "tags", + }, + exitCode: { + serializedName: "exitCode", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - identity: { - serializedName: "identity", + output: { + serializedName: "output", type: { - name: "Composite", - className: "EncryptionSetIdentity" + name: "String" } }, - encryptionType: { - serializedName: "properties.encryptionType", + error: { + serializedName: "error", type: { name: "String" } }, - activeKey: { - serializedName: "properties.activeKey", + startTime: { + serializedName: "startTime", type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" + name: "DateTime" } }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", + endTime: { + serializedName: "endTime", type: { - name: "Boolean" + name: "DateTime" + } + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus" + } + } } } } } }; -export const DiskEncryptionSetList: coreClient.CompositeMapper = { +export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSetList", + className: "VirtualMachineRunCommandsListResult", modelProperties: { value: { serializedName: "value", @@ -7750,7 +7680,7 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSet" + className: "VirtualMachineRunCommand" } } } @@ -7765,10 +7695,10 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { } }; -export const ResourceUriList: coreClient.CompositeMapper = { +export const ResourceSkusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceUriList", + className: "ResourceSkusResult", modelProperties: { value: { serializedName: "value", @@ -7777,7 +7707,8 @@ export const ResourceUriList: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourceSku" } } } @@ -7792,13 +7723,13 @@ export const ResourceUriList: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const ResourceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ResourceSku", modelProperties: { - id: { - serializedName: "id", + resourceType: { + serializedName: "resourceType", readOnly: true, type: { name: "String" @@ -7811,163 +7742,206 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "String" } }, - type: { - serializedName: "type", + tier: { + serializedName: "tier", readOnly: true, type: { name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + size: { + serializedName: "size", + readOnly: true, type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + family: { + serializedName: "family", + readOnly: true, + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" + className: "ResourceSkuCapacity" + } + }, + locations: { + serializedName: "locations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + serializedName: "locationInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + apiVersions: { + serializedName: "apiVersions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + costs: { + serializedName: "costs", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCosts" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuCapabilities" + } + } } }, - provisioningState: { - serializedName: "properties.provisioningState", + restrictions: { + serializedName: "restrictions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuRestrictions" + } + } } } } } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const ResourceSkuCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "ResourceSkuCapacity", modelProperties: { - id: { - serializedName: "id", + minimum: { + serializedName: "minimum", readOnly: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", + }, + maximum: { + serializedName: "maximum", + readOnly: true, type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + default: { + serializedName: "default", + readOnly: true, type: { - name: "String" + name: "Number" } }, - actionsRequired: { - serializedName: "actionsRequired", + scaleType: { + serializedName: "scaleType", + readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Automatic", "Manual", "None"] } } } } }; -export const DiskAccessUpdate: coreClient.CompositeMapper = { +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskAccessUpdate", + className: "ResourceSkuLocationInfo", modelProperties: { - tags: { - serializedName: "tags", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } - } - } - } -}; - -export const DiskAccessList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccessList", - modelProperties: { - value: { - serializedName: "value", - required: true, + }, + zones: { + serializedName: "zones", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DiskAccess" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + zoneDetails: { + serializedName: "zoneDetails", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "ResourceSkuZoneDetails" } } } - } - } - } -}; - -export const PrivateLinkResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } }, - name: { - serializedName: "name", + extendedLocations: { + serializedName: "extendedLocations", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, type: { @@ -7976,16 +7950,18 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "String" } - }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - type: { - name: "String" - } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", + } + } + } +}; + +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails", + modelProperties: { + name: { + serializedName: "name", readOnly: true, type: { name: "Sequence", @@ -7996,13 +7972,15 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + capabilities: { + serializedName: "capabilities", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResourceSkuCapabilities" } } } @@ -8011,25 +7989,21 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const ResourceSkuCapabilities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "ResourceSkuCapabilities", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } @@ -8038,58 +8012,107 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const ProxyOnlyResource: coreClient.CompositeMapper = { +export const ResourceSkuCosts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyOnlyResource", + className: "ResourceSkuCosts", modelProperties: { - id: { - serializedName: "id", + meterID: { + serializedName: "meterID", readOnly: true, type: { name: "String" } }, - name: { - serializedName: "name", + quantity: { + serializedName: "quantity", readOnly: true, type: { - name: "String" + name: "Number" } }, + extendedUnit: { + serializedName: "extendedUnit", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuRestrictions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSkuRestrictions", + modelProperties: { type: { serializedName: "type", readOnly: true, type: { - name: "String" + name: "Enum", + allowedValues: ["Location", "Zone"] + } + }, + values: { + serializedName: "values", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + restrictionInfo: { + serializedName: "restrictionInfo", + type: { + name: "Composite", + className: "ResourceSkuRestrictionInfo" + } + }, + reasonCode: { + serializedName: "reasonCode", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["QuotaId", "NotAvailableForSubscription"] } } } } }; -export const DiskRestorePointList: coreClient.CompositeMapper = { +export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskRestorePointList", + className: "ResourceSkuRestrictionInfo", modelProperties: { - value: { - serializedName: "value", - required: true, + locations: { + serializedName: "locations", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "DiskRestorePoint" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + zones: { + serializedName: "zones", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -12401,98 +12424,6 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { } }; -export const VirtualMachineRunCommand: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineRunCommand", - modelProperties: { - ...Resource.type.modelProperties, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } - }, - parameters: { - serializedName: "properties.parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandInputParameter" - } - } - } - }, - protectedParameters: { - serializedName: "properties.protectedParameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandInputParameter" - } - } - } - }, - asyncExecution: { - defaultValue: false, - serializedName: "properties.asyncExecution", - type: { - name: "Boolean" - } - }, - runAsUser: { - serializedName: "properties.runAsUser", - type: { - name: "String" - } - }, - runAsPassword: { - serializedName: "properties.runAsPassword", - type: { - name: "String" - } - }, - timeoutInSeconds: { - serializedName: "properties.timeoutInSeconds", - type: { - name: "Number" - } - }, - outputBlobUri: { - serializedName: "properties.outputBlobUri", - type: { - name: "String" - } - }, - errorBlobUri: { - serializedName: "properties.errorBlobUri", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } - } - } - } -}; - export const Disk: coreClient.CompositeMapper = { type: { name: "Composite", @@ -12656,85 +12587,199 @@ export const Disk: coreClient.CompositeMapper = { className: "Encryption" } }, - maxShares: { - serializedName: "properties.maxShares", + maxShares: { + serializedName: "properties.maxShares", + type: { + name: "Number" + } + }, + shareInfo: { + serializedName: "properties.shareInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ShareInfoElement" + } + } + } + }, + networkAccessPolicy: { + serializedName: "properties.networkAccessPolicy", + type: { + name: "String" + } + }, + diskAccessId: { + serializedName: "properties.diskAccessId", + type: { + name: "String" + } + }, + tier: { + serializedName: "properties.tier", + type: { + name: "String" + } + }, + burstingEnabled: { + serializedName: "properties.burstingEnabled", + type: { + name: "Boolean" + } + }, + propertyUpdatesInProgress: { + serializedName: "properties.propertyUpdatesInProgress", + type: { + name: "Composite", + className: "PropertyUpdatesInProgress" + } + }, + supportsHibernation: { + serializedName: "properties.supportsHibernation", + type: { + name: "Boolean" + } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "DiskSecurityProfile" + } + }, + completionPercent: { + serializedName: "properties.completionPercent", + type: { + name: "Number" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", + type: { + name: "String" + } + } + } + } +}; + +export const DiskAccess: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskAccess", + modelProperties: { + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const DiskEncryptionSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskEncryptionSet", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "EncryptionSetIdentity" + } + }, + encryptionType: { + serializedName: "properties.encryptionType", + type: { + name: "String" + } + }, + activeKey: { + serializedName: "properties.activeKey", type: { - name: "Number" + name: "Composite", + className: "KeyForDiskEncryptionSet" } }, - shareInfo: { - serializedName: "properties.shareInfo", + previousKeys: { + serializedName: "properties.previousKeys", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ShareInfoElement" + className: "KeyForDiskEncryptionSet" } } } }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", - type: { - name: "String" - } - }, - tier: { - serializedName: "properties.tier", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - burstingEnabled: { - serializedName: "properties.burstingEnabled", + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { name: "Boolean" } }, - propertyUpdatesInProgress: { - serializedName: "properties.propertyUpdatesInProgress", - type: { - name: "Composite", - className: "PropertyUpdatesInProgress" - } - }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + lastKeyRotationTimestamp: { + serializedName: "properties.lastKeyRotationTimestamp", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - securityProfile: { - serializedName: "properties.securityProfile", + autoKeyRotationError: { + serializedName: "properties.autoKeyRotationError", type: { name: "Composite", - className: "DiskSecurityProfile" - } - }, - completionPercent: { - serializedName: "properties.completionPercent", - type: { - name: "Number" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" + className: "ApiError" } } } @@ -12900,6 +12945,13 @@ export const Snapshot: coreClient.CompositeMapper = { name: "Number" } }, + copyCompletionError: { + serializedName: "properties.copyCompletionError", + type: { + name: "Composite", + className: "CopyCompletionErrorAutoGenerated" + } + }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { @@ -12910,100 +12962,78 @@ export const Snapshot: coreClient.CompositeMapper = { } }; -export const DiskEncryptionSet: coreClient.CompositeMapper = { +export const VirtualMachineRunCommand: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiskEncryptionSet", + className: "VirtualMachineRunCommand", modelProperties: { ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + source: { + serializedName: "properties.source", type: { name: "Composite", - className: "EncryptionSetIdentity" - } - }, - encryptionType: { - serializedName: "properties.encryptionType", - type: { - name: "String" + className: "VirtualMachineRunCommandScriptSource" } }, - activeKey: { - serializedName: "properties.activeKey", + parameters: { + serializedName: "properties.parameters", type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandInputParameter" + } + } } }, - previousKeys: { - serializedName: "properties.previousKeys", - readOnly: true, + protectedParameters: { + serializedName: "properties.protectedParameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "KeyForDiskEncryptionSet" + className: "RunCommandInputParameter" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + asyncExecution: { + defaultValue: false, + serializedName: "properties.asyncExecution", type: { - name: "String" + name: "Boolean" } }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", + runAsUser: { + serializedName: "properties.runAsUser", type: { - name: "Boolean" + name: "String" } }, - lastKeyRotationTimestamp: { - serializedName: "properties.lastKeyRotationTimestamp", - readOnly: true, + runAsPassword: { + serializedName: "properties.runAsPassword", type: { - name: "DateTime" + name: "String" } }, - autoKeyRotationError: { - serializedName: "properties.autoKeyRotationError", + timeoutInSeconds: { + serializedName: "properties.timeoutInSeconds", type: { - name: "Composite", - className: "ApiError" + name: "Number" } - } - } - } -}; - -export const DiskAccess: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiskAccess", - modelProperties: { - ...Resource.type.modelProperties, - extendedLocation: { - serializedName: "extendedLocation", + }, + outputBlobUri: { + serializedName: "properties.outputBlobUri", type: { - name: "Composite", - className: "ExtendedLocation" + name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + errorBlobUri: { + serializedName: "properties.errorBlobUri", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "String" } }, provisioningState: { @@ -13013,11 +13043,11 @@ export const DiskAccess: coreClient.CompositeMapper = { name: "String" } }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, + instanceView: { + serializedName: "properties.instanceView", type: { - name: "DateTime" + name: "Composite", + className: "VirtualMachineRunCommandInstanceView" } } } @@ -14762,40 +14792,6 @@ export const ThrottledRequestsInput: coreClient.CompositeMapper = { } }; -export const RunCommandDocument: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RunCommandDocument", - modelProperties: { - ...RunCommandDocumentBase.type.modelProperties, - script: { - serializedName: "script", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RunCommandParameterDefinition" - } - } - } - } - } - } -}; - export const DiskRestorePoint: coreClient.CompositeMapper = { type: { name: "Composite", @@ -14908,6 +14904,47 @@ export const DiskRestorePoint: coreClient.CompositeMapper = { type: { name: "String" } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "DiskSecurityProfile" + } + } + } + } +}; + +export const RunCommandDocument: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RunCommandDocument", + modelProperties: { + ...RunCommandDocumentBase.type.modelProperties, + script: { + serializedName: "script", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RunCommandParameterDefinition" + } + } + } } } } diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 3b84e2941ec9..619348e1cbc0 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -54,18 +54,18 @@ import { VirtualMachineScaleSetVM as VirtualMachineScaleSetVMMapper, RequestRateByIntervalInput as RequestRateByIntervalInputMapper, ThrottledRequestsInput as ThrottledRequestsInputMapper, - VirtualMachineRunCommand as VirtualMachineRunCommandMapper, - VirtualMachineRunCommandUpdate as VirtualMachineRunCommandUpdateMapper, Disk as DiskMapper, DiskUpdate as DiskUpdateMapper, GrantAccessData as GrantAccessDataMapper, - Snapshot as SnapshotMapper, - SnapshotUpdate as SnapshotUpdateMapper, - DiskEncryptionSet as DiskEncryptionSetMapper, - DiskEncryptionSetUpdate as DiskEncryptionSetUpdateMapper, DiskAccess as DiskAccessMapper, DiskAccessUpdate as DiskAccessUpdateMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, + DiskEncryptionSet as DiskEncryptionSetMapper, + DiskEncryptionSetUpdate as DiskEncryptionSetUpdateMapper, + Snapshot as SnapshotMapper, + SnapshotUpdate as SnapshotUpdateMapper, + VirtualMachineRunCommand as VirtualMachineRunCommandMapper, + VirtualMachineRunCommandUpdate as VirtualMachineRunCommandUpdateMapper, Gallery as GalleryMapper, GalleryUpdate as GalleryUpdateMapper, GalleryImage as GalleryImageMapper, @@ -867,60 +867,6 @@ export const parameters30: OperationParameter = { mapper: ThrottledRequestsInputMapper }; -export const commandId: OperationURLParameter = { - parameterPath: "commandId", - mapper: { - serializedName: "commandId", - required: true, - type: { - name: "String" - } - } -}; - -export const runCommand: OperationParameter = { - parameterPath: "runCommand", - mapper: VirtualMachineRunCommandMapper -}; - -export const runCommandName: OperationURLParameter = { - parameterPath: "runCommandName", - mapper: { - serializedName: "runCommandName", - required: true, - type: { - name: "String" - } - } -}; - -export const runCommand1: OperationParameter = { - parameterPath: "runCommand", - mapper: VirtualMachineRunCommandUpdateMapper -}; - -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2021-07-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const includeExtendedLocations: OperationQueryParameter = { - parameterPath: ["options", "includeExtendedLocations"], - mapper: { - serializedName: "includeExtendedLocations", - type: { - name: "String" - } - } -}; - export const disk: OperationParameter = { parameterPath: "disk", mapper: DiskMapper @@ -937,10 +883,10 @@ export const diskName: OperationURLParameter = { } }; -export const apiVersion2: OperationQueryParameter = { +export const apiVersion1: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-12-01", + defaultValue: "2022-03-02", isConstant: true, serializedName: "api-version", type: { @@ -959,15 +905,15 @@ export const grantAccessData: OperationParameter = { mapper: GrantAccessDataMapper }; -export const snapshot: OperationParameter = { - parameterPath: "snapshot", - mapper: SnapshotMapper +export const diskAccess: OperationParameter = { + parameterPath: "diskAccess", + mapper: DiskAccessMapper }; -export const snapshotName: OperationURLParameter = { - parameterPath: "snapshotName", +export const diskAccessName: OperationURLParameter = { + parameterPath: "diskAccessName", mapper: { - serializedName: "snapshotName", + serializedName: "diskAccessName", required: true, type: { name: "String" @@ -975,9 +921,25 @@ export const snapshotName: OperationURLParameter = { } }; -export const snapshot1: OperationParameter = { - parameterPath: "snapshot", - mapper: SnapshotUpdateMapper +export const diskAccess1: OperationParameter = { + parameterPath: "diskAccess", + mapper: DiskAccessUpdateMapper +}; + +export const privateEndpointConnection: OperationParameter = { + parameterPath: "privateEndpointConnection", + mapper: PrivateEndpointConnectionMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + serializedName: "privateEndpointConnectionName", + required: true, + type: { + name: "String" + } + } }; export const diskEncryptionSet: OperationParameter = { @@ -1001,15 +963,21 @@ export const diskEncryptionSet1: OperationParameter = { mapper: DiskEncryptionSetUpdateMapper }; -export const diskAccess: OperationParameter = { - parameterPath: "diskAccess", - mapper: DiskAccessMapper +export const vmRestorePointName: OperationURLParameter = { + parameterPath: "vmRestorePointName", + mapper: { + serializedName: "vmRestorePointName", + required: true, + type: { + name: "String" + } + } }; -export const diskAccessName: OperationURLParameter = { - parameterPath: "diskAccessName", +export const diskRestorePointName: OperationURLParameter = { + parameterPath: "diskRestorePointName", mapper: { - serializedName: "diskAccessName", + serializedName: "diskRestorePointName", required: true, type: { name: "String" @@ -1017,20 +985,31 @@ export const diskAccessName: OperationURLParameter = { } }; -export const diskAccess1: OperationParameter = { - parameterPath: "diskAccess", - mapper: DiskAccessUpdateMapper +export const snapshot: OperationParameter = { + parameterPath: "snapshot", + mapper: SnapshotMapper }; -export const privateEndpointConnection: OperationParameter = { - parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper +export const snapshotName: OperationURLParameter = { + parameterPath: "snapshotName", + mapper: { + serializedName: "snapshotName", + required: true, + type: { + name: "String" + } + } }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const snapshot1: OperationParameter = { + parameterPath: "snapshot", + mapper: SnapshotUpdateMapper +}; + +export const commandId: OperationURLParameter = { + parameterPath: "commandId", mapper: { - serializedName: "privateEndpointConnectionName", + serializedName: "commandId", required: true, type: { name: "String" @@ -1038,10 +1017,15 @@ export const privateEndpointConnectionName: OperationURLParameter = { } }; -export const vmRestorePointName: OperationURLParameter = { - parameterPath: "vmRestorePointName", +export const runCommand: OperationParameter = { + parameterPath: "runCommand", + mapper: VirtualMachineRunCommandMapper +}; + +export const runCommandName: OperationURLParameter = { + parameterPath: "runCommandName", mapper: { - serializedName: "vmRestorePointName", + serializedName: "runCommandName", required: true, type: { name: "String" @@ -1049,11 +1033,27 @@ export const vmRestorePointName: OperationURLParameter = { } }; -export const diskRestorePointName: OperationURLParameter = { - parameterPath: "diskRestorePointName", +export const runCommand1: OperationParameter = { + parameterPath: "runCommand", + mapper: VirtualMachineRunCommandUpdateMapper +}; + +export const apiVersion2: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "diskRestorePointName", - required: true, + defaultValue: "2021-07-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const includeExtendedLocations: OperationQueryParameter = { + parameterPath: ["options", "includeExtendedLocations"], + mapper: { + serializedName: "includeExtendedLocations", type: { name: "String" } diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts index 1692607db4eb..ed1e79636d7e 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -187,12 +187,10 @@ export class CapacityReservationsImpl implements CapacityReservations { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -292,12 +290,10 @@ export class CapacityReservationsImpl implements CapacityReservations { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -389,12 +385,10 @@ export class CapacityReservationsImpl implements CapacityReservations { }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts index bf082c2e0dd7..3637849f471e 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -171,12 +171,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -315,12 +313,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -404,12 +400,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -494,12 +488,10 @@ export class CloudServiceRoleInstancesImpl { roleInstanceName, resourceGroupName, cloudServiceName, options }, rebuildOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index ea7aa920d812..fef5709d097d 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -210,12 +210,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -298,12 +296,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -380,12 +376,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -524,12 +518,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -607,12 +599,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -690,12 +680,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -773,12 +761,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -858,12 +844,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, rebuildOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -942,12 +926,10 @@ export class CloudServicesImpl implements CloudServices { { resourceGroupName, cloudServiceName, options }, deleteInstancesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index 3750c3b2629c..e18328bd0016 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -169,12 +169,10 @@ export class CloudServicesUpdateDomainImpl { resourceGroupName, cloudServiceName, updateDomain, options }, walkUpdateDomainOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/communityGalleries.ts b/sdk/compute/arm-compute/src/operations/communityGalleries.ts index 34331ae4ea8d..6ddd78206f76 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleries.ts @@ -60,7 +60,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts index 3c4df4024c2d..2fd3df9e5858 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts @@ -73,7 +73,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts index 487c976b6a77..1c54537ca609 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts @@ -62,7 +62,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index ae11c9fe68c6..485711ab196d 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -28,7 +28,7 @@ import { DedicatedHostsGetResponse, DedicatedHostsListByHostGroupResponse, DedicatedHostsRestartOptionalParams, - DedicatedHostsListByHostGroupNextResponse, + DedicatedHostsListByHostGroupNextResponse } from "../models"; /// @@ -56,7 +56,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, options?: DedicatedHostsListByHostGroupOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByHostGroupPagingAll(resourceGroupName, hostGroupName, options); + const iter = this.listByHostGroupPagingAll( + resourceGroupName, + hostGroupName, + options + ); return { next() { return iter.next(); @@ -65,8 +69,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { return this; }, byPage: () => { - return this.listByHostGroupPagingPage(resourceGroupName, hostGroupName, options); - }, + return this.listByHostGroupPagingPage( + resourceGroupName, + hostGroupName, + options + ); + } }; } @@ -75,7 +83,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, options?: DedicatedHostsListByHostGroupOptionalParams ): AsyncIterableIterator { - let result = await this._listByHostGroup(resourceGroupName, hostGroupName, options); + let result = await this._listByHostGroup( + resourceGroupName, + hostGroupName, + options + ); yield result.value || []; let continuationToken = result.nextLink; while (continuationToken) { @@ -134,7 +146,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -147,8 +161,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback, - }, + onResponse: callback + } }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -156,8 +170,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, + headers: currentRawResponse!.headers.toJSON() + } }; }; @@ -166,12 +180,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, + intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -214,7 +226,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams ): Promise< - PollerLike, DedicatedHostsUpdateResponse> + PollerLike< + PollOperationState, + DedicatedHostsUpdateResponse + > > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -226,7 +241,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -239,8 +256,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback, - }, + onResponse: callback + } }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -248,8 +265,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, + headers: currentRawResponse!.headers.toJSON() + } }; }; @@ -258,12 +275,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, + intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -314,7 +329,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -327,8 +344,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback, - }, + onResponse: callback + } }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -336,8 +353,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, + headers: currentRawResponse!.headers.toJSON() + } }; }; @@ -346,12 +363,10 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, + intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -367,7 +382,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostName: string, options?: DedicatedHostsDeleteOptionalParams ): Promise { - const poller = await this.beginDelete(resourceGroupName, hostGroupName, hostName, options); + const poller = await this.beginDelete( + resourceGroupName, + hostGroupName, + hostName, + options + ); return poller.pollUntilDone(); } @@ -412,7 +432,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { * Restart the dedicated host. The operation will complete successfully once the dedicated host has * restarted and is running. To determine the health of VMs deployed on the dedicated host after the * restart check the Resource Health Center in the Azure Portal. Please refer to - * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. + * https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more details. * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host. @@ -434,7 +454,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -447,8 +469,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback, - }, + onResponse: callback + } }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -456,8 +478,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, + headers: currentRawResponse!.headers.toJSON() + } }; }; @@ -466,19 +488,17 @@ export class DedicatedHostsImpl implements DedicatedHosts { { resourceGroupName, hostGroupName, hostName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, + intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has * restarted and is running. To determine the health of VMs deployed on the dedicated host after the * restart check the Resource Health Center in the Azure Portal. Please refer to - * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. + * https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more details. * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host. @@ -490,7 +510,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostName: string, options?: DedicatedHostsRestartOptionalParams ): Promise { - const poller = await this.beginRestart(resourceGroupName, hostGroupName, hostName, options); + const poller = await this.beginRestart( + resourceGroupName, + hostGroupName, + hostName, + options + ); return poller.pollUntilDone(); } @@ -517,24 +542,25 @@ export class DedicatedHostsImpl implements DedicatedHosts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, 201: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, 202: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, 204: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, default: { - bodyMapper: Mappers.CloudError, - }, + bodyMapper: Mappers.CloudError + } }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -543,31 +569,32 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.hostGroupName, - Parameters.hostName, + Parameters.hostName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer, + serializer }; const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, 201: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, 202: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, 204: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, default: { - bodyMapper: Mappers.CloudError, - }, + bodyMapper: Mappers.CloudError + } }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -576,14 +603,15 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.hostGroupName, - Parameters.hostName, + Parameters.hostName ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer, + serializer }; const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "DELETE", responses: { 200: {}, @@ -591,8 +619,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError, - }, + bodyMapper: Mappers.CloudError + } }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -600,21 +628,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.hostGroupName, - Parameters.hostName, + Parameters.hostName ], headerParameters: [Parameters.accept], - serializer, + serializer }; const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHost, + bodyMapper: Mappers.DedicatedHost }, default: { - bodyMapper: Mappers.CloudError, - }, + bodyMapper: Mappers.CloudError + } }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -622,34 +651,36 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.hostGroupName, - Parameters.hostName, + Parameters.hostName ], headerParameters: [Parameters.accept], - serializer, + serializer }; const listByHostGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult, + bodyMapper: Mappers.DedicatedHostListResult }, default: { - bodyMapper: Mappers.CloudError, - }, + bodyMapper: Mappers.CloudError + } }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.hostGroupName, + Parameters.hostGroupName ], headerParameters: [Parameters.accept], - serializer, + serializer }; const restartOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -657,8 +688,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError, - }, + bodyMapper: Mappers.CloudError + } }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -666,21 +697,21 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.hostGroupName, - Parameters.hostName, + Parameters.hostName ], headerParameters: [Parameters.accept], - serializer, + serializer }; const listByHostGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult, + bodyMapper: Mappers.DedicatedHostListResult }, default: { - bodyMapper: Mappers.CloudError, - }, + bodyMapper: Mappers.CloudError + } }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -688,8 +719,8 @@ const listByHostGroupNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.nextLink, - Parameters.hostGroupName, + Parameters.hostGroupName ], headerParameters: [Parameters.accept], - serializer, + serializer }; diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index f91e34412c92..87286d8adb42 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -291,12 +291,10 @@ export class DiskAccessesImpl implements DiskAccesses { { resourceGroupName, diskAccessName, diskAccess, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -387,12 +385,10 @@ export class DiskAccessesImpl implements DiskAccesses { { resourceGroupName, diskAccessName, diskAccess, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -495,12 +491,10 @@ export class DiskAccessesImpl implements DiskAccesses { { resourceGroupName, diskAccessName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -642,12 +636,10 @@ export class DiskAccessesImpl implements DiskAccesses { }, updateAPrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -769,12 +761,10 @@ export class DiskAccessesImpl implements DiskAccesses { }, deleteAPrivateEndpointConnectionOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -899,7 +889,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskAccess, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -932,7 +922,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskAccess1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -955,7 +945,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -978,7 +968,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1000,7 +990,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1021,7 +1011,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -1035,7 +1025,7 @@ const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.PrivateLinkResourceListResult } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1067,7 +1057,7 @@ const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = } }, requestBody: Parameters.privateEndpointConnection, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1091,7 +1081,7 @@ const getAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1115,7 +1105,7 @@ const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1138,7 +1128,7 @@ const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1159,7 +1149,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1180,7 +1170,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1200,7 +1190,7 @@ const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 99ceb6a95cef..e3d1b52e5e57 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -284,12 +284,10 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -382,12 +380,10 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -491,12 +487,10 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { { resourceGroupName, diskEncryptionSetName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -643,7 +637,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskEncryptionSet, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -676,7 +670,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.diskEncryptionSet1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -699,7 +693,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -722,7 +716,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -744,7 +738,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -765,7 +759,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -782,7 +776,7 @@ const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -803,7 +797,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -824,7 +818,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -844,7 +838,7 @@ const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index 6191b3ff6679..17f7ff938a7b 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -250,13 +250,11 @@ export class DiskRestorePointOperationsImpl }, grantAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -354,13 +352,11 @@ export class DiskRestorePointOperationsImpl }, revokeAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -432,7 +428,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -456,7 +452,7 @@ const listByRestorePointOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -489,7 +485,7 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.grantAccessData, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -515,7 +511,7 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -538,7 +534,7 @@ const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index 6f449e95c1d7..028286a2a683 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -210,12 +210,10 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, disk, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -303,12 +301,10 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, disk, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -411,12 +407,10 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -523,13 +517,11 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, grantAccessData, options }, grantAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -613,13 +605,11 @@ export class DisksImpl implements Disks { { resourceGroupName, diskName, options }, revokeAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -697,7 +687,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.disk, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -727,7 +717,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.disk1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -747,7 +737,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Disk } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -762,7 +752,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -780,7 +770,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -797,7 +787,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -821,7 +811,7 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.grantAccessData, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -837,7 +827,7 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -854,7 +844,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -872,7 +862,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiskList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index efce2400182c..98d578fda8c9 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -205,12 +205,10 @@ export class GalleriesImpl implements Galleries { { resourceGroupName, galleryName, gallery, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -299,12 +297,10 @@ export class GalleriesImpl implements Galleries { { resourceGroupName, galleryName, gallery, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -402,12 +398,10 @@ export class GalleriesImpl implements Galleries { { resourceGroupName, galleryName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index ffaadeb17cd9..95b7cd5b8d98 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -204,12 +204,10 @@ export class GalleryApplicationVersionsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -323,12 +321,10 @@ export class GalleryApplicationVersionsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -460,12 +456,10 @@ export class GalleryApplicationVersionsImpl }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 1ef721ae40d9..5eccbb9d799f 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -188,12 +188,10 @@ export class GalleryApplicationsImpl implements GalleryApplications { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -297,12 +295,10 @@ export class GalleryApplicationsImpl implements GalleryApplications { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -411,12 +407,10 @@ export class GalleryApplicationsImpl implements GalleryApplications { { resourceGroupName, galleryName, galleryApplicationName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index 160c9dc803f6..424e665b3358 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -201,12 +201,10 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -317,12 +315,10 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -448,12 +444,10 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index 7dbf4226f2e8..ef4ffe289944 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -188,12 +188,10 @@ export class GalleryImagesImpl implements GalleryImages { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -297,12 +295,10 @@ export class GalleryImagesImpl implements GalleryImages { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -411,12 +407,10 @@ export class GalleryImagesImpl implements GalleryImages { { resourceGroupName, galleryName, galleryImageName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index 97ace7957d2c..68fc075cbb90 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -93,12 +93,10 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { { resourceGroupName, galleryName, sharingUpdate, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index e0af09a87c87..3cef0b68fb3b 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -205,12 +205,10 @@ export class ImagesImpl implements Images { { resourceGroupName, imageName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -294,12 +292,10 @@ export class ImagesImpl implements Images { { resourceGroupName, imageName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -379,12 +375,10 @@ export class ImagesImpl implements Images { { resourceGroupName, imageName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 91179cafdf10..7ea9b043bfaf 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -30,14 +30,14 @@ export * from "./virtualMachineScaleSetRollingUpgrades"; export * from "./virtualMachineScaleSetVMExtensions"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; -export * from "./virtualMachineRunCommands"; -export * from "./virtualMachineScaleSetVMRunCommands"; -export * from "./resourceSkus"; export * from "./disks"; -export * from "./snapshots"; -export * from "./diskEncryptionSets"; export * from "./diskAccesses"; +export * from "./diskEncryptionSets"; export * from "./diskRestorePointOperations"; +export * from "./snapshots"; +export * from "./virtualMachineRunCommands"; +export * from "./virtualMachineScaleSetVMRunCommands"; +export * from "./resourceSkus"; export * from "./galleries"; export * from "./galleryImages"; export * from "./galleryImageVersions"; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index 93c4d4f52fcc..db81c4047038 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -95,13 +95,11 @@ export class LogAnalyticsImpl implements LogAnalytics { { location, parameters, options }, exportRequestRateByIntervalOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "azure-async-operation" }); - await poller.poll(); - return poller; } /** @@ -184,13 +182,11 @@ export class LogAnalyticsImpl implements LogAnalytics { { location, parameters, options }, exportThrottledRequestsOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "azure-async-operation" }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index 1ca1a581742e..a039e650b6c2 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -113,7 +113,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.filter, - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.includeExtendedLocations ], urlParameters: [Parameters.$host, Parameters.subscriptionId], @@ -130,7 +130,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.filter, - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.includeExtendedLocations ], urlParameters: [ diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index 84e3076dd809..6e68a3d66ec0 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -237,12 +237,10 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { { resourceGroupName, restorePointCollectionName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index 471ea9a0f8bf..58e557fcd616 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -105,12 +105,10 @@ export class RestorePointsImpl implements RestorePoints { }, createOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -201,12 +199,10 @@ export class RestorePointsImpl implements RestorePoints { }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts index 808dae3ffc1b..25ee411645b1 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -145,7 +145,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion2, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -166,7 +166,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -187,7 +187,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion2, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts index a416ee2cedd5..1737bd21246b 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -204,7 +204,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion2, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -227,7 +227,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion2, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts index b30d2a77e79a..48641d6b7b79 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -165,7 +165,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion2, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -187,7 +187,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -209,7 +209,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion1, Parameters.sharedTo], + queryParameters: [Parameters.apiVersion2, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index bd90af95815e..61a4e5b31c7a 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -210,12 +210,10 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, snapshot, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -306,12 +304,10 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, snapshot, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -414,12 +410,10 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -532,13 +526,11 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, grantAccessData, options }, grantAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -622,13 +614,11 @@ export class SnapshotsImpl implements Snapshots { { resourceGroupName, snapshotName, options }, revokeAccessOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -706,7 +696,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.snapshot, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -736,7 +726,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.snapshot1, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -756,7 +746,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Snapshot } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -771,7 +761,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -789,7 +779,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -806,7 +796,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -830,7 +820,7 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.grantAccessData, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -846,7 +836,7 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -863,7 +853,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -881,7 +871,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SnapshotList } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 1d75570ab554..f6831e2944a4 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -109,12 +109,10 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -212,12 +210,10 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -302,12 +298,10 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { { resourceGroupName, vmName, vmExtensionName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index ff5f14443e84..3b13bec43c29 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -264,12 +264,10 @@ export class VirtualMachineRunCommandsImpl { resourceGroupName, vmName, runCommandName, runCommand, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -361,12 +359,10 @@ export class VirtualMachineRunCommandsImpl { resourceGroupName, vmName, runCommandName, runCommand, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -451,12 +447,10 @@ export class VirtualMachineRunCommandsImpl { resourceGroupName, vmName, runCommandName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index 2f07332fa29c..ad06682fe511 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -175,12 +175,10 @@ export class VirtualMachineScaleSetExtensionsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -278,12 +276,10 @@ export class VirtualMachineScaleSetExtensionsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -368,12 +364,10 @@ export class VirtualMachineScaleSetExtensionsImpl { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index 1e6e8dd21fa0..460853136a1d 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -89,12 +89,10 @@ export class VirtualMachineScaleSetRollingUpgradesImpl { resourceGroupName, vmScaleSetName, options }, cancelOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -173,12 +171,10 @@ export class VirtualMachineScaleSetRollingUpgradesImpl { resourceGroupName, vmScaleSetName, options }, startOSUpgradeOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -259,12 +255,10 @@ export class VirtualMachineScaleSetRollingUpgradesImpl { resourceGroupName, vmScaleSetName, options }, startExtensionUpgradeOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index 6b65a2a5b93f..ce01f440a379 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -115,12 +115,10 @@ export class VirtualMachineScaleSetVMExtensionsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -224,12 +222,10 @@ export class VirtualMachineScaleSetVMExtensionsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -325,12 +321,10 @@ export class VirtualMachineScaleSetVMExtensionsImpl }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts index 3af2dd9eed02..6bed28cf085f 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -199,12 +199,10 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -308,12 +306,10 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -409,12 +405,10 @@ export class VirtualMachineScaleSetVMRunCommandsImpl }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index 52d335ad6b98..7568d0d36fd6 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -185,12 +185,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -273,12 +271,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, reimageAllOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -363,12 +359,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, deallocateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -459,12 +453,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -549,12 +541,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -693,12 +683,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -782,12 +770,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -869,12 +855,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -957,12 +941,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, redeployOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1064,12 +1046,10 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, options }, performMaintenanceOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1177,13 +1157,11 @@ export class VirtualMachineScaleSetVMsImpl { resourceGroupName, vmScaleSetName, instanceId, parameters, options }, runCommandOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index 1e602a00744a..24ddad588fea 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -444,12 +444,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -536,12 +534,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -621,12 +617,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -722,12 +716,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, deallocateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -808,12 +800,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, deleteInstancesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -974,12 +964,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1058,12 +1046,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1140,12 +1126,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1223,12 +1207,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, redeployOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1309,12 +1291,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, performMaintenanceOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1396,12 +1376,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, updateInstancesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1483,12 +1461,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1568,12 +1544,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, options }, reimageAllOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1694,12 +1668,10 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { { resourceGroupName, vmScaleSetName, parameters, options }, setOrchestrationServiceStateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index cbc92ab706b0..33ac74d0d841 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -362,13 +362,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, captureOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -457,12 +455,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, createOrUpdateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -550,12 +546,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -635,12 +629,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, deleteOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -748,12 +740,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, convertToManagedDisksOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -832,12 +822,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, deallocateOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -982,12 +970,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, powerOffOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1061,12 +1047,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, reapplyOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1139,12 +1123,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, restartOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1217,12 +1199,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, startOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1295,12 +1275,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, redeployOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1373,12 +1351,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, reimageOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1468,12 +1444,10 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, performMaintenanceOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); - await poller.poll(); - return poller; } /** @@ -1572,13 +1546,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, options }, assessPatchesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -1662,13 +1634,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, installPatchesInput, options }, installPatchesOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** @@ -1755,13 +1725,11 @@ export class VirtualMachinesImpl implements VirtualMachines { { resourceGroupName, vmName, parameters, options }, runCommandOperationSpec ); - const poller = new LroEngine(lro, { + return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, lroResourceLocationConfig: "location" }); - await poller.poll(); - return poller; } /** diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts index abcbd57d1c91..690d6c22640b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts @@ -19,7 +19,7 @@ import { DedicatedHostsDeleteOptionalParams, DedicatedHostsGetOptionalParams, DedicatedHostsGetResponse, - DedicatedHostsRestartOptionalParams, + DedicatedHostsRestartOptionalParams } from "../models"; /// @@ -87,7 +87,10 @@ export interface DedicatedHosts { parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams ): Promise< - PollerLike, DedicatedHostsUpdateResponse> + PollerLike< + PollOperationState, + DedicatedHostsUpdateResponse + > >; /** * Update an dedicated host . @@ -147,7 +150,7 @@ export interface DedicatedHosts { * Restart the dedicated host. The operation will complete successfully once the dedicated host has * restarted and is running. To determine the health of VMs deployed on the dedicated host after the * restart check the Resource Health Center in the Azure Portal. Please refer to - * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. + * https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more details. * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host. @@ -163,7 +166,7 @@ export interface DedicatedHosts { * Restart the dedicated host. The operation will complete successfully once the dedicated host has * restarted and is running. To determine the health of VMs deployed on the dedicated host after the * restart check the Resource Health Center in the Azure Portal. Please refer to - * https://docs.microsoft.com/azure/service-health/resource-health-overview for more details. + * https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more details. * @param resourceGroupName The name of the resource group. * @param hostGroupName The name of the dedicated host group. * @param hostName The name of the dedicated host. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts index 91179cafdf10..7ea9b043bfaf 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts @@ -30,14 +30,14 @@ export * from "./virtualMachineScaleSetRollingUpgrades"; export * from "./virtualMachineScaleSetVMExtensions"; export * from "./virtualMachineScaleSetVMs"; export * from "./logAnalytics"; -export * from "./virtualMachineRunCommands"; -export * from "./virtualMachineScaleSetVMRunCommands"; -export * from "./resourceSkus"; export * from "./disks"; -export * from "./snapshots"; -export * from "./diskEncryptionSets"; export * from "./diskAccesses"; +export * from "./diskEncryptionSets"; export * from "./diskRestorePointOperations"; +export * from "./snapshots"; +export * from "./virtualMachineRunCommands"; +export * from "./virtualMachineScaleSetVMRunCommands"; +export * from "./resourceSkus"; export * from "./galleries"; export * from "./galleryImages"; export * from "./galleryImageVersions"; diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/compute/arm-compute/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + 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" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + 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"