diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 99321d0907bc..58c4b7684080 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '6.0' settings: - autoInstallPeers: true + autoInstallPeers: false excludeLinksFromLockfile: false dependencies: @@ -1154,6 +1154,21 @@ packages: - supports-color dev: false + /@azure/arm-compute@21.3.0: + resolution: {integrity: sha512-WbGMsAeqDb1eTDkGfUqKPjgfT5LqDRKi3PYyW32BxBQxPv5MwzvAX42Q9MB4oNBskTRHTRr4W/DMWaTCfPTL1A==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.5.0 + '@azure/core-client': 1.7.3 + '@azure/core-lro': 2.5.4 + '@azure/core-paging': 1.5.0 + '@azure/core-rest-pipeline': 1.12.2 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-signaling@1.0.0-beta.20: resolution: {integrity: sha512-Vjsiv6lWiVFqTG51cKNOAwnhuUhKbb6oOsQ833NEaWl9MwlqEQtxSOMJPYsoSCjb+pnIYvbioC+hIHkKfkAxbQ==} engines: {node: '>=8.0.0'} @@ -3554,6 +3569,13 @@ packages: requiresBuild: true dev: false + /autorest@3.7.1: + resolution: {integrity: sha512-6q17NtosQZPqBkIOUnaOPedf3PDIBF7Ha1iEGRhTqZF6TG2Q/1E3ID/D+ePIIzZDKvW01p/2pENq/oiBWH9IGQ==} + engines: {node: '>=12.0.0'} + hasBin: true + requiresBuild: true + dev: false + /available-typed-arrays@1.0.5: resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} engines: {node: '>= 0.4'} @@ -4495,7 +4517,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231030 + typescript: 5.4.0-dev.20240104 dev: false /eastasianwidth@0.2.0: @@ -9261,8 +9283,14 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231030: - resolution: {integrity: sha512-azWrF0lAiu8cBHNr6yq3RDkU/DtQScvT48ea3Ngq6oXJ/GPO0n96wCFSRQA5UbZlVVf3fAAqsUfvOdohRbrPVg==} + /typescript@5.3.3: + resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + engines: {node: '>=14.17'} + hasBin: true + dev: false + + /typescript@5.4.0-dev.20240104: + resolution: {integrity: sha512-LzRhnPKgq/AfRqBiHjP9n5Ntd0nOs/Uxr2TMvF6Lx9NgdHUDi7oUWoMoV7s3M6o628OsC2AqNC3Y1Q9i6GX3lA==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -9894,7 +9922,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -9940,7 +9968,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10170,7 +10198,7 @@ packages: dependencies: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 dotenv: 8.6.0 eslint: 8.52.0 @@ -10242,7 +10270,7 @@ packages: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10334,7 +10362,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10814,7 +10842,7 @@ packages: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -11416,20 +11444,22 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-GNH6eYlcbf2q/gL3gSeFIrGTeu55MJKUeTHcFvtpwckRU5Gl7M+amBD/C3WcgxE9eiMwGdSh7fnY2u9I3kN1Cg==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-pE1jCbP8JVsNO3I4y9lZZiY3omADFpvBkMsIAYTW8aWKuIJMLV7Ho9bjo2TDu9hX1DN9xjpDqkkfGrMj9baKUg==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 + '@types/mocha': 10.0.3 '@types/node': 18.18.7 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 + rimraf: 5.0.5 ts-node: 10.9.1(@types/node@18.18.7)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 @@ -11474,7 +11504,7 @@ packages: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -11694,7 +11724,7 @@ packages: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -13015,10 +13045,11 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-5xhT4Afs/nnEBVg0V2kJPrwtneezT8HR7rXEQ2l2e/BWDisgjRNhu0d1qfJxD9g1OsjXClmhEXqocSXGkNMhoA==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-2cGlANR3mSMJ3NKP1JI4GtKiO03Acv7AqzvrVw/xnGTdpQL1uq+5FAVNJyzPprlyB/3+Z0FqVLL9j5rwRGJcJw==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: + '@azure/arm-compute': 21.3.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 @@ -13963,7 +13994,7 @@ packages: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -15245,7 +15276,7 @@ packages: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -16440,7 +16471,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 @@ -17603,7 +17634,7 @@ packages: name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: - '@_ts/max': /typescript@5.2.2 + '@_ts/max': /typescript@5.3.3 '@_ts/min': /typescript@4.2.4 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@rollup/plugin-commonjs': 25.0.7(rollup@3.29.4) @@ -17669,7 +17700,7 @@ packages: '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18075,7 +18106,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18120,7 +18151,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18623,7 +18654,7 @@ packages: '@types/mocha': 10.0.3 '@types/node': 18.18.7 '@types/uuid': 8.3.4 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18732,7 +18763,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18778,7 +18809,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18824,7 +18855,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18870,7 +18901,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -19998,7 +20029,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -20043,7 +20074,7 @@ packages: '@types/chai': 4.3.9 '@types/mocha': 10.0.3 '@types/node': 18.18.7 - autorest: 3.6.3 + autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -20375,7 +20406,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-2LtIcl6t12irIaBaBSP/ytxkJA5VSRJ2RUg08UJEi/NVLHhjpx+NQQn/a/ebeAwpa2DefdSkfHRhgh7zn8Qzzg==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-nBVNUHVbjsSyKfoA2uJNvG+jlJEW9Oq12K9Oha1C6GVY1rZhEpcWrkob0RJe/sCDdrMo0MBUnvL7+PkUsvhR8w==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index d6efe1d1f3f3..676b1c2f02cd 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,5 +1,109 @@ # Release History +## 22.0.0 (2024-01-04) + +**Breaking Changes** + + - Removed operation group Snapshots + - Class ComputeManagementClient no longer has parameter snapshots + - Removed Enum KnownSnapshotStorageAccountTypes + + +## 21.3.0 (2023-12-08) + +**Features** + + - Added operation DedicatedHosts.beginRedeploy + - Added operation DedicatedHosts.beginRedeployAndWait + - Added operation VirtualMachines.beginAttachDetachDataDisks + - Added operation VirtualMachines.beginAttachDetachDataDisksAndWait + - Added operation VirtualMachineScaleSets.beginApproveRollingUpgrade + - Added operation VirtualMachineScaleSets.beginApproveRollingUpgradeAndWait + - Added operation VirtualMachineScaleSetVMs.beginApproveRollingUpgrade + - Added operation VirtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait + - Added operation VirtualMachineScaleSetVMs.beginAttachDetachDataDisks + - Added operation VirtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait + - Added Interface AttachDetachDataDisksRequest + - Added Interface CommunityGalleryMetadata + - Added Interface DataDisksToAttach + - Added Interface DataDisksToDetach + - Added Interface DedicatedHostsRedeployHeaders + - Added Interface DedicatedHostsRedeployOptionalParams + - Added Interface EncryptionIdentity + - Added Interface GalleryImageVersionUefiSettings + - Added Interface ImageVersionSecurityProfile + - Added Interface ProxyAgentSettings + - Added Interface ResiliencyPolicy + - Added Interface ResilientVMCreationPolicy + - Added Interface ResilientVMDeletionPolicy + - Added Interface ResourceSharingProfile + - Added Interface SshGenerateKeyPairInputParameters + - Added Interface UefiKey + - Added Interface UefiKeySignatures + - Added Interface VirtualMachinesAttachDetachDataDisksHeaders + - Added Interface VirtualMachinesAttachDetachDataDisksOptionalParams + - Added Interface VirtualMachineScaleSetsApproveRollingUpgradeHeaders + - Added Interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + - Added Interface VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + - Added Interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + - Added Interface VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders + - Added Interface VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + - Added Type Alias DedicatedHostsRedeployResponse + - Added Type Alias Mode + - Added Type Alias SshEncryptionTypes + - Added Type Alias UefiKeyType + - Added Type Alias UefiSignatureTemplateName + - Added Type Alias VirtualMachinesAttachDetachDataDisksResponse + - Added Type Alias VirtualMachineScaleSetsApproveRollingUpgradeResponse + - Added Type Alias VirtualMachineScaleSetVMsApproveRollingUpgradeResponse + - Added Type Alias VirtualMachineScaleSetVMsAttachDetachDataDisksResponse + - Interface AutomaticOSUpgradePolicy has a new optional parameter osRollingUpgradeDeferral + - Interface CapacityReservationGroup has a new optional parameter sharingProfile + - Interface CapacityReservationGroupInstanceView has a new optional parameter sharedSubscriptionIds + - Interface CapacityReservationGroupUpdate has a new optional parameter sharingProfile + - Interface CommunityGallery has a new optional parameter artifactTags + - Interface CommunityGallery has a new optional parameter communityMetadata + - Interface CommunityGallery has a new optional parameter disclaimer + - Interface CommunityGalleryImage has a new optional parameter artifactTags + - Interface CommunityGalleryImage has a new optional parameter disclaimer + - Interface CommunityGalleryImageVersion has a new optional parameter artifactTags + - Interface CommunityGalleryImageVersion has a new optional parameter disclaimer + - Interface GalleryImageVersion has a new optional parameter securityProfile + - Interface GalleryImageVersionUpdate has a new optional parameter securityProfile + - Interface RestorePointSourceVMStorageProfile has a new optional parameter diskControllerType + - Interface SecurityProfile has a new optional parameter encryptionIdentity + - Interface SecurityProfile has a new optional parameter proxyAgentSettings + - Interface SharedGallery has a new optional parameter artifactTags + - Interface SharedGalleryImage has a new optional parameter artifactTags + - Interface SharedGalleryImageVersion has a new optional parameter artifactTags + - Interface SshPublicKeysGenerateKeyPairOptionalParams has a new optional parameter parameters + - Interface VirtualMachine has a new optional parameter etag + - Interface VirtualMachine has a new optional parameter managedBy + - Interface VirtualMachineInstanceView has a new optional parameter isVMInStandbyPool + - Interface VirtualMachineScaleSet has a new optional parameter etag + - Interface VirtualMachineScaleSet has a new optional parameter resiliencyPolicy + - Interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams has a new optional parameter ifMatch + - Interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams has a new optional parameter ifNoneMatch + - Interface VirtualMachineScaleSetsUpdateOptionalParams has a new optional parameter ifMatch + - Interface VirtualMachineScaleSetsUpdateOptionalParams has a new optional parameter ifNoneMatch + - Interface VirtualMachineScaleSetUpdate has a new optional parameter resiliencyPolicy + - Interface VirtualMachineScaleSetVM has a new optional parameter etag + - Interface VirtualMachineScaleSetVMProfile has a new optional parameter timeCreated + - Interface VirtualMachineScaleSetVMsUpdateOptionalParams has a new optional parameter ifMatch + - Interface VirtualMachineScaleSetVMsUpdateOptionalParams has a new optional parameter ifNoneMatch + - Interface VirtualMachinesCreateOrUpdateOptionalParams has a new optional parameter ifMatch + - Interface VirtualMachinesCreateOrUpdateOptionalParams has a new optional parameter ifNoneMatch + - Interface VirtualMachinesUpdateOptionalParams has a new optional parameter ifMatch + - Interface VirtualMachinesUpdateOptionalParams has a new optional parameter ifNoneMatch + - Added Enum KnownMode + - Added Enum KnownSshEncryptionTypes + - Added Enum KnownUefiKeyType + - Added Enum KnownUefiSignatureTemplateName + - Enum KnownConfidentialVMEncryptionType has a new value NonPersistedTPM + - Enum KnownReplicationStatusTypes has a new value UefiSettings + - Enum KnownSecurityEncryptionTypes has a new value NonPersistedTPM + + ## 21.2.0 (2023-08-14) **Features** diff --git a/sdk/compute/arm-compute/LICENSE b/sdk/compute/arm-compute/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/compute/arm-compute/LICENSE +++ b/sdk/compute/arm-compute/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 05696e9a09ca..1782c1f34b66 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "baac183ffa684d94f697f0fc6f480e02cfb00f3d", + "commit": "2cc5c9c539a1d62f04e899bc82455b8452e8d202", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.11", + "repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.11" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index b51cf2fb87e9..06df5fe1f10f 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.2.0", + "version": "22.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,18 +32,19 @@ "mkdirp": "^2.1.2", "typescript": "~5.2.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/arm-network": "^32.2.0", "ts-node": "^10.0.0" }, "repository": { @@ -78,7 +79,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -106,13 +107,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute" +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 5009066562c1..ce786bd05c88 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -79,10 +79,17 @@ export type Architecture = string; // @public export type ArchitectureTypes = string; +// @public +export interface AttachDetachDataDisksRequest { + dataDisksToAttach?: DataDisksToAttach[]; + dataDisksToDetach?: DataDisksToDetach[]; +} + // @public export interface AutomaticOSUpgradePolicy { disableAutomaticRollback?: boolean; enableAutomaticOSUpgrade?: boolean; + osRollingUpgradeDeferral?: boolean; useRollingUpgradePolicy?: boolean; } @@ -249,6 +256,7 @@ export interface CapacityReservation extends Resource { export interface CapacityReservationGroup extends Resource { readonly capacityReservations?: SubResourceReadOnly[]; readonly instanceView?: CapacityReservationGroupInstanceView; + sharingProfile?: ResourceSharingProfile; readonly virtualMachinesAssociated?: SubResourceReadOnly[]; zones?: string[]; } @@ -256,6 +264,7 @@ export interface CapacityReservationGroup extends Resource { // @public (undocumented) export interface CapacityReservationGroupInstanceView { readonly capacityReservations?: CapacityReservationInstanceViewWithName[]; + readonly sharedSubscriptionIds?: SubResourceReadOnly[]; } // @public @@ -337,6 +346,7 @@ export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; export interface CapacityReservationGroupUpdate extends UpdateResource { readonly capacityReservations?: SubResourceReadOnly[]; readonly instanceView?: CapacityReservationGroupInstanceView; + sharingProfile?: ResourceSharingProfile; readonly virtualMachinesAssociated?: SubResourceReadOnly[]; } @@ -931,12 +941,21 @@ export type CommunityGalleriesGetResponse = CommunityGallery; // @public export interface CommunityGallery extends PirCommunityGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; + communityMetadata?: CommunityGalleryMetadata; + disclaimer?: string; } // @public export interface CommunityGalleryImage extends PirCommunityGalleryResource { architecture?: Architecture; + artifactTags?: { + [propertyName: string]: string; + }; disallowed?: Disallowed; + disclaimer?: string; endOfLifeDate?: Date; eula?: string; features?: GalleryImageFeature[]; @@ -991,6 +1010,10 @@ export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; // @public export interface CommunityGalleryImageVersion extends PirCommunityGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; + disclaimer?: string; endOfLifeDate?: Date; excludeFromLatest?: boolean; publishedDate?: Date; @@ -1040,6 +1063,15 @@ export interface CommunityGalleryInfo { publisherUri?: string; } +// @public +export interface CommunityGalleryMetadata { + eula?: string; + privacyStatementUri?: string; + publicNames: string[]; + publisherContact: string; + publisherUri?: string; +} + // @public (undocumented) export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -1112,8 +1144,6 @@ export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) sharedGalleryImageVersions: SharedGalleryImageVersions; // (undocumented) - snapshots: Snapshots; - // (undocumented) sshPublicKeys: SshPublicKeys; // (undocumented) subscriptionId: string; @@ -1230,6 +1260,18 @@ export interface DataDiskImageEncryption extends DiskImageEncryption { lun: number; } +// @public +export interface DataDisksToAttach { + diskId: string; + lun?: number; +} + +// @public +export interface DataDisksToDetach { + detachOption?: DiskDetachOptionTypes; + diskId: string; +} + // @public export interface DedicatedHost extends Resource { autoReplaceOnFailure?: boolean; @@ -1382,6 +1424,8 @@ export interface DedicatedHosts { beginCreateOrUpdateAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHost, options?: DedicatedHostsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsDeleteOptionalParams): Promise; + beginRedeploy(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsRedeployOptionalParams): Promise, DedicatedHostsRedeployResponse>>; + beginRedeployAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsRedeployOptionalParams): Promise; beginRestart(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsRestartOptionalParams): Promise, void>>; beginRestartAndWait(resourceGroupName: string, hostGroupName: string, hostName: string, options?: DedicatedHostsRestartOptionalParams): Promise; beginUpdate(resourceGroupName: string, hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, options?: DedicatedHostsUpdateOptionalParams): Promise, DedicatedHostsUpdateResponse>>; @@ -1440,6 +1484,21 @@ export interface DedicatedHostsListByHostGroupOptionalParams extends coreClient. // @public export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult; +// @public +export interface DedicatedHostsRedeployHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface DedicatedHostsRedeployOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DedicatedHostsRedeployResponse = DedicatedHostsRedeployHeaders; + // @public export interface DedicatedHostsRestartOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2094,6 +2153,11 @@ export interface Encryption { type?: EncryptionType; } +// @public +export interface EncryptionIdentity { + userAssignedIdentityResourceId?: string; +} + // @public export interface EncryptionImages { dataDiskImages?: DataDiskImageEncryption[]; @@ -2636,6 +2700,7 @@ export interface GalleryImageVersion extends Resource { publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; safetyProfile?: GalleryImageVersionSafetyProfile; + securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; } @@ -2720,12 +2785,19 @@ export interface GalleryImageVersionsUpdateOptionalParams extends coreClient.Ope // @public export type GalleryImageVersionsUpdateResponse = GalleryImageVersion; +// @public +export interface GalleryImageVersionUefiSettings { + additionalSignatures?: UefiKeySignatures; + signatureTemplateNames?: UefiSignatureTemplateName[]; +} + // @public export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { readonly provisioningState?: GalleryProvisioningState; publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; safetyProfile?: GalleryImageVersionSafetyProfile; + securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; } @@ -2971,6 +3043,11 @@ export interface ImageUpdate extends UpdateResource { storageProfile?: ImageStorageProfile; } +// @public +export interface ImageVersionSecurityProfile { + uefiSettings?: GalleryImageVersionUefiSettings; +} + // @public export interface InnerError { errordetail?: string; @@ -3106,7 +3183,8 @@ export enum KnownCloudServiceUpgradeMode { export enum KnownConfidentialVMEncryptionType { EncryptedVMGuestStateOnlyWithPmk = "EncryptedVMGuestStateOnlyWithPmk", EncryptedWithCmk = "EncryptedWithCmk", - EncryptedWithPmk = "EncryptedWithPmk" + EncryptedWithPmk = "EncryptedWithPmk", + NonPersistedTPM = "NonPersistedTPM" } // @public @@ -3385,6 +3463,12 @@ export enum KnownLinuxVMGuestPatchMode { ImageDefault = "ImageDefault" } +// @public +export enum KnownMode { + Audit = "Audit", + Enforce = "Enforce" +} + // @public export enum KnownNetworkAccessPolicy { AllowAll = "AllowAll", @@ -3545,7 +3629,8 @@ export enum KnownReplicationState { // @public export enum KnownReplicationStatusTypes { - ReplicationStatus = "ReplicationStatus" + ReplicationStatus = "ReplicationStatus", + UefiSettings = "UefiSettings" } // @public @@ -3568,6 +3653,7 @@ export enum KnownRestorePointExpandOptions { // @public export enum KnownSecurityEncryptionTypes { DiskWithVMGuestState = "DiskWithVMGuestState", + NonPersistedTPM = "NonPersistedTPM", VMGuestStateOnly = "VMGuestStateOnly" } @@ -3617,10 +3703,9 @@ export enum KnownSharingUpdateOperationTypes { } // @public -export enum KnownSnapshotStorageAccountTypes { - PremiumLRS = "Premium_LRS", - StandardLRS = "Standard_LRS", - StandardZRS = "Standard_ZRS" +export enum KnownSshEncryptionTypes { + Ed25519 = "Ed25519", + RSA = "RSA" } // @public @@ -3641,6 +3726,19 @@ export enum KnownStorageAccountTypes { UltraSSDLRS = "UltraSSD_LRS" } +// @public +export enum KnownUefiKeyType { + Sha256 = "sha256", + X509 = "x509" +} + +// @public +export enum KnownUefiSignatureTemplateName { + MicrosoftUefiCertificateAuthorityTemplate = "MicrosoftUefiCertificateAuthorityTemplate", + MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate", + NoSignatureTemplate = "NoSignatureTemplate" +} + // @public export enum KnownVirtualMachineEvictionPolicyTypes { Deallocate = "Deallocate", @@ -4067,6 +4165,9 @@ export interface ManagedDiskParameters extends SubResource { storageAccountType?: StorageAccountTypes; } +// @public +export type Mode = string; + // @public export type NetworkAccessPolicy = string; @@ -4468,6 +4569,13 @@ export type ProximityPlacementGroupType = string; export interface ProximityPlacementGroupUpdate extends UpdateResource { } +// @public +export interface ProxyAgentSettings { + enabled?: boolean; + keyIncarnationId?: number; + mode?: Mode; +} + // @public export interface ProxyOnlyResource { readonly id?: string; @@ -4565,6 +4673,22 @@ export interface RequestRateByIntervalInput extends LogAnalyticsInputBase { intervalLength: IntervalInMins; } +// @public +export interface ResiliencyPolicy { + resilientVMCreationPolicy?: ResilientVMCreationPolicy; + resilientVMDeletionPolicy?: ResilientVMDeletionPolicy; +} + +// @public +export interface ResilientVMCreationPolicy { + enabled?: boolean; +} + +// @public +export interface ResilientVMDeletionPolicy { + enabled?: boolean; +} + // @public export interface Resource { readonly id?: string; @@ -4594,6 +4718,11 @@ export interface ResourceRange { min?: number; } +// @public (undocumented) +export interface ResourceSharingProfile { + subscriptionIds?: SubResource[]; +} + // @public export interface ResourceSku { readonly apiVersions?: string[]; @@ -4913,6 +5042,7 @@ export interface RestorePointSourceVmosDisk { // @public export interface RestorePointSourceVMStorageProfile { dataDisks?: RestorePointSourceVMDataDisk[]; + readonly diskControllerType?: DiskControllerTypes; osDisk?: RestorePointSourceVmosDisk; } @@ -5091,6 +5221,8 @@ export interface SecurityPostureReference { // @public export interface SecurityProfile { encryptionAtHost?: boolean; + encryptionIdentity?: EncryptionIdentity; + proxyAgentSettings?: ProxyAgentSettings; securityType?: SecurityTypes; uefiSettings?: UefiSettings; } @@ -5139,6 +5271,9 @@ export type SharedGalleriesListResponse = SharedGalleryList; // @public export interface SharedGallery extends PirSharedGalleryResource { + readonly artifactTags?: { + [propertyName: string]: string; + }; } // @public @@ -5158,6 +5293,9 @@ export type SharedGalleryHostCaching = string; // @public export interface SharedGalleryImage extends PirSharedGalleryResource { architecture?: Architecture; + artifactTags?: { + [propertyName: string]: string; + }; disallowed?: Disallowed; endOfLifeDate?: Date; eula?: string; @@ -5207,6 +5345,9 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList; // @public export interface SharedGalleryImageVersion extends PirSharedGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; endOfLifeDate?: Date; excludeFromLatest?: boolean; publishedDate?: Date; @@ -5312,160 +5453,6 @@ export interface Sku { tier?: string; } -// @public -export interface Snapshot extends Resource { - completionPercent?: number; - copyCompletionError?: CopyCompletionError; - creationData?: CreationData; - dataAccessAuthMode?: DataAccessAuthMode; - diskAccessId?: string; - readonly diskSizeBytes?: number; - diskSizeGB?: number; - readonly diskState?: DiskState; - encryption?: Encryption; - encryptionSettingsCollection?: EncryptionSettingsCollection; - extendedLocation?: ExtendedLocation; - hyperVGeneration?: HyperVGeneration; - incremental?: boolean; - readonly incrementalSnapshotFamilyId?: string; - readonly managedBy?: string; - networkAccessPolicy?: NetworkAccessPolicy; - osType?: OperatingSystemTypes; - readonly provisioningState?: string; - publicNetworkAccess?: PublicNetworkAccess; - purchasePlan?: PurchasePlanAutoGenerated; - securityProfile?: DiskSecurityProfile; - sku?: SnapshotSku; - supportedCapabilities?: SupportedCapabilities; - supportsHibernation?: boolean; - readonly timeCreated?: Date; - readonly uniqueId?: string; -} - -// @public -export interface SnapshotList { - nextLink?: string; - value: Snapshot[]; -} - -// @public -export interface Snapshots { - beginCreateOrUpdate(resourceGroupName: string, snapshotName: string, snapshot: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams): Promise, SnapshotsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, snapshotName: string, snapshot: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, snapshotName: string, options?: SnapshotsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, snapshotName: string, options?: SnapshotsDeleteOptionalParams): Promise; - beginGrantAccess(resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, options?: SnapshotsGrantAccessOptionalParams): Promise, SnapshotsGrantAccessResponse>>; - beginGrantAccessAndWait(resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, options?: SnapshotsGrantAccessOptionalParams): Promise; - beginRevokeAccess(resourceGroupName: string, snapshotName: string, options?: SnapshotsRevokeAccessOptionalParams): Promise, void>>; - beginRevokeAccessAndWait(resourceGroupName: string, snapshotName: string, options?: SnapshotsRevokeAccessOptionalParams): Promise; - beginUpdate(resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, options?: SnapshotsUpdateOptionalParams): Promise, SnapshotsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, options?: SnapshotsUpdateOptionalParams): Promise; - get(resourceGroupName: string, snapshotName: string, options?: SnapshotsGetOptionalParams): Promise; - list(options?: SnapshotsListOptionalParams): PagedAsyncIterableIterator; - listByResourceGroup(resourceGroupName: string, options?: SnapshotsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface SnapshotsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SnapshotsCreateOrUpdateResponse = Snapshot; - -// @public -export interface SnapshotsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface SnapshotsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SnapshotsGetResponse = Snapshot; - -// @public -export interface SnapshotsGrantAccessOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SnapshotsGrantAccessResponse = AccessUri; - -// @public -export interface SnapshotSku { - name?: SnapshotStorageAccountTypes; - readonly tier?: string; -} - -// @public -export interface SnapshotsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SnapshotsListByResourceGroupNextResponse = SnapshotList; - -// @public -export interface SnapshotsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SnapshotsListByResourceGroupResponse = SnapshotList; - -// @public -export interface SnapshotsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SnapshotsListNextResponse = SnapshotList; - -// @public -export interface SnapshotsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SnapshotsListResponse = SnapshotList; - -// @public -export interface SnapshotsRevokeAccessOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SnapshotStorageAccountTypes = string; - -// @public -export interface SnapshotsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type SnapshotsUpdateResponse = Snapshot; - -// @public -export interface SnapshotUpdate { - dataAccessAuthMode?: DataAccessAuthMode; - diskAccessId?: string; - diskSizeGB?: number; - encryption?: Encryption; - encryptionSettingsCollection?: EncryptionSettingsCollection; - networkAccessPolicy?: NetworkAccessPolicy; - osType?: OperatingSystemTypes; - publicNetworkAccess?: PublicNetworkAccess; - sku?: SnapshotSku; - supportedCapabilities?: SupportedCapabilities; - supportsHibernation?: boolean; - tags?: { - [propertyName: string]: string; - }; -} - // @public export interface SoftDeletePolicy { isSoftDeleteEnabled?: boolean; @@ -5487,6 +5474,14 @@ export interface SshConfiguration { publicKeys?: SshPublicKey[]; } +// @public +export type SshEncryptionTypes = string; + +// @public +export interface SshGenerateKeyPairInputParameters { + encryptionType?: SshEncryptionTypes; +} + // @public export interface SshPublicKey { keyData?: string; @@ -5529,6 +5524,7 @@ export interface SshPublicKeysDeleteOptionalParams extends coreClient.OperationO // @public export interface SshPublicKeysGenerateKeyPairOptionalParams extends coreClient.OperationOptions { + parameters?: SshGenerateKeyPairInputParameters; } // @public @@ -5657,12 +5653,32 @@ export interface TerminateNotificationProfile { export interface ThrottledRequestsInput extends LogAnalyticsInputBase { } +// @public +export interface UefiKey { + type?: UefiKeyType; + value?: string[]; +} + +// @public +export interface UefiKeySignatures { + db?: UefiKey[]; + dbx?: UefiKey[]; + kek?: UefiKey[]; + pk?: UefiKey; +} + +// @public +export type UefiKeyType = string; + // @public export interface UefiSettings { secureBootEnabled?: boolean; vTpmEnabled?: boolean; } +// @public +export type UefiSignatureTemplateName = string; + // @public export interface UpdateDomain { readonly id?: string; @@ -5815,6 +5831,7 @@ export interface VirtualMachine extends Resource { billingProfile?: BillingProfile; capacityReservation?: CapacityReservationProfile; diagnosticsProfile?: DiagnosticsProfile; + readonly etag?: string; evictionPolicy?: VirtualMachineEvictionPolicyTypes; extendedLocation?: ExtendedLocation; extensionsTimeBudget?: string; @@ -5824,6 +5841,7 @@ export interface VirtualMachine extends Resource { identity?: VirtualMachineIdentity; readonly instanceView?: VirtualMachineInstanceView; licenseType?: string; + readonly managedBy?: string; networkProfile?: NetworkProfile; osProfile?: OSProfile; plan?: Plan; @@ -6207,6 +6225,7 @@ export interface VirtualMachineInstanceView { disks?: DiskInstanceView[]; extensions?: VirtualMachineExtensionInstanceView[]; hyperVGeneration?: HyperVGenerationType; + readonly isVMInStandbyPool?: boolean; maintenanceRedeployStatus?: MaintenanceRedeployStatus; osName?: string; osVersion?: string; @@ -6450,6 +6469,8 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { export interface VirtualMachines { beginAssessPatches(resourceGroupName: string, vmName: string, options?: VirtualMachinesAssessPatchesOptionalParams): Promise, VirtualMachinesAssessPatchesResponse>>; beginAssessPatchesAndWait(resourceGroupName: string, vmName: string, options?: VirtualMachinesAssessPatchesOptionalParams): Promise; + beginAttachDetachDataDisks(resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, options?: VirtualMachinesAttachDetachDataDisksOptionalParams): Promise, VirtualMachinesAttachDetachDataDisksResponse>>; + beginAttachDetachDataDisksAndWait(resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, options?: VirtualMachinesAttachDetachDataDisksOptionalParams): Promise; beginCapture(resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, options?: VirtualMachinesCaptureOptionalParams): Promise, VirtualMachinesCaptureResponse>>; beginCaptureAndWait(resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, options?: VirtualMachinesCaptureOptionalParams): Promise; beginConvertToManagedDisks(resourceGroupName: string, vmName: string, options?: VirtualMachinesConvertToManagedDisksOptionalParams): Promise, void>>; @@ -6500,12 +6521,28 @@ export interface VirtualMachinesAssessPatchesOptionalParams extends coreClient.O // @public export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; +// @public +export interface VirtualMachinesAttachDetachDataDisksHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualMachinesAttachDetachDataDisksOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualMachinesAttachDetachDataDisksResponse = StorageProfile; + // @public export interface VirtualMachineScaleSet extends Resource { additionalCapabilities?: AdditionalCapabilities; automaticRepairsPolicy?: AutomaticRepairsPolicy; constrainedMaximumCapacity?: boolean; doNotRunExtensionsOnOverprovisionedVMs?: boolean; + readonly etag?: string; extendedLocation?: ExtendedLocation; hostGroup?: SubResource; identity?: VirtualMachineScaleSetIdentity; @@ -6516,6 +6553,7 @@ export interface VirtualMachineScaleSet extends Resource { priorityMixPolicy?: PriorityMixPolicy; readonly provisioningState?: string; proximityPlacementGroup?: SubResource; + resiliencyPolicy?: ResiliencyPolicy; scaleInPolicy?: ScaleInPolicy; singlePlacementGroup?: boolean; sku?: Sku; @@ -6843,6 +6881,8 @@ export interface VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalPara // @public export interface VirtualMachineScaleSets { + beginApproveRollingUpgrade(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams): Promise, VirtualMachineScaleSetsApproveRollingUpgradeResponse>>; + beginApproveRollingUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise, VirtualMachineScaleSetsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams): Promise; beginDeallocate(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsDeallocateOptionalParams): Promise, void>>; @@ -6884,6 +6924,22 @@ export interface VirtualMachineScaleSets { listSkus(resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface VirtualMachineScaleSetsApproveRollingUpgradeHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; +} + +// @public +export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = VirtualMachineScaleSetsApproveRollingUpgradeHeaders; + // @public export type VirtualMachineScaleSetScaleInRules = string; @@ -6893,6 +6949,8 @@ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalPar // @public export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7119,6 +7177,8 @@ export interface VirtualMachineScaleSetsUpdateInstancesOptionalParams extends co // @public export interface VirtualMachineScaleSetsUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7136,6 +7196,7 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { plan?: Plan; priorityMixPolicy?: PriorityMixPolicy; proximityPlacementGroup?: SubResource; + resiliencyPolicy?: ResiliencyPolicy; scaleInPolicy?: ScaleInPolicy; singlePlacementGroup?: boolean; sku?: Sku; @@ -7237,6 +7298,7 @@ export interface VirtualMachineScaleSetVM extends Resource { additionalCapabilities?: AdditionalCapabilities; availabilitySet?: SubResource; diagnosticsProfile?: DiagnosticsProfile; + readonly etag?: string; hardwareProfile?: HardwareProfile; identity?: VirtualMachineIdentity; readonly instanceId?: string; @@ -7418,6 +7480,7 @@ export interface VirtualMachineScaleSetVMProfile { securityProfile?: SecurityProfile; serviceArtifactReference?: ServiceArtifactReference; storageProfile?: VirtualMachineScaleSetStorageProfile; + readonly timeCreated?: Date; userData?: string; } @@ -7492,6 +7555,10 @@ export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRu // @public export interface VirtualMachineScaleSetVMs { + beginApproveRollingUpgrade(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise, VirtualMachineScaleSetVMsApproveRollingUpgradeResponse>>; + beginApproveRollingUpgradeAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams): Promise; + beginAttachDetachDataDisks(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams): Promise, VirtualMachineScaleSetVMsAttachDetachDataDisksResponse>>; + beginAttachDetachDataDisksAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams): Promise; beginDeallocate(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise, void>>; beginDeallocateAndWait(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeallocateOptionalParams): Promise; beginDelete(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsDeleteOptionalParams): Promise, void>>; @@ -7521,6 +7588,36 @@ export interface VirtualMachineScaleSetVMs { simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams): Promise; } +// @public +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; + +// @public +export interface VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = StorageProfile; + // @public export interface VirtualMachineScaleSetVMsDeallocateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -7633,6 +7730,8 @@ export interface VirtualMachineScaleSetVMsStartOptionalParams extends coreClient // @public export interface VirtualMachineScaleSetVMsUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7657,6 +7756,8 @@ export interface VirtualMachinesConvertToManagedDisksOptionalParams extends core // @public export interface VirtualMachinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } @@ -7877,6 +7978,8 @@ export interface VirtualMachineStatusCodeCount { // @public export interface VirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; resumeFrom?: string; updateIntervalInMs?: number; } diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index e1fc45dbf8c3..d6f3da8f02a1 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -40,7 +40,6 @@ import { DiskAccessesImpl, DiskEncryptionSetsImpl, DiskRestorePointOperationsImpl, - SnapshotsImpl, ResourceSkusImpl, GalleriesImpl, GalleryImagesImpl, @@ -91,7 +90,6 @@ import { DiskAccesses, DiskEncryptionSets, DiskRestorePointOperations, - Snapshots, ResourceSkus, Galleries, GalleryImages, @@ -145,7 +143,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/21.2.0`; + const packageDetails = `azsdk-js-arm-compute/22.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -240,7 +238,6 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.diskAccesses = new DiskAccessesImpl(this); this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); this.diskRestorePointOperations = new DiskRestorePointOperationsImpl(this); - this.snapshots = new SnapshotsImpl(this); this.resourceSkus = new ResourceSkusImpl(this); this.galleries = new GalleriesImpl(this); this.galleryImages = new GalleryImagesImpl(this); @@ -295,7 +292,6 @@ export class ComputeManagementClient extends coreClient.ServiceClient { diskAccesses: DiskAccesses; diskEncryptionSets: DiskEncryptionSets; diskRestorePointOperations: DiskRestorePointOperations; - snapshots: Snapshots; resourceSkus: ResourceSkus; galleries: Galleries; galleryImages: GalleryImages; diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index dad43b7e80de..efb59ab595cd 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -207,6 +207,8 @@ export interface AutomaticOSUpgradePolicy { disableAutomaticRollback?: boolean; /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Default value is false. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */ useRollingUpgradePolicy?: boolean; + /** Indicates whether Auto OS Upgrade should undergo deferral. Deferred OS upgrades will send advanced notifications on a per-VM basis that an OS upgrade from rolling upgrades is incoming, via the IMDS tag 'Platform.PendingOSUpgrade'. The upgrade then defers until the upgrade is approved via an ApproveRollingUpgrade call. */ + osRollingUpgradeDeferral?: boolean; } /** Specifies the configuration parameters for automatic repairs on the virtual machine scale set. */ @@ -255,6 +257,11 @@ export interface VirtualMachineScaleSetVMProfile { serviceArtifactReference?: ServiceArtifactReference; /** Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 */ securityPostureReference?: SecurityPostureReference; + /** + * Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. Minimum API version for this property is 2023-09-01. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile with minimum api-version 2023-09-01. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeCreated?: Date; } /** Describes a virtual machine scale set OS profile. */ @@ -473,7 +480,7 @@ export interface VirtualMachineScaleSetManagedDiskParameters { /** Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs. */ export interface VMDiskSecurityProfile { - /** Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob. **Note:** It can be set for only Confidential VMs. */ + /** Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob.. **Note:** It can be set for only Confidential VMs. */ securityEncryptionType?: SecurityEncryptionTypes; /** Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob. */ diskEncryptionSet?: DiskEncryptionSetParameters; @@ -627,6 +634,10 @@ export interface SecurityProfile { encryptionAtHost?: boolean; /** Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set. */ securityType?: SecurityTypes; + /** Specifies the Managed Identity used by ADE to get access token for keyvault operations. */ + encryptionIdentity?: EncryptionIdentity; + /** Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01. */ + proxyAgentSettings?: ProxyAgentSettings; } /** Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01. */ @@ -637,6 +648,22 @@ export interface UefiSettings { vTpmEnabled?: boolean; } +/** Specifies the Managed Identity used by ADE to get access token for keyvault operations. */ +export interface EncryptionIdentity { + /** Specifies ARM Resource ID of one of the user identities associated with the VM. */ + userAssignedIdentityResourceId?: string; +} + +/** Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01. */ +export interface ProxyAgentSettings { + /** Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set. */ + enabled?: boolean; + /** Specifies the mode that ProxyAgent will execute on if the feature is enabled. ProxyAgent will start to audit or monitor but not enforce access control over requests to host endpoints in Audit mode, while in Enforce mode it will enforce access control. The default value is Enforce mode. */ + mode?: Mode; + /** Increase the value of this property allows user to reset the key used for securing communication channel between guest and host. */ + keyIncarnationId?: number; +} + /** Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. */ export interface DiagnosticsProfile { /** Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. */ @@ -841,6 +868,26 @@ export interface PriorityMixPolicy { regularPriorityPercentageAboveBase?: number; } +/** Describes an resiliency policy - resilientVMCreationPolicy and/or resilientVMDeletionPolicy. */ +export interface ResiliencyPolicy { + /** The configuration parameters used while performing resilient VM creation. */ + resilientVMCreationPolicy?: ResilientVMCreationPolicy; + /** The configuration parameters used while performing resilient VM deletion. */ + resilientVMDeletionPolicy?: ResilientVMDeletionPolicy; +} + +/** The configuration parameters used while performing resilient VM creation. */ +export interface ResilientVMCreationPolicy { + /** Specifies whether resilient VM creation should be enabled on the virtual machine scale set. The default value is false. */ + enabled?: boolean; +} + +/** The configuration parameters used while performing resilient VM deletion. */ +export interface ResilientVMDeletionPolicy { + /** Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. The default value is false. */ + enabled?: boolean; +} + /** Identity for the virtual machine scale set. */ export interface VirtualMachineScaleSetIdentity { /** @@ -1804,6 +1851,30 @@ export interface RetrieveBootDiagnosticsDataResult { readonly serialConsoleLogBlobUri?: string; } +/** Specifies the input for attaching and detaching a list of managed data disks. */ +export interface AttachDetachDataDisksRequest { + /** The list of managed data disks to be attached. */ + dataDisksToAttach?: DataDisksToAttach[]; + /** The list of managed data disks to be detached. */ + dataDisksToDetach?: DataDisksToDetach[]; +} + +/** Describes the data disk to be attached. */ +export interface DataDisksToAttach { + /** ID of the managed data disk. */ + diskId: string; + /** The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned. */ + lun?: number; +} + +/** Describes the data disk to be detached. */ +export interface DataDisksToDetach { + /** ID of the managed data disk. */ + diskId: string; + /** Supported options available for Detach of a disk from a VM. Refer to DetachOption object reference for more details. */ + detachOption?: DiskDetachOptionTypes; +} + /** The List Extension operation response */ export interface VirtualMachineExtensionsListResult { /** The list of extensions */ @@ -1858,6 +1929,11 @@ export interface VirtualMachineInstanceView { statuses?: InstanceViewStatus[]; /** [Preview Feature] The status of virtual machine patch operations. */ patchStatus?: VirtualMachinePatchStatus; + /** + * [Preview Feature] Specifies whether the VM is currently in or out of the Standby Pool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isVMInStandbyPool?: boolean; } /** The status of virtual machine patch operations. */ @@ -2381,6 +2457,12 @@ export interface SshPublicKeysGroupListResult { nextLink?: string; } +/** Parameters for GenerateSshKeyPair. */ +export interface SshGenerateKeyPairInputParameters { + /** The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA */ + encryptionType?: SshEncryptionTypes; +} + /** Response from generation of an SSH key pair. */ export interface SshPublicKeyGenerateKeyPairResult { /** Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret. */ @@ -2495,6 +2577,11 @@ export interface RestorePointSourceVMStorageProfile { osDisk?: RestorePointSourceVmosDisk; /** Gets the data disks of the VM captured at the time of the restore point creation. */ dataDisks?: RestorePointSourceVMDataDisk[]; + /** + * Gets the disk controller type of the VM captured at the time of the restore point creation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly diskControllerType?: DiskControllerTypes; } /** Describes an Operating System disk. */ @@ -2633,6 +2720,11 @@ export interface CapacityReservationGroupInstanceView { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capacityReservations?: CapacityReservationInstanceViewWithName[]; + /** + * List of the subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sharedSubscriptionIds?: SubResourceReadOnly[]; } /** The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations. */ @@ -2657,6 +2749,11 @@ export interface CapacityReservationUtilization { readonly virtualMachinesAllocated?: SubResourceReadOnly[]; } +export interface ResourceSharingProfile { + /** Specifies an array of subscription resource IDs that capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. */ + subscriptionIds?: SubResource[]; +} + /** The List capacity reservation group with resource group response. */ export interface CapacityReservationGroupListResult { /** The list of capacity reservation groups */ @@ -3242,61 +3339,6 @@ export interface DiskRestorePointList { 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 */ -export interface SnapshotSku { - /** The sku name. */ - name?: SnapshotStorageAccountTypes; - /** - * The sku tier. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tier?: string; -} - -/** Indicates the error details if the background copy of a resource created via the CopyStart operation fails. */ -export interface CopyCompletionError { - /** Indicates the error code if the background copy of a resource created via the CopyStart operation fails. */ - errorCode: CopyCompletionErrorReason; - /** 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 */ - tags?: { [propertyName: string]: 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 */ - sku?: SnapshotSku; - /** the Operating System type. */ - osType?: OperatingSystemTypes; - /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ - diskSizeGB?: number; - /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ - encryptionSettingsCollection?: EncryptionSettingsCollection; - /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ - encryption?: Encryption; - /** Policy for accessing the disk via network. */ - networkAccessPolicy?: NetworkAccessPolicy; - /** ARM id of the DiskAccess resource for using private endpoints on disks. */ - diskAccessId?: string; - /** Indicates the OS on a snapshot supports hibernation. */ - supportsHibernation?: boolean; - /** Policy for controlling export on the disk. */ - publicNetworkAccess?: PublicNetworkAccess; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; - /** List of supported capabilities for the image from which the OS disk was created. */ - supportedCapabilities?: SupportedCapabilities; -} - -/** The List Snapshots operation response. */ -export interface SnapshotList { - /** A list of snapshots. */ - value: Snapshot[]; - /** The uri to fetch the next page of snapshots. Call ListNext() with this to fetch the next page of snapshots. */ - nextLink?: string; -} - /** The List Resource Skus operation response. */ export interface ResourceSkusResult { /** The list of skus available for the subscription. */ @@ -3523,7 +3565,7 @@ export interface GalleryIdentifier { /** Profile for gallery sharing to subscription or tenant */ export interface SharingProfile { - /** This property allows you to specify the permission of sharing gallery.

Possible values are:

**Private**

**Groups**

**Community** */ + /** This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.** */ permissions?: GallerySharingPermissionTypes; /** * A list of sharing profile groups. @@ -3536,7 +3578,7 @@ export interface SharingProfile { /** Group of the gallery sharing profile */ export interface SharingProfileGroup { - /** This property allows you to specify the type of sharing group.

Possible values are:

**Subscriptions**

**AADTenants** */ + /** This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.** */ type?: SharingProfileGroupTypes; /** A list of subscription/tenant ids the gallery is aimed to be shared to. */ ids?: string[]; @@ -3825,6 +3867,40 @@ export interface RegionalReplicationStatus { readonly progress?: number; } +/** The security profile of a gallery image version */ +export interface ImageVersionSecurityProfile { + /** Contains UEFI settings for the image version. */ + uefiSettings?: GalleryImageVersionUefiSettings; +} + +/** Contains UEFI settings for the image version. */ +export interface GalleryImageVersionUefiSettings { + /** The name of the template(s) that contains default UEFI key signatures that will be added to the image. */ + signatureTemplateNames?: UefiSignatureTemplateName[]; + /** Additional UEFI key signatures that will be added to the image in addition to the signature templates */ + additionalSignatures?: UefiKeySignatures; +} + +/** Additional UEFI key signatures that will be added to the image in addition to the signature templates */ +export interface UefiKeySignatures { + /** The Platform Key of this image version. */ + pk?: UefiKey; + /** The Key Encryption Keys of this image version. */ + kek?: UefiKey[]; + /** The database of UEFI keys for this image version. */ + db?: UefiKey[]; + /** The database of revoked UEFI keys for this image version. */ + dbx?: UefiKey[]; +} + +/** A UEFI key signature. */ +export interface UefiKey { + /** The type of key signature. */ + type?: UefiKeyType; + /** The value of the key signature. */ + value?: string[]; +} + /** A custom action that can be performed with a Gallery Application Version. */ export interface GalleryApplicationCustomAction { /** The name of the custom action. Must be unique within the Gallery Application Version. */ @@ -3918,7 +3994,7 @@ export interface GalleryApplicationVersionList { /** Specifies information about the gallery sharing profile update. */ export interface SharingUpdate { - /** This property allows you to specify the operation type of gallery sharing update.

Possible values are:

**Add**

**Remove**

**Reset** */ + /** This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.** */ operationType: SharingUpdateOperationTypes; /** A list of sharing profile groups. */ groups?: SharingProfileGroup[]; @@ -3981,7 +4057,21 @@ export interface SharedGalleryDiskImage { hostCaching?: SharedGalleryHostCaching; } -/** Base information about the community gallery resource in pir. */ +/** The metadata of community gallery. */ +export interface CommunityGalleryMetadata { + /** The publisher URI of this community gallery. */ + publisherUri?: string; + /** The publisher email id of this community gallery. */ + publisherContact: string; + /** The end-user license agreement for this community gallery. */ + eula?: string; + /** A list of public names the gallery has. */ + publicNames: string[]; + /** The link for the privacy statement of this community gallery from the gallery publisher. */ + privacyStatementUri?: string; +} + +/** Base information about the community gallery resource in azure compute gallery. */ export interface PirCommunityGalleryResource { /** * Resource name @@ -4016,7 +4106,7 @@ export interface CommunityGalleryImageIdentifier { export interface CommunityGalleryImageList { /** A list of community gallery images. */ value: CommunityGalleryImage[]; - /** The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. */ + /** The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. */ nextLink?: string; } @@ -4024,7 +4114,7 @@ export interface CommunityGalleryImageList { export interface CommunityGalleryImageVersionList { /** A list of community gallery image versions. */ value: CommunityGalleryImageVersion[]; - /** The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. */ + /** The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. */ nextLink?: string; } @@ -4659,6 +4749,14 @@ export interface OSFamilyListResult { nextLink?: string; } +/** Indicates the error details if the background copy of a resource created via the CopyStart operation fails. */ +export interface CopyCompletionError { + /** Indicates the error code if the background copy of a resource created via the CopyStart operation fails. */ + errorCode: CopyCompletionErrorReason; + /** Indicates the error message if the background copy of a resource created via the CopyStart operation fails. */ + errorMessage: string; +} + /** The source image from which the Image Version is going to be created. */ export interface GalleryArtifactSource { /** The managed artifact. */ @@ -4701,7 +4799,7 @@ export interface ImageReference extends SubResource { } /** Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. */ -export interface DiskEncryptionSetParameters extends SubResource { } +export interface DiskEncryptionSetParameters extends SubResource {} /** The parameters of a managed disk. */ export interface ManagedDiskParameters extends SubResource { @@ -4975,6 +5073,11 @@ export interface VirtualMachineScaleSet extends Resource { zones?: string[]; /** The extended location of the Virtual Machine Scale Set. */ extendedLocation?: ExtendedLocation; + /** + * Etag is property returned in Create/Update/Get response of the VMSS, so that customer can supply it in the header to ensure optimistic updates + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; /** The upgrade policy. */ upgradePolicy?: UpgradePolicy; /** Policy for automatic repairs. */ @@ -5022,6 +5125,8 @@ export interface VirtualMachineScaleSet extends Resource { readonly timeCreated?: Date; /** Optional property which must either be set to True or omitted. */ constrainedMaximumCapacity?: boolean; + /** Policy for Resiliency */ + resiliencyPolicy?: ResiliencyPolicy; } /** The status of the latest virtual machine scale set rolling upgrade. */ @@ -5074,6 +5179,11 @@ export interface VirtualMachineScaleSetVM extends Resource { readonly zones?: string[]; /** The identity of the virtual machine, if configured. */ identity?: VirtualMachineIdentity; + /** + * Etag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header to ensure optimistic updates. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; /** * Specifies whether the latest model has been applied to the virtual machine. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -5145,6 +5255,16 @@ export interface VirtualMachine extends Resource { zones?: string[]; /** The extended location of the Virtual Machine. */ extendedLocation?: ExtendedLocation; + /** + * ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This property is used by platform for internal resource group delete optimization. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managedBy?: string; + /** + * Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; /** Specifies the hardware settings for the virtual machine. */ hardwareProfile?: HardwareProfile; /** Specifies the storage settings for the virtual machine disks. */ @@ -5398,6 +5518,8 @@ export interface CapacityReservationGroup extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: CapacityReservationGroupInstanceView; + /** Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. */ + sharingProfile?: ResourceSharingProfile; } /** Specifies information about the capacity reservation. */ @@ -5647,83 +5769,6 @@ export interface DiskEncryptionSet extends Resource { federatedClientId?: string; } -/** Snapshot resource. */ -export interface Snapshot extends Resource { - /** - * Unused. Always Null. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedBy?: 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 */ - sku?: SnapshotSku; - /** The extended location where the snapshot will be created. Extended location cannot be changed. */ - extendedLocation?: ExtendedLocation; - /** - * The time when the snapshot was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; - /** The Operating System type. */ - osType?: OperatingSystemTypes; - /** The hypervisor generation of the Virtual Machine. Applicable to OS disks only. */ - hyperVGeneration?: HyperVGeneration; - /** Purchase plan information for the image from which the source disk for the snapshot was originally created. */ - purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities for the image from which the source disk from the snapshot was originally created. */ - supportedCapabilities?: SupportedCapabilities; - /** Disk source information. CreationData information cannot be changed after the disk has been created. */ - creationData?: CreationData; - /** If creationData.createOption is Empty, this field is mandatory and it indicates the size of the disk to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size. */ - diskSizeGB?: number; - /** - * The size of the disk in bytes. This field is read only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly diskSizeBytes?: number; - /** - * The state of the snapshot. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly diskState?: DiskState; - /** - * Unique Guid identifying the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly uniqueId?: string; - /** Encryption settings collection used be Azure Disk Encryption, can contain multiple encryption settings per disk or snapshot. */ - encryptionSettingsCollection?: EncryptionSettingsCollection; - /** - * The disk provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed. */ - incremental?: boolean; - /** - * Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly incrementalSnapshotFamilyId?: string; - /** Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys. */ - encryption?: Encryption; - /** Policy for accessing the disk via network. */ - networkAccessPolicy?: NetworkAccessPolicy; - /** ARM id of the DiskAccess resource for using private endpoints on disks. */ - diskAccessId?: string; - /** Contains the security related information for the resource. */ - securityProfile?: DiskSecurityProfile; - /** Indicates the OS on a snapshot supports hibernation. */ - supportsHibernation?: boolean; - /** Policy for controlling export on the disk. */ - 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?: CopyCompletionError; - /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ - dataAccessAuthMode?: DataAccessAuthMode; -} - /** Specifies information about the Shared Image Gallery that you want to create or update. */ export interface Gallery extends Resource { /** The description of this Shared Image Gallery resource. This property is updatable. */ @@ -5756,7 +5801,7 @@ export interface GalleryImage extends Resource { privacyStatementUri?: string; /** The release note uri. */ releaseNoteUri?: string; - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -5801,6 +5846,8 @@ export interface GalleryImageVersion extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; + /** The security profile of a gallery image version */ + securityProfile?: ImageVersionSecurityProfile; } /** Specifies information about the gallery Application Definition that you want to create or update. */ @@ -5815,7 +5862,7 @@ export interface GalleryApplication extends Resource { releaseNoteUri?: string; /** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; - /** This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.** */ supportedOSType?: OperatingSystemTypes; /** A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. */ customActions?: GalleryApplicationCustomAction[]; @@ -5869,6 +5916,8 @@ export interface VirtualMachineScaleSetUpdate extends UpdateResource { priorityMixPolicy?: PriorityMixPolicy; /** Specifies the Spot Restore properties for the virtual machine scale set. */ spotRestorePolicy?: SpotRestorePolicy; + /** Policy for Resiliency */ + resiliencyPolicy?: ResiliencyPolicy; } /** Describes a Virtual Machine Extension. */ @@ -5989,7 +6038,7 @@ export interface AvailabilitySetUpdate extends UpdateResource { } /** Specifies information about the proximity placement group. */ -export interface ProximityPlacementGroupUpdate extends UpdateResource { } +export interface ProximityPlacementGroupUpdate extends UpdateResource {} /** Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. */ export interface DedicatedHostGroupUpdate extends UpdateResource { @@ -6114,6 +6163,8 @@ export interface CapacityReservationGroupUpdate extends UpdateResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly instanceView?: CapacityReservationGroupInstanceView; + /** Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. */ + sharingProfile?: ResourceSharingProfile; } /** Specifies information about the capacity reservation. Only tags and sku.capacity can be updated. */ @@ -6197,7 +6248,7 @@ export interface VirtualMachineRunCommandUpdate extends UpdateResource { /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ export interface VirtualMachineScaleSetVMReimageParameters - extends VirtualMachineReimageParameters { } + extends VirtualMachineReimageParameters {} /** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */ export interface DedicatedHostInstanceViewWithName @@ -6264,7 +6315,7 @@ export interface RequestRateByIntervalInput extends LogAnalyticsInputBase { } /** Api request input for LogAnalytics getThrottledRequests Api. */ -export interface ThrottledRequestsInput extends LogAnalyticsInputBase { } +export interface ThrottledRequestsInput extends LogAnalyticsInputBase {} /** Describes the properties of a Run Command. */ export interface RunCommandDocument extends RunCommandDocumentBase { @@ -6368,7 +6419,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { privacyStatementUri?: string; /** The release note uri. */ releaseNoteUri?: string; - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -6413,6 +6464,8 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; + /** The security profile of a gallery image version */ + securityProfile?: ImageVersionSecurityProfile; } /** Specifies information about the gallery Application Definition that you want to update. */ @@ -6427,7 +6480,7 @@ export interface GalleryApplicationUpdate extends UpdateResourceDefinition { releaseNoteUri?: string; /** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; - /** This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.** */ supportedOSType?: OperatingSystemTypes; /** A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. */ customActions?: GalleryApplicationCustomAction[]; @@ -6454,7 +6507,7 @@ export interface GalleryApplicationVersionUpdate /** The publishing profile of a gallery image Version. */ export interface GalleryImageVersionPublishingProfile - extends GalleryArtifactPublishingProfileBase { } + extends GalleryArtifactPublishingProfileBase {} /** The publishing profile of a gallery image version. */ export interface GalleryApplicationVersionPublishingProfile @@ -6500,7 +6553,7 @@ export interface GalleryDiskImageSource extends GalleryArtifactVersionSource { } /** This is the OS disk image. */ -export interface GalleryOSDiskImage extends GalleryDiskImage { } +export interface GalleryOSDiskImage extends GalleryDiskImage {} /** This is the data disk image. */ export interface GalleryDataDiskImage extends GalleryDiskImage { @@ -6525,7 +6578,7 @@ export interface GalleryImageVersionSafetyProfile /** The safety profile of the Gallery Application Version. */ export interface GalleryApplicationVersionSafetyProfile - extends GalleryArtifactSafetyProfileBase { } + extends GalleryArtifactSafetyProfileBase {} /** Base information about the shared gallery resource in pir. */ export interface PirSharedGalleryResource extends PirResource { @@ -6534,7 +6587,7 @@ export interface PirSharedGalleryResource extends PirResource { } /** This is the OS disk image. */ -export interface SharedGalleryOSDiskImage extends SharedGalleryDiskImage { } +export interface SharedGalleryOSDiskImage extends SharedGalleryDiskImage {} /** This is the data disk image. */ export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { @@ -6543,11 +6596,18 @@ export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { } /** Specifies information about the Community Gallery that you want to create or update. */ -export interface CommunityGallery extends PirCommunityGalleryResource { } +export interface CommunityGallery extends PirCommunityGalleryResource { + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; + /** The metadata of community gallery. */ + communityMetadata?: CommunityGalleryMetadata; +} /** Specifies information about the gallery image definition that you want to create or update. */ export interface CommunityGalleryImage extends PirCommunityGalleryResource { - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -6567,10 +6627,14 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { purchasePlan?: ImagePurchasePlan; /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; - /** Privacy statement uri for the current community gallery image. */ + /** Privacy statement URI for the current community gallery image. */ privacyStatementUri?: string; - /** End-user license agreement for the current community gallery image. */ + /** The end-user license agreement for the current community gallery image. */ eula?: string; + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Specifies information about the gallery image version that you want to create or update. */ @@ -6584,6 +6648,10 @@ export interface CommunityGalleryImageVersion excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Describes a Virtual Machine Image. */ @@ -6614,11 +6682,17 @@ export interface VirtualMachineScaleSetReimageParameters } /** Specifies information about the Shared Gallery that you want to create or update. */ -export interface SharedGallery extends PirSharedGalleryResource { } +export interface SharedGallery extends PirSharedGalleryResource { + /** + * The artifact tags of a shared gallery resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly artifactTags?: { [propertyName: string]: string }; +} /** Specifies information about the gallery image definition that you want to create or update. */ export interface SharedGalleryImage extends PirSharedGalleryResource { - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -6642,6 +6716,8 @@ export interface SharedGalleryImage extends PirSharedGalleryResource { privacyStatementUri?: string; /** End-user license agreement for the current community gallery image. */ eula?: string; + /** The artifact tags of a shared gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Specifies information about the gallery image version that you want to create or update. */ @@ -6654,6 +6730,8 @@ export interface SharedGalleryImageVersion extends PirSharedGalleryResource { excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; + /** The artifact tags of a shared gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Defines headers for VirtualMachineScaleSets_reapply operation. */ @@ -6661,6 +6739,31 @@ export interface VirtualMachineScaleSetsReapplyHeaders { location?: string; } +/** Defines headers for VirtualMachineScaleSets_approveRollingUpgrade operation. */ +export interface VirtualMachineScaleSetsApproveRollingUpgradeHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineScaleSetVMs_approveRollingUpgrade operation. */ +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineScaleSetVMs_attachDetachDataDisks operation. */ +export interface VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders { + location?: string; +} + +/** Defines headers for VirtualMachines_attachDetachDataDisks operation. */ +export interface VirtualMachinesAttachDetachDataDisksHeaders { + location?: string; +} + +/** Defines headers for DedicatedHosts_redeploy operation. */ +export interface DedicatedHostsRedeployHeaders { + location?: string; +} + /** Known values of {@link RepairAction} that the service accepts. */ export enum KnownRepairAction { /** Replace */ @@ -6897,7 +7000,9 @@ export enum KnownSecurityEncryptionTypes { /** VMGuestStateOnly */ VMGuestStateOnly = "VMGuestStateOnly", /** DiskWithVMGuestState */ - DiskWithVMGuestState = "DiskWithVMGuestState" + DiskWithVMGuestState = "DiskWithVMGuestState", + /** NonPersistedTPM */ + NonPersistedTPM = "NonPersistedTPM" } /** @@ -6906,7 +7011,8 @@ export enum KnownSecurityEncryptionTypes { * this enum contains the known values that the service supports. * ### Known values supported by the service * **VMGuestStateOnly** \ - * **DiskWithVMGuestState** + * **DiskWithVMGuestState** \ + * **NonPersistedTPM** */ export type SecurityEncryptionTypes = string; @@ -7105,6 +7211,24 @@ export enum KnownSecurityTypes { */ export type SecurityTypes = string; +/** Known values of {@link Mode} that the service accepts. */ +export enum KnownMode { + /** Audit */ + Audit = "Audit", + /** Enforce */ + Enforce = "Enforce" +} + +/** + * Defines values for Mode. \ + * {@link KnownMode} can be used interchangeably with Mode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Audit** \ + * **Enforce** + */ +export type Mode = string; + /** Known values of {@link VirtualMachinePriorityTypes} that the service accepts. */ export enum KnownVirtualMachinePriorityTypes { /** Regular */ @@ -8236,6 +8360,24 @@ export enum KnownProximityPlacementGroupType { */ export type ProximityPlacementGroupType = string; +/** Known values of {@link SshEncryptionTypes} that the service accepts. */ +export enum KnownSshEncryptionTypes { + /** RSA */ + RSA = "RSA", + /** Ed25519 */ + Ed25519 = "Ed25519" +} + +/** + * Defines values for SshEncryptionTypes. \ + * {@link KnownSshEncryptionTypes} can be used interchangeably with SshEncryptionTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RSA** \ + * **Ed25519** + */ +export type SshEncryptionTypes = string; + /** Known values of {@link OperatingSystemType} that the service accepts. */ export enum KnownOperatingSystemType { /** Windows */ @@ -8770,42 +8912,6 @@ export enum KnownDiskEncryptionSetType { */ export type DiskEncryptionSetType = 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" -} - -/** - * 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 - * **Standard_LRS**: Standard HDD locally redundant storage \ - * **Premium_LRS**: Premium SSD locally redundant storage \ - * **Standard_ZRS**: Standard zone redundant storage - */ -export type SnapshotStorageAccountTypes = string; - -/** Known values of {@link CopyCompletionErrorReason} that the service accepts. */ -export enum KnownCopyCompletionErrorReason { - /** 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 CopyCompletionErrorReason. \ - * {@link KnownCopyCompletionErrorReason} can be used interchangeably with CopyCompletionErrorReason, - * 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 CopyCompletionErrorReason = string; - /** Known values of {@link ExtendedLocationType} that the service accepts. */ export enum KnownExtendedLocationType { /** EdgeZone */ @@ -8972,7 +9078,9 @@ export enum KnownConfidentialVMEncryptionType { /** EncryptedWithPmk */ EncryptedWithPmk = "EncryptedWithPmk", /** EncryptedWithCmk */ - EncryptedWithCmk = "EncryptedWithCmk" + EncryptedWithCmk = "EncryptedWithCmk", + /** NonPersistedTPM */ + NonPersistedTPM = "NonPersistedTPM" } /** @@ -8982,7 +9090,8 @@ export enum KnownConfidentialVMEncryptionType { * ### Known values supported by the service * **EncryptedVMGuestStateOnlyWithPmk** \ * **EncryptedWithPmk** \ - * **EncryptedWithCmk** + * **EncryptedWithCmk** \ + * **NonPersistedTPM** */ export type ConfidentialVMEncryptionType = string; @@ -9118,10 +9227,51 @@ export enum KnownReplicationState { */ export type ReplicationState = string; +/** Known values of {@link UefiSignatureTemplateName} that the service accepts. */ +export enum KnownUefiSignatureTemplateName { + /** NoSignatureTemplate */ + NoSignatureTemplate = "NoSignatureTemplate", + /** MicrosoftUefiCertificateAuthorityTemplate */ + MicrosoftUefiCertificateAuthorityTemplate = "MicrosoftUefiCertificateAuthorityTemplate", + /** MicrosoftWindowsTemplate */ + MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate" +} + +/** + * Defines values for UefiSignatureTemplateName. \ + * {@link KnownUefiSignatureTemplateName} can be used interchangeably with UefiSignatureTemplateName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NoSignatureTemplate** \ + * **MicrosoftUefiCertificateAuthorityTemplate** \ + * **MicrosoftWindowsTemplate** + */ +export type UefiSignatureTemplateName = string; + +/** Known values of {@link UefiKeyType} that the service accepts. */ +export enum KnownUefiKeyType { + /** Sha256 */ + Sha256 = "sha256", + /** X509 */ + X509 = "x509" +} + +/** + * Defines values for UefiKeyType. \ + * {@link KnownUefiKeyType} can be used interchangeably with UefiKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **sha256** \ + * **x509** + */ +export type UefiKeyType = string; + /** Known values of {@link ReplicationStatusTypes} that the service accepts. */ export enum KnownReplicationStatusTypes { /** ReplicationStatus */ - ReplicationStatus = "ReplicationStatus" + ReplicationStatus = "ReplicationStatus", + /** UefiSettings */ + UefiSettings = "UefiSettings" } /** @@ -9129,7 +9279,8 @@ export enum KnownReplicationStatusTypes { * {@link KnownReplicationStatusTypes} can be used interchangeably with ReplicationStatusTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ReplicationStatus** + * **ReplicationStatus** \ + * **UefiSettings** */ export type ReplicationStatusTypes = string; @@ -9232,6 +9383,21 @@ export enum KnownCloudServiceSlotType { */ export type CloudServiceSlotType = string; +/** Known values of {@link CopyCompletionErrorReason} that the service accepts. */ +export enum KnownCopyCompletionErrorReason { + /** 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 CopyCompletionErrorReason. \ + * {@link KnownCopyCompletionErrorReason} can be used interchangeably with CopyCompletionErrorReason, + * 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 CopyCompletionErrorReason = string; + /** Known values of {@link AvailabilitySetSkuTypes} that the service accepts. */ export enum KnownAvailabilitySetSkuTypes { /** Classic */ @@ -9324,34 +9490,34 @@ export type GalleryApplicationCustomActionParameterType = /** Optional parameters. */ export interface OperationsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type OperationsListResponse = ComputeOperationListResult; /** Optional parameters. */ -export interface UsageListOptionalParams extends coreClient.OperationOptions { } +export interface UsageListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type UsageListResponse = ListUsagesResult; /** Optional parameters. */ export interface UsageListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type UsageListNextResponse = ListUsagesResult; /** Optional parameters. */ export interface VirtualMachineSizesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListByLocationOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult; @@ -9359,6 +9525,10 @@ export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleS /** Optional parameters. */ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; + /** Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported. */ + ifNoneMatch?: 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. */ @@ -9371,6 +9541,10 @@ export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleS /** Optional parameters. */ export interface VirtualMachineScaleSetsUpdateOptionalParams extends coreClient.OperationOptions { + /** The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; + /** Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported. */ + ifNoneMatch?: 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. */ @@ -9427,35 +9601,35 @@ export interface VirtualMachineScaleSetsDeleteInstancesOptionalParams /** Optional parameters. */ export interface VirtualMachineScaleSetsGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type VirtualMachineScaleSetsGetInstanceViewResponse = VirtualMachineScaleSetInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineScaleSetsListResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type VirtualMachineScaleSetsListAllResponse = VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ export type VirtualMachineScaleSetsListSkusResponse = VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistory operation. */ export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = VirtualMachineScaleSetListOSUpgradeHistory; @@ -9557,6 +9731,20 @@ export interface VirtualMachineScaleSetsReimageAllOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + extends coreClient.OperationOptions { + /** A list of virtual machine instance IDs from the VM scale set. */ + vmInstanceIDs?: VirtualMachineScaleSetVMInstanceIDs; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the approveRollingUpgrade operation. */ +export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = VirtualMachineScaleSetsApproveRollingUpgradeHeaders; + /** Optional parameters. */ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams extends coreClient.OperationOptions { @@ -9571,7 +9759,7 @@ export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomai /** Optional parameters. */ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams @@ -9584,35 +9772,35 @@ export interface VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalPara /** Optional parameters. */ export interface VirtualMachineScaleSetsListByLocationNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ export type VirtualMachineScaleSetsListByLocationNextResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type VirtualMachineScaleSetsListAllNextResponse = VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkusNext operation. */ export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistoryNext operation. */ export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = VirtualMachineScaleSetListOSUpgradeHistory; @@ -9662,14 +9850,14 @@ export type VirtualMachineScaleSetExtensionsGetResponse = VirtualMachineScaleSet /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetExtensionsListNextResponse = VirtualMachineScaleSetExtensionListResult; @@ -9703,7 +9891,7 @@ export interface VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptio /** Optional parameters. */ export interface VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getLatest operation. */ export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgradeStatusInfo; @@ -9781,6 +9969,18 @@ export interface VirtualMachineScaleSetVMsReimageAllOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the approveRollingUpgrade operation. */ +export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; + /** Optional parameters. */ export interface VirtualMachineScaleSetVMsDeallocateOptionalParams extends coreClient.OperationOptions { @@ -9793,6 +9993,10 @@ export interface VirtualMachineScaleSetVMsDeallocateOptionalParams /** Optional parameters. */ export interface VirtualMachineScaleSetVMsUpdateOptionalParams extends coreClient.OperationOptions { + /** The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; + /** Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported. */ + ifNoneMatch?: 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. */ @@ -9825,7 +10029,7 @@ export type VirtualMachineScaleSetVMsGetResponse = VirtualMachineScaleSetVM; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView; @@ -9903,7 +10107,19 @@ export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams /** Optional parameters. */ export interface VirtualMachineScaleSetVMsSimulateEvictionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the attachDetachDataDisks operation. */ +export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = StorageProfile; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsRunCommandOptionalParams @@ -9919,7 +10135,7 @@ export type VirtualMachineScaleSetVMsRunCommandResponse = RunCommandResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult; @@ -9979,7 +10195,7 @@ export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListR /** Optional parameters. */ export interface VirtualMachinesListByLocationOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ export type VirtualMachinesListByLocationResponse = VirtualMachineListResult; @@ -9999,6 +10215,10 @@ export type VirtualMachinesCaptureResponse = VirtualMachineCaptureResult; /** Optional parameters. */ export interface VirtualMachinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; + /** Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported. */ + ifNoneMatch?: 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. */ @@ -10011,6 +10231,10 @@ export type VirtualMachinesCreateOrUpdateResponse = VirtualMachine; /** Optional parameters. */ export interface VirtualMachinesUpdateOptionalParams extends coreClient.OperationOptions { + /** The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; + /** Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will result in error from server as they are not supported. */ + ifNoneMatch?: 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. */ @@ -10043,7 +10267,7 @@ export type VirtualMachinesGetResponse = VirtualMachine; /** Optional parameters. */ export interface VirtualMachinesInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the instanceView operation. */ export type VirtualMachinesInstanceViewResponse = VirtualMachineInstanceView; @@ -10070,7 +10294,7 @@ export interface VirtualMachinesDeallocateOptionalParams /** Optional parameters. */ export interface VirtualMachinesGeneralizeOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachinesListOptionalParams @@ -10100,7 +10324,7 @@ export type VirtualMachinesListAllResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListAvailableSizesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult; @@ -10184,7 +10408,7 @@ export interface VirtualMachinesPerformMaintenanceOptionalParams /** Optional parameters. */ export interface VirtualMachinesSimulateEvictionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface VirtualMachinesAssessPatchesOptionalParams @@ -10210,6 +10434,18 @@ export interface VirtualMachinesInstallPatchesOptionalParams /** Contains response data for the installPatches operation. */ export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult; +/** Optional parameters. */ +export interface VirtualMachinesAttachDetachDataDisksOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the attachDetachDataDisks operation. */ +export type VirtualMachinesAttachDetachDataDisksResponse = StorageProfile; + /** Optional parameters. */ export interface VirtualMachinesRunCommandOptionalParams extends coreClient.OperationOptions { @@ -10224,28 +10460,28 @@ export type VirtualMachinesRunCommandResponse = RunCommandResult; /** Optional parameters. */ export interface VirtualMachinesListByLocationNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachinesListNextResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type VirtualMachinesListAllNextResponse = VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachineImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineImagesGetResponse = VirtualMachineImage; @@ -10264,35 +10500,35 @@ export type VirtualMachineImagesListResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListOffersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ export type VirtualMachineImagesListOffersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListPublishersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ export type VirtualMachineImagesListPublishersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListSkusOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ export type VirtualMachineImagesListSkusResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListByEdgeZoneOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByEdgeZone operation. */ export type VirtualMachineImagesListByEdgeZoneResponse = VmImagesInEdgeZoneListResult; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineImagesEdgeZoneGetResponse = VirtualMachineImage; @@ -10313,35 +10549,35 @@ export type VirtualMachineImagesEdgeZoneListResponse = VirtualMachineImageResour /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListOffersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListPublishersOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ export type VirtualMachineImagesEdgeZoneListPublishersResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListSkusOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ export type VirtualMachineImagesEdgeZoneListSkusResponse = VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListTypesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listTypes operation. */ export type VirtualMachineExtensionImagesListTypesResponse = VirtualMachineExtensionImage[]; @@ -10360,25 +10596,25 @@ export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineEx /** Optional parameters. */ export interface AvailabilitySetsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type AvailabilitySetsCreateOrUpdateResponse = AvailabilitySet; /** Optional parameters. */ export interface AvailabilitySetsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type AvailabilitySetsUpdateResponse = AvailabilitySet; /** Optional parameters. */ export interface AvailabilitySetsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface AvailabilitySetsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AvailabilitySetsGetResponse = AvailabilitySet; @@ -10395,49 +10631,49 @@ export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResu /** Optional parameters. */ export interface AvailabilitySetsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AvailabilitySetsListResponse = AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListAvailableSizesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult; /** Optional parameters. */ export interface AvailabilitySetsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AvailabilitySetsListNextResponse = AvailabilitySetListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface ProximityPlacementGroupsGetOptionalParams @@ -10451,49 +10687,49 @@ export type ProximityPlacementGroupsGetResponse = ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsListBySubscriptionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type DedicatedHostGroupsCreateOrUpdateResponse = DedicatedHostGroup; /** Optional parameters. */ export interface DedicatedHostGroupsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type DedicatedHostGroupsUpdateResponse = DedicatedHostGroup; /** Optional parameters. */ export interface DedicatedHostGroupsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface DedicatedHostGroupsGetOptionalParams @@ -10507,28 +10743,28 @@ export type DedicatedHostGroupsGetResponse = DedicatedHostGroup; /** Optional parameters. */ export interface DedicatedHostGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult; @@ -10578,7 +10814,7 @@ export type DedicatedHostsGetResponse = DedicatedHost; /** Optional parameters. */ export interface DedicatedHostsListByHostGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByHostGroup operation. */ export type DedicatedHostsListByHostGroupResponse = DedicatedHostListResult; @@ -10592,76 +10828,91 @@ export interface DedicatedHostsRestartOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface DedicatedHostsRedeployOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the redeploy operation. */ +export type DedicatedHostsRedeployResponse = DedicatedHostsRedeployHeaders; + /** Optional parameters. */ export interface DedicatedHostsListAvailableSizesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ export type DedicatedHostsListAvailableSizesResponse = DedicatedHostSizeListResult; /** Optional parameters. */ export interface DedicatedHostsListByHostGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByHostGroupNext operation. */ export type DedicatedHostsListByHostGroupNextResponse = DedicatedHostListResult; /** Optional parameters. */ export interface SshPublicKeysListBySubscriptionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysCreateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ export type SshPublicKeysCreateResponse = SshPublicKeyResource; /** Optional parameters. */ export interface SshPublicKeysUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type SshPublicKeysUpdateResponse = SshPublicKeyResource; /** Optional parameters. */ export interface SshPublicKeysDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface SshPublicKeysGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SshPublicKeysGetResponse = SshPublicKeyResource; /** Optional parameters. */ export interface SshPublicKeysGenerateKeyPairOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions { + /** Parameters supplied to generate the SSH public key. */ + parameters?: SshGenerateKeyPairInputParameters; +} /** Contains response data for the generateKeyPair operation. */ export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult; /** Optional parameters. */ export interface SshPublicKeysListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult; @@ -10710,41 +10961,41 @@ export type ImagesGetResponse = Image; /** Optional parameters. */ export interface ImagesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type ImagesListByResourceGroupResponse = ImageListResult; /** Optional parameters. */ -export interface ImagesListOptionalParams extends coreClient.OperationOptions { } +export interface ImagesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ImagesListResponse = ImageListResult; /** Optional parameters. */ export interface ImagesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type ImagesListByResourceGroupNextResponse = ImageListResult; /** Optional parameters. */ export interface ImagesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ImagesListNextResponse = ImageListResult; /** Optional parameters. */ export interface RestorePointCollectionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type RestorePointCollectionsCreateOrUpdateResponse = RestorePointCollection; /** Optional parameters. */ export interface RestorePointCollectionsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type RestorePointCollectionsUpdateResponse = RestorePointCollection; @@ -10770,28 +11021,28 @@ export type RestorePointCollectionsGetResponse = RestorePointCollection; /** Optional parameters. */ export interface RestorePointCollectionsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type RestorePointCollectionsListResponse = RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type RestorePointCollectionsListAllResponse = RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type RestorePointCollectionsListNextResponse = RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type RestorePointCollectionsListAllNextResponse = RestorePointCollectionListResult; @@ -10829,21 +11080,21 @@ export type RestorePointsGetResponse = RestorePoint; /** Optional parameters. */ export interface CapacityReservationGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; /** Optional parameters. */ export interface CapacityReservationGroupsUpdateOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type CapacityReservationGroupsUpdateResponse = CapacityReservationGroup; /** Optional parameters. */ export interface CapacityReservationGroupsDeleteOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface CapacityReservationGroupsGetOptionalParams @@ -10877,14 +11128,14 @@ export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReserv /** Optional parameters. */ export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type CapacityReservationGroupsListByResourceGroupNextResponse = CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupListResult; @@ -10934,14 +11185,14 @@ export type CapacityReservationsGetResponse = CapacityReservation; /** Optional parameters. */ export interface CapacityReservationsListByCapacityReservationGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroup operation. */ export type CapacityReservationsListByCapacityReservationGroupResponse = CapacityReservationListResult; /** Optional parameters. */ export interface CapacityReservationsListByCapacityReservationGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroupNext operation. */ export type CapacityReservationsListByCapacityReservationGroupNextResponse = CapacityReservationListResult; @@ -10972,14 +11223,14 @@ export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationR /** Optional parameters. */ export interface VirtualMachineRunCommandsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type VirtualMachineRunCommandsListResponse = RunCommandListResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type VirtualMachineRunCommandsGetResponse = RunCommandDocument; @@ -11039,14 +11290,14 @@ export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachi /** Optional parameters. */ export interface VirtualMachineRunCommandsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineRunCommandsListNextResponse = RunCommandListResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByVirtualMachineNext operation. */ export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult; @@ -11106,7 +11357,7 @@ export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunC /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; @@ -11135,7 +11386,7 @@ export interface DisksUpdateOptionalParams extends coreClient.OperationOptions { export type DisksUpdateResponse = Disk; /** Optional parameters. */ -export interface DisksGetOptionalParams extends coreClient.OperationOptions { } +export interface DisksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DisksGetResponse = Disk; @@ -11150,13 +11401,13 @@ export interface DisksDeleteOptionalParams extends coreClient.OperationOptions { /** Optional parameters. */ export interface DisksListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DisksListByResourceGroupResponse = DiskList; /** Optional parameters. */ -export interface DisksListOptionalParams extends coreClient.OperationOptions { } +export interface DisksListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type DisksListResponse = DiskList; @@ -11184,14 +11435,14 @@ export interface DisksRevokeAccessOptionalParams /** Optional parameters. */ export interface DisksListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DisksListByResourceGroupNextResponse = DiskList; /** Optional parameters. */ export interface DisksListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DisksListNextResponse = DiskList; @@ -11222,7 +11473,7 @@ export type DiskAccessesUpdateResponse = DiskAccess; /** Optional parameters. */ export interface DiskAccessesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DiskAccessesGetResponse = DiskAccess; @@ -11238,21 +11489,21 @@ export interface DiskAccessesDeleteOptionalParams /** Optional parameters. */ export interface DiskAccessesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DiskAccessesListByResourceGroupResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type DiskAccessesListResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesGetPrivateLinkResourcesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getPrivateLinkResources operation. */ export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; @@ -11271,7 +11522,7 @@ export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpoi /** Optional parameters. */ export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getAPrivateEndpointConnection operation. */ export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; @@ -11287,28 +11538,28 @@ export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams /** Optional parameters. */ export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnections operation. */ export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskAccessesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DiskAccessesListByResourceGroupNextResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DiskAccessesListNextResponse = DiskAccessList; /** Optional parameters. */ export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnectionsNext operation. */ export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; @@ -11339,7 +11590,7 @@ export type DiskEncryptionSetsUpdateResponse = DiskEncryptionSet; /** Optional parameters. */ export interface DiskEncryptionSetsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DiskEncryptionSetsGetResponse = DiskEncryptionSet; @@ -11355,56 +11606,56 @@ export interface DiskEncryptionSetsDeleteOptionalParams /** Optional parameters. */ export interface DiskEncryptionSetsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type DiskEncryptionSetsListResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListAssociatedResourcesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAssociatedResources operation. */ export type DiskEncryptionSetsListAssociatedResourcesResponse = ResourceUriList; /** Optional parameters. */ export interface DiskEncryptionSetsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type DiskEncryptionSetsListNextResponse = DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAssociatedResourcesNext operation. */ export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; /** Optional parameters. */ export interface DiskRestorePointGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type DiskRestorePointGetResponse = DiskRestorePoint; /** Optional parameters. */ export interface DiskRestorePointListByRestorePointOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByRestorePoint operation. */ export type DiskRestorePointListByRestorePointResponse = DiskRestorePointList; @@ -11432,100 +11683,11 @@ export interface DiskRestorePointRevokeAccessOptionalParams /** Optional parameters. */ export interface DiskRestorePointListByRestorePointNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByRestorePointNext operation. */ export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; -/** Optional parameters. */ -export interface SnapshotsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type SnapshotsCreateOrUpdateResponse = Snapshot; - -/** Optional parameters. */ -export interface SnapshotsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type SnapshotsUpdateResponse = Snapshot; - -/** Optional parameters. */ -export interface SnapshotsGetOptionalParams - extends coreClient.OperationOptions { } - -/** Contains response data for the get operation. */ -export type SnapshotsGetResponse = Snapshot; - -/** Optional parameters. */ -export interface SnapshotsDeleteOptionalParams - 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; -} - -/** Optional parameters. */ -export interface SnapshotsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } - -/** Contains response data for the listByResourceGroup operation. */ -export type SnapshotsListByResourceGroupResponse = SnapshotList; - -/** Optional parameters. */ -export interface SnapshotsListOptionalParams - extends coreClient.OperationOptions { } - -/** Contains response data for the list operation. */ -export type SnapshotsListResponse = SnapshotList; - -/** Optional parameters. */ -export interface SnapshotsGrantAccessOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the grantAccess operation. */ -export type SnapshotsGrantAccessResponse = AccessUri; - -/** Optional parameters. */ -export interface SnapshotsRevokeAccessOptionalParams - 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; -} - -/** Optional parameters. */ -export interface SnapshotsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } - -/** Contains response data for the listByResourceGroupNext operation. */ -export type SnapshotsListByResourceGroupNextResponse = SnapshotList; - -/** Optional parameters. */ -export interface SnapshotsListNextOptionalParams - extends coreClient.OperationOptions { } - -/** Contains response data for the listNext operation. */ -export type SnapshotsListNextResponse = SnapshotList; - /** Optional parameters. */ export interface ResourceSkusListOptionalParams extends coreClient.OperationOptions { @@ -11540,7 +11702,7 @@ export type ResourceSkusListResponse = ResourceSkusResult; /** Optional parameters. */ export interface ResourceSkusListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ResourceSkusListNextResponse = ResourceSkusResult; @@ -11592,28 +11754,28 @@ export interface GalleriesDeleteOptionalParams /** Optional parameters. */ export interface GalleriesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type GalleriesListByResourceGroupResponse = GalleryList; /** Optional parameters. */ export interface GalleriesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type GalleriesListResponse = GalleryList; /** Optional parameters. */ export interface GalleriesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type GalleriesListByResourceGroupNextResponse = GalleryList; /** Optional parameters. */ export interface GalleriesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GalleriesListNextResponse = GalleryList; @@ -11644,7 +11806,7 @@ export type GalleryImagesUpdateResponse = GalleryImage; /** Optional parameters. */ export interface GalleryImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GalleryImagesGetResponse = GalleryImage; @@ -11660,14 +11822,14 @@ export interface GalleryImagesDeleteOptionalParams /** Optional parameters. */ export interface GalleryImagesListByGalleryOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGallery operation. */ export type GalleryImagesListByGalleryResponse = GalleryImageList; /** Optional parameters. */ export interface GalleryImagesListByGalleryNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryNext operation. */ export type GalleryImagesListByGalleryNextResponse = GalleryImageList; @@ -11717,14 +11879,14 @@ export interface GalleryImageVersionsDeleteOptionalParams /** Optional parameters. */ export interface GalleryImageVersionsListByGalleryImageOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImage operation. */ export type GalleryImageVersionsListByGalleryImageResponse = GalleryImageVersionList; /** Optional parameters. */ export interface GalleryImageVersionsListByGalleryImageNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImageNext operation. */ export type GalleryImageVersionsListByGalleryImageNextResponse = GalleryImageVersionList; @@ -11755,7 +11917,7 @@ export type GalleryApplicationsUpdateResponse = GalleryApplication; /** Optional parameters. */ export interface GalleryApplicationsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GalleryApplicationsGetResponse = GalleryApplication; @@ -11771,14 +11933,14 @@ export interface GalleryApplicationsDeleteOptionalParams /** Optional parameters. */ export interface GalleryApplicationsListByGalleryOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGallery operation. */ export type GalleryApplicationsListByGalleryResponse = GalleryApplicationList; /** Optional parameters. */ export interface GalleryApplicationsListByGalleryNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryNext operation. */ export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationList; @@ -11828,14 +11990,14 @@ export interface GalleryApplicationVersionsDeleteOptionalParams /** Optional parameters. */ export interface GalleryApplicationVersionsListByGalleryApplicationOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplication operation. */ export type GalleryApplicationVersionsListByGalleryApplicationResponse = GalleryApplicationVersionList; /** Optional parameters. */ export interface GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplicationNext operation. */ export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList; @@ -11864,14 +12026,14 @@ export type SharedGalleriesListResponse = SharedGalleryList; /** Optional parameters. */ export interface SharedGalleriesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SharedGalleriesGetResponse = SharedGallery; /** Optional parameters. */ export interface SharedGalleriesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SharedGalleriesListNextResponse = SharedGalleryList; @@ -11888,14 +12050,14 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList; /** Optional parameters. */ export interface SharedGalleryImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SharedGalleryImagesGetResponse = SharedGalleryImage; /** Optional parameters. */ export interface SharedGalleryImagesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SharedGalleryImagesListNextResponse = SharedGalleryImageList; @@ -11912,63 +12074,63 @@ export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionLi /** Optional parameters. */ export interface SharedGalleryImageVersionsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SharedGalleryImageVersionsGetResponse = SharedGalleryImageVersion; /** Optional parameters. */ export interface SharedGalleryImageVersionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SharedGalleryImageVersionsListNextResponse = SharedGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleriesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CommunityGalleriesGetResponse = CommunityGallery; /** Optional parameters. */ export interface CommunityGalleryImagesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CommunityGalleryImagesGetResponse = CommunityGalleryImage; /** Optional parameters. */ export interface CommunityGalleryImagesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; /** Optional parameters. */ export interface CommunityGalleryImagesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CommunityGalleryImagesListNextResponse = CommunityGalleryImageList; /** Optional parameters. */ export interface CommunityGalleryImageVersionsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CommunityGalleryImageVersionsGetResponse = CommunityGalleryImageVersion; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CommunityGalleryImageVersionsListResponse = CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CommunityGalleryImageVersionsListNextResponse = CommunityGalleryImageVersionList; @@ -11994,7 +12156,7 @@ export type CloudServiceRoleInstancesGetResponse = RoleInstance; /** Optional parameters. */ export interface CloudServiceRoleInstancesGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type CloudServiceRoleInstancesGetInstanceViewResponse = RoleInstanceView; @@ -12038,7 +12200,7 @@ export interface CloudServiceRoleInstancesRebuildOptionalParams /** Optional parameters. */ export interface CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getRemoteDesktopFile operation. */ export type CloudServiceRoleInstancesGetRemoteDesktopFileResponse = { @@ -12060,28 +12222,28 @@ export type CloudServiceRoleInstancesGetRemoteDesktopFileResponse = { /** Optional parameters. */ export interface CloudServiceRoleInstancesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CloudServiceRoleInstancesListNextResponse = RoleInstanceListResult; /** Optional parameters. */ export interface CloudServiceRolesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CloudServiceRolesGetResponse = CloudServiceRole; /** Optional parameters. */ export interface CloudServiceRolesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CloudServiceRolesListResponse = CloudServiceRoleListResult; /** Optional parameters. */ export interface CloudServiceRolesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CloudServiceRolesListNextResponse = CloudServiceRoleListResult; @@ -12125,28 +12287,28 @@ export interface CloudServicesDeleteOptionalParams /** Optional parameters. */ export interface CloudServicesGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CloudServicesGetResponse = CloudService; /** Optional parameters. */ export interface CloudServicesGetInstanceViewOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ export type CloudServicesGetInstanceViewResponse = CloudServiceInstanceView; /** Optional parameters. */ export interface CloudServicesListAllOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type CloudServicesListAllResponse = CloudServiceListResult; /** Optional parameters. */ export interface CloudServicesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CloudServicesListResponse = CloudServiceListResult; @@ -12215,14 +12377,14 @@ export interface CloudServicesDeleteInstancesOptionalParams /** Optional parameters. */ export interface CloudServicesListAllNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type CloudServicesListAllNextResponse = CloudServiceListResult; /** Optional parameters. */ export interface CloudServicesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CloudServicesListNextResponse = CloudServiceListResult; @@ -12240,63 +12402,63 @@ export interface CloudServicesUpdateDomainWalkUpdateDomainOptionalParams /** Optional parameters. */ export interface CloudServicesUpdateDomainGetUpdateDomainOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getUpdateDomain operation. */ export type CloudServicesUpdateDomainGetUpdateDomainResponse = UpdateDomain; /** Optional parameters. */ export interface CloudServicesUpdateDomainListUpdateDomainsOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomains operation. */ export type CloudServicesUpdateDomainListUpdateDomainsResponse = UpdateDomainListResult; /** Optional parameters. */ export interface CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomainsNext operation. */ export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = UpdateDomainListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSVersionOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSVersion operation. */ export type CloudServiceOperatingSystemsGetOSVersionResponse = OSVersion; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSVersionsOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSVersions operation. */ export type CloudServiceOperatingSystemsListOSVersionsResponse = OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSFamilyOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the getOSFamily operation. */ export type CloudServiceOperatingSystemsGetOSFamilyResponse = OSFamily; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSFamiliesOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSFamilies operation. */ export type CloudServiceOperatingSystemsListOSFamiliesResponse = OSFamilyListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSVersionsNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSVersionsNext operation. */ export type CloudServiceOperatingSystemsListOSVersionsNextResponse = OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listOSFamiliesNext operation. */ export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = OSFamilyListResult; diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index f9f5533ae745..a096d51e0729 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -553,6 +553,12 @@ export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + osRollingUpgradeDeferral: { + serializedName: "osRollingUpgradeDeferral", + type: { + name: "Boolean" + } } } } @@ -704,6 +710,13 @@ export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { name: "Composite", className: "SecurityPostureReference" } + }, + timeCreated: { + serializedName: "timeCreated", + readOnly: true, + type: { + name: "DateTime" + } } } } @@ -1862,6 +1875,20 @@ export const SecurityProfile: coreClient.CompositeMapper = { type: { name: "String" } + }, + encryptionIdentity: { + serializedName: "encryptionIdentity", + type: { + name: "Composite", + className: "EncryptionIdentity" + } + }, + proxyAgentSettings: { + serializedName: "proxyAgentSettings", + type: { + name: "Composite", + className: "ProxyAgentSettings" + } } } } @@ -1888,6 +1915,48 @@ export const UefiSettings: coreClient.CompositeMapper = { } }; +export const EncryptionIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionIdentity", + modelProperties: { + userAssignedIdentityResourceId: { + serializedName: "userAssignedIdentityResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ProxyAgentSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyAgentSettings", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + keyIncarnationId: { + serializedName: "keyIncarnationId", + type: { + name: "Number" + } + } + } + } +}; + export const DiagnosticsProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2463,6 +2532,59 @@ export const PriorityMixPolicy: coreClient.CompositeMapper = { } }; +export const ResiliencyPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResiliencyPolicy", + modelProperties: { + resilientVMCreationPolicy: { + serializedName: "resilientVMCreationPolicy", + type: { + name: "Composite", + className: "ResilientVMCreationPolicy" + } + }, + resilientVMDeletionPolicy: { + serializedName: "resilientVMDeletionPolicy", + type: { + name: "Composite", + className: "ResilientVMDeletionPolicy" + } + } + } + } +}; + +export const ResilientVMCreationPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResilientVMCreationPolicy", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ResilientVMDeletionPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResilientVMDeletionPolicy", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5018,6 +5140,89 @@ export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { } }; +export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AttachDetachDataDisksRequest", + modelProperties: { + dataDisksToAttach: { + constraints: { + MinItems: 1 + }, + serializedName: "dataDisksToAttach", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDisksToAttach" + } + } + } + }, + dataDisksToDetach: { + constraints: { + MinItems: 1 + }, + serializedName: "dataDisksToDetach", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDisksToDetach" + } + } + } + } + } + } +}; + +export const DataDisksToAttach: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataDisksToAttach", + modelProperties: { + diskId: { + serializedName: "diskId", + required: true, + type: { + name: "String" + } + }, + lun: { + serializedName: "lun", + type: { + name: "Number" + } + } + } + } +}; + +export const DataDisksToDetach: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataDisksToDetach", + modelProperties: { + diskId: { + serializedName: "diskId", + required: true, + type: { + name: "String" + } + }, + detachOption: { + serializedName: "detachOption", + type: { + name: "String" + } + } + } + } +}; + export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5191,6 +5396,13 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { name: "Composite", className: "VirtualMachinePatchStatus" } + }, + isVMInStandbyPool: { + serializedName: "isVMInStandbyPool", + readOnly: true, + type: { + name: "Boolean" + } } } } @@ -6345,6 +6557,21 @@ export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { } }; +export const SshGenerateKeyPairInputParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshGenerateKeyPairInputParameters", + modelProperties: { + encryptionType: { + serializedName: "encryptionType", + type: { + name: "String" + } + } + } + } +}; + export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6616,6 +6843,13 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { } } } + }, + diskControllerType: { + serializedName: "diskControllerType", + readOnly: true, + type: { + name: "String" + } } } } @@ -6919,6 +7153,19 @@ export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = } } } + }, + sharedSubscriptionIds: { + serializedName: "sharedSubscriptionIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly" + } + } + } } } } @@ -6981,6 +7228,27 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { } }; +export const ResourceSharingProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceSharingProfile", + modelProperties: { + subscriptionIds: { + serializedName: "subscriptionIds", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + } + } + } +}; + export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8567,20 +8835,26 @@ export const DiskRestorePointList: coreClient.CompositeMapper = { } }; -export const SnapshotSku: coreClient.CompositeMapper = { +export const ResourceSkusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SnapshotSku", + className: "ResourceSkusResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSku" + } + } } }, - tier: { - serializedName: "tier", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -8589,187 +8863,21 @@ export const SnapshotSku: coreClient.CompositeMapper = { } }; -export const CopyCompletionError: coreClient.CompositeMapper = { +export const ResourceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CopyCompletionError", + className: "ResourceSku", modelProperties: { - errorCode: { - serializedName: "errorCode", - required: true, + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "errorMessage", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SnapshotUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SnapshotUpdate", - 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", - type: { - name: "Number" - } - }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", - type: { - name: "Composite", - className: "EncryptionSettingsCollection" - } - }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "Encryption" - } - }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", - type: { - name: "String" - } - }, - diskAccessId: { - serializedName: "properties.diskAccessId", - type: { - name: "String" - } - }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", - type: { - name: "Boolean" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", - type: { - name: "String" - } - }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", - type: { - name: "Composite", - className: "SupportedCapabilities" - } - } - } - } -}; - -export const SnapshotList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SnapshotList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Snapshot" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ResourceSkusResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSkusResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSku" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ResourceSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceSku", - modelProperties: { - resourceType: { - serializedName: "resourceType", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } @@ -9949,6 +10057,127 @@ export const RegionalReplicationStatus: coreClient.CompositeMapper = { } }; +export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageVersionSecurityProfile", + modelProperties: { + uefiSettings: { + serializedName: "uefiSettings", + type: { + name: "Composite", + className: "GalleryImageVersionUefiSettings" + } + } + } + } +}; + +export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImageVersionUefiSettings", + modelProperties: { + signatureTemplateNames: { + serializedName: "signatureTemplateNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + additionalSignatures: { + serializedName: "additionalSignatures", + type: { + name: "Composite", + className: "UefiKeySignatures" + } + } + } + } +}; + +export const UefiKeySignatures: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UefiKeySignatures", + modelProperties: { + pk: { + serializedName: "pk", + type: { + name: "Composite", + className: "UefiKey" + } + }, + kek: { + serializedName: "kek", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UefiKey" + } + } + } + }, + db: { + serializedName: "db", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UefiKey" + } + } + } + }, + dbx: { + serializedName: "dbx", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UefiKey" + } + } + } + } + } + } +}; + +export const UefiKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UefiKey", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10428,6 +10657,52 @@ export const SharedGalleryDiskImage: coreClient.CompositeMapper = { } }; +export const CommunityGalleryMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommunityGalleryMetadata", + modelProperties: { + publisherUri: { + serializedName: "publisherUri", + type: { + name: "String" + } + }, + publisherContact: { + serializedName: "publisherContact", + required: true, + type: { + name: "String" + } + }, + eula: { + serializedName: "eula", + type: { + name: "String" + } + }, + publicNames: { + serializedName: "publicNames", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privacyStatementUri: { + serializedName: "privacyStatementUri", + type: { + name: "String" + } + } + } + } +}; + export const PirCommunityGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11933,17 +12208,40 @@ export const OSFamilyListResult: coreClient.CompositeMapper = { serializedName: "value", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OSFamily" - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OSFamily" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const CopyCompletionError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CopyCompletionError", + modelProperties: { + errorCode: { + serializedName: "errorCode", + required: true, + type: { + name: "String" } }, - nextLink: { - serializedName: "nextLink", + errorMessage: { + serializedName: "errorMessage", + required: true, type: { name: "String" } @@ -12789,6 +13087,13 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { className: "ExtendedLocation" } }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, upgradePolicy: { serializedName: "properties.upgradePolicy", type: { @@ -12914,6 +13219,13 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + resiliencyPolicy: { + serializedName: "properties.resiliencyPolicy", + type: { + name: "Composite", + className: "ResiliencyPolicy" + } } } } @@ -13016,6 +13328,13 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { className: "VirtualMachineIdentity" } }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, latestModelApplied: { serializedName: "properties.latestModelApplied", readOnly: true, @@ -13195,6 +13514,20 @@ export const VirtualMachine: coreClient.CompositeMapper = { className: "ExtendedLocation" } }, + managedBy: { + serializedName: "managedBy", + readOnly: true, + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { @@ -13863,6 +14196,13 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { name: "Composite", className: "CapacityReservationGroupInstanceView" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "ResourceSharingProfile" + } } } } @@ -14318,240 +14658,44 @@ export const Disk: coreClient.CompositeMapper = { optimizedForFrequentAttach: { serializedName: "properties.optimizedForFrequentAttach", type: { - name: "Boolean" - } - }, - lastOwnershipUpdateTime: { - serializedName: "properties.LastOwnershipUpdateTime", - readOnly: true, - type: { - name: "DateTime" - } - } - } - } -}; - -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: "Composite", - className: "KeyForDiskEncryptionSet" - } - }, - previousKeys: { - serializedName: "properties.previousKeys", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "KeyForDiskEncryptionSet" - } - } - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - rotationToLatestKeyVersionEnabled: { - serializedName: "properties.rotationToLatestKeyVersionEnabled", - type: { - name: "Boolean" - } - }, - lastKeyRotationTimestamp: { - serializedName: "properties.lastKeyRotationTimestamp", - readOnly: true, - type: { - name: "DateTime" - } - }, - autoKeyRotationError: { - serializedName: "properties.autoKeyRotationError", - type: { - name: "Composite", - className: "ApiError" - } - }, - federatedClientId: { - serializedName: "properties.federatedClientId", - type: { - name: "String" - } - } - } - } -}; - -export const Snapshot: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Snapshot", - modelProperties: { - ...Resource.type.modelProperties, - managedBy: { - serializedName: "managedBy", - readOnly: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "SnapshotSku" - } - }, - extendedLocation: { - serializedName: "extendedLocation", - type: { - name: "Composite", - className: "ExtendedLocation" - } - }, - timeCreated: { - serializedName: "properties.timeCreated", - readOnly: true, - type: { - name: "DateTime" - } - }, - osType: { - serializedName: "properties.osType", - type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] - } - }, - hyperVGeneration: { - serializedName: "properties.hyperVGeneration", - type: { - name: "String" - } - }, - purchasePlan: { - serializedName: "properties.purchasePlan", - type: { - name: "Composite", - className: "PurchasePlanAutoGenerated" - } - }, - supportedCapabilities: { - serializedName: "properties.supportedCapabilities", - type: { - name: "Composite", - className: "SupportedCapabilities" - } - }, - creationData: { - serializedName: "properties.creationData", - type: { - name: "Composite", - className: "CreationData" - } - }, - diskSizeGB: { - serializedName: "properties.diskSizeGB", - type: { - name: "Number" - } - }, - diskSizeBytes: { - serializedName: "properties.diskSizeBytes", - readOnly: true, - type: { - name: "Number" + name: "Boolean" } }, - diskState: { - serializedName: "properties.diskState", + lastOwnershipUpdateTime: { + serializedName: "properties.LastOwnershipUpdateTime", readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - uniqueId: { - serializedName: "properties.uniqueId", - readOnly: true, + } + } + } +}; + +export const DiskAccess: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskAccess", + modelProperties: { + ...Resource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String" + name: "Composite", + className: "ExtendedLocation" } }, - encryptionSettingsCollection: { - serializedName: "properties.encryptionSettingsCollection", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, type: { - name: "Composite", - className: "EncryptionSettingsCollection" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } }, provisioningState: { @@ -14561,72 +14705,85 @@ export const Snapshot: coreClient.CompositeMapper = { name: "String" } }, - incremental: { - serializedName: "properties.incremental", - type: { - name: "Boolean" - } - }, - incrementalSnapshotFamilyId: { - serializedName: "properties.incrementalSnapshotFamilyId", + timeCreated: { + serializedName: "properties.timeCreated", readOnly: true, type: { - name: "String" + name: "DateTime" } - }, - encryption: { - serializedName: "properties.encryption", + } + } + } +}; + +export const DiskEncryptionSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiskEncryptionSet", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "Encryption" + className: "EncryptionSetIdentity" } }, - networkAccessPolicy: { - serializedName: "properties.networkAccessPolicy", + encryptionType: { + serializedName: "properties.encryptionType", type: { name: "String" } }, - diskAccessId: { - serializedName: "properties.diskAccessId", + activeKey: { + serializedName: "properties.activeKey", type: { - name: "String" + name: "Composite", + className: "KeyForDiskEncryptionSet" } }, - securityProfile: { - serializedName: "properties.securityProfile", + previousKeys: { + serializedName: "properties.previousKeys", + readOnly: true, type: { - name: "Composite", - className: "DiskSecurityProfile" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KeyForDiskEncryptionSet" + } + } } }, - supportsHibernation: { - serializedName: "properties.supportsHibernation", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + rotationToLatestKeyVersionEnabled: { + serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "String" + name: "Boolean" } }, - completionPercent: { - serializedName: "properties.completionPercent", + lastKeyRotationTimestamp: { + serializedName: "properties.lastKeyRotationTimestamp", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - copyCompletionError: { - serializedName: "properties.copyCompletionError", + autoKeyRotationError: { + serializedName: "properties.autoKeyRotationError", type: { name: "Composite", - className: "CopyCompletionError" + className: "ApiError" } }, - dataAccessAuthMode: { - serializedName: "properties.dataAccessAuthMode", + federatedClientId: { + serializedName: "properties.federatedClientId", type: { name: "String" } @@ -14839,6 +14996,13 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "ReplicationStatus" } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "ImageVersionSecurityProfile" + } } } } @@ -15041,6 +15205,13 @@ export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { name: "Composite", className: "SpotRestorePolicy" } + }, + resiliencyPolicy: { + serializedName: "properties.resiliencyPolicy", + type: { + name: "Composite", + className: "ResiliencyPolicy" + } } } } @@ -15688,6 +15859,13 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { name: "Composite", className: "CapacityReservationGroupInstanceView" } + }, + sharingProfile: { + serializedName: "properties.sharingProfile", + type: { + name: "Composite", + className: "ResourceSharingProfile" + } } } } @@ -16417,6 +16595,13 @@ export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { name: "Composite", className: "ReplicationStatus" } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "ImageVersionSecurityProfile" + } } } } @@ -16772,7 +16957,27 @@ export const CommunityGallery: coreClient.CompositeMapper = { name: "Composite", className: "CommunityGallery", modelProperties: { - ...PirCommunityGalleryResource.type.modelProperties + ...PirCommunityGalleryResource.type.modelProperties, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + communityMetadata: { + serializedName: "properties.communityMetadata", + type: { + name: "Composite", + className: "CommunityGalleryMetadata" + } + } } } }; @@ -16866,6 +17071,19 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { type: { name: "String" } + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -16901,6 +17119,19 @@ export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryImageVersionStorageProfile" } + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -17013,7 +17244,15 @@ export const SharedGallery: coreClient.CompositeMapper = { name: "Composite", className: "SharedGallery", modelProperties: { - ...PirSharedGalleryResource.type.modelProperties + ...PirSharedGalleryResource.type.modelProperties, + artifactTags: { + serializedName: "properties.artifactTags", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } } } }; @@ -17107,6 +17346,13 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { type: { name: "String" } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -17142,6 +17388,13 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryImageVersionStorageProfile" } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -17161,3 +17414,78 @@ export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = } } }; + +export const VirtualMachineScaleSetsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachinesAttachDetachDataDisksHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachinesAttachDetachDataDisksHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DedicatedHostsRedeployHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 912183585781..a45a2cdc9c63 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -25,6 +25,7 @@ import { VirtualMachineScaleSetVMExtensionUpdate as VirtualMachineScaleSetVMExtensionUpdateMapper, VirtualMachineScaleSetVMReimageParameters as VirtualMachineScaleSetVMReimageParametersMapper, VirtualMachineScaleSetVM as VirtualMachineScaleSetVMMapper, + AttachDetachDataDisksRequest as AttachDetachDataDisksRequestMapper, RunCommandInput as RunCommandInputMapper, VirtualMachineExtension as VirtualMachineExtensionMapper, VirtualMachineExtensionUpdate as VirtualMachineExtensionUpdateMapper, @@ -43,6 +44,7 @@ import { DedicatedHostUpdate as DedicatedHostUpdateMapper, SshPublicKeyResource as SshPublicKeyResourceMapper, SshPublicKeyUpdateResource as SshPublicKeyUpdateResourceMapper, + SshGenerateKeyPairInputParameters as SshGenerateKeyPairInputParametersMapper, Image as ImageMapper, ImageUpdate as ImageUpdateMapper, RestorePointCollection as RestorePointCollectionMapper, @@ -64,8 +66,6 @@ import { PrivateEndpointConnection as PrivateEndpointConnectionMapper, DiskEncryptionSet as DiskEncryptionSetMapper, DiskEncryptionSetUpdate as DiskEncryptionSetUpdateMapper, - Snapshot as SnapshotMapper, - SnapshotUpdate as SnapshotUpdateMapper, Gallery as GalleryMapper, GalleryUpdate as GalleryUpdateMapper, GalleryImage as GalleryImageMapper, @@ -110,7 +110,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-07-01", + defaultValue: "2023-09-01", isConstant: true, serializedName: "api-version", type: { @@ -195,6 +195,26 @@ export const vmScaleSetName: OperationURLParameter = { } }; +export const ifMatch: OperationParameter = { + parameterPath: ["options", "ifMatch"], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; + +export const ifNoneMatch: OperationParameter = { + parameterPath: ["options", "ifNoneMatch"], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; + export const parameters1: OperationParameter = { parameterPath: "parameters", mapper: VirtualMachineScaleSetUpdateMapper @@ -423,6 +443,11 @@ export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { }; export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: AttachDetachDataDisksRequestMapper +}; + +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: RunCommandInputMapper }; @@ -460,17 +485,17 @@ export const extensionParameters5: OperationParameter = { mapper: VirtualMachineExtensionUpdateMapper }; -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: VirtualMachineCaptureParametersMapper }; -export const parameters7: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: VirtualMachineMapper }; -export const parameters8: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: VirtualMachineUpdateMapper }; @@ -505,7 +530,7 @@ export const expand4: OperationQueryParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VirtualMachineReimageParametersMapper }; @@ -612,7 +637,7 @@ export const typeParam: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: AvailabilitySetMapper }; @@ -628,12 +653,12 @@ export const availabilitySetName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: AvailabilitySetUpdateMapper }; -export const parameters12: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: ProximityPlacementGroupMapper }; @@ -649,7 +674,7 @@ export const proximityPlacementGroupName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: ProximityPlacementGroupUpdateMapper }; @@ -664,7 +689,7 @@ export const includeColocationStatus: OperationQueryParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: DedicatedHostGroupMapper }; @@ -680,12 +705,12 @@ export const hostGroupName: OperationURLParameter = { } }; -export const parameters15: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", mapper: DedicatedHostGroupUpdateMapper }; -export const parameters16: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: DedicatedHostMapper }; @@ -701,7 +726,7 @@ export const hostName: OperationURLParameter = { } }; -export const parameters17: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: DedicatedHostUpdateMapper }; @@ -734,7 +759,7 @@ export const hostName1: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: SshPublicKeyResourceMapper }; @@ -750,12 +775,17 @@ export const sshPublicKeyName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: SshPublicKeyUpdateResourceMapper }; -export const parameters20: OperationParameter = { +export const parameters21: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: SshGenerateKeyPairInputParametersMapper +}; + +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: ImageMapper }; @@ -771,12 +801,12 @@ export const imageName: OperationURLParameter = { } }; -export const parameters21: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: ImageUpdateMapper }; -export const parameters22: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: RestorePointCollectionMapper }; @@ -792,7 +822,7 @@ export const restorePointCollectionName: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: RestorePointCollectionUpdateMapper }; @@ -807,7 +837,7 @@ export const expand5: OperationQueryParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: RestorePointMapper }; @@ -833,7 +863,7 @@ export const expand6: OperationQueryParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationGroupMapper }; @@ -849,7 +879,7 @@ export const capacityReservationGroupName: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationGroupUpdateMapper }; @@ -874,7 +904,7 @@ export const expand8: OperationQueryParameter = { } }; -export const parameters27: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationMapper }; @@ -890,7 +920,7 @@ export const capacityReservationName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: CapacityReservationUpdateMapper }; @@ -905,12 +935,12 @@ export const expand9: OperationQueryParameter = { } }; -export const parameters29: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: RequestRateByIntervalInputMapper }; -export const parameters30: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: ThrottledRequestsInputMapper }; @@ -1065,27 +1095,6 @@ export const diskRestorePointName: OperationURLParameter = { } }; -export const snapshot: OperationParameter = { - parameterPath: "snapshot", - mapper: SnapshotMapper -}; - -export const snapshotName: OperationURLParameter = { - parameterPath: "snapshotName", - mapper: { - serializedName: "snapshotName", - required: true, - type: { - name: "String" - } - } -}; - -export const snapshot1: OperationParameter = { - parameterPath: "snapshot", - mapper: SnapshotUpdateMapper -}; - export const apiVersion2: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -1127,7 +1136,7 @@ export const galleryName: OperationURLParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-03-03", + defaultValue: "2022-08-03", isConstant: true, serializedName: "api-version", type: { @@ -1349,22 +1358,22 @@ export const roleName: OperationURLParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: ["options", "parameters"], mapper: CloudServiceMapper }; -export const parameters32: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: ["options", "parameters"], mapper: CloudServiceUpdateMapper }; -export const parameters33: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: ["options", "parameters"], mapper: RoleInstancesMapper }; -export const parameters34: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: ["options", "parameters"], mapper: UpdateDomainMapper }; diff --git a/sdk/compute/arm-compute/src/operations/availabilitySets.ts b/sdk/compute/arm-compute/src/operations/availabilitySets.ts index ea4f34024e99..7560d319dff3 100644 --- a/sdk/compute/arm-compute/src/operations/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operations/availabilitySets.ts @@ -397,7 +397,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -421,7 +421,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts index dd348128ffd6..acfd90ebf1eb 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts @@ -174,8 +174,8 @@ export class CapacityReservationGroupsImpl /** * The operation to create or update a capacity reservation group. When updating a capacity reservation - * group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more - * details. + * group, only tags and sharing profile may be modified. Please refer to + * https://aka.ms/CapacityReservation for more details. * @param resourceGroupName The name of the resource group. * @param capacityReservationGroupName The name of the capacity reservation group. * @param parameters Parameters supplied to the Create capacity reservation Group. @@ -195,7 +195,7 @@ export class CapacityReservationGroupsImpl /** * The operation to update a capacity reservation group. When updating a capacity reservation group, - * only tags may be modified. + * only tags and sharing profile may be modified. * @param resourceGroupName The name of the resource group. * @param capacityReservationGroupName The name of the capacity reservation group. * @param parameters Parameters supplied to the Update capacity reservation Group operation. @@ -330,7 +330,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -354,7 +354,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts index 1f44d46446ad..559fd7c0e687 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -531,7 +531,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -565,7 +565,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index dc2c2161ca3f..75f18c5b18a4 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -1060,7 +1060,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -1093,7 +1093,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -1269,7 +1269,7 @@ const restartOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -1294,7 +1294,7 @@ const reimageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -1319,7 +1319,7 @@ const rebuildOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -1344,7 +1344,7 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index 7087b18820fd..7b8cb805bb4a 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -293,7 +293,7 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts index 170c778719b9..c19ce7be2462 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -324,7 +324,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -348,7 +348,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index 683fcb2572bb..e2a6377b9fdd 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -35,6 +35,8 @@ import { DedicatedHostsGetOptionalParams, DedicatedHostsGetResponse, DedicatedHostsRestartOptionalParams, + DedicatedHostsRedeployOptionalParams, + DedicatedHostsRedeployResponse, DedicatedHostsListByHostGroupNextResponse } from "../models"; @@ -628,6 +630,107 @@ export class DedicatedHostsImpl implements DedicatedHosts { return poller.pollUntilDone(); } + /** + * Redeploy the dedicated host. The operation will complete successfully once the dedicated host has + * migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host + * after the redeploy 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. + * @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. + * @param options The options parameters. + */ + async beginRedeploy( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsRedeployOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DedicatedHostsRedeployResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, hostGroupName, hostName, options }, + spec: redeployOperationSpec + }); + const poller = await createHttpPoller< + DedicatedHostsRedeployResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Redeploy the dedicated host. The operation will complete successfully once the dedicated host has + * migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host + * after the redeploy 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. + * @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. + * @param options The options parameters. + */ + async beginRedeployAndWait( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsRedeployOptionalParams + ): Promise { + const poller = await this.beginRedeploy( + resourceGroupName, + hostGroupName, + hostName, + options + ); + return poller.pollUntilDone(); + } + /** * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: * The dedicated host sizes provided can be used to only scale up the existing dedicated host. @@ -691,7 +794,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -725,7 +828,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -831,6 +934,38 @@ const restartOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const redeployOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.DedicatedHostsRedeployHeaders + }, + 201: { + headersMapper: Mappers.DedicatedHostsRedeployHeaders + }, + 202: { + headersMapper: Mappers.DedicatedHostsRedeployHeaders + }, + 204: { + headersMapper: Mappers.DedicatedHostsRedeployHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.hostGroupName1, + Parameters.hostName1 + ], + headerParameters: [Parameters.accept], + serializer +}; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index c59a61a63b0b..b2fb10422e3f 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -546,7 +546,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -579,7 +579,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/index.ts b/sdk/compute/arm-compute/src/operations/index.ts index 502684dc464f..69c5f727f23a 100644 --- a/sdk/compute/arm-compute/src/operations/index.ts +++ b/sdk/compute/arm-compute/src/operations/index.ts @@ -36,7 +36,6 @@ export * from "./disks"; export * from "./diskAccesses"; export * from "./diskEncryptionSets"; export * from "./diskRestorePointOperations"; -export * from "./snapshots"; export * from "./resourceSkus"; export * from "./galleries"; export * from "./galleryImages"; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index 1ee43c16df21..d5466c6b1c66 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -246,7 +246,7 @@ const exportRequestRateByIntervalOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -278,7 +278,7 @@ const exportThrottledRequestsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts index f132008f1fa9..1427c04ff5d3 100644 --- a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -319,7 +319,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -343,7 +343,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index f08ccb1c3f68..eba6ad238f07 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -388,7 +388,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -412,7 +412,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index 27bc381911ce..e327f4898ff8 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -286,7 +286,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts deleted file mode 100644 index 6257f2de0768..000000000000 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Snapshots } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { ComputeManagementClient } from "../computeManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - Snapshot, - SnapshotsListByResourceGroupNextOptionalParams, - SnapshotsListByResourceGroupOptionalParams, - SnapshotsListByResourceGroupResponse, - SnapshotsListNextOptionalParams, - SnapshotsListOptionalParams, - SnapshotsListResponse, - SnapshotsCreateOrUpdateOptionalParams, - SnapshotsCreateOrUpdateResponse, - SnapshotUpdate, - SnapshotsUpdateOptionalParams, - SnapshotsUpdateResponse, - SnapshotsGetOptionalParams, - SnapshotsGetResponse, - SnapshotsDeleteOptionalParams, - GrantAccessData, - SnapshotsGrantAccessOptionalParams, - SnapshotsGrantAccessResponse, - SnapshotsRevokeAccessOptionalParams, - SnapshotsListByResourceGroupNextResponse, - SnapshotsListNextResponse -} from "../models"; - -/// -/** Class containing Snapshots operations. */ -export class SnapshotsImpl implements Snapshots { - private readonly client: ComputeManagementClient; - - /** - * Initialize a new instance of the class Snapshots class. - * @param client Reference to the service client - */ - constructor(client: ComputeManagementClient) { - this.client = client; - } - - /** - * Lists snapshots under a resource group. - * @param resourceGroupName The name of the resource group. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); - } - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: SnapshotsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { - yield* page; - } - } - - /** - * Lists snapshots under a subscription. - * @param options The options parameters. - */ - public list( - options?: SnapshotsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - } - }; - } - - private async *listPagingPage( - options?: SnapshotsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: SnapshotsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: SnapshotsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * Creates or updates a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Put disk operation. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - snapshotName: string, - snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SnapshotsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, snapshotName, snapshot, options }, - spec: createOrUpdateOperationSpec - }); - const poller = await createHttpPoller< - SnapshotsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Creates or updates a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Put disk operation. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - snapshotName: string, - snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - snapshotName, - snapshot, - options - ); - return poller.pollUntilDone(); - } - - /** - * Updates (patches) a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Patch snapshot operation. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - snapshotName: string, - snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SnapshotsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, snapshotName, snapshot, options }, - spec: updateOperationSpec - }); - const poller = await createHttpPoller< - SnapshotsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Updates (patches) a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Patch snapshot operation. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - snapshotName: string, - snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - snapshotName, - snapshot, - options - ); - return poller.pollUntilDone(); - } - - /** - * Gets information about a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, snapshotName, options }, - getOperationSpec - ); - } - - /** - * Deletes a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, snapshotName, options }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Deletes a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - snapshotName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Lists snapshots under a resource group. - * @param resourceGroupName The name of the resource group. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - - /** - * Lists snapshots under a subscription. - * @param options The options parameters. - */ - private _list( - options?: SnapshotsListOptionalParams - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * Grants access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param grantAccessData Access data object supplied in the body of the get snapshot access operation. - * @param options The options parameters. - */ - async beginGrantAccess( - resourceGroupName: string, - snapshotName: string, - grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SnapshotsGrantAccessResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, snapshotName, grantAccessData, options }, - spec: grantAccessOperationSpec - }); - const poller = await createHttpPoller< - SnapshotsGrantAccessResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Grants access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param grantAccessData Access data object supplied in the body of the get snapshot access operation. - * @param options The options parameters. - */ - async beginGrantAccessAndWait( - resourceGroupName: string, - snapshotName: string, - grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams - ): Promise { - const poller = await this.beginGrantAccess( - resourceGroupName, - snapshotName, - grantAccessData, - options - ); - return poller.pollUntilDone(); - } - - /** - * Revokes access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - async beginRevokeAccess( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, snapshotName, options }, - spec: revokeAccessOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Revokes access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - async beginRevokeAccessAndWait( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams - ): Promise { - const poller = await this.beginRevokeAccess( - resourceGroupName, - snapshotName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: SnapshotsListByResourceGroupNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec - ); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: SnapshotsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Snapshot - }, - 201: { - bodyMapper: Mappers.Snapshot - }, - 202: { - bodyMapper: Mappers.Snapshot - }, - 204: { - bodyMapper: Mappers.Snapshot - } - }, - requestBody: Parameters.snapshot, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.snapshotName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.Snapshot - }, - 201: { - bodyMapper: Mappers.Snapshot - }, - 202: { - bodyMapper: Mappers.Snapshot - }, - 204: { - bodyMapper: Mappers.Snapshot - } - }, - requestBody: Parameters.snapshot1, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.snapshotName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Snapshot - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.snapshotName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", - httpMethod: "DELETE", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.snapshotName - ], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SnapshotList - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SnapshotList - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AccessUri - }, - 201: { - bodyMapper: Mappers.AccessUri - }, - 202: { - bodyMapper: Mappers.AccessUri - }, - 204: { - bodyMapper: Mappers.AccessUri - } - }, - requestBody: Parameters.grantAccessData, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.snapshotName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", - httpMethod: "POST", - responses: { 200: {}, 201: {}, 202: {}, 204: {} }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.snapshotName - ], - serializer -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SnapshotList - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SnapshotList - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts index 069c4705476c..bb3617823018 100644 --- a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -382,7 +382,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -406,7 +406,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -473,6 +473,7 @@ const generateKeyPairOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -480,7 +481,8 @@ const generateKeyPairOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.sshPublicKeyName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index e5bcb0c15845..eb09a451ec96 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -26,6 +26,8 @@ import { VirtualMachineScaleSetVMsListResponse, VirtualMachineScaleSetVMsReimageOptionalParams, VirtualMachineScaleSetVMsReimageAllOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, VirtualMachineScaleSetVMsDeallocateOptionalParams, VirtualMachineScaleSetVMsUpdateOptionalParams, VirtualMachineScaleSetVMsUpdateResponse, @@ -42,6 +44,9 @@ import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse, VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, + AttachDetachDataDisksRequest, + VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, + VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, VirtualMachineScaleSetVMsRunCommandResponse, @@ -322,6 +327,101 @@ export class VirtualMachineScaleSetVMsImpl return poller.pollUntilDone(); } + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + async beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, instanceId, options }, + spec: approveRollingUpgradeOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + async beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise { + const poller = await this.beginApproveRollingUpgrade( + resourceGroupName, + vmScaleSetName, + instanceId, + options + ); + return poller.pollUntilDone(); + } + /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and * releases the compute resources it uses. You are not billed for the compute resources of this virtual @@ -1140,6 +1240,115 @@ export class VirtualMachineScaleSetVMsImpl ); } + /** + * Attach and detach data disks to/from a virtual machine in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on a Virtual + * Machine Scale Sets VM. + * @param options The options parameters. + */ + async beginAttachDetachDataDisks( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetVMsAttachDetachDataDisksResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + options + }, + spec: attachDetachDataDisksOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Attach and detach data disks to/from a virtual machine in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on a Virtual + * Machine Scale Sets VM. + * @param options The options parameters. + */ + async beginAttachDetachDataDisksAndWait( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + ): Promise { + const poller = await this.beginAttachDetachDataDisks( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * Run command on a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. @@ -1319,6 +1528,42 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", + httpMethod: "POST", + responses: { + 200: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + 201: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + 202: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + 204: { + headersMapper: + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId + ], + headerParameters: [Parameters.accept], + serializer +}; const deallocateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", @@ -1373,7 +1618,12 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.vmScaleSetName, Parameters.instanceId ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch + ], mediaType: "json", serializer }; @@ -1641,6 +1891,40 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.StorageProfile + }, + 201: { + bodyMapper: Mappers.StorageProfile + }, + 202: { + bodyMapper: Mappers.StorageProfile + }, + 204: { + bodyMapper: Mappers.StorageProfile + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + Parameters.instanceId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const runCommandOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", @@ -1659,7 +1943,7 @@ const runCommandOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunCommandResult } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index 09a163751fbe..c305e0a6841e 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -60,6 +60,8 @@ import { VirtualMachineScaleSetsUpdateInstancesOptionalParams, VirtualMachineScaleSetsReimageOptionalParams, VirtualMachineScaleSetsReimageAllOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeResponse, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, VMScaleSetConvertToSinglePlacementGroupInput, @@ -1749,6 +1751,96 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { return poller.pollUntilDone(); } + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + async beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetsApproveRollingUpgradeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmScaleSetName, options }, + spec: approveRollingUpgradeOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachineScaleSetsApproveRollingUpgradeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + async beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise { + const poller = await this.beginApproveRollingUpgrade( + resourceGroupName, + vmScaleSetName, + options + ); + return poller.pollUntilDone(); + } + /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine * scale set. @@ -2017,7 +2109,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch + ], mediaType: "json", serializer }; @@ -2050,7 +2147,12 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch + ], mediaType: "json", serializer }; @@ -2476,6 +2578,39 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + 201: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + 202: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + 204: { + headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.vmInstanceIDs, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index 5775db9e8ca8..aae8dde2f61b 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -64,6 +64,9 @@ import { VirtualMachineInstallPatchesParameters, VirtualMachinesInstallPatchesOptionalParams, VirtualMachinesInstallPatchesResponse, + AttachDetachDataDisksRequest, + VirtualMachinesAttachDetachDataDisksOptionalParams, + VirtualMachinesAttachDetachDataDisksResponse, RunCommandInput, VirtualMachinesRunCommandOptionalParams, VirtualMachinesRunCommandResponse, @@ -1761,6 +1764,104 @@ export class VirtualMachinesImpl implements VirtualMachines { return poller.pollUntilDone(); } + /** + * Attach and detach data disks to/from the virtual machine. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on the virtual + * machine. + * @param options The options parameters. + */ + async beginAttachDetachDataDisks( + resourceGroupName: string, + vmName: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachinesAttachDetachDataDisksOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachinesAttachDetachDataDisksResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, vmName, parameters, options }, + spec: attachDetachDataDisksOperationSpec + }); + const poller = await createHttpPoller< + VirtualMachinesAttachDetachDataDisksResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Attach and detach data disks to/from the virtual machine. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on the virtual + * machine. + * @param options The options parameters. + */ + async beginAttachDetachDataDisksAndWait( + resourceGroupName: string, + vmName: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachinesAttachDetachDataDisksOptionalParams + ): Promise { + const poller = await this.beginAttachDetachDataDisks( + resourceGroupName, + vmName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * Run command on the VM. * @param resourceGroupName The name of the resource group. @@ -1951,7 +2052,7 @@ const captureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1984,7 +2085,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1992,7 +2093,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch + ], mediaType: "json", serializer }; @@ -2017,7 +2123,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2025,7 +2131,12 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmName ], - headerParameters: [Parameters.accept, Parameters.contentType], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch, + Parameters.ifNoneMatch + ], mediaType: "json", serializer }; @@ -2359,7 +2470,7 @@ const reimageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2503,6 +2614,39 @@ const installPatchesOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.StorageProfile + }, + 201: { + bodyMapper: Mappers.StorageProfile + }, + 202: { + bodyMapper: Mappers.StorageProfile + }, + 204: { + bodyMapper: Mappers.StorageProfile + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const runCommandOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", @@ -2521,7 +2665,7 @@ const runCommandOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.RunCommandResult } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts index 2d43fd8f245a..1dd3210dd776 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts @@ -44,8 +44,8 @@ export interface CapacityReservationGroups { ): PagedAsyncIterableIterator; /** * The operation to create or update a capacity reservation group. When updating a capacity reservation - * group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more - * details. + * group, only tags and sharing profile may be modified. Please refer to + * https://aka.ms/CapacityReservation for more details. * @param resourceGroupName The name of the resource group. * @param capacityReservationGroupName The name of the capacity reservation group. * @param parameters Parameters supplied to the Create capacity reservation Group. @@ -59,7 +59,7 @@ export interface CapacityReservationGroups { ): Promise; /** * The operation to update a capacity reservation group. When updating a capacity reservation group, - * only tags may be modified. + * only tags and sharing profile may be modified. * @param resourceGroupName The name of the resource group. * @param capacityReservationGroupName The name of the capacity reservation group. * @param parameters Parameters supplied to the Update capacity reservation Group operation. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts index 6f8b65adf57c..35cc345ee081 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts @@ -20,7 +20,9 @@ import { DedicatedHostsDeleteOptionalParams, DedicatedHostsGetOptionalParams, DedicatedHostsGetResponse, - DedicatedHostsRestartOptionalParams + DedicatedHostsRestartOptionalParams, + DedicatedHostsRedeployOptionalParams, + DedicatedHostsRedeployResponse } from "../models"; /// @@ -193,4 +195,41 @@ export interface DedicatedHosts { hostName: string, options?: DedicatedHostsRestartOptionalParams ): Promise; + /** + * Redeploy the dedicated host. The operation will complete successfully once the dedicated host has + * migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host + * after the redeploy 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. + * @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. + * @param options The options parameters. + */ + beginRedeploy( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsRedeployOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DedicatedHostsRedeployResponse + > + >; + /** + * Redeploy the dedicated host. The operation will complete successfully once the dedicated host has + * migrated to a new node and is running. To determine the health of VMs deployed on the dedicated host + * after the redeploy 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. + * @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. + * @param options The options parameters. + */ + beginRedeployAndWait( + resourceGroupName: string, + hostGroupName: string, + hostName: string, + options?: DedicatedHostsRedeployOptionalParams + ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts index 502684dc464f..69c5f727f23a 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/index.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/index.ts @@ -36,7 +36,6 @@ export * from "./disks"; export * from "./diskAccesses"; export * from "./diskEncryptionSets"; export * from "./diskRestorePointOperations"; -export * from "./snapshots"; export * from "./resourceSkus"; export * from "./galleries"; export * from "./galleryImages"; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts deleted file mode 100644 index bcc82b28779e..000000000000 --- a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - Snapshot, - SnapshotsListByResourceGroupOptionalParams, - SnapshotsListOptionalParams, - SnapshotsCreateOrUpdateOptionalParams, - SnapshotsCreateOrUpdateResponse, - SnapshotUpdate, - SnapshotsUpdateOptionalParams, - SnapshotsUpdateResponse, - SnapshotsGetOptionalParams, - SnapshotsGetResponse, - SnapshotsDeleteOptionalParams, - GrantAccessData, - SnapshotsGrantAccessOptionalParams, - SnapshotsGrantAccessResponse, - SnapshotsRevokeAccessOptionalParams -} from "../models"; - -/// -/** Interface representing a Snapshots. */ -export interface Snapshots { - /** - * Lists snapshots under a resource group. - * @param resourceGroupName The name of the resource group. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams - ): PagedAsyncIterableIterator; - /** - * Lists snapshots under a subscription. - * @param options The options parameters. - */ - list( - options?: SnapshotsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Creates or updates a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Put disk operation. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - snapshotName: string, - snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SnapshotsCreateOrUpdateResponse - > - >; - /** - * Creates or updates a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Put disk operation. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - snapshotName: string, - snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams - ): Promise; - /** - * Updates (patches) a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Patch snapshot operation. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - snapshotName: string, - snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SnapshotsUpdateResponse - > - >; - /** - * Updates (patches) a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param snapshot Snapshot object supplied in the body of the Patch snapshot operation. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - snapshotName: string, - snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams - ): Promise; - /** - * Gets information about a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsGetOptionalParams - ): Promise; - /** - * Deletes a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsDeleteOptionalParams - ): Promise, void>>; - /** - * Deletes a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsDeleteOptionalParams - ): Promise; - /** - * Grants access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param grantAccessData Access data object supplied in the body of the get snapshot access operation. - * @param options The options parameters. - */ - beginGrantAccess( - resourceGroupName: string, - snapshotName: string, - grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - SnapshotsGrantAccessResponse - > - >; - /** - * Grants access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param grantAccessData Access data object supplied in the body of the get snapshot access operation. - * @param options The options parameters. - */ - beginGrantAccessAndWait( - resourceGroupName: string, - snapshotName: string, - grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams - ): Promise; - /** - * Revokes access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - beginRevokeAccess( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams - ): Promise, void>>; - /** - * Revokes access to a snapshot. - * @param resourceGroupName The name of the resource group. - * @param snapshotName The name of the snapshot that is being created. The name can't be changed after - * the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The max name - * length is 80 characters. - * @param options The options parameters. - */ - beginRevokeAccessAndWait( - resourceGroupName: string, - snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams - ): Promise; -} diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts index 5ddf9379316b..72505ad04bab 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts @@ -13,6 +13,8 @@ import { VirtualMachineScaleSetVMsListOptionalParams, VirtualMachineScaleSetVMsReimageOptionalParams, VirtualMachineScaleSetVMsReimageAllOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, VirtualMachineScaleSetVMsDeallocateOptionalParams, VirtualMachineScaleSetVMsUpdateOptionalParams, VirtualMachineScaleSetVMsUpdateResponse, @@ -29,6 +31,9 @@ import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse, VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, + AttachDetachDataDisksRequest, + VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, + VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, VirtualMachineScaleSetVMsRunCommandResponse @@ -102,6 +107,37 @@ export interface VirtualMachineScaleSetVMs { instanceId: string, options?: VirtualMachineScaleSetVMsReimageAllOptionalParams ): Promise; + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetVMsApproveRollingUpgradeResponse + > + >; + /** + * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param options The options parameters. + */ + beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + ): Promise; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and * releases the compute resources it uses. You are not billed for the compute resources of this virtual @@ -381,6 +417,43 @@ export interface VirtualMachineScaleSetVMs { instanceId: string, options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams ): Promise; + /** + * Attach and detach data disks to/from a virtual machine in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on a Virtual + * Machine Scale Sets VM. + * @param options The options parameters. + */ + beginAttachDetachDataDisks( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetVMsAttachDetachDataDisksResponse + > + >; + /** + * Attach and detach data disks to/from a virtual machine in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param instanceId The instance ID of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on a Virtual + * Machine Scale Sets VM. + * @param options The options parameters. + */ + beginAttachDetachDataDisksAndWait( + resourceGroupName: string, + vmScaleSetName: string, + instanceId: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + ): Promise; /** * Run command on a virtual machine in a VM scale set. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts index 7fd91293bcbb..6b7366c5365b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -39,6 +39,8 @@ import { VirtualMachineScaleSetsUpdateInstancesOptionalParams, VirtualMachineScaleSetsReimageOptionalParams, VirtualMachineScaleSetsReimageAllOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, + VirtualMachineScaleSetsApproveRollingUpgradeResponse, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse, VMScaleSetConvertToSinglePlacementGroupInput, @@ -478,6 +480,33 @@ export interface VirtualMachineScaleSets { vmScaleSetName: string, options?: VirtualMachineScaleSetsReimageAllOptionalParams ): Promise; + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + beginApproveRollingUpgrade( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineScaleSetsApproveRollingUpgradeResponse + > + >; + /** + * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. + * @param resourceGroupName The name of the resource group. + * @param vmScaleSetName The name of the VM scale set. + * @param options The options parameters. + */ + beginApproveRollingUpgradeAndWait( + resourceGroupName: string, + vmScaleSetName: string, + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + ): Promise; /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine * scale set. diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts index e38c7c25ba0f..7bade4667082 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts @@ -46,6 +46,9 @@ import { VirtualMachineInstallPatchesParameters, VirtualMachinesInstallPatchesOptionalParams, VirtualMachinesInstallPatchesResponse, + AttachDetachDataDisksRequest, + VirtualMachinesAttachDetachDataDisksOptionalParams, + VirtualMachinesAttachDetachDataDisksResponse, RunCommandInput, VirtualMachinesRunCommandOptionalParams, VirtualMachinesRunCommandResponse @@ -543,6 +546,39 @@ export interface VirtualMachines { installPatchesInput: VirtualMachineInstallPatchesParameters, options?: VirtualMachinesInstallPatchesOptionalParams ): Promise; + /** + * Attach and detach data disks to/from the virtual machine. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on the virtual + * machine. + * @param options The options parameters. + */ + beginAttachDetachDataDisks( + resourceGroupName: string, + vmName: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachinesAttachDetachDataDisksOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachinesAttachDetachDataDisksResponse + > + >; + /** + * Attach and detach data disks to/from the virtual machine. + * @param resourceGroupName The name of the resource group. + * @param vmName The name of the virtual machine. + * @param parameters Parameters supplied to the attach and detach data disks operation on the virtual + * machine. + * @param options The options parameters. + */ + beginAttachDetachDataDisksAndWait( + resourceGroupName: string, + vmName: string, + parameters: AttachDetachDataDisksRequest, + options?: VirtualMachinesAttachDetachDataDisksOptionalParams + ): Promise; /** * Run command on the VM. * @param resourceGroupName The name of the resource group. diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/compute/arm-compute/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index b84abc8423ab..3e6ae96443f3 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-compute": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"